6 model = "GL.iNet GL-MT3000";
7 compatible = "glinet,gl-mt3000", "mediatek,mt7981";
10 led-boot = &led_lightblue;
11 led-failsafe = &led_lightblue;
12 led-running = &led_white;
13 led-upgrade = &led_lightblue;
18 stdout-path = "serial0:115200n8";
22 compatible = "gpio-keys";
26 linux,code = <KEY_RESTART>;
27 gpios = <&pio 1 GPIO_ACTIVE_LOW>;
32 linux,input-type = <EV_SW>;
34 gpios = <&pio 0 GPIO_ACTIVE_HIGH>;
35 debounce-interval = <60>;
40 compatible = "gpio-leds";
42 led_lightblue: led@0 {
44 gpios = <&pio 31 GPIO_ACTIVE_LOW>;
48 label = "white:system";
49 gpios = <&pio 30 GPIO_ACTIVE_LOW>;
53 fan_5v: regulator-fan-5v {
54 compatible = "regulator-fixed";
55 regulator-name = "fan";
56 regulator-min-microvolt = <5000000>;
57 regulator-max-microvolt = <5000000>;
58 gpio = <&pio 28 GPIO_ACTIVE_HIGH>;
63 usb_vbus: regulator-usb-vbus {
64 compatible = "regulator-fixed";
65 regulator-name = "usb_vbus";
66 regulator-min-microvolt = <5000000>;
67 regulator-max-microvolt = <5000000>;
68 gpio = <&pio 12 GPIO_ACTIVE_HIGH>;
83 pinctrl-names = "default";
84 pinctrl-0 = <&mdio_pins>;
89 compatible = "mediatek,eth-mac";
91 phy-mode = "2500base-x";
93 nvmem-cells = <&macaddr>;
94 nvmem-cell-names = "mac-address";
98 compatible = "mediatek,eth-mac";
101 phy-handle = <&int_gbe_phy>;
102 nvmem-cells = <&macaddr>;
103 nvmem-cell-names = "mac-address";
104 mac-address-increment = <1>;
109 reset-gpios = <&pio 14 GPIO_ACTIVE_LOW>;
110 reset-delay-us = <600>;
111 reset-post-delay-us = <20000>;
113 phy0: ethernet-phy@5 {
115 compatible = "ethernet-phy-ieee802.3-c45";
116 phy-mode = "2500base-x";
121 pinctrl-names = "default";
122 pinctrl-0 = <&pwm_pins>;
128 pwms = <&pwm 0 40000 0>;
129 fan-supply = <&fan_5v>;
130 interrupt-parent = <&pio>;
131 interrupts = <29 IRQ_TYPE_EDGE_RISING>;
136 pinctrl-names = "default";
137 pinctrl-0 = <&spi0_flash_pins>;
141 #address-cells = <1>;
143 compatible = "spi-nand";
145 spi-max-frequency = <52000000>;
148 spi-cal-mode = "read-data";
149 spi-cal-datalen = <7>;
150 spi-cal-data = /bits/ 8 <0x53 0x50 0x49 0x4E 0x41 0x4E 0x44>;
151 spi-cal-addrlen = <5>;
152 spi-cal-addr = /bits/ 32 <0x0 0x0 0x0 0x0 0x0>;
154 spi-tx-bus-width = <4>;
155 spi-rx-bus-width = <4>;
157 mediatek,bmt-max-ratio = <1>;
158 mediatek,bmt-max-reserved-blocks = <64>;
161 compatible = "fixed-partitions";
162 #address-cells = <1>;
167 reg = <0x00000 0x0100000>;
172 label = "u-boot-env";
173 reg = <0x0100000 0x0080000>;
176 factory: partition@180000 {
178 reg = <0x180000 0x0200000>;
181 compatible = "nvmem-cells";
182 #address-cells = <1>;
192 reg = <0x380000 0x0200000>;
198 reg = <0x580000 0x0040000>;
203 reg = <0x5c0000 0xf640000>;
204 compatible = "linux,ubi";
211 spi0_flash_pins: spi0-pins {
214 groups = "spi0", "spi0_wp_hold";
218 pwm_pins: pwm0-pins {
231 vbus-supply = <&usb_vbus>;
237 mediatek,mtd-eeprom = <&factory 0x0>;