c755cbdb7cde4d423df1d3327f7796bade271862
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / imx6sll-evk.dts
1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
2 /*
3  * Copyright 2016 Freescale Semiconductor, Inc.
4  * Copyright 2017-2018 NXP.
5  *
6  */
7
8 /dts-v1/;
9
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/input/input.h>
12 #include "imx6sll.dtsi"
13
14 / {
15         model = "Freescale i.MX6SLL EVK Board";
16         compatible = "fsl,imx6sll-evk", "fsl,imx6sll";
17
18         chosen {
19                 stdout-path = &uart1;
20         };
21
22         memory@80000000 {
23                 device_type = "memory";
24                 reg = <0x80000000 0x80000000>;
25         };
26
27         backlight_display: backlight-display {
28                 compatible = "pwm-backlight";
29                 pwms = <&pwm1 0 5000000>;
30                 brightness-levels = <0 4 8 16 32 64 128 255>;
31                 default-brightness-level = <6>;
32                 status = "okay";
33         };
34
35         leds {
36                 compatible = "gpio-leds";
37                 pinctrl-names = "default";
38                 pinctrl-0 = <&pinctrl_led>;
39
40                 user {
41                         label = "debug";
42                         gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>;
43                         linux,default-trigger = "heartbeat";
44                 };
45         };
46
47         reg_usb_otg1_vbus: regulator-otg1-vbus {
48                 compatible = "regulator-fixed";
49                 pinctrl-names = "default";
50                 pinctrl-0 = <&pinctrl_usb_otg1_vbus>;
51                 regulator-name = "usb_otg1_vbus";
52                 regulator-min-microvolt = <5000000>;
53                 regulator-max-microvolt = <5000000>;
54                 gpio = <&gpio4 0 GPIO_ACTIVE_HIGH>;
55                 enable-active-high;
56         };
57
58         reg_usb_otg2_vbus: regulator-otg2-vbus {
59                 compatible = "regulator-fixed";
60                 pinctrl-names = "default";
61                 pinctrl-0 = <&pinctrl_usb_otg2_vbus>;
62                 regulator-name = "usb_otg2_vbus";
63                 regulator-min-microvolt = <5000000>;
64                 regulator-max-microvolt = <5000000>;
65                 gpio = <&gpio4 2 GPIO_ACTIVE_HIGH>;
66                 enable-active-high;
67         };
68
69         reg_aud3v: regulator-aud3v {
70                 compatible = "regulator-fixed";
71                 regulator-name = "wm8962-supply-3v15";
72                 regulator-min-microvolt = <3150000>;
73                 regulator-max-microvolt = <3150000>;
74                 regulator-boot-on;
75         };
76
77         reg_aud4v: regulator-aud4v {
78                 compatible = "regulator-fixed";
79                 regulator-name = "wm8962-supply-4v2";
80                 regulator-min-microvolt = <4325000>;
81                 regulator-max-microvolt = <4325000>;
82                 regulator-boot-on;
83         };
84
85         reg_lcd_3v3: regulator-lcd-3v3 {
86                 compatible = "regulator-fixed";
87                 pinctrl-names = "default";
88                 pinctrl-0 = <&pinctrl_reg_lcd_3v3>;
89                 regulator-name = "lcd-3v3";
90                 gpio = <&gpio4 3 GPIO_ACTIVE_HIGH>;
91                 enable-active-high;
92         };
93
94         reg_lcd_5v: regulator-lcd-5v {
95                 compatible = "regulator-fixed";
96                 regulator-name = "lcd-5v0";
97                 regulator-min-microvolt = <5000000>;
98                 regulator-max-microvolt = <5000000>;
99         };
100
101         reg_sd1_vmmc: regulator-sd1-vmmc {
102                 compatible = "regulator-fixed";
103                 pinctrl-names = "default";
104                 pinctrl-0 = <&pinctrl_reg_sd1_vmmc>;
105                 regulator-name = "SD1_SPWR";
106                 regulator-min-microvolt = <3000000>;
107                 regulator-max-microvolt = <3000000>;
108                 gpio = <&gpio3 30 GPIO_ACTIVE_HIGH>;
109                 enable-active-high;
110         };
111
112         reg_sd3_vmmc: regulator-sd3-vmmc {
113                 compatible = "regulator-fixed";
114                 pinctrl-names = "default";
115                 pinctrl-0 = <&pinctrl_reg_sd3_vmmc>;
116                 regulator-name = "SD3_WIFI";
117                 regulator-min-microvolt = <3000000>;
118                 regulator-max-microvolt = <3000000>;
119                 gpio = <&gpio4 4 GPIO_ACTIVE_HIGH>;
120                 enable-active-high;
121         };
122
123         panel {
124                 compatible = "sii,43wvf1g";
125                 backlight = <&backlight_display>;
126                 dvdd-supply = <&reg_lcd_3v3>;
127                 avdd-supply = <&reg_lcd_5v>;
128
129                 port {
130                         panel_in: endpoint {
131                                 remote-endpoint = <&display_out>;
132                         };
133                 };
134         };
135 };
136
137 &cpu0 {
138         arm-supply = <&sw1a_reg>;
139         soc-supply = <&sw1c_reg>;
140 };
141
142 &i2c1 {
143         clock-frequency = <100000>;
144         pinctrl-names = "default";
145         pinctrl-0 = <&pinctrl_i2c1>;
146         status = "okay";
147
148         pfuze100: pmic@8 {
149                 compatible = "fsl,pfuze100";
150                 reg = <0x08>;
151
152                 regulators {
153                         sw1a_reg: sw1ab {
154                                 regulator-min-microvolt = <300000>;
155                                 regulator-max-microvolt = <1875000>;
156                                 regulator-boot-on;
157                                 regulator-always-on;
158                                 regulator-ramp-delay = <6250>;
159                         };
160
161                         sw1c_reg: sw1c {
162                                 regulator-min-microvolt = <300000>;
163                                 regulator-max-microvolt = <1875000>;
164                                 regulator-boot-on;
165                                 regulator-always-on;
166                                 regulator-ramp-delay = <6250>;
167                         };
168
169                         sw2_reg: sw2 {
170                                 regulator-min-microvolt = <800000>;
171                                 regulator-max-microvolt = <3300000>;
172                                 regulator-boot-on;
173                                 regulator-always-on;
174                         };
175
176                         sw3a_reg: sw3a {
177                                 regulator-min-microvolt = <400000>;
178                                 regulator-max-microvolt = <1975000>;
179                                 regulator-boot-on;
180                                 regulator-always-on;
181                         };
182
183                         sw3b_reg: sw3b {
184                                 regulator-min-microvolt = <400000>;
185                                 regulator-max-microvolt = <1975000>;
186                                 regulator-boot-on;
187                                 regulator-always-on;
188                         };
189
190                         sw4_reg: sw4 {
191                                 regulator-min-microvolt = <800000>;
192                                 regulator-max-microvolt = <3300000>;
193                                 regulator-always-on;
194                         };
195
196                         swbst_reg: swbst {
197                                 regulator-min-microvolt = <5000000>;
198                                 regulator-max-microvolt = <5150000>;
199                         };
200
201                         snvs_reg: vsnvs {
202                                 regulator-min-microvolt = <1000000>;
203                                 regulator-max-microvolt = <3000000>;
204                                 regulator-boot-on;
205                                 regulator-always-on;
206                         };
207
208                         vref_reg: vrefddr {
209                                 regulator-boot-on;
210                                 regulator-always-on;
211                         };
212
213                         vgen1_reg: vgen1 {
214                                 regulator-min-microvolt = <800000>;
215                                 regulator-max-microvolt = <1550000>;
216                                 regulator-always-on;
217                         };
218
219                         vgen2_reg: vgen2 {
220                                 regulator-min-microvolt = <800000>;
221                                 regulator-max-microvolt = <1550000>;
222                         };
223
224                         vgen3_reg: vgen3 {
225                                 regulator-min-microvolt = <1800000>;
226                                 regulator-max-microvolt = <3300000>;
227                         };
228
229                         vgen4_reg: vgen4 {
230                                 regulator-min-microvolt = <1800000>;
231                                 regulator-max-microvolt = <3300000>;
232                                 regulator-always-on;
233                         };
234
235                         vgen5_reg: vgen5 {
236                                 regulator-min-microvolt = <1800000>;
237                                 regulator-max-microvolt = <3300000>;
238                                 regulator-always-on;
239                         };
240
241                         vgen6_reg: vgen6 {
242                                 regulator-min-microvolt = <1800000>;
243                                 regulator-max-microvolt = <3300000>;
244                                 regulator-always-on;
245                         };
246                 };
247         };
248 };
249
250 &lcdif {
251         pinctrl-names = "default";
252         pinctrl-0 = <&pinctrl_lcd>;
253         status = "okay";
254
255         port {
256                 display_out: endpoint {
257                         remote-endpoint = <&panel_in>;
258                 };
259         };
260 };
261
262 &pwm1 {
263         #pwm-cells = <2>;
264         pinctrl-names = "default";
265         pinctrl-0 = <&pinctrl_pwm1>;
266         status = "okay";
267 };
268
269 &snvs_poweroff {
270         status = "okay";
271 };
272
273 &snvs_pwrkey {
274         status = "okay";
275 };
276
277 &uart1 {
278         pinctrl-names = "default";
279         pinctrl-0 = <&pinctrl_uart1>;
280         status = "okay";
281 };
282
283 &usdhc1 {
284         pinctrl-names = "default", "state_100mhz", "state_200mhz";
285         pinctrl-0 = <&pinctrl_usdhc1>;
286         pinctrl-1 = <&pinctrl_usdhc1_100mhz>;
287         pinctrl-2 = <&pinctrl_usdhc1_200mhz>;
288         cd-gpios = <&gpio4 7 GPIO_ACTIVE_LOW>;
289         wp-gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>;
290         keep-power-in-suspend;
291         wakeup-source;
292         vmmc-supply = <&reg_sd1_vmmc>;
293         status = "okay";
294 };
295
296 &usbotg1 {
297         vbus-supply = <&reg_usb_otg1_vbus>;
298         pinctrl-names = "default";
299         pinctrl-0 = <&pinctrl_usbotg1>;
300         disable-over-current;
301         srp-disable;
302         hnp-disable;
303         adp-disable;
304         status = "okay";
305 };
306
307 &usbotg2 {
308         vbus-supply = <&reg_usb_otg2_vbus>;
309         dr_mode = "host";
310         disable-over-current;
311         status = "okay";
312 };
313
314 &usdhc3 {
315         pinctrl-names = "default", "state_100mhz", "state_200mhz";
316         pinctrl-0 = <&pinctrl_usdhc3>;
317         pinctrl-1 = <&pinctrl_usdhc3_100mhz>;
318         pinctrl-2 = <&pinctrl_usdhc3_200mhz>;
319         cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
320         keep-power-in-suspend;
321         wakeup-source;
322         vmmc-supply = <&reg_sd3_vmmc>;
323         status = "okay";
324 };
325
326 &wdog1 {
327         pinctrl-names = "default";
328         pinctrl-0 = <&pinctrl_wdog1>;
329         fsl,ext-reset-output;
330 };
331
332 &iomuxc {
333         pinctrl_reg_sd3_vmmc: sd3vmmcgrp {
334                 fsl,pins = <
335                         MX6SLL_PAD_KEY_COL6__GPIO4_IO04 0x17059
336                 >;
337         };
338
339         pinctrl_usb_otg1_vbus: vbus1grp {
340                 fsl,pins = <
341                         MX6SLL_PAD_KEY_COL4__GPIO4_IO00 0x17059
342                 >;
343         };
344
345         pinctrl_usb_otg2_vbus: vbus2grp {
346                 fsl,pins = <
347                         MX6SLL_PAD_KEY_COL5__GPIO4_IO02 0x17059
348                 >;
349         };
350
351         pinctrl_reg_lcd_3v3: reglcd3v3grp {
352                 fsl,pins = <
353                         MX6SLL_PAD_KEY_ROW5__GPIO4_IO03 0x17059
354                 >;
355         };
356
357         pinctrl_reg_sd1_vmmc: sd1vmmcgrp {
358                 fsl,pins = <
359                         MX6SLL_PAD_KEY_COL3__GPIO3_IO30 0x17059
360                 >;
361         };
362
363         pinctrl_uart1: uart1grp {
364                 fsl,pins = <
365                         MX6SLL_PAD_UART1_TXD__UART1_DCE_TX 0x1b0b1
366                         MX6SLL_PAD_UART1_RXD__UART1_DCE_RX 0x1b0b1
367                 >;
368         };
369
370         pinctrl_usdhc1: usdhc1grp {
371                 fsl,pins = <
372                         MX6SLL_PAD_SD1_CMD__SD1_CMD     0x17059
373                         MX6SLL_PAD_SD1_CLK__SD1_CLK     0x13059
374                         MX6SLL_PAD_SD1_DATA0__SD1_DATA0 0x17059
375                         MX6SLL_PAD_SD1_DATA1__SD1_DATA1 0x17059
376                         MX6SLL_PAD_SD1_DATA2__SD1_DATA2 0x17059
377                         MX6SLL_PAD_SD1_DATA3__SD1_DATA3 0x17059
378                 >;
379         };
380
381         pinctrl_usdhc1_100mhz: usdhc1grp_100mhz {
382                 fsl,pins = <
383                         MX6SLL_PAD_SD1_CMD__SD1_CMD     0x170b9
384                         MX6SLL_PAD_SD1_CLK__SD1_CLK     0x130b9
385                         MX6SLL_PAD_SD1_DATA0__SD1_DATA0 0x170b9
386                         MX6SLL_PAD_SD1_DATA1__SD1_DATA1 0x170b9
387                         MX6SLL_PAD_SD1_DATA2__SD1_DATA2 0x170b9
388                         MX6SLL_PAD_SD1_DATA3__SD1_DATA3 0x170b9
389                 >;
390         };
391
392         pinctrl_usdhc1_200mhz: usdhc1grp_200mhz {
393                 fsl,pins = <
394                         MX6SLL_PAD_SD1_CMD__SD1_CMD     0x170f9
395                         MX6SLL_PAD_SD1_CLK__SD1_CLK     0x130f9
396                         MX6SLL_PAD_SD1_DATA0__SD1_DATA0 0x170f9
397                         MX6SLL_PAD_SD1_DATA1__SD1_DATA1 0x170f9
398                         MX6SLL_PAD_SD1_DATA2__SD1_DATA2 0x170f9
399                         MX6SLL_PAD_SD1_DATA3__SD1_DATA3 0x170f9
400                 >;
401         };
402
403         pinctrl_usbotg1: usbotg1grp {
404                 fsl,pins = <
405                         MX6SLL_PAD_EPDC_PWR_COM__USB_OTG1_ID 0x17059
406                 >;
407         };
408
409         pinctrl_usdhc3: usdhc3grp {
410                 fsl,pins = <
411                         MX6SLL_PAD_SD3_CMD__SD3_CMD             0x17061
412                         MX6SLL_PAD_SD3_CLK__SD3_CLK             0x13061
413                         MX6SLL_PAD_SD3_DATA0__SD3_DATA0         0x17061
414                         MX6SLL_PAD_SD3_DATA1__SD3_DATA1         0x17061
415                         MX6SLL_PAD_SD3_DATA2__SD3_DATA2         0x17061
416                         MX6SLL_PAD_SD3_DATA3__SD3_DATA3         0x17061
417                         MX6SLL_PAD_REF_CLK_32K__GPIO3_IO22      0x17059
418                 >;
419         };
420
421         pinctrl_usdhc3_100mhz: usdhc3grp_100mhz {
422                 fsl,pins = <
423                         MX6SLL_PAD_SD3_CMD__SD3_CMD             0x170a1
424                         MX6SLL_PAD_SD3_CLK__SD3_CLK             0x130a1
425                         MX6SLL_PAD_SD3_DATA0__SD3_DATA0         0x170a1
426                         MX6SLL_PAD_SD3_DATA1__SD3_DATA1         0x170a1
427                         MX6SLL_PAD_SD3_DATA2__SD3_DATA2         0x170a1
428                         MX6SLL_PAD_SD3_DATA3__SD3_DATA3         0x170a1
429                         MX6SLL_PAD_REF_CLK_32K__GPIO3_IO22      0x17059
430                 >;
431         };
432
433         pinctrl_usdhc3_200mhz: usdhc3grp_200mhz {
434                 fsl,pins = <
435                         MX6SLL_PAD_SD3_CMD__SD3_CMD             0x170e9
436                         MX6SLL_PAD_SD3_CLK__SD3_CLK             0x130f9
437                         MX6SLL_PAD_SD3_DATA0__SD3_DATA0         0x170e9
438                         MX6SLL_PAD_SD3_DATA1__SD3_DATA1         0x170e9
439                         MX6SLL_PAD_SD3_DATA2__SD3_DATA2         0x170e9
440                         MX6SLL_PAD_SD3_DATA3__SD3_DATA3         0x170e9
441                         MX6SLL_PAD_REF_CLK_32K__GPIO3_IO22      0x17059
442                 >;
443         };
444
445         pinctrl_i2c1: i2c1grp {
446                 fsl,pins = <
447                         MX6SLL_PAD_I2C1_SCL__I2C1_SCL    0x4001b8b1
448                         MX6SLL_PAD_I2C1_SDA__I2C1_SDA    0x4001b8b1
449                 >;
450         };
451
452         pinctrl_lcd: lcdgrp {
453                 fsl,pins = <
454                         MX6SLL_PAD_LCD_DATA00__LCD_DATA00       0x79
455                         MX6SLL_PAD_LCD_DATA01__LCD_DATA01       0x79
456                         MX6SLL_PAD_LCD_DATA02__LCD_DATA02       0x79
457                         MX6SLL_PAD_LCD_DATA03__LCD_DATA03       0x79
458                         MX6SLL_PAD_LCD_DATA04__LCD_DATA04       0x79
459                         MX6SLL_PAD_LCD_DATA05__LCD_DATA05       0x79
460                         MX6SLL_PAD_LCD_DATA06__LCD_DATA06       0x79
461                         MX6SLL_PAD_LCD_DATA07__LCD_DATA07       0x79
462                         MX6SLL_PAD_LCD_DATA08__LCD_DATA08       0x79
463                         MX6SLL_PAD_LCD_DATA09__LCD_DATA09       0x79
464                         MX6SLL_PAD_LCD_DATA10__LCD_DATA10       0x79
465                         MX6SLL_PAD_LCD_DATA11__LCD_DATA11       0x79
466                         MX6SLL_PAD_LCD_DATA12__LCD_DATA12       0x79
467                         MX6SLL_PAD_LCD_DATA13__LCD_DATA13       0x79
468                         MX6SLL_PAD_LCD_DATA14__LCD_DATA14       0x79
469                         MX6SLL_PAD_LCD_DATA15__LCD_DATA15       0x79
470                         MX6SLL_PAD_LCD_DATA16__LCD_DATA16       0x79
471                         MX6SLL_PAD_LCD_DATA17__LCD_DATA17       0x79
472                         MX6SLL_PAD_LCD_DATA18__LCD_DATA18       0x79
473                         MX6SLL_PAD_LCD_DATA19__LCD_DATA19       0x79
474                         MX6SLL_PAD_LCD_DATA20__LCD_DATA20       0x79
475                         MX6SLL_PAD_LCD_DATA21__LCD_DATA21       0x79
476                         MX6SLL_PAD_LCD_DATA22__LCD_DATA22       0x79
477                         MX6SLL_PAD_LCD_DATA23__LCD_DATA23       0x79
478                         MX6SLL_PAD_LCD_CLK__LCD_CLK             0x79
479                         MX6SLL_PAD_LCD_ENABLE__LCD_ENABLE       0x79
480                         MX6SLL_PAD_LCD_HSYNC__LCD_HSYNC         0x79
481                         MX6SLL_PAD_LCD_VSYNC__LCD_VSYNC         0x79
482                         MX6SLL_PAD_LCD_RESET__LCD_RESET         0x79
483                 >;
484         };
485
486         pinctrl_led: ledgrp {
487                 fsl,pins = <
488                         MX6SLL_PAD_EPDC_VCOM1__GPIO2_IO04       0x17059
489                 >;
490         };
491
492         pinctrl_pwm1: pmw1grp {
493                 fsl,pins = <
494                         MX6SLL_PAD_PWM1__PWM1_OUT   0x110b0
495                 >;
496         };
497
498         pinctrl_wdog1: wdog1grp {
499                 fsl,pins = <
500                         MX6SLL_PAD_WDOG_B__WDOG1_B   0x170b0
501                 >;
502         };
503 };