]>
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 | ||
49 | codec: spdif-transmitter { | |
50 | compatible = "linux,spdif-dit"; | |
51 | pinctrl-names = "default"; | |
52 | pinctrl-0 = <&pinctrl_cubox_i_spdif>; | |
53 | }; | |
54 | ||
55 | sound-spdif { | |
56 | compatible = "fsl,imx-audio-spdif"; | |
57 | model = "imx-spdif"; | |
58 | /* IMX6 doesn't implement this yet */ | |
59 | spdif-controller = <&spdif>; | |
60 | spdif-out; | |
61 | }; | |
62 | }; | |
63 | ||
64 | &i2c3 { | |
65 | pinctrl-names = "default"; | |
66 | pinctrl-0 = <&pinctrl_cubox_i_i2c3>; | |
67 | ||
68 | status = "okay"; | |
69 | ||
70 | rtc: pcf8523@68 { | |
71 | compatible = "nxp,pcf8523"; | |
72 | reg = <0x68>; | |
73 | }; | |
74 | }; | |
75 | ||
76 | &iomuxc { | |
77 | cubox_i { | |
78 | pinctrl_cubox_i_i2c3: cubox-i-i2c3 { | |
79 | fsl,pins = < | |
80 | MX6QDL_PAD_EIM_D17__I2C3_SCL 0x4001b8b1 | |
81 | MX6QDL_PAD_EIM_D18__I2C3_SDA 0x4001b8b1 | |
82 | >; | |
83 | }; | |
84 | ||
85 | pinctrl_cubox_i_ir: cubox-i-ir { | |
86 | fsl,pins = < | |
87 | MX6QDL_PAD_EIM_DA9__GPIO3_IO09 0x80000000 | |
88 | >; | |
89 | }; | |
90 | ||
91 | pinctrl_cubox_i_spdif: cubox-i-spdif { | |
92 | fsl,pins = <MX6QDL_PAD_GPIO_17__SPDIF_OUT 0x1b0b0>; | |
93 | }; | |
94 | ||
95 | pinctrl_cubox_i_usbh1_vbus: cubox-i-usbh1-vbus { | |
96 | fsl,pins = <MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x4001b0b0>; | |
97 | }; | |
98 | ||
99 | pinctrl_cubox_i_usbotg_vbus: cubox-i-usbotg-vbus { | |
100 | fsl,pins = <MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x4001b0b0>; | |
101 | }; | |
102 | ||
103 | pinctrl_cubox_i_usdhc2_aux: cubox-i-usdhc2-aux { | |
104 | fsl,pins = < | |
105 | MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x1f071 | |
106 | MX6QDL_PAD_KEY_ROW1__SD2_VSELECT 0x1b071 | |
107 | >; | |
108 | }; | |
109 | ||
110 | pinctrl_cubox_i_usdhc2: cubox-i-usdhc2 { | |
111 | fsl,pins = < | |
112 | MX6QDL_PAD_SD2_CMD__SD2_CMD 0x17059 | |
113 | MX6QDL_PAD_SD2_CLK__SD2_CLK 0x10059 | |
114 | MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x17059 | |
115 | MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x17059 | |
116 | MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x17059 | |
117 | MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x13059 | |
118 | >; | |
119 | }; | |
120 | }; | |
121 | }; | |
122 | ||
123 | &spdif { | |
124 | status = "okay"; | |
125 | }; | |
126 | ||
127 | &usbh1 { | |
128 | vbus-supply = <®_usbh1_vbus>; | |
129 | status = "okay"; | |
130 | }; | |
131 | ||
132 | &usbotg { | |
133 | vbus-supply = <®_usbotg_vbus>; | |
134 | status = "okay"; | |
135 | }; | |
136 | ||
137 | &usdhc2 { | |
138 | pinctrl-names = "default"; | |
139 | pinctrl-0 = <&pinctrl_cubox_i_usdhc2_aux &pinctrl_cubox_i_usdhc2>; | |
140 | vmmc-supply = <®_3p3v>; | |
141 | cd-gpios = <&gpio1 4 0>; | |
142 | status = "okay"; | |
143 | }; |