2 * Support for imx6 based Advantech DMS-BA16 Qseven module
4 * Copyright 2015 Timesys Corporation.
5 * Copyright 2015 General Electric Company
7 * This file is dual-licensed: you can use it either under the terms
8 * of the GPL or the X11 license, at your option. Note that this dual
9 * licensing only applies to this file, and not this project as a
12 * a) This file is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * version 2 as published by the Free Software Foundation.
16 * This file is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
23 * b) Permission is hereby granted, free of charge, to any person
24 * obtaining a copy of this software and associated documentation
25 * files (the "Software"), to deal in the Software without
26 * restriction, including without limitation the rights to use,
27 * copy, modify, merge, publish, distribute, sublicense, and/or
28 * sell copies of the Software, and to permit persons to whom the
29 * Software is furnished to do so, subject to the following
32 * The above copyright notice and this permission notice shall be
33 * included in all copies or substantial portions of the Software.
35 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
36 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
37 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
39 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
40 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
42 * OTHER DEALINGS IN THE SOFTWARE.
46 #include <dt-bindings/gpio/gpio.h>
50 reg = <0x10000000 0x40000000>;
53 backlight_lvds: backlight {
54 compatible = "pwm-backlight";
55 pinctrl-names = "default";
56 pinctrl-0 = <&pinctrl_display>;
57 pwms = <&pwm1 0 5000000>;
58 brightness-levels = < 0 1 2 3 4 5 6 7 8 9
59 10 11 12 13 14 15 16 17 18 19
60 20 21 22 23 24 25 26 27 28 29
61 30 31 32 33 34 35 36 37 38 39
62 40 41 42 43 44 45 46 47 48 49
63 50 51 52 53 54 55 56 57 58 59
64 60 61 62 63 64 65 66 67 68 69
65 70 71 72 73 74 75 76 77 78 79
66 80 81 82 83 84 85 86 87 88 89
67 90 91 92 93 94 95 96 97 98 99
68 100 101 102 103 104 105 106 107 108 109
69 110 111 112 113 114 115 116 117 118 119
70 120 121 122 123 124 125 126 127 128 129
71 130 131 132 133 134 135 136 137 138 139
72 140 141 142 143 144 145 146 147 148 149
73 150 151 152 153 154 155 156 157 158 159
74 160 161 162 163 164 165 166 167 168 169
75 170 171 172 173 174 175 176 177 178 179
76 180 181 182 183 184 185 186 187 188 189
77 190 191 192 193 194 195 196 197 198 199
78 200 201 202 203 204 205 206 207 208 209
79 210 211 212 213 214 215 216 217 218 219
80 220 221 222 223 224 225 226 227 228 229
81 230 231 232 233 234 235 236 237 238 239
82 240 241 242 243 244 245 246 247 248 249
83 250 251 252 253 254 255>;
84 default-brightness-level = <255>;
85 enable-gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
88 reg_1p8v: regulator-1p8v {
89 compatible = "regulator-fixed";
90 regulator-name = "1P8V";
91 regulator-min-microvolt = <1800000>;
92 regulator-max-microvolt = <1800000>;
96 reg_3p3v: regulator-3p3v {
97 compatible = "regulator-fixed";
98 regulator-name = "3P3V";
99 regulator-min-microvolt = <3300000>;
100 regulator-max-microvolt = <3300000>;
104 reg_lvds: regulator-lvds {
105 compatible = "regulator-fixed";
106 regulator-name = "lvds_ppen";
107 regulator-min-microvolt = <3300000>;
108 regulator-max-microvolt = <3300000>;
110 gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
114 reg_usb_h1_vbus: regulator-usbh1vbus {
115 compatible = "regulator-fixed";
116 regulator-name = "usb_h1_vbus";
117 regulator-min-microvolt = <5000000>;
118 regulator-max-microvolt = <5000000>;
121 reg_usb_otg_vbus: regulator-usbotgvbus {
122 compatible = "regulator-fixed";
123 regulator-name = "usb_otg_vbus";
124 regulator-min-microvolt = <5000000>;
125 regulator-max-microvolt = <5000000>;
130 pinctrl-names = "default";
131 pinctrl-0 = <&pinctrl_audmux>;
136 cs-gpios = <&gpio2 30 GPIO_ACTIVE_HIGH>;
137 pinctrl-names = "default";
138 pinctrl-0 = <&pinctrl_ecspi1>;
142 compatible = "jedec,spi-nor";
143 #address-cells = <1>;
145 spi-max-frequency = <20000000>;
155 reg = <0xc0000 0x10000>;
160 reg = <0xd0000 0x130000>;
166 pinctrl-names = "default";
167 pinctrl-0 = <&pinctrl_enet>;
173 ddc-i2c-bus = <&i2c2>;
178 clock-frequency = <100000>;
179 pinctrl-names = "default";
180 pinctrl-0 = <&pinctrl_i2c1>;
185 clock-frequency = <100000>;
186 pinctrl-names = "default";
187 pinctrl-0 = <&pinctrl_i2c2>;
192 clock-frequency = <100000>;
193 pinctrl-names = "default";
194 pinctrl-0 = <&pinctrl_i2c3>;
198 compatible = "dlg,da9063";
200 pinctrl-names = "default";
201 pinctrl-0 = <&pinctrl_pmic>;
202 interrupt-parent = <&gpio7>;
203 interrupts = <13 IRQ_TYPE_LEVEL_LOW>;
206 compatible = "dlg,da9063-onkey";
211 regulator-min-microvolt = <1420000>;
212 regulator-max-microvolt = <1420000>;
218 regulator-min-microvolt = <1420000>;
219 regulator-max-microvolt = <1420000>;
225 regulator-min-microvolt = <1500000>;
226 regulator-max-microvolt = <1500000>;
232 regulator-min-microvolt = <1800000>;
233 regulator-max-microvolt = <1800000>;
239 regulator-min-microvolt = <1800000>;
240 regulator-max-microvolt = <1800000>;
246 regulator-min-microvolt = <3300000>;
247 regulator-max-microvolt = <3300000>;
253 regulator-min-microvolt = <600000>;
254 regulator-max-microvolt = <1860000>;
258 regulator-min-microvolt = <600000>;
259 regulator-max-microvolt = <1860000>;
263 regulator-min-microvolt = <900000>;
264 regulator-max-microvolt = <3440000>;
268 regulator-min-microvolt = <900000>;
269 regulator-max-microvolt = <3440000>;
273 regulator-min-microvolt = <900000>;
274 regulator-max-microvolt = <3600000>;
278 regulator-min-microvolt = <900000>;
279 regulator-max-microvolt = <3600000>;
283 regulator-min-microvolt = <900000>;
284 regulator-max-microvolt = <3600000>;
288 regulator-min-microvolt = <900000>;
289 regulator-max-microvolt = <3600000>;
293 regulator-min-microvolt = <950000>;
294 regulator-max-microvolt = <3600000>;
298 regulator-min-microvolt = <900000>;
299 regulator-max-microvolt = <3600000>;
303 regulator-min-microvolt = <900000>;
304 regulator-max-microvolt = <3600000>;
312 compatible = "epson,rx8010";
313 pinctrl-names = "default";
314 pinctrl-0 = <&pinctrl_rtc>;
316 interrupt-parent = <&gpio4>;
317 interrupts = <10 IRQ_TYPE_LEVEL_HIGH>;
322 pinctrl-names = "default";
323 pinctrl-0 = <&pinctrl_pcie>;
324 reset-gpio = <&gpio7 12 GPIO_ACTIVE_HIGH>;
325 fsl,tx-swing-full = <103>;
326 fsl,tx-swing-low = <103>;
331 pinctrl-names = "default";
332 pinctrl-0 = <&pinctrl_pwm1>;
337 pinctrl-names = "default";
338 pinctrl-0 = <&pinctrl_pwm2>;
351 pinctrl-names = "default";
352 pinctrl-0 = <&pinctrl_uart3>;
358 pinctrl-names = "default";
359 pinctrl-0 = <&pinctrl_uart4>;
364 pinctrl-names = "default";
365 pinctrl-0 = <&pinctrl_usbhub>;
366 vbus-supply = <®_usb_h1_vbus>;
367 reset-gpios = <&gpio7 11 GPIO_ACTIVE_HIGH>;
372 vbus-supply = <®_usb_otg_vbus>;
373 pinctrl-names = "default";
374 pinctrl-0 = <&pinctrl_usbotg>;
375 disable-over-current;
380 pinctrl-names = "default";
381 pinctrl-0 = <&pinctrl_usdhc2>;
382 cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
384 keep-power-in-suspend;
390 pinctrl-names = "default";
391 pinctrl-0 = <&pinctrl_usdhc3 &pinctrl_usdhc3_reset>;
393 vmmc-supply = <&vdd_bperi>;
395 keep-power-in-suspend;
400 pinctrl-names = "default";
401 pinctrl-0 = <&pinctrl_wdog>;
402 fsl,ext-reset-output;
406 pinctrl-names = "default";
407 pinctrl-0 = <&pinctrl_hog>;
409 pinctrl_audmux: audmuxgrp {
411 MX6QDL_PAD_DISP0_DAT20__AUD4_TXC 0x130b0
412 MX6QDL_PAD_DISP0_DAT21__AUD4_TXD 0x130b0
413 MX6QDL_PAD_DISP0_DAT22__AUD4_TXFS 0x130b0
414 MX6QDL_PAD_DISP0_DAT23__AUD4_RXD 0x130b0
418 pinctrl_display: dispgrp {
421 MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x1b0b0
423 MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x1b0b0
427 pinctrl_ecspi1: ecspi1grp {
429 MX6QDL_PAD_EIM_D17__ECSPI1_MISO 0x100b1
430 MX6QDL_PAD_EIM_D18__ECSPI1_MOSI 0x100b1
431 MX6QDL_PAD_EIM_D16__ECSPI1_SCLK 0x100b1
433 MX6QDL_PAD_EIM_EB2__GPIO2_IO30 0x1b0b0
437 pinctrl_ecspi5: ecspi5grp {
439 MX6QDL_PAD_SD1_DAT0__ECSPI5_MISO 0x1b0b0
440 MX6QDL_PAD_SD1_CMD__ECSPI5_MOSI 0x1b0b0
441 MX6QDL_PAD_SD1_CLK__ECSPI5_SCLK 0x1b0b0
442 MX6QDL_PAD_SD1_DAT1__GPIO1_IO17 0x1b0b0
446 pinctrl_enet: enetgrp {
448 MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x100b0
449 MX6QDL_PAD_ENET_MDC__ENET_MDC 0x100b0
450 MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x10030
451 MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x10030
452 MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x10030
453 MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x10030
454 MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x10030
455 MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x10030
456 MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x100b0
457 MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b030
458 MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b030
459 MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b030
460 MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b030
461 MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b030
462 MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b030
464 MX6QDL_PAD_ENET_TX_EN__GPIO1_IO28 0x1b0b0
465 /* AR8033 Interrupt */
466 MX6QDL_PAD_GPIO_19__GPIO4_IO05 0x1b0b0
470 pinctrl_hog: hoggrp {
473 MX6QDL_PAD_NANDF_D0__GPIO2_IO00 0x1b0b0
474 MX6QDL_PAD_NANDF_D1__GPIO2_IO01 0x1b0b0
475 MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x1b0b0
476 MX6QDL_PAD_NANDF_D3__GPIO2_IO03 0x1b0b0
477 MX6QDL_PAD_NANDF_D4__GPIO2_IO04 0x1b0b0
478 MX6QDL_PAD_NANDF_D5__GPIO2_IO05 0x1b0b0
479 MX6QDL_PAD_NANDF_D6__GPIO2_IO06 0x1b0b0
480 MX6QDL_PAD_NANDF_D7__GPIO2_IO07 0x1b0b0
481 /* SUS_S3_OUT to CPLD */
482 MX6QDL_PAD_KEY_ROW2__GPIO4_IO11 0x1b0b0
486 pinctrl_i2c1: i2c1grp {
488 MX6QDL_PAD_CSI0_DAT8__I2C1_SDA 0x4001b8b1
489 MX6QDL_PAD_CSI0_DAT9__I2C1_SCL 0x4001b8b1
493 pinctrl_i2c2: i2c2grp {
495 MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
496 MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
500 pinctrl_i2c3: i2c3grp {
502 MX6QDL_PAD_GPIO_3__I2C3_SCL 0x4001b8b1
503 MX6QDL_PAD_GPIO_6__I2C3_SDA 0x4001b8b1
507 pinctrl_pcie: pciegrp {
510 MX6QDL_PAD_GPIO_17__GPIO7_IO12 0x1b0b0
512 MX6QDL_PAD_GPIO_5__GPIO1_IO05 0x1b0b0
516 pinctrl_pmic: pmicgrp {
519 MX6QDL_PAD_GPIO_18__GPIO7_IO13 0x1b0b0
523 pinctrl_pwm1: pwm1grp {
525 MX6QDL_PAD_SD1_DAT3__PWM1_OUT 0x1b0b1
529 pinctrl_pwm2: pwm2grp {
531 MX6QDL_PAD_GPIO_1__PWM2_OUT 0x1b0b1
535 pinctrl_rtc: rtcgrp {
538 MX6QDL_PAD_KEY_COL2__GPIO4_IO10 0x1b0b0
542 pinctrl_uart3: uart3grp {
544 MX6QDL_PAD_EIM_D25__UART3_RX_DATA 0x1b0b1
545 MX6QDL_PAD_EIM_D24__UART3_TX_DATA 0x1b0b1
546 MX6QDL_PAD_EIM_D23__UART3_CTS_B 0x1b0b1
547 MX6QDL_PAD_EIM_D31__UART3_RTS_B 0x1b0b1
551 pinctrl_uart4: uart4grp {
553 MX6QDL_PAD_KEY_COL0__UART4_TX_DATA 0x1b0b1
554 MX6QDL_PAD_KEY_ROW0__UART4_RX_DATA 0x1b0b1
558 pinctrl_usbhub: usbhubgrp {
561 MX6QDL_PAD_GPIO_16__GPIO7_IO11 0x1b0b0
565 pinctrl_usbotg: usbotggrp {
567 MX6QDL_PAD_ENET_RX_ER__USB_OTG_ID 0x17059
571 pinctrl_usdhc2: usdhc2grp {
573 MX6QDL_PAD_SD2_CMD__SD2_CMD 0x17059
574 MX6QDL_PAD_SD2_CLK__SD2_CLK 0x10059
575 MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x17059
576 MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x17059
577 MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x17059
578 MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x17059
580 MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x1b0b0
584 pinctrl_usdhc3: usdhc3grp {
586 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17059
587 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x10059
588 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17059
589 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17059
590 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17059
591 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059
592 MX6QDL_PAD_SD3_DAT4__SD3_DATA4 0x17059
593 MX6QDL_PAD_SD3_DAT5__SD3_DATA5 0x17059
594 MX6QDL_PAD_SD3_DAT6__SD3_DATA6 0x17059
595 MX6QDL_PAD_SD3_DAT7__SD3_DATA7 0x17059
599 pinctrl_usdhc3_reset: usdhc3grp-reset {
601 MX6QDL_PAD_SD3_RST__SD3_RESET 0x170F9
605 pinctrl_usdhc4: usdhc4grp {
607 MX6QDL_PAD_SD4_CMD__SD4_CMD 0x17059
608 MX6QDL_PAD_SD4_CLK__SD4_CLK 0x17059
609 MX6QDL_PAD_SD4_DAT0__SD4_DATA0 0x17059
610 MX6QDL_PAD_SD4_DAT1__SD4_DATA1 0x17059
611 MX6QDL_PAD_SD4_DAT2__SD4_DATA2 0x17059
612 MX6QDL_PAD_SD4_DAT3__SD4_DATA3 0x17059
613 MX6QDL_PAD_SD4_DAT4__SD4_DATA4 0x17059
614 MX6QDL_PAD_SD4_DAT5__SD4_DATA5 0x17059
615 MX6QDL_PAD_SD4_DAT6__SD4_DATA6 0x17059
616 MX6QDL_PAD_SD4_DAT7__SD4_DATA7 0x17059
618 MX6QDL_PAD_NANDF_CS0__GPIO6_IO11 0x1b0b0
619 /* uSDHC4 SDIO PWR */
620 MX6QDL_PAD_NANDF_CS1__GPIO6_IO14 0x1b0b0
622 MX6QDL_PAD_NANDF_CS2__GPIO6_IO15 0x1b0b0
623 /* uSDHC4 SDIO LED */
624 MX6QDL_PAD_NANDF_CS3__GPIO6_IO16 0x1b0b0
628 pinctrl_wdog: wdoggrp {
630 MX6QDL_PAD_GPIO_9__WDOG1_B 0x1b0b0