1 // SPDX-License-Identifier: (GPL-2.0-only OR MIT)
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/gpio/gpio.h>
11 model = "TOTOLINK A8000RU";
12 compatible = "totolink,a8000ru", "mediatek,mt7622";
15 label-mac-device = &gmac0;
16 led-boot = &led_status;
17 led-failsafe = &led_status;
18 led-running = &led_status;
19 led-upgrade = &led_status;
24 stdout-path = "serial0:115200n8";
25 bootargs = "earlycon=uart8250,mmio32,0x11002000 swiotlb=512";
30 proc-supply = <&mt6380_vcpu_reg>;
31 sram-supply = <&mt6380_vm_reg>;
35 proc-supply = <&mt6380_vcpu_reg>;
36 sram-supply = <&mt6380_vm_reg>;
41 compatible = "gpio-keys";
45 linux,code = <KEY_RESTART>;
46 gpios = <&pio 0 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_WPS_BUTTON>;
52 gpios = <&pio 102 GPIO_ACTIVE_LOW>;
57 compatible = "gpio-leds";
59 led_status: status_red {
61 gpios = <&pio 81 GPIO_ACTIVE_LOW>;
66 reg_1p8v: regulator-1p8v {
67 compatible = "regulator-fixed";
68 regulator-name = "fixed-1.8V";
69 regulator-min-microvolt = <1800000>;
70 regulator-max-microvolt = <1800000>;
74 reg_3p3v: regulator-3p3v {
75 compatible = "regulator-fixed";
76 regulator-name = "fixed-3.3V";
77 regulator-min-microvolt = <3300000>;
78 regulator-max-microvolt = <3300000>;
83 reg_5v: regulator-5v {
84 compatible = "regulator-fixed";
85 regulator-name = "fixed-5V";
86 regulator-min-microvolt = <5000000>;
87 regulator-max-microvolt = <5000000>;
93 compatible = "mediatek,rtk-gsw";
94 mediatek,ethsys = <ðsys>;
95 mediatek,mdio = <&mdio>;
96 mediatek,reset-pin = <&pio 54 0>;
102 pinctrl-names = "default";
103 pinctrl-0 = <&pcie0_pins>;
109 reg = <0x0000 0 0 0 0>;
110 mediatek,mtd-eeprom = <&factory 0x5000>;
111 ieee80211-freq-limit = <5490000 6000000>;
116 pinctrl-names = "default";
117 pinctrl-0 = <&pcie1_pins>;
123 reg = <0x0000 0 0 0 0>;
124 mediatek,mtd-eeprom = <&factory 0x10000>;
125 ieee80211-freq-limit = <5000000 5490000>;
133 groups = "mdc_mdio", "rgmii_via_gmac2";
137 pcie0_pins: pcie0-pins {
140 groups = "pcie0_pad_perst",
146 pcie1_pins: pcie1-pins {
149 groups = "pcie1_pad_perst",
155 pmic_bus_pins: pmic-bus-pins {
162 /* serial NAND is shared pin with SPI-NOR */
163 serial_nand_pins: serial-nand-pins {
170 uart0_pins: uart0-pins {
173 groups = "uart0_0_tx_rx" ;
177 watchdog_pins: watchdog-pins {
179 function = "watchdog";
184 epa_elna_pins: epa-elna-pins {
187 groups = "antsel0", "antsel1", "antsel2", "antsel3",
188 "antsel4", "antsel5", "antsel6", "antsel7",
189 "antsel8", "antsel9", "antsel12", "antsel13",
190 "antsel14", "antsel15", "antsel16", "antsel17";
197 pinctrl-names = "default";
198 pinctrl-0 = <ð_pins>;
201 compatible = "mediatek,eth-mac";
203 nvmem-cells = <&macaddr_factory_2a>;
204 nvmem-cell-names = "mac-address";
205 phy-connection-type = "2500base-x";
214 compatible = "mediatek,eth-mac";
217 nvmem-cells = <&macaddr_factory_24>;
218 nvmem-cell-names = "mac-address";
227 #address-cells = <1>;
233 pinctrl-names = "default";
234 pinctrl-0 = <&pmic_bus_pins>;
243 pinctrl-names = "default";
244 pinctrl-0 = <&serial_nand_pins>;
247 compatible = "spi-nand";
249 spi-tx-bus-width = <4>;
250 spi-rx-bus-width = <4>;
251 nand-ecc-engine = <&snfi>;
255 compatible = "fixed-partitions";
256 #address-cells = <1>;
267 reg = <0x80000 0x40000>;
273 reg = <0xc0000 0x80000>;
278 label = "u-boot-env";
279 reg = <0x140000 0x80000>;
283 factory: partition@1c0000 {
285 reg = <0x1c0000 0x40000>;
289 compatible = "fixed-layout";
290 #address-cells = <1>;
293 macaddr_factory_24: macaddr@24 {
297 macaddr_factory_2a: macaddr@2a {
305 reg = <0x200000 0x6400000>;
310 reg = <0x6600000 0x100000>;
313 /* size of this partition varies due to BMT & bad blocks. */
323 vusb33-supply = <®_3p3v>;
324 vbus-supply = <®_5v>;
333 pinctrl-names = "default";
334 pinctrl-0 = <&uart0_pins>;
339 pinctrl-names = "default";
340 pinctrl-0 = <&watchdog_pins>;
345 pinctrl-names = "default";
346 pinctrl-0 = <&epa_elna_pins>;
347 mediatek,mtd-eeprom = <&factory 0x0>;