1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
6 #include <dt-bindings/gpio/gpio.h>
12 model = "TP-Link TL-XDR3230 v1";
13 compatible = "tplink,tl-xdr3230-v1", "mediatek,mt7622";
17 label-mac-device = &gmac0;
18 led-boot = &led_status;
19 led-failsafe = &led_status;
20 led-running = &led_status;
21 led-upgrade = &led_status;
26 stdout-path = "serial0:115200n8";
27 bootargs = "earlycon=uart8250,mmio32,0x11002000 swiotlb=512 root=/dev/fit0";
28 rootdisk = <&rootdisk>;
33 proc-supply = <&mt6380_vcpu_reg>;
34 sram-supply = <&mt6380_vm_reg>;
38 proc-supply = <&mt6380_vcpu_reg>;
39 sram-supply = <&mt6380_vm_reg>;
44 compatible = "gpio-leds";
45 led_status: green_status {
46 function = LED_FUNCTION_STATUS;
47 color = <LED_COLOR_ID_GREEN>;
48 gpios = <&pio 89 GPIO_ACTIVE_HIGH>;
53 function = LED_FUNCTION_STATUS;
54 color = <LED_COLOR_ID_RED>;
55 gpios = <&pio 90 GPIO_ACTIVE_HIGH>;
60 compatible = "gpio-keys";
64 /* It seems that reset isn't connected to any MT7622 GPIO. Here's the WPS button. */
67 gpios = <&pio 102 GPIO_ACTIVE_LOW>;
68 linux,code = <KEY_RESTART>;
73 compatible = "mediatek,rtk-gsw";
74 mediatek,ethsys = <ðsys>;
75 mediatek,mdio = <&mdio>;
76 mediatek,reset-pin = <&pio 54 0>;
83 pinctrl-names = "default";
84 pinctrl-0 = <ð_pins>;
87 compatible = "mediatek,eth-mac";
89 nvmem-cells = <&macaddr_factory_4>;
90 nvmem-cell-names = "mac-address";
91 phy-connection-type = "2500base-x";
100 compatible = "mediatek,eth-mac";
103 nvmem-cells = <&macaddr_factory_4>;
104 nvmem-cell-names = "mac-address";
105 mac-address-increment = <1>;
114 #address-cells = <1>;
122 pinctrl-names = "default";
123 pinctrl-0 = <&pcie0_pins>;
128 reg = <0x0000 0 0 0 0>;
129 mediatek,mtd-eeprom = <&factory 0x1000>;
130 ieee80211-freq-limit = <5000000 6000000>;
135 epa_elna_pins: epa-elna-pins {
138 groups = "antsel0", "antsel1", "antsel2", "antsel3",
139 "antsel4", "antsel5", "antsel6", "antsel7",
140 "antsel8", "antsel9", "antsel12", "antsel13",
141 "antsel14", "antsel15", "antsel16", "antsel17";
148 groups = "mdc_mdio", "rgmii_via_gmac2";
152 pcie0_pins: pcie0-pins {
155 groups = "pcie0_pad_perst",
161 pmic_bus_pins: pmic-bus-pins {
168 spi_nor_pins: spi-nor-pins {
175 uart0_pins: uart0-pins {
178 groups = "uart0_0_tx_rx";
182 watchdog_pins: watchdog-pins {
184 function = "watchdog";
193 pinctrl-names = "default";
194 pinctrl-0 = <&pmic_bus_pins>;
200 pinctrl-names = "default";
201 pinctrl-0 = <&spi_nor_pins>;
204 compatible = "jedec,spi-nor";
206 spi-tx-bus-width = <4>;
207 spi-rx-bus-width = <4>;
208 spi-max-frequency = <50000000>;
210 mtdparts: partitions {
211 compatible = "fixed-partitions";
212 #address-cells = <1>;
223 reg = <0x20000 0x40000>;
228 label = "u-boot-env";
229 reg = <0x60000 0x10000>;
232 factory: partition@70000 {
234 reg = <0x70000 0x10000>;
238 rootdisk: partition@80000 {
239 compatible = "denx,fit";
254 pinctrl-names = "default";
255 pinctrl-0 = <&uart0_pins>;
261 pinctrl-names = "default";
262 pinctrl-0 = <&watchdog_pins>;
268 pinctrl-names = "default";
269 pinctrl-0 = <&epa_elna_pins>;
270 mediatek,mtd-eeprom = <&factory 0x0>;
274 compatible = "nvmem-cells";
275 #address-cells = <1>;
278 macaddr_factory_4: macaddr@4 {