Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / imx6q-h100.dts
1 /*
2  * Copyright (C) 2015 Lucas Stach <kernel@pengutronix.de>
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 /dts-v1/;
43
44 #include "imx6q.dtsi"
45 #include "imx6qdl-sr-som.dtsi"
46 #include "imx6qdl-sr-som-brcm.dtsi"
47
48 / {
49         model = "Auvidea H100";
50         compatible = "auvidea,h100", "fsl,imx6q";
51
52         aliases {
53                 rtc0 = &rtc;
54                 rtc1 = &snvs_rtc;
55         };
56
57         chosen {
58                 stdout-path = &uart2;
59         };
60
61         hdmi_osc: hdmi-osc {
62                 compatible = "fixed-clock";
63                 clock-output-names = "hdmi-osc";
64                 clock-frequency = <27000000>;
65                 #clock-cells = <0>;
66         };
67
68         leds {
69                 compatible = "gpio-leds";
70                 pinctrl-names = "default";
71                 pinctrl-0 = <&pinctrl_h100_leds>;
72
73                 led0: power {
74                         label = "power";
75                         gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
76                         default-state = "on";
77                 };
78
79                 led1: stream {
80                         label = "stream";
81                         gpios = <&gpio2 29 GPIO_ACTIVE_LOW>;
82                         default-state = "off";
83                 };
84
85                 led2: rec {
86                         label = "rec";
87                         gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
88                         default-state = "off";
89                 };
90         };
91
92         reg_3p3v: regulator-3p3v {
93                 compatible = "regulator-fixed";
94                 regulator-name = "3P3V";
95                 regulator-min-microvolt = <3300000>;
96                 regulator-max-microvolt = <3300000>;
97         };
98
99         reg_hdmi: regulator-hdmi {
100                 pinctrl-names = "default";
101                 pinctrl-0 = <&pinctrl_h100_reg_hdmi>;
102                 compatible = "regulator-fixed";
103                 enable-active-high;
104                 gpio = <&gpio2 20 GPIO_ACTIVE_HIGH>;
105                 regulator-name = "V_HDMI";
106                 regulator-min-microvolt = <5000000>;
107                 regulator-max-microvolt = <5000000>;
108                 regulator-always-on;
109         };
110
111         reg_usbh1_vbus: regulator-usb-h1-vbus {
112                 compatible = "regulator-fixed";
113                 enable-active-high;
114                 gpio = <&gpio1 0 GPIO_ACTIVE_HIGH>;
115                 pinctrl-names = "default";
116                 pinctrl-0 = <&pinctrl_h100_usbh1_vbus>;
117                 regulator-name = "USB_H1_VBUS";
118                 regulator-min-microvolt = <5000000>;
119                 regulator-max-microvolt = <5000000>;
120         };
121
122         reg_usbotg_vbus: regulator-usb-otg-vbus {
123                 compatible = "regulator-fixed";
124                 enable-active-high;
125                 gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
126                 pinctrl-names = "default";
127                 pinctrl-0 = <&pinctrl_h100_usbotg_vbus>;
128                 regulator-name = "USB_OTG_VBUS";
129                 regulator-min-microvolt = <5000000>;
130                 regulator-max-microvolt = <5000000>;
131         };
132
133         sound-sgtl5000 {
134                 compatible = "fsl,imx-audio-sgtl5000";
135                 model = "H100 on-board codec";
136                 audio-codec = <&sgtl5000>;
137                 audio-routing =
138                         "MIC_IN", "Mic Jack",
139                         "Mic Jack", "Mic Bias",
140                         "Headphone Jack", "HP_OUT";
141                 mux-ext-port = <5>;
142                 mux-int-port = <1>;
143                 ssi-controller = <&ssi1>;
144         };
145 };
146
147 &audmux {
148         status = "okay";
149 };
150
151 &hdmi {
152         pinctrl-names = "default";
153         pinctrl-0 = <&pinctrl_h100_hdmi>;
154         ddc-i2c-bus = <&i2c2>;
155         status = "okay";
156 };
157
158 &i2c1 {
159         pinctrl-names = "default";
160         pinctrl-0 = <&pinctrl_h100_i2c1>;
161         status = "okay";
162
163         eeprom: 24c02@51 {
164                 compatible = "microchip,24c02", "at24";
165                 reg = <0x51>;
166         };
167
168         rtc: pcf8523@68 {
169                 compatible = "nxp,pcf8523";
170                 reg = <0x68>;
171         };
172
173         sgtl5000: sgtl5000@a {
174                 compatible = "fsl,sgtl5000";
175                 reg = <0x0a>;
176                 pinctrl-names = "default";
177                 pinctrl-0 = <&pinctrl_h100_sgtl5000>;
178                 clocks = <&clks IMX6QDL_CLK_CKO>;
179                 VDDA-supply = <&reg_3p3v>;
180                 VDDIO-supply = <&reg_3p3v>;
181         };
182
183         tc358743: tc358743@f {
184                 compatible = "toshiba,tc358743";
185                 reg = <0x0f>;
186                 pinctrl-names = "default";
187                 pinctrl-0 = <&pinctrl_h100_tc358743>;
188                 clocks = <&hdmi_osc>;
189                 clock-names = "refclk";
190                 reset-gpios = <&gpio6 15 GPIO_ACTIVE_LOW>;
191                 /* IRQ has a wrong pull resistor which renders it useless  */
192
193                 port {
194                         tc358743_out: endpoint {
195                                 remote-endpoint = <&mipi_csi2_in>;
196                                 data-lanes = <1 2 3 4>;
197                                 clock-lanes = <0>;
198                                 clock-noncontinuous;
199                                 link-frequencies = /bits/ 64 <297000000>;
200                         };
201                 };
202         };
203 };
204
205 &i2c2 {
206         clock-frequency = <100000>;
207         pinctrl-names = "default";
208         pinctrl-0 = <&pinctrl_h100_i2c2>;
209         status = "okay";
210 };
211
212 &iomuxc {
213         h100 {
214                 pinctrl_h100_hdmi: h100-hdmi {
215                         fsl,pins = <
216                                 MX6QDL_PAD_KEY_ROW2__HDMI_TX_CEC_LINE   0x1f8b0
217                         >;
218                 };
219
220                 pinctrl_h100_i2c1: h100-i2c1 {
221                         fsl,pins = <
222                                 MX6QDL_PAD_EIM_D21__I2C1_SCL            0x4001b8b1
223                                 MX6QDL_PAD_EIM_D28__I2C1_SDA            0x4001b8b1
224                         >;
225                 };
226
227                 pinctrl_h100_i2c2: h100-i2c2 {
228                         fsl,pins = <
229                                 MX6QDL_PAD_KEY_COL3__I2C2_SCL           0x4001b8b1
230                                 MX6QDL_PAD_KEY_ROW3__I2C2_SDA           0x4001b8b1
231                         >;
232                 };
233
234                 pinctrl_h100_leds: pinctrl-h100-leds {
235                         fsl,pins = <
236                                 MX6QDL_PAD_EIM_DA0__GPIO3_IO00          0x1b0b0
237                                 MX6QDL_PAD_EIM_EB1__GPIO2_IO29          0x1b0b0
238                                 MX6QDL_PAD_EIM_EB0__GPIO2_IO28          0x1b0b0
239                         >;
240                 };
241
242                 pinctrl_h100_reg_hdmi: h100-reg-hdmi {
243                         fsl,pins = <
244                                 MX6QDL_PAD_EIM_A18__GPIO2_IO20          0x1b0b0
245                         >;
246                 };
247
248                 pinctrl_h100_sgtl5000: h100-sgtl5000 {
249                         fsl,pins = <
250                                 MX6QDL_PAD_DISP0_DAT19__AUD5_RXD        0x130b0
251                                 MX6QDL_PAD_KEY_COL0__AUD5_TXC           0x130b0
252                                 MX6QDL_PAD_KEY_ROW0__AUD5_TXD           0x110b0
253                                 MX6QDL_PAD_KEY_COL1__AUD5_TXFS          0x130b0
254                                 MX6QDL_PAD_GPIO_5__CCM_CLKO1            0x130b0
255                         >;
256                 };
257
258                 pinctrl_h100_tc358743: h100-tc358743 {
259                         fsl,pins = <
260                                 MX6QDL_PAD_NANDF_CS2__GPIO6_IO15        0x1b0b0
261                         >;
262                 };
263
264                 pinctrl_h100_uart2: h100-uart2 {
265                         fsl,pins = <
266                                 MX6QDL_PAD_SD4_DAT4__UART2_RX_DATA      0x1b0b1
267                                 MX6QDL_PAD_SD4_DAT7__UART2_TX_DATA      0x1b0b1
268                         >;
269                 };
270
271                 pinctrl_h100_usbh1_vbus: hummingboard-usbh1-vbus {
272                         fsl,pins = <
273                                 MX6QDL_PAD_GPIO_0__GPIO1_IO00           0x1b0b0
274                         >;
275                 };
276
277                 pinctrl_h100_usbotg_id: hummingboard-usbotg-id {
278                         fsl,pins = <
279                                 MX6QDL_PAD_GPIO_1__USB_OTG_ID           0x13059
280                         >;
281                 };
282
283                 pinctrl_h100_usbotg_vbus: hummingboard-usbotg-vbus {
284                         fsl,pins = <
285                                 MX6QDL_PAD_EIM_D22__GPIO3_IO22          0x1b0b0
286                         >;
287                 };
288
289                 pinctrl_h100_usdhc2: h100-usdhc2 {
290                         fsl,pins = <
291                                 MX6QDL_PAD_GPIO_4__GPIO1_IO04           0x1f071
292                                 MX6QDL_PAD_SD2_CMD__SD2_CMD             0x17059
293                                 MX6QDL_PAD_SD2_CLK__SD2_CLK             0x10059
294                                 MX6QDL_PAD_SD2_DAT0__SD2_DATA0          0x17059
295                                 MX6QDL_PAD_SD2_DAT1__SD2_DATA1          0x17059
296                                 MX6QDL_PAD_SD2_DAT2__SD2_DATA2          0x17059
297                                 MX6QDL_PAD_SD2_DAT3__SD2_DATA3          0x13059
298                                 MX6QDL_PAD_KEY_ROW1__SD2_VSELECT        0x1b0b0
299                         >;
300                 };
301
302                 pinctrl_h100_usdhc2_100mhz: h100-usdhc2-100mhz {
303                         fsl,pins = <
304                                 MX6QDL_PAD_GPIO_4__GPIO1_IO04           0x1f071
305                                 MX6QDL_PAD_SD2_CMD__SD2_CMD             0x170b9
306                                 MX6QDL_PAD_SD2_CLK__SD2_CLK             0x100b9
307                                 MX6QDL_PAD_SD2_DAT0__SD2_DATA0          0x170b9
308                                 MX6QDL_PAD_SD2_DAT1__SD2_DATA1          0x170b9
309                                 MX6QDL_PAD_SD2_DAT2__SD2_DATA2          0x170b9
310                                 MX6QDL_PAD_SD2_DAT3__SD2_DATA3          0x170b9
311                                 MX6QDL_PAD_KEY_ROW1__SD2_VSELECT        0x1b0b0
312                         >;
313                 };
314
315                 pinctrl_h100_usdhc2_200mhz: h100-usdhc2-200mhz {
316                         fsl,pins = <
317                                 MX6QDL_PAD_GPIO_4__GPIO1_IO04           0x1f071
318                                 MX6QDL_PAD_SD2_CMD__SD2_CMD             0x170f9
319                                 MX6QDL_PAD_SD2_CLK__SD2_CLK             0x100f9
320                                 MX6QDL_PAD_SD2_DAT0__SD2_DATA0          0x170f9
321                                 MX6QDL_PAD_SD2_DAT1__SD2_DATA1          0x170f9
322                                 MX6QDL_PAD_SD2_DAT2__SD2_DATA2          0x170f9
323                                 MX6QDL_PAD_SD2_DAT3__SD2_DATA3          0x170f9
324                                 MX6QDL_PAD_KEY_ROW1__SD2_VSELECT        0x1b0b0
325                         >;
326                 };
327         };
328 };
329
330 &mipi_csi {
331         status = "okay";
332
333         port {
334                 mipi_csi2_in: endpoint {
335                         remote-endpoint = <&tc358743_out>;
336                         data-lanes = <1 2 3 4>;
337                         clock-lanes = <0>;
338                         clock-noncontinuous;
339                         link-frequencies = /bits/ 64 <297000000>;
340                 };
341         };
342 };
343
344 &ssi1 {
345         status = "okay";
346 };
347
348 &uart2 {
349         pinctrl-names = "default";
350         pinctrl-0 = <&pinctrl_h100_uart2>;
351         status = "okay";
352 };
353
354 &usbh1 {
355         disable-over-current;
356         vbus-supply = <&reg_usbh1_vbus>;
357         status = "okay";
358 };
359
360 &usbotg {
361         disable-over-current;
362         pinctrl-names = "default";
363         pinctrl-0 = <&pinctrl_h100_usbotg_id>;
364         vbus-supply = <&reg_usbotg_vbus>;
365         status = "okay";
366 };
367
368 &usdhc2 {
369         pinctrl-names = "default", "state_100mhz", "state_200mhz";
370         pinctrl-0 = <&pinctrl_h100_usdhc2>;
371         pinctrl-1 = <&pinctrl_h100_usdhc2_100mhz>;
372         pinctrl-2 = <&pinctrl_h100_usdhc2_200mhz>;
373         vmmc-supply = <&reg_3p3v>;
374         cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
375         status = "okay";
376 };