1 // SPDX-License-Identifier: (GPL-2.0)
3 * support for the imx6 based aristainetos2 boards
4 * parts common to all versions
6 * Copyright (C) 2019 Heiko Schocher <hs@denx.de>
7 * Copyright (C) 2015 Heiko Schocher <hs@denx.de>
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/clock/imx6qdl-clock.h>
15 eeprom0 = &i2c_eeprom0;
16 eeprom1 = &i2c_eeprom1;
17 eeprom2 = &i2c_eeprom2;
22 device_type = "memory";
23 reg = <0x10000000 0x40000000>;
26 backlight: backlight {
27 compatible = "pwm-backlight";
28 pwms = <&pwm1 0 5000000>;
29 brightness-levels = <0 4 8 16 32 64 128 255>;
30 default-brightness-level = <7>;
31 enable-gpios = <&gpio6 31 GPIO_ACTIVE_HIGH>;
34 reg_2p5v: regulator-2p5v {
35 compatible = "regulator-fixed";
36 regulator-name = "2P5V";
37 regulator-min-microvolt = <2500000>;
38 regulator-max-microvolt = <2500000>;
42 reg_3p3v: regulator-3p3v {
43 compatible = "regulator-fixed";
44 regulator-name = "3P3V";
45 regulator-min-microvolt = <3300000>;
46 regulator-max-microvolt = <3300000>;
50 reg_usbh1_vbus: regulator-usbh1-vbus {
51 compatible = "regulator-fixed";
53 gpio = <&gpio1 0 GPIO_ACTIVE_HIGH>;
54 pinctrl-names = "default";
55 pinctrl-0 = <&pinctrl_aristainetos2_usbh1_vbus>;
56 regulator-name = "usb_h1_vbus";
57 regulator-min-microvolt = <5000000>;
58 regulator-max-microvolt = <5000000>;
61 reg_usbotg_vbus: regulator-usbotg-vbus {
62 compatible = "regulator-fixed";
64 gpio = <&gpio4 15 GPIO_ACTIVE_HIGH>;
65 pinctrl-names = "default";
66 pinctrl-0 = <&pinctrl_aristainetos2_usbotg_vbus>;
67 regulator-name = "usb_otg_vbus";
68 regulator-min-microvolt = <5000000>;
69 regulator-max-microvolt = <5000000>;
74 pinctrl-names = "default";
75 pinctrl-0 = <&pinctrl_audmux>;
80 cs-gpios = <&gpio2 26 GPIO_ACTIVE_HIGH &gpio2 27 GPIO_ACTIVE_HIGH>;
81 pinctrl-names = "default";
82 pinctrl-0 = <&pinctrl_ecspi2>;
87 pinctrl-names = "default";
88 pinctrl-0 = <&pinctrl_i2c1>;
92 compatible = "dlg,da9063";
93 /* the pmic uses addr 0x58 and 0x59 */
95 interrupt-parent = <&gpio1>;
96 interrupts = <04 0x8>;
100 regulator-name = "bcore1";
101 regulator-always-on = <1>;
102 regulator-min-microvolt = <300000>;
103 regulator-max-microvolt = <3300000>;
107 regulator-name = "bcore2";
108 regulator-always-on = <1>;
109 regulator-min-microvolt = <300000>;
110 regulator-max-microvolt = <3300000>;
114 regulator-name = "bpro";
115 regulator-always-on = <1>;
116 regulator-min-microvolt = <1200000>;
117 regulator-max-microvolt = <1200000>;
121 regulator-name = "bprob";
122 regulator-always-on = <1>;
123 regulator-min-microvolt = <1200000>;
124 regulator-max-microvolt = <1200000>;
128 regulator-name = "bperi";
129 regulator-always-on = <1>;
130 regulator-min-microvolt = <300000>;
131 regulator-max-microvolt = <3300000>;
135 regulator-name = "bmem";
136 regulator-always-on = <1>;
137 regulator-min-microvolt = <300000>;
138 regulator-max-microvolt = <3300000>;
142 regulator-name = "ldo2";
143 regulator-always-on = <1>;
144 regulator-min-microvolt = <300000>;
145 regulator-max-microvolt = <1800000>;
149 regulator-name = "ldo3";
150 regulator-always-on = <1>;
151 regulator-min-microvolt = <300000>;
152 regulator-max-microvolt = <3300000>;
156 regulator-name = "ldo4";
157 regulator-always-on = <1>;
158 regulator-min-microvolt = <300000>;
159 regulator-max-microvolt = <3300000>;
163 regulator-name = "ldo5";
164 regulator-always-on = <1>;
165 regulator-min-microvolt = <300000>;
166 regulator-max-microvolt = <3300000>;
170 regulator-name = "ldo6";
171 regulator-always-on = <1>;
172 regulator-min-microvolt = <300000>;
173 regulator-max-microvolt = <3300000>;
177 regulator-name = "ldo7";
178 regulator-always-on = <1>;
179 regulator-min-microvolt = <300000>;
180 regulator-max-microvolt = <3300000>;
184 regulator-name = "ldo8";
185 regulator-always-on = <1>;
186 regulator-min-microvolt = <300000>;
187 regulator-max-microvolt = <3300000>;
191 regulator-name = "ldo9";
192 regulator-always-on = <1>;
193 regulator-min-microvolt = <300000>;
194 regulator-max-microvolt = <3300000>;
198 regulator-name = "ldo10";
199 regulator-always-on = <1>;
200 regulator-min-microvolt = <300000>;
201 regulator-max-microvolt = <3300000>;
205 regulator-name = "ldo11";
206 regulator-always-on = <1>;
207 regulator-min-microvolt = <300000>;
208 regulator-max-microvolt = <3300000>;
212 regulator-name = "bio";
213 regulator-always-on = <1>;
214 regulator-min-microvolt = <1800000>;
215 regulator-max-microvolt = <1800000>;
221 compatible = "ti,tmp103";
227 pinctrl-names = "default";
228 pinctrl-0 = <&pinctrl_i2c2>;
233 pinctrl-names = "default";
234 pinctrl-0 = <&pinctrl_i2c3>;
237 expander: tca6416@20 {
238 compatible = "ti,tca6416";
246 gpios = <6 GPIO_ACTIVE_LOW>;
251 gpios = <7 GPIO_ACTIVE_LOW>;
255 i2c_eeprom2: eeprom@57{
256 compatible = "atmel,24c64";
262 compatible = "st,m41t11";
268 pinctrl-names = "default";
269 pinctrl-0 = <&pinctrl_i2c4>;
272 i2c_eeprom0: eeprom@50{
273 compatible = "atmel,24c64";
278 i2c_eeprom1: eeprom@57{
279 compatible = "atmel,24c64";
289 gpios = <17 GPIO_ACTIVE_HIGH>;
294 gpios = <18 GPIO_ACTIVE_HIGH>;
302 gpios = <6 GPIO_ACTIVE_HIGH>;
310 gpios = <6 GPIO_ACTIVE_HIGH>;
315 gpios = <7 GPIO_ACTIVE_HIGH>;
320 gpios = <1 GPIO_ACTIVE_HIGH>;
326 gpios = <13 GPIO_ACTIVE_HIGH>;
331 pinctrl-names = "default";
332 pinctrl-0 = <&pinctrl_enet>;
342 reset-gpio = <&gpio2 16 GPIO_ACTIVE_LOW>;
348 pinctrl-names = "default";
349 pinctrl-0 = <&pinctrl_pwm1>;
354 pinctrl-names = "default";
355 pinctrl-0 = <&pinctrl_uart1>;
361 pinctrl-names = "default";
362 pinctrl-0 = <&pinctrl_uart2>;
367 pinctrl-names = "default";
368 pinctrl-0 = <&pinctrl_uart3>;
374 pinctrl-names = "default";
375 pinctrl-0 = <&pinctrl_uart4>;
380 vbus-supply = <®_usbh1_vbus>;
386 vbus-supply = <®_usbotg_vbus>;
387 pinctrl-names = "default";
388 pinctrl-0 = <&pinctrl_usbotg>;
389 disable-over-current;
390 dr_mode = "host"; /* fixed configuration, ID pin not checked */
395 pinctrl-names = "default";
396 pinctrl-0 = <&pinctrl_gpio>;
398 pinctrl_audmux: audmux {
400 MX6QDL_PAD_CSI0_DAT7__AUD3_RXD 0x1b0b0
401 MX6QDL_PAD_CSI0_DAT4__AUD3_TXC 0x1b0b0
402 MX6QDL_PAD_CSI0_DAT5__AUD3_TXD 0x1b0b0
403 MX6QDL_PAD_CSI0_DAT6__AUD3_TXFS 0x1b0b0
407 pinctrl_ecspi2: ecspi2grp {
409 MX6QDL_PAD_EIM_OE__ECSPI2_MISO 0x100b1
410 MX6QDL_PAD_EIM_CS0__ECSPI2_SCLK 0x100b1
411 MX6QDL_PAD_EIM_CS1__ECSPI2_MOSI 0x100b1
412 MX6QDL_PAD_EIM_RW__GPIO2_IO26 0x100b1 /* SS0# */
413 MX6QDL_PAD_EIM_LBA__GPIO2_IO27 0x100b1 /* SS1# */
417 pinctrl_enet: enetgrp {
419 MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b0b0
420 MX6QDL_PAD_ENET_MDC__ENET_MDC 0x1b0b0
421 MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x1b0b0
422 MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x1b0b0
423 MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x1b0b0
424 MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x1b0b0
425 MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x1b0b0
426 MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x1b0b0
427 MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x400100b0
428 MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b0b0
429 MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b0b0
430 MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b0b0
431 MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b0b0
432 MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b0b0
433 MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b0b0
434 /* make sure pin is GPIO and not ENET_REF_CLK */
435 MX6QDL_PAD_GPIO_16__GPIO7_IO11 0x1a0b0
439 pinctrl_i2c1: i2c1grp {
441 MX6QDL_PAD_CSI0_DAT8__I2C1_SDA 0x4001b8b1
442 MX6QDL_PAD_CSI0_DAT9__I2C1_SCL 0x4001b8b1
446 pinctrl_i2c2: i2c2grp {
448 MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
449 MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
453 pinctrl_i2c3: i2c3grp {
455 MX6QDL_PAD_GPIO_5__I2C3_SCL 0x4001b8b1
456 MX6QDL_PAD_GPIO_6__I2C3_SDA 0x4001b8b1
460 pinctrl_i2c4: i2c4grp {
462 MX6QDL_PAD_GPIO_7__I2C4_SCL 0x4001b8b1
463 MX6QDL_PAD_GPIO_8__I2C4_SDA 0x4001b8b1
467 pinctrl_pwm1: pwm1grp {
469 MX6QDL_PAD_GPIO_9__PWM1_OUT 0x1b0b0
470 /* backlight enable */
471 MX6QDL_PAD_EIM_BCLK__GPIO6_IO31 0x1b0b0
475 pinctrl_uart1: uart1grp {
477 MX6QDL_PAD_CSI0_DAT10__UART1_TX_DATA 0x1b0b1
478 MX6QDL_PAD_CSI0_DAT11__UART1_RX_DATA 0x1b0b1
479 MX6QDL_PAD_EIM_D20__UART1_RTS_B 0x1b0b1
480 MX6QDL_PAD_EIM_D19__UART1_CTS_B 0x1b0b1
484 pinctrl_uart2: uart2grp {
486 MX6QDL_PAD_EIM_D26__UART2_TX_DATA 0x1b0b1
487 MX6QDL_PAD_EIM_D27__UART2_RX_DATA 0x1b0b1
491 pinctrl_uart3: uart3grp {
493 MX6QDL_PAD_EIM_D24__UART3_TX_DATA 0x1b0b1
494 MX6QDL_PAD_EIM_D25__UART3_RX_DATA 0x1b0b1
495 MX6QDL_PAD_EIM_D31__UART3_RTS_B 0x1b0b1
496 MX6QDL_PAD_EIM_D23__UART3_CTS_B 0x1b0b1
500 pinctrl_uart4: uart4grp {
502 MX6QDL_PAD_KEY_COL0__UART4_TX_DATA 0x1b0b1
503 MX6QDL_PAD_KEY_ROW0__UART4_RX_DATA 0x1b0b1
507 pinctrl_aristainetos2_usbh1_vbus: aristainetos-usbh1-vbus {
508 fsl,pins = <MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x400130b0>;
511 pinctrl_aristainetos2_usbotg_vbus: aristainetos-usbotg-vbus {
512 fsl,pins = <MX6QDL_PAD_KEY_ROW4__GPIO4_IO15 0x400130b0>;