1 // SPDX-License-Identifier: GPL-2.0 OR X11
3 * Device Tree Include file for TQ Systems MBa7 carrier board.
5 * Copyright (C) 2016 TQ Systems GmbH
6 * Author: Markus Niebel <Markus.Niebel@tq-group.com>
7 * Copyright (C) 2019 Bruno Thomsen <bruno.thomsen@gmail.com>
9 * Note: This file does not include nodes for all peripheral devices.
10 * As device driver coverage increases additional nodes can be added.
13 #include <dt-bindings/input/input.h>
14 #include <dt-bindings/net/ti-dp83867.h>
20 /delete-property/ mmc2;
24 compatible = "gpio-beeper";
25 gpios = <&pca9555 0 GPIO_ACTIVE_HIGH>;
32 gpio_buttons: gpio-keys {
33 compatible = "gpio-keys";
39 gpios = <&pca9555 13 GPIO_ACTIVE_LOW>;
46 gpios = <&pca9555 14 GPIO_ACTIVE_LOW>;
53 gpios = <&pca9555 15 GPIO_ACTIVE_LOW>;
58 compatible = "gpio-leds";
62 gpios = <&pca9555 8 GPIO_ACTIVE_HIGH>;
63 linux,default-trigger = "default-on";
68 gpios = <&pca9555 9 GPIO_ACTIVE_HIGH>;
69 linux,default-trigger = "heartbeat";
73 reg_sd1_vmmc: regulator-sd1-vmmc {
74 compatible = "regulator-fixed";
75 regulator-name = "VCC3V3_SD1";
76 regulator-min-microvolt = <3300000>;
77 regulator-max-microvolt = <3300000>;
81 reg_fec1_pwdn: regulator-fec1-pwdn {
82 compatible = "regulator-fixed";
83 regulator-name = "PWDN_FEC1";
84 regulator-min-microvolt = <3300000>;
85 regulator-max-microvolt = <3300000>;
87 gpio = <&gpio1 9 GPIO_ACTIVE_HIGH>;
91 reg_fec2_pwdn: regulator-fec2-pwdn {
92 compatible = "regulator-fixed";
93 regulator-name = "PWDN_FEC2";
94 regulator-min-microvolt = <3300000>;
95 regulator-max-microvolt = <3300000>;
97 gpio = <&gpio2 31 GPIO_ACTIVE_HIGH>;
101 reg_usb_otg1_vbus: regulator-usb-otg1-vbus {
102 compatible = "regulator-fixed";
103 regulator-name = "VBUS_USBOTG1";
104 regulator-min-microvolt = <5000000>;
105 regulator-max-microvolt = <5000000>;
106 gpio = <&gpio1 5 GPIO_ACTIVE_HIGH>;
110 reg_usb_otg2_vbus: regulator-usb-otg2-vbus {
111 compatible = "regulator-fixed";
112 regulator-name = "VBUS_USBOTG2";
113 regulator-min-microvolt = <5000000>;
114 regulator-max-microvolt = <5000000>;
115 gpio = <&gpio1 7 GPIO_ACTIVE_HIGH>;
119 reg_mpcie_1v5: regulator-mpcie-1v5 {
120 compatible = "regulator-fixed";
121 regulator-name = "VCC1V5_MPCIE";
122 regulator-min-microvolt = <1500000>;
123 regulator-max-microvolt = <1500000>;
124 gpio = <&pca9555 12 GPIO_ACTIVE_HIGH>;
129 reg_mpcie_3v3: regulator-mpcie-3v3 {
130 compatible = "regulator-fixed";
131 regulator-name = "VCC3V3_MPCIE";
132 regulator-min-microvolt = <3300000>;
133 regulator-max-microvolt = <3300000>;
134 gpio = <&pca9555 10 GPIO_ACTIVE_HIGH>;
139 reg_mba_12v0: regulator-mba-12v0 {
140 compatible = "regulator-fixed";
141 regulator-name = "VCC12V0_MBA7";
142 regulator-min-microvolt = <12000000>;
143 regulator-max-microvolt = <12000000>;
144 gpio = <&pca9555 11 GPIO_ACTIVE_HIGH>;
148 reg_lvds_transmitter: regulator-lvds-transmitter {
149 compatible = "regulator-fixed";
150 regulator-name = "#SHTDN_LVDS";
151 regulator-min-microvolt = <3300000>;
152 regulator-max-microvolt = <3300000>;
153 gpio = <&pca9555 1 GPIO_ACTIVE_HIGH>;
157 reg_vref_1v8: regulator-vref-1v8 {
158 compatible = "regulator-fixed";
159 regulator-name = "VCC1V8_REF";
160 regulator-min-microvolt = <1800000>;
161 regulator-max-microvolt = <1800000>;
163 vin-supply = <&sw2_reg>;
166 reg_audio_3v3: regulator-audio-3v3 {
167 compatible = "regulator-fixed";
168 regulator-name = "VCC3V3_AUDIO";
169 regulator-min-microvolt = <3300000>;
170 regulator-max-microvolt = <3300000>;
175 compatible = "fsl,imx-audio-tlv320aic32x4";
176 model = "imx-audio-tlv320aic32x4";
177 ssi-controller = <&sai1>;
178 audio-codec = <&tlv320aic32x4>;
181 "Mic Jack", "Mic Bias",
182 "IN1_L", "Line In Jack",
183 "IN1_R", "Line In Jack",
184 "Line Out Jack", "LOL",
185 "Line Out Jack", "LOR";
190 vref-supply = <®_vref_1v8>;
195 vref-supply = <®_vref_1v8>;
200 pinctrl-names = "default";
201 pinctrl-0 = <&pinctrl_ecspi1>;
202 cs-gpios = <&gpio4 0 GPIO_ACTIVE_LOW>, <&gpio4 1 GPIO_ACTIVE_LOW>,
203 <&gpio4 2 GPIO_ACTIVE_LOW>;
208 pinctrl-names = "default";
209 pinctrl-0 = <&pinctrl_ecspi2>;
214 pinctrl-names = "default";
215 pinctrl-0 = <&pinctrl_enet1>;
216 phy-mode = "rgmii-id";
217 phy-reset-gpios = <&gpio7 15 GPIO_ACTIVE_LOW>;
218 phy-reset-duration = <1>;
219 phy-reset-delay = <1>;
220 phy-supply = <®_fec1_pwdn>;
221 phy-handle = <ðphy1_0>;
226 #address-cells = <1>;
229 ethphy1_0: ethernet-phy@0 {
230 compatible = "ethernet-phy-ieee802.3-c22";
232 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_50_NS>;
233 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_50_NS>;
234 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
235 ti,clk-output-sel = <DP83867_CLK_O_SEL_OFF>;
241 pinctrl-names = "default";
242 pinctrl-0 = <&pinctrl_flexcan1>;
247 pinctrl-names = "default";
248 pinctrl-0 = <&pinctrl_flexcan2>;
253 lm75: temperature-sensor@49 {
254 compatible = "national,lm75";
260 clock-frequency = <100000>;
261 pinctrl-names = "default";
262 pinctrl-0 = <&pinctrl_i2c2>;
265 tlv320aic32x4: audio-codec@18 {
266 compatible = "ti,tlv320aic32x4";
268 clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>;
269 clock-names = "mclk";
270 ldoin-supply = <®_audio_3v3>;
271 iov-supply = <®_audio_3v3>;
274 pca9555: gpio-expander@20 {
275 compatible = "nxp,pca9555";
277 pinctrl-names = "default";
278 pinctrl-0 = <&pinctrl_pca9555>;
281 interrupt-parent = <&gpio7>;
282 interrupts = <12 IRQ_TYPE_EDGE_FALLING>;
283 interrupt-controller;
284 #interrupt-cells = <2>;
289 clock-frequency = <100000>;
290 pinctrl-names = "default";
291 pinctrl-0 = <&pinctrl_i2c3>;
296 pinctrl-names = "default";
297 pinctrl-0 = <&pinctrl_hog_mba7_1>;
299 pinctrl_ecspi1: ecspi1grp {
301 MX7D_PAD_ECSPI1_MISO__ECSPI1_MISO 0x7c
302 MX7D_PAD_ECSPI1_MOSI__ECSPI1_MOSI 0x74
303 MX7D_PAD_ECSPI1_SCLK__ECSPI1_SCLK 0x74
304 MX7D_PAD_UART1_RX_DATA__GPIO4_IO0 0x74
305 MX7D_PAD_UART1_TX_DATA__GPIO4_IO1 0x74
306 MX7D_PAD_UART2_RX_DATA__GPIO4_IO2 0x74
310 pinctrl_ecspi2: ecspi2grp {
312 MX7D_PAD_ECSPI2_MISO__ECSPI2_MISO 0x7c
313 MX7D_PAD_ECSPI2_MOSI__ECSPI2_MOSI 0x74
314 MX7D_PAD_ECSPI2_SCLK__ECSPI2_SCLK 0x74
315 MX7D_PAD_ECSPI2_SS0__ECSPI2_SS0 0x74
319 pinctrl_enet1: enet1grp {
321 MX7D_PAD_GPIO1_IO10__ENET1_MDIO 0x02
322 MX7D_PAD_GPIO1_IO11__ENET1_MDC 0x00
323 MX7D_PAD_ENET1_RGMII_TXC__ENET1_RGMII_TXC 0x71
324 MX7D_PAD_ENET1_RGMII_TD0__ENET1_RGMII_TD0 0x71
325 MX7D_PAD_ENET1_RGMII_TD1__ENET1_RGMII_TD1 0x71
326 MX7D_PAD_ENET1_RGMII_TD2__ENET1_RGMII_TD2 0x71
327 MX7D_PAD_ENET1_RGMII_TD3__ENET1_RGMII_TD3 0x71
328 MX7D_PAD_ENET1_RGMII_TX_CTL__ENET1_RGMII_TX_CTL 0x71
329 MX7D_PAD_ENET1_RGMII_RXC__ENET1_RGMII_RXC 0x79
330 MX7D_PAD_ENET1_RGMII_RD0__ENET1_RGMII_RD0 0x79
331 MX7D_PAD_ENET1_RGMII_RD1__ENET1_RGMII_RD1 0x79
332 MX7D_PAD_ENET1_RGMII_RD2__ENET1_RGMII_RD2 0x79
333 MX7D_PAD_ENET1_RGMII_RD3__ENET1_RGMII_RD3 0x79
334 MX7D_PAD_ENET1_RGMII_RX_CTL__ENET1_RGMII_RX_CTL 0x79
335 /* Reset: SION, 100kPU, SRE_FAST, DSE_X1 */
336 MX7D_PAD_ENET1_COL__GPIO7_IO15 0x40000070
337 /* INT/PWDN: SION, 100kPU, HYS, SRE_FAST, DSE_X1 */
338 MX7D_PAD_GPIO1_IO09__GPIO1_IO9 0x40000078
342 pinctrl_flexcan1: flexcan1grp {
344 MX7D_PAD_GPIO1_IO12__FLEXCAN1_RX 0x5a
345 MX7D_PAD_GPIO1_IO13__FLEXCAN1_TX 0x52
349 pinctrl_flexcan2: flexcan2grp {
351 MX7D_PAD_GPIO1_IO14__FLEXCAN2_RX 0x5a
352 MX7D_PAD_GPIO1_IO15__FLEXCAN2_TX 0x52
356 pinctrl_hog_mba7_1: hogmba71grp {
358 /* Limitation: WDOG2_B / WDOG2_RESET not usable */
359 MX7D_PAD_ENET1_RX_CLK__GPIO7_IO13 0x4000007c
360 MX7D_PAD_ENET1_CRS__GPIO7_IO14 0x40000074
362 MX7D_PAD_UART2_TX_DATA__GPIO4_IO3 0x40000010
366 pinctrl_i2c2: i2c2grp {
368 MX7D_PAD_I2C2_SCL__I2C2_SCL 0x40000078
369 MX7D_PAD_I2C2_SDA__I2C2_SDA 0x40000078
373 pinctrl_i2c3: i2c3grp {
375 MX7D_PAD_I2C3_SCL__I2C3_SCL 0x40000078
376 MX7D_PAD_I2C3_SDA__I2C3_SDA 0x40000078
380 pinctrl_pca9555: pca95550grp {
382 MX7D_PAD_ENET1_TX_CLK__GPIO7_IO12 0x78
386 pinctrl_sai1: sai1grp {
388 MX7D_PAD_SAI1_MCLK__SAI1_MCLK 0x11
389 MX7D_PAD_SAI1_RX_BCLK__SAI1_RX_BCLK 0x1c
390 MX7D_PAD_SAI1_RX_DATA__SAI1_RX_DATA0 0x1c
391 MX7D_PAD_SAI1_RX_SYNC__SAI2_RX_SYNC 0x1c
393 MX7D_PAD_SAI1_TX_BCLK__SAI1_TX_BCLK 0x1c
394 MX7D_PAD_SAI1_TX_DATA__SAI1_TX_DATA0 0x14
395 MX7D_PAD_SAI1_TX_SYNC__SAI1_TX_SYNC 0x14
399 pinctrl_uart3: uart3grp {
401 MX7D_PAD_UART3_RX_DATA__UART3_DCE_RX 0x7e
402 MX7D_PAD_UART3_TX_DATA__UART3_DCE_TX 0x76
403 MX7D_PAD_UART3_CTS_B__UART3_DCE_CTS 0x76
404 MX7D_PAD_UART3_RTS_B__UART3_DCE_RTS 0x7e
408 pinctrl_uart4: uart4grp {
410 MX7D_PAD_SAI2_TX_SYNC__UART4_DCE_RX 0x7e
411 MX7D_PAD_SAI2_TX_BCLK__UART4_DCE_TX 0x76
412 MX7D_PAD_SAI2_RX_DATA__UART4_DCE_CTS 0x76
413 MX7D_PAD_SAI2_TX_DATA__UART4_DCE_RTS 0x7e
417 pinctrl_uart5: uart5grp {
419 MX7D_PAD_I2C4_SCL__UART5_DCE_RX 0x7e
420 MX7D_PAD_I2C4_SDA__UART5_DCE_TX 0x76
424 pinctrl_uart6: uart6grp {
426 MX7D_PAD_EPDC_DATA08__UART6_DCE_RX 0x7d
427 MX7D_PAD_EPDC_DATA09__UART6_DCE_TX 0x75
428 MX7D_PAD_EPDC_DATA11__UART6_DCE_CTS 0x75
429 MX7D_PAD_EPDC_DATA10__UART6_DCE_RTS 0x7d
433 pinctrl_uart7: uart7grp {
435 MX7D_PAD_EPDC_DATA12__UART7_DCE_RX 0x7e
436 MX7D_PAD_EPDC_DATA13__UART7_DCE_TX 0x76
437 MX7D_PAD_EPDC_DATA15__UART7_DCE_CTS 0x76
438 /* Limitation: RTS is not connected */
439 MX7D_PAD_EPDC_DATA14__UART7_DCE_RTS 0x7e
443 pinctrl_usdhc1_gpio: usdhc1grp_gpio {
446 MX7D_PAD_SD1_WP__GPIO5_IO1 0x7c
448 MX7D_PAD_SD1_CD_B__GPIO5_IO0 0x7c
450 MX7D_PAD_GPIO1_IO08__SD1_VSELECT 0x59
454 pinctrl_usdhc1: usdhc1grp {
456 MX7D_PAD_SD1_CMD__SD1_CMD 0x5e
457 MX7D_PAD_SD1_CLK__SD1_CLK 0x57
458 MX7D_PAD_SD1_DATA0__SD1_DATA0 0x5e
459 MX7D_PAD_SD1_DATA1__SD1_DATA1 0x5e
460 MX7D_PAD_SD1_DATA2__SD1_DATA2 0x5e
461 MX7D_PAD_SD1_DATA3__SD1_DATA3 0x5e
465 pinctrl_usdhc1_100mhz: usdhc1grp_100mhz {
467 MX7D_PAD_SD1_CMD__SD1_CMD 0x5a
468 MX7D_PAD_SD1_CLK__SD1_CLK 0x57
469 MX7D_PAD_SD1_DATA0__SD1_DATA0 0x5a
470 MX7D_PAD_SD1_DATA1__SD1_DATA1 0x5a
471 MX7D_PAD_SD1_DATA2__SD1_DATA2 0x5a
472 MX7D_PAD_SD1_DATA3__SD1_DATA3 0x5a
476 pinctrl_usdhc1_200mhz: usdhc1grp_200mhz {
478 MX7D_PAD_SD1_CMD__SD1_CMD 0x5b
479 MX7D_PAD_SD1_CLK__SD1_CLK 0x57
480 MX7D_PAD_SD1_DATA0__SD1_DATA0 0x5b
481 MX7D_PAD_SD1_DATA1__SD1_DATA1 0x5b
482 MX7D_PAD_SD1_DATA2__SD1_DATA2 0x5b
483 MX7D_PAD_SD1_DATA3__SD1_DATA3 0x5b
489 pinctrl_pwm1: pwm1grp {
492 MX7D_PAD_LPSR_GPIO1_IO01__PWM1_OUT 0x50
496 pinctrl_usbotg1: usbotg1grp {
498 MX7D_PAD_LPSR_GPIO1_IO04__USB_OTG1_OC 0x5c
499 MX7D_PAD_LPSR_GPIO1_IO05__GPIO1_IO5 0x59
503 pinctrl_wdog1: wdog1grp {
505 MX7D_PAD_LPSR_GPIO1_IO00__WDOG1_WDOG_B 0x30
511 pinctrl-names = "default";
512 pinctrl-0 = <&pinctrl_pwm1>;
517 pinctrl-names = "default";
518 pinctrl-0 = <&pinctrl_sai1>;
519 assigned-clocks = <&clks IMX7D_SAI1_ROOT_SRC>,
520 <&clks IMX7D_SAI1_ROOT_CLK>;
521 assigned-clock-parents = <&clks IMX7D_PLL_AUDIO_POST_DIV>;
522 assigned-clock-rates = <0>, <36864000>;
527 pinctrl-names = "default";
528 pinctrl-0 = <&pinctrl_uart3>;
529 assigned-clocks = <&clks IMX7D_UART3_ROOT_SRC>;
530 assigned-clock-parents = <&clks IMX7D_OSC_24M_CLK>;
535 pinctrl-names = "default";
536 pinctrl-0 = <&pinctrl_uart4>;
537 assigned-clocks = <&clks IMX7D_UART4_ROOT_SRC>;
538 assigned-clock-parents = <&clks IMX7D_OSC_24M_CLK>;
543 pinctrl-names = "default";
544 pinctrl-0 = <&pinctrl_uart5>;
545 assigned-clocks = <&clks IMX7D_UART5_ROOT_SRC>;
546 assigned-clock-parents = <&clks IMX7D_OSC_24M_CLK>;
551 pinctrl-names = "default";
552 pinctrl-0 = <&pinctrl_uart6>;
553 assigned-clocks = <&clks IMX7D_UART6_ROOT_SRC>;
554 assigned-clock-parents = <&clks IMX7D_OSC_24M_CLK>;
559 pinctrl-names = "default";
560 pinctrl-0 = <&pinctrl_uart7>;
561 assigned-clocks = <&clks IMX7D_UART7_ROOT_SRC>;
562 assigned-clock-parents = <&clks IMX7D_OSC_24M_CLK>;
564 linux,rs485-enabled-at-boot-time;
565 rs485-rts-active-low;
575 pinctrl-names = "default";
576 pinctrl-0 = <&pinctrl_usbotg1>;
577 vbus-supply = <®_usb_otg1_vbus>;
581 over-current-active-low;
587 pinctrl-names = "default", "state_100mhz", "state_200mhz";
588 pinctrl-0 = <&pinctrl_usdhc1>, <&pinctrl_usdhc1_gpio>;
589 pinctrl-1 = <&pinctrl_usdhc1_100mhz>, <&pinctrl_usdhc1_gpio>;
590 pinctrl-2 = <&pinctrl_usdhc1_200mhz>, <&pinctrl_usdhc1_gpio>;
591 cd-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
592 wp-gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
593 vmmc-supply = <®_sd1_vmmc>;
600 pinctrl-names = "default";
601 pinctrl-0 = <&pinctrl_wdog1>;
602 fsl,ext-reset-output;