Commit | Line | Data |
---|---|---|
971488f1 RK |
1 | /* |
2 | * Copyright (C) 2014 Russell King | |
3 | */ | |
4 | #include "imx6qdl-microsom.dtsi" | |
5 | #include "imx6qdl-microsom-ar8035.dtsi" | |
6 | ||
7 | / { | |
8 | ir_recv: ir-receiver { | |
9 | compatible = "gpio-ir-receiver"; | |
10 | gpios = <&gpio3 9 1>; | |
11 | pinctrl-names = "default"; | |
12 | pinctrl-0 = <&pinctrl_cubox_i_ir>; | |
13 | }; | |
14 | ||
15 | regulators { | |
16 | compatible = "simple-bus"; | |
17 | ||
18 | reg_3p3v: 3p3v { | |
19 | compatible = "regulator-fixed"; | |
20 | regulator-name = "3P3V"; | |
21 | regulator-min-microvolt = <3300000>; | |
22 | regulator-max-microvolt = <3300000>; | |
23 | regulator-always-on; | |
24 | }; | |
25 | ||
26 | reg_usbh1_vbus: usb-h1-vbus { | |
27 | compatible = "regulator-fixed"; | |
28 | enable-active-high; | |
29 | gpio = <&gpio1 0 0>; | |
30 | pinctrl-names = "default"; | |
31 | pinctrl-0 = <&pinctrl_cubox_i_usbh1_vbus>; | |
32 | regulator-name = "usb_h1_vbus"; | |
33 | regulator-min-microvolt = <5000000>; | |
34 | regulator-max-microvolt = <5000000>; | |
35 | }; | |
36 | ||
37 | reg_usbotg_vbus: usb-otg-vbus { | |
38 | compatible = "regulator-fixed"; | |
39 | enable-active-high; | |
40 | gpio = <&gpio3 22 0>; | |
41 | pinctrl-names = "default"; | |
42 | pinctrl-0 = <&pinctrl_cubox_i_usbotg_vbus>; | |
43 | regulator-name = "usb_otg_vbus"; | |
44 | regulator-min-microvolt = <5000000>; | |
45 | regulator-max-microvolt = <5000000>; | |
46 | }; | |
47 | }; | |
48 | ||
971488f1 RK |
49 | sound-spdif { |
50 | compatible = "fsl,imx-audio-spdif"; | |
51 | model = "imx-spdif"; | |
52 | /* IMX6 doesn't implement this yet */ | |
53 | spdif-controller = <&spdif>; | |
54 | spdif-out; | |
55 | }; | |
56 | }; | |
57 | ||
58 | &i2c3 { | |
59 | pinctrl-names = "default"; | |
60 | pinctrl-0 = <&pinctrl_cubox_i_i2c3>; | |
61 | ||
62 | status = "okay"; | |
63 | ||
64 | rtc: pcf8523@68 { | |
65 | compatible = "nxp,pcf8523"; | |
66 | reg = <0x68>; | |
67 | }; | |
68 | }; | |
69 | ||
70 | &iomuxc { | |
71 | cubox_i { | |
72 | pinctrl_cubox_i_i2c3: cubox-i-i2c3 { | |
73 | fsl,pins = < | |
74 | MX6QDL_PAD_EIM_D17__I2C3_SCL 0x4001b8b1 | |
75 | MX6QDL_PAD_EIM_D18__I2C3_SDA 0x4001b8b1 | |
76 | >; | |
77 | }; | |
78 | ||
79 | pinctrl_cubox_i_ir: cubox-i-ir { | |
80 | fsl,pins = < | |
81 | MX6QDL_PAD_EIM_DA9__GPIO3_IO09 0x80000000 | |
82 | >; | |
83 | }; | |
84 | ||
85 | pinctrl_cubox_i_spdif: cubox-i-spdif { | |
87f9260b | 86 | fsl,pins = <MX6QDL_PAD_GPIO_17__SPDIF_OUT 0x13091>; |
971488f1 RK |
87 | }; |
88 | ||
89 | pinctrl_cubox_i_usbh1_vbus: cubox-i-usbh1-vbus { | |
90 | fsl,pins = <MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x4001b0b0>; | |
91 | }; | |
92 | ||
93 | pinctrl_cubox_i_usbotg_vbus: cubox-i-usbotg-vbus { | |
94 | fsl,pins = <MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x4001b0b0>; | |
95 | }; | |
96 | ||
97 | pinctrl_cubox_i_usdhc2_aux: cubox-i-usdhc2-aux { | |
98 | fsl,pins = < | |
99 | MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x1f071 | |
100 | MX6QDL_PAD_KEY_ROW1__SD2_VSELECT 0x1b071 | |
101 | >; | |
102 | }; | |
103 | ||
104 | pinctrl_cubox_i_usdhc2: cubox-i-usdhc2 { | |
105 | fsl,pins = < | |
106 | MX6QDL_PAD_SD2_CMD__SD2_CMD 0x17059 | |
107 | MX6QDL_PAD_SD2_CLK__SD2_CLK 0x10059 | |
108 | MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x17059 | |
109 | MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x17059 | |
110 | MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x17059 | |
111 | MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x13059 | |
112 | >; | |
113 | }; | |
114 | }; | |
115 | }; | |
116 | ||
117 | &spdif { | |
87f9260b RK |
118 | pinctrl-names = "default"; |
119 | pinctrl-0 = <&pinctrl_cubox_i_spdif>; | |
971488f1 RK |
120 | status = "okay"; |
121 | }; | |
122 | ||
123 | &usbh1 { | |
124 | vbus-supply = <®_usbh1_vbus>; | |
125 | status = "okay"; | |
126 | }; | |
127 | ||
128 | &usbotg { | |
129 | vbus-supply = <®_usbotg_vbus>; | |
130 | status = "okay"; | |
131 | }; | |
132 | ||
133 | &usdhc2 { | |
134 | pinctrl-names = "default"; | |
135 | pinctrl-0 = <&pinctrl_cubox_i_usdhc2_aux &pinctrl_cubox_i_usdhc2>; | |
136 | vmmc-supply = <®_3p3v>; | |
137 | cd-gpios = <&gpio1 4 0>; | |
138 | status = "okay"; | |
139 | }; |