1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
9 bootargs = "console=ttyS0,115200n8 root=PARTLABEL=rootfs rootwait";
13 label-mac-device = &gmac0;
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
20 reg_5v: regulator-5v {
21 compatible = "regulator-fixed";
22 regulator-name = "fixed-5V";
23 regulator-min-microvolt = <5000000>;
24 regulator-max-microvolt = <5000000>;
29 fan_5v: regulator-fan-5v {
30 compatible = "regulator-fixed";
31 regulator-name = "fan";
32 regulator-min-microvolt = <5000000>;
33 regulator-max-microvolt = <5000000>;
34 gpio = <&pio 28 GPIO_ACTIVE_HIGH>;
39 compatible = "gpio-keys";
43 linux,code = <KEY_RESTART>;
44 gpios = <&pio 1 GPIO_ACTIVE_LOW>;
49 compatible = "gpio-export";
52 gpio-export,name = "hub_power";
53 gpio-export,output = <1>;
54 gpios = <&pio 5 GPIO_ACTIVE_HIGH>;
58 gpio-export,name = "5G_power";
59 gpio-export,output = <1>;
60 gpios = <&pio 11 GPIO_ACTIVE_HIGH>;
64 gpio-export,name = "5G_control";
65 gpio-export,output = <1>;
66 gpios = <&pio 9 GPIO_ACTIVE_HIGH>;
70 gpio-export,name = "5G_reset";
71 gpio-export,output = <0>;
72 gpios = <&pio 10 GPIO_ACTIVE_HIGH>;
77 compatible = "gpio-leds";
80 label = "green:wifi2g";
81 gpios = <&pio 30 GPIO_ACTIVE_LOW>;
85 label = "green:wifi5g";
86 gpios = <&pio 38 GPIO_ACTIVE_LOW>;
90 label = "green:5g:led1";
91 gpios = <&pio 6 GPIO_ACTIVE_LOW>;
95 label = "green:5g:led2";
96 gpios = <&pio 7 GPIO_ACTIVE_LOW>;
100 label = "green:5g:led3";
101 gpios = <&pio 8 GPIO_ACTIVE_LOW>;
105 label = "green:5g:led4";
106 gpios = <&pio 4 GPIO_ACTIVE_HIGH>;
110 label = "green:power";
111 gpios = <&pio 39 GPIO_ACTIVE_LOW>;
116 gpios = <&pio 31 GPIO_ACTIVE_LOW>;
130 pinctrl-names = "default", "state_uhs";
131 pinctrl-0 = <&mmc0_pins_default>;
132 pinctrl-1 = <&mmc0_pins_uhs>;
134 max-frequency = <52000000>;
136 vmmc-supply = <®_3p3v>;
141 compatible = "mmc-card";
145 compatible = "block-device";
147 block-partition-env {
148 partname = "u-boot-env";
151 compatible = "u-boot,env-layout";
155 block-partition-factory {
156 partname = "factory";
159 compatible = "fixed-layout";
160 #address-cells = <1>;
163 eeprom_factory_0: eeprom@0 {
167 macaddr_factory_a: macaddr@a {
168 compatible = "mac-base";
170 #nvmem-cell-cells = <1>;
180 reset-gpios = <&pio 14 GPIO_ACTIVE_LOW>;
181 reset-delay-us = <600>;
182 reset-post-delay-us = <20000>;
184 phy5: ethernet-phy@5 {
186 compatible = "ethernet-phy-ieee802.3-c45";
194 compatible = "mediatek,eth-mac";
196 phy-mode = "2500base-x";
197 phy-handle = <&phy5>;
198 nvmem-cells = <&macaddr_factory_a 0>;
199 nvmem-cell-names = "mac-address";
203 compatible = "mediatek,eth-mac";
206 phy-handle = <&int_gbe_phy>;
207 nvmem-cells = <&macaddr_factory_a 1>;
208 nvmem-cell-names = "mac-address";
213 mmc0_pins_default: mmc0-pins-default {
219 mmc0_pins_uhs: mmc0-pins-uhs {
225 pcie_pins: pcie-pins {
228 groups = "pcie_pereset", "pcie_clk", "pcie_wake";
231 pwm0_pin: pwm0-pin-g0 {
240 phys = <&u2port0 PHY_TYPE_USB2>;
241 vbus-supply = <®_5v>;
242 mediatek,u3p-dis-msk = <0x01>;
251 pinctrl-names = "default";
252 pinctrl-0 = <&pcie_pins>;
257 pinctrl-names = "default";
258 pinctrl-0 = <&pwm0_pin>;
262 nvmem-cells = <&eeprom_factory_0>;
263 nvmem-cell-names = "eeprom";
268 pwms = <&pwm 0 40000 0>;
269 fan-supply = <&fan_5v>;
270 interrupt-parent = <&pio>;
271 interrupts = <29 IRQ_TYPE_EDGE_RISING>;