Merge branch 'drm-next-4.16' of git://people.freedesktop.org/~agd5f/linux into drm...
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / imx6qdl-hummingboard.dtsi
1 /*
2  * Copyright (C) 2013,2014 Russell King
3  *
4  * This file is dual-licensed: you can use it either under the terms
5  * of the GPL or the X11 license, at your option. Note that this dual
6  * licensing only applies to this file, and not this project as a
7  * whole.
8  *
9  *  a) This file is free software; you can redistribute it and/or
10  *     modify it under the terms of the GNU General Public License
11  *     version 2 as published by the Free Software Foundation.
12  *
13  *     This file is distributed in the hope that it will be useful,
14  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  *     GNU General Public License for more details.
17  *
18  * Or, alternatively,
19  *
20  *  b) Permission is hereby granted, free of charge, to any person
21  *     obtaining a copy of this software and associated documentation
22  *     files (the "Software"), to deal in the Software without
23  *     restriction, including without limitation the rights to use,
24  *     copy, modify, merge, publish, distribute, sublicense, and/or
25  *     sell copies of the Software, and to permit persons to whom the
26  *     Software is furnished to do so, subject to the following
27  *     conditions:
28  *
29  *     The above copyright notice and this permission notice shall be
30  *     included in all copies or substantial portions of the Software.
31  *
32  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
33  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
34  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
35  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
36  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
37  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
38  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
39  *     OTHER DEALINGS IN THE SOFTWARE.
40  */
41
42 / {
43         chosen {
44                 stdout-path = &uart1;
45         };
46
47         ir_recv: ir-receiver {
48                 compatible = "gpio-ir-receiver";
49                 gpios = <&gpio3 5 GPIO_ACTIVE_LOW>;
50                 pinctrl-names = "default";
51                 pinctrl-0 = <&pinctrl_hummingboard_gpio3_5>;
52         };
53
54         v_3v2: regulator-v-3v2 {
55                 compatible = "regulator-fixed";
56                 regulator-always-on;
57                 regulator-max-microvolt = <3300000>;
58                 regulator-min-microvolt = <3300000>;
59                 regulator-name = "v_3v2";
60                 vin-supply = <&v_5v0>;
61         };
62
63         v_5v0: regulator-v-5v0 {
64                 compatible = "regulator-fixed";
65                 regulator-always-on;
66                 regulator-max-microvolt = <5000000>;
67                 regulator-min-microvolt = <5000000>;
68                 regulator-name = "v_5v0";
69         };
70
71         v_sd: regulator-v-sd {
72                 compatible = "regulator-fixed";
73                 gpio = <&gpio4 30 GPIO_ACTIVE_HIGH>;
74                 pinctrl-names = "default";
75                 pinctrl-0 = <&pinctrl_hummingboard_vmmc>;
76                 regulator-boot-on;
77                 regulator-max-microvolt = <3300000>;
78                 regulator-min-microvolt = <3300000>;
79                 regulator-name = "v_sd";
80                 startup-delay-us = <1000>;
81                 vin-supply = <&v_3v2>;
82         };
83
84         v_usb2: regulator-v-usb2 {
85                 compatible = "regulator-fixed";
86                 enable-active-high;
87                 gpio = <&gpio1 0 GPIO_ACTIVE_HIGH>;
88                 pinctrl-names = "default";
89                 pinctrl-0 = <&pinctrl_hummingboard_usbh1_vbus>;
90                 regulator-max-microvolt = <5000000>;
91                 regulator-min-microvolt = <5000000>;
92                 regulator-name = "v_usb2";
93                 vin-supply = <&v_5v0>;
94         };
95
96         v_usb1: regulator-v-usb1 {
97                 compatible = "regulator-fixed";
98                 enable-active-high;
99                 gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
100                 pinctrl-names = "default";
101                 pinctrl-0 = <&pinctrl_hummingboard_usbotg_vbus>;
102                 regulator-max-microvolt = <5000000>;
103                 regulator-min-microvolt = <5000000>;
104                 regulator-name = "v_usb1";
105                 vin-supply = <&v_5v0>;
106         };
107
108         sound-sgtl5000 {
109                 audio-codec = <&sgtl5000>;
110                 audio-routing =
111                         "MIC_IN", "Mic Jack",
112                         "Mic Jack", "Mic Bias",
113                         "Headphone Jack", "HP_OUT";
114                 compatible = "fsl,imx-audio-sgtl5000";
115                 model = "On-board Codec";
116                 mux-ext-port = <5>;
117                 mux-int-port = <1>;
118                 ssi-controller = <&ssi1>;
119         };
120
121         sound-spdif {
122                 compatible = "fsl,imx-audio-spdif";
123                 model = "On-board SPDIF";
124                 /* IMX6 doesn't implement this yet */
125                 spdif-controller = <&spdif>;
126                 spdif-out;
127         };
128 };
129
130 &audmux {
131         status = "okay";
132 };
133
134 &can1 {
135         pinctrl-names = "default";
136         pinctrl-0 = <&pinctrl_hummingboard_flexcan1>;
137         status = "okay";
138 };
139
140 &hdmi {
141         pinctrl-names = "default";
142         pinctrl-0 = <&pinctrl_hummingboard_hdmi>;
143         ddc-i2c-bus = <&i2c2>;
144         status = "okay";
145 };
146
147 &i2c1 {
148         pinctrl-names = "default";
149         pinctrl-0 = <&pinctrl_hummingboard_i2c1>;
150         status = "okay";
151
152         /* Pro baseboard model */
153         rtc@68 {
154                 compatible = "nxp,pcf8523";
155                 reg = <0x68>;
156         };
157
158         /* Pro baseboard model */
159         sgtl5000: codec@a {
160                 clocks = <&clks IMX6QDL_CLK_CKO>;
161                 compatible = "fsl,sgtl5000";
162                 pinctrl-names = "default";
163                 pinctrl-0 = <&pinctrl_hummingboard_sgtl5000>;
164                 reg = <0x0a>;
165                 VDDA-supply = <&v_3v2>;
166                 VDDIO-supply = <&v_3v2>;
167         };
168 };
169
170 &i2c2 {
171         clock-frequency = <100000>;
172         pinctrl-names = "default";
173         pinctrl-0 = <&pinctrl_hummingboard_i2c2>;
174         status = "okay";
175 };
176
177 &iomuxc {
178         hummingboard {
179                 pinctrl_hummingboard_flexcan1: hummingboard-flexcan1 {
180                         fsl,pins = <
181                                 MX6QDL_PAD_SD3_CLK__FLEXCAN1_RX 0x80000000
182                                 MX6QDL_PAD_SD3_CMD__FLEXCAN1_TX 0x80000000
183                         >;
184                 };
185
186                 pinctrl_hummingboard_gpio3_5: hummingboard-gpio3_5 {
187                         fsl,pins = <
188                                 MX6QDL_PAD_EIM_DA5__GPIO3_IO05 0x1b0b1
189                         >;
190                 };
191
192                 pinctrl_hummingboard_hdmi: hummingboard-hdmi {
193                         fsl,pins = <
194                                 MX6QDL_PAD_KEY_ROW2__HDMI_TX_CEC_LINE 0x1f8b0
195                         >;
196                 };
197
198                 pinctrl_hummingboard_i2c1: hummingboard-i2c1 {
199                         fsl,pins = <
200                                 MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1
201                                 MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1
202                         >;
203                 };
204
205                 pinctrl_hummingboard_i2c2: hummingboard-i2c2 {
206                         fsl,pins = <
207                                 MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
208                                 MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
209                         >;
210                 };
211
212                 pinctrl_hummingboard_pcie_reset: hummingboard-pcie-reset {
213                         fsl,pins = <
214                                 MX6QDL_PAD_EIM_DA4__GPIO3_IO04 0x1b0b1
215                         >;
216                 };
217
218                 pinctrl_hummingboard_pwm1: pwm1grp {
219                         fsl,pins = <MX6QDL_PAD_DISP0_DAT8__PWM1_OUT 0x1b0b1>;
220                 };
221
222                 pinctrl_hummingboard_sgtl5000: hummingboard-sgtl5000 {
223                         fsl,pins = <
224                                 MX6QDL_PAD_DISP0_DAT19__AUD5_RXD 0x130b0
225                                 MX6QDL_PAD_KEY_COL0__AUD5_TXC 0x130b0
226                                 MX6QDL_PAD_KEY_ROW0__AUD5_TXD 0x110b0
227                                 MX6QDL_PAD_KEY_COL1__AUD5_TXFS 0x130b0
228                                 MX6QDL_PAD_GPIO_5__CCM_CLKO1 0x130b0
229                         >;
230                 };
231
232                 pinctrl_hummingboard_spdif: hummingboard-spdif {
233                         fsl,pins = <MX6QDL_PAD_GPIO_17__SPDIF_OUT 0x13091>;
234                 };
235
236                 pinctrl_hummingboard_usbh1_vbus: hummingboard-usbh1-vbus {
237                         fsl,pins = <MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x1b0b0>;
238                 };
239
240                 pinctrl_hummingboard_usbotg_id: hummingboard-usbotg-id {
241                         /*
242                          * Similar to pinctrl_usbotg_2, but we want it
243                          * pulled down for a fixed host connection.
244                          */
245                         fsl,pins = <MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x13059>;
246                 };
247
248                 pinctrl_hummingboard_usbotg_vbus: hummingboard-usbotg-vbus {
249                         fsl,pins = <MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x1b0b0>;
250                 };
251
252                 pinctrl_hummingboard_usdhc2_aux: hummingboard-usdhc2-aux {
253                         fsl,pins = <
254                                 MX6QDL_PAD_GPIO_4__GPIO1_IO04    0x1f071
255                         >;
256                 };
257
258                 pinctrl_hummingboard_usdhc2: hummingboard-usdhc2 {
259                         fsl,pins = <
260                                 MX6QDL_PAD_SD2_CMD__SD2_CMD    0x17059
261                                 MX6QDL_PAD_SD2_CLK__SD2_CLK    0x10059
262                                 MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x17059
263                                 MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x17059
264                                 MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x17059
265                                 MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x13059
266                         >;
267                 };
268                 pinctrl_hummingboard_vmmc: hummingboard-vmmc {
269                         fsl,pins = <
270                                 MX6QDL_PAD_DISP0_DAT9__GPIO4_IO30 0x1b0b0
271                         >;
272                 };
273         };
274 };
275
276 &pcie {
277         pinctrl-names = "default";
278         pinctrl-0 = <&pinctrl_hummingboard_pcie_reset>;
279         reset-gpio = <&gpio3 4 GPIO_ACTIVE_LOW>;
280         status = "okay";
281 };
282
283 &pwm1 {
284          pinctrl-names = "default";
285          pinctrl-0 = <&pinctrl_hummingboard_pwm1>;
286          status = "okay";
287 };
288
289 &pwm2 {
290          pinctrl-names = "default";
291          status = "okay";
292 };
293
294 &spdif {
295         pinctrl-names = "default";
296         pinctrl-0 = <&pinctrl_hummingboard_spdif>;
297         status = "okay";
298 };
299
300 &ssi1 {
301         status = "okay";
302 };
303
304 &usbh1 {
305         disable-over-current;
306         vbus-supply = <&v_usb2>;
307         status = "okay";
308 };
309
310 &usbotg {
311         disable-over-current;
312         pinctrl-names = "default";
313         pinctrl-0 = <&pinctrl_hummingboard_usbotg_id>;
314         vbus-supply = <&v_usb1>;
315         status = "okay";
316 };
317
318 &usdhc2 {
319         pinctrl-names = "default";
320         pinctrl-0 = <
321                 &pinctrl_hummingboard_usdhc2_aux
322                 &pinctrl_hummingboard_usdhc2
323         >;
324         vmmc-supply = <&v_sd>;
325         cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
326         status = "okay";
327 };
328
329 &vcc_3v3 {
330         vin-supply = <&v_3v2>;
331 };