1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 * Copyright (c) 2018 Protonic Holland
4 * Copyright (c) 2020 Oleksij Rempel <kernel@pengutronix.de>, Pengutronix
8 #include <dt-bindings/gpio/gpio.h>
12 model = "Protonic WD3 board";
13 compatible = "prt,prtwd3", "fsl,imx6qp";
20 device_type = "memory";
21 reg = <0x10000000 0x20000000>;
25 device_type = "memory";
26 reg = <0x80000000 0x20000000>;
29 clock_ksz8081: clock-ksz8081 {
30 compatible = "fixed-clock";
32 clock-frequency = <50000000>;
35 clock_ksz9031: clock-ksz9031 {
36 compatible = "fixed-clock";
38 clock-frequency = <25000000>;
41 clock_mcp251xfd: clock-mcp251xfd {
42 compatible = "fixed-clock";
44 clock-frequency = <20000000>;
47 clock_sja1105: clock-sja1105 {
48 compatible = "fixed-clock";
50 clock-frequency = <25000000>;
54 compatible = "virtual,mdio-gpio";
55 pinctrl-names = "default";
56 pinctrl-0 = <&pinctrl_mdio>;
60 gpios = <&gpio5 6 GPIO_ACTIVE_HIGH
61 &gpio5 7 GPIO_ACTIVE_HIGH>;
63 /* Microchip KSZ8081 */
64 usbeth_phy: ethernet-phy@3 {
67 interrupts-extended = <&gpio5 12 IRQ_TYPE_LEVEL_LOW>;
68 reset-gpios = <&gpio5 11 GPIO_ACTIVE_LOW>;
69 reset-assert-us = <500>;
70 reset-deassert-us = <1000>;
71 clocks = <&clock_ksz8081>;
72 clock-names = "rmii-ref";
73 micrel,led-mode = <0>;
76 tja1102_phy0: ethernet-phy@4 {
79 interrupts-extended = <&gpio5 8 IRQ_TYPE_LEVEL_LOW>;
80 reset-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>;
81 reset-assert-us = <20>;
82 reset-deassert-us = <2000>;
86 tja1102_phy1: ethernet-phy@5 {
89 interrupts-extended = <&gpio5 8 IRQ_TYPE_LEVEL_LOW>;
94 reg_5v0: regulator-5v0 {
95 compatible = "regulator-fixed";
96 regulator-name = "5v0";
97 regulator-min-microvolt = <5000000>;
98 regulator-max-microvolt = <5000000>;
101 reg_otg_vbus: regulator-otg-vbus {
102 compatible = "regulator-fixed";
103 regulator-name = "otg-vbus";
104 regulator-min-microvolt = <5000000>;
105 regulator-max-microvolt = <5000000>;
106 gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
110 usdhc2_wifi_pwrseq: usdhc2-wifi-pwrseq {
111 compatible = "mmc-pwrseq-simple";
112 pinctrl-names = "default";
113 pinctrl-0 = <&pinctrl_wifi_npd>;
114 reset-gpios = <&gpio6 10 GPIO_ACTIVE_LOW>;
119 pinctrl-names = "default";
120 pinctrl-0 = <&pinctrl_can1>;
121 xceiver-supply = <®_5v0>;
126 cs-gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
127 pinctrl-names = "default";
128 pinctrl-0 = <&pinctrl_ecspi2>;
132 compatible = "nxp,sja1105q";
134 spi-max-frequency = <4000000>;
135 spi-rx-delay-us = <1>;
136 spi-tx-delay-us = <1>;
139 reset-gpios = <&gpio5 5 GPIO_ACTIVE_LOW>;
141 clocks = <&clock_sja1105>;
144 #address-cells = <1>;
150 phy-handle = <&usbeth_phy>;
157 phy-handle = <&tja1102_phy1>;
164 phy-handle = <&tja1102_phy0>;
172 phy-handle = <&rgmii_phy>;
173 phy-mode = "rgmii-id";
180 phy-mode = "rgmii-id";
192 cs-gpios = <&gpio4 24 GPIO_ACTIVE_HIGH>;
193 pinctrl-names = "default";
194 pinctrl-0 = <&pinctrl_ecspi3>;
198 compatible = "microchip,mcp251xfd";
199 pinctrl-names = "default";
200 pinctrl-0 = <&pinctrl_can2>;
202 clocks = <&clock_mcp251xfd>;
203 spi-max-frequency = <10000000>;
204 interrupts-extended = <&gpio4 25 IRQ_TYPE_LEVEL_LOW>;
209 pinctrl-names = "default";
210 pinctrl-0 = <&pinctrl_enet>;
221 #address-cells = <1>;
224 /* Microchip KSZ9031 */
225 rgmii_phy: ethernet-phy@2 {
228 interrupts-extended = <&gpio1 28 IRQ_TYPE_EDGE_FALLING>;
229 reset-gpios = <&gpio1 25 GPIO_ACTIVE_LOW>;
230 reset-assert-us = <10000>;
231 reset-deassert-us = <1000>;
233 clocks = <&clock_ksz9031>;
240 "", "SD1_CD", "", "", "", "", "", "",
241 "", "", "", "", "", "", "", "",
242 "", "", "", "", "", "", "", "",
243 "", "PHY3_RESET", "", "", "PHY3_INT", "", "", "";
248 "", "", "", "", "", "", "", "",
249 "REV_ID0", "REV_ID1", "REV_ID2", "REV_ID3", "BOARD_ID3",
250 "BOARD_ID0", "BOARD_ID1", "BOARD_ID2",
251 "", "", "", "", "", "", "", "",
252 "", "", "ECSPI2_SS0", "", "", "", "", "";
257 "", "", "", "", "", "", "", "",
258 "", "", "", "", "", "", "", "",
259 "", "", "", "", "", "USB_OTG_OC", "USB_OTG_PWR", "",
260 "", "", "", "", "", "", "", "";
265 "", "", "", "", "", "", "", "",
266 "", "", "", "", "CAN1_SR", "CAN2_SR", "", "",
267 "", "", "", "", "", "", "", "",
268 "ECSPI3_SS0", "CANFD_INT", "USB_ETH_RESET", "", "", "", "", "";
273 "", "", "", "", "", "SW_RESET", "", "",
274 "PHY12_INT", "PHY12_RESET", "PHY12_EN", "PHY0_RESET",
275 "PHY0_INT", "", "", "",
276 "", "", "DISP1_EN", "DISP1_LR", "DISP1_TS_IRQ", "LVDS1_PD",
278 "", "LVDS1_INT", "", "", "DISP0_LR", "DISP0_TS_IRQ",
279 "DISP0_EN", "CAM_GPIO0";
284 "LVDS0_INT", "LVDS0_PD", "CAM_INT", "CAM_GPIO1", "CAM_PD",
285 "CAM_LOCK", "", "POWER_TG",
286 "POWER_VSEL", "", "WLAN_REG_ON", "USB_ETH_CHG", "", "",
287 "USB_ETH_CHG_ID0", "USB_ETH_CHG_ID1",
288 "USB_ETH_CHG_ID2", "", "", "", "", "", "", "",
289 "", "", "", "", "", "", "", "";
293 clock-frequency = <100000>;
294 pinctrl-names = "default";
295 pinctrl-0 = <&pinctrl_i2c1>;
298 /* additional i2c devices are added automatically by the boot loader */
303 compatible = "ti,ads1015";
305 #address-cells = <1>;
338 pinctrl-names = "default";
339 pinctrl-0 = <&pinctrl_uart4>;
344 vbus-supply = <®_otg_vbus>;
345 pinctrl-names = "default";
346 pinctrl-0 = <&pinctrl_usbotg>;
349 disable-over-current;
362 pinctrl-names = "default";
363 pinctrl-0 = <&pinctrl_usdhc1>;
364 cd-gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
374 pinctrl-names = "default";
375 pinctrl-0 = <&pinctrl_usdhc2>;
378 mmc-pwrseq = <&usdhc2_wifi_pwrseq>;
380 #address-cells = <1>;
385 compatible = "brcm,bcm4329-fmac";
390 pinctrl-names = "default";
391 pinctrl-0 = <&pinctrl_usdhc3>;
401 pinctrl_can1: can1grp {
403 MX6QDL_PAD_KEY_ROW2__FLEXCAN1_RX 0x1b000
404 MX6QDL_PAD_KEY_COL2__FLEXCAN1_TX 0x3008
406 MX6QDL_PAD_KEY_COL3__GPIO4_IO12 0x13008
410 pinctrl_can2: can2grp {
413 MX6QDL_PAD_DISP0_DAT4__GPIO4_IO25 0x1b0b1
415 MX6QDL_PAD_KEY_ROW3__GPIO4_IO13 0x13070
419 pinctrl_ecspi2: ecspi2grp {
421 MX6QDL_PAD_EIM_OE__ECSPI2_MISO 0x100b1
422 MX6QDL_PAD_EIM_CS0__ECSPI2_SCLK 0x100b1
423 MX6QDL_PAD_EIM_CS1__ECSPI2_MOSI 0x100b1
424 MX6QDL_PAD_EIM_RW__GPIO2_IO26 0x000b1
428 pinctrl_ecspi3: ecspi3grp {
430 MX6QDL_PAD_DISP0_DAT0__ECSPI3_SCLK 0x100b1
431 MX6QDL_PAD_DISP0_DAT1__ECSPI3_MOSI 0x100b1
432 MX6QDL_PAD_DISP0_DAT2__ECSPI3_MISO 0x100b1
434 MX6QDL_PAD_DISP0_DAT3__GPIO4_IO24 0x000b1
438 pinctrl_enet: enetgrp {
440 MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b030
441 MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b030
442 MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b030
443 MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b030
444 MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b030
445 MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b030
446 MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x10030
447 MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x10030
448 MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x10030
449 MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x10030
450 MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x10030
451 MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x10030
453 MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x10030
454 MX6QDL_PAD_ENET_MDC__ENET_MDC 0x10030
456 /* Configure clock provider for RGMII ref clock */
457 MX6QDL_PAD_GPIO_16__ENET_REF_CLK 0x4001b0b0
458 /* Configure clock consumer for RGMII ref clock */
459 MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x10030
461 /* SJA1105Q switch reset */
462 MX6QDL_PAD_DISP0_DAT11__GPIO5_IO05 0x10030
464 /* phy3/rgmii_phy reset */
465 MX6QDL_PAD_ENET_CRS_DV__GPIO1_IO25 0x10030
466 /* phy3/rgmii_phy int */
467 MX6QDL_PAD_ENET_TX_EN__GPIO1_IO28 0x40010000
471 pinctrl_i2c1: i2c1grp {
473 MX6QDL_PAD_CSI0_DAT8__I2C1_SDA 0x4001f8b1
474 MX6QDL_PAD_CSI0_DAT9__I2C1_SCL 0x4001f8b1
478 pinctrl_mdio: mdiogrp {
480 /* phy0/usbeth_phy reset */
481 MX6QDL_PAD_DISP0_DAT17__GPIO5_IO11 0x10030
482 /* phy0/usbeth_phy int */
483 MX6QDL_PAD_DISP0_DAT18__GPIO5_IO12 0x100b1
485 /* phy12/tja1102_phy0 reset */
486 MX6QDL_PAD_DISP0_DAT15__GPIO5_IO09 0x10030
487 /* phy12/tja1102_phy0 int */
488 MX6QDL_PAD_DISP0_DAT14__GPIO5_IO08 0x100b1
489 /* phy12/tja1102_phy0 enable. Set 100K pull-up */
490 MX6QDL_PAD_DISP0_DAT16__GPIO5_IO10 0x1f030
494 pinctrl_uart4: uart4grp {
496 MX6QDL_PAD_KEY_COL0__UART4_TX_DATA 0x1b0b1
497 MX6QDL_PAD_KEY_ROW0__UART4_RX_DATA 0x1b0b1
501 pinctrl_usbotg: usbotggrp {
503 MX6QDL_PAD_EIM_D21__USB_OTG_OC 0x1b0b0
504 MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x1b0b0
508 pinctrl_usdhc1: usdhc1grp {
510 MX6QDL_PAD_SD1_CMD__SD1_CMD 0x170f9
511 MX6QDL_PAD_SD1_CLK__SD1_CLK 0x100f9
512 MX6QDL_PAD_SD1_DAT0__SD1_DATA0 0x170f9
513 MX6QDL_PAD_SD1_DAT1__SD1_DATA1 0x170f9
514 MX6QDL_PAD_SD1_DAT2__SD1_DATA2 0x170f9
515 MX6QDL_PAD_SD1_DAT3__SD1_DATA3 0x170f9
516 MX6QDL_PAD_GPIO_1__GPIO1_IO01 0x1b0b0
520 pinctrl_usdhc2: usdhc2grp {
522 MX6QDL_PAD_SD2_CMD__SD2_CMD 0x170b9
523 MX6QDL_PAD_SD2_CLK__SD2_CLK 0x100b9
524 MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x170b9
525 MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x170b9
526 MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x170b9
527 MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x170b9
531 pinctrl_usdhc3: usdhc3grp {
533 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17099
534 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x10099
535 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17099
536 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17099
537 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17099
538 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17099
539 MX6QDL_PAD_SD3_DAT4__SD3_DATA4 0x17099
540 MX6QDL_PAD_SD3_DAT5__SD3_DATA5 0x17099
541 MX6QDL_PAD_SD3_DAT6__SD3_DATA6 0x17099
542 MX6QDL_PAD_SD3_DAT7__SD3_DATA7 0x17099
543 MX6QDL_PAD_SD3_RST__SD3_RESET 0x1b0b1
547 pinctrl_wifi_npd: wifinpd {
550 MX6QDL_PAD_NANDF_RB0__GPIO6_IO10 0x13069