6 model = "GL.iNet GL-MT3000";
7 compatible = "glinet,gl-mt3000", "mediatek,mt7981";
10 label-mac-device = &gmac0;
11 led-boot = &led_lightblue;
12 led-failsafe = &led_lightblue;
13 led-running = &led_white;
14 led-upgrade = &led_lightblue;
19 stdout-path = "serial0:115200n8";
23 compatible = "gpio-keys";
27 linux,code = <KEY_RESTART>;
28 gpios = <&pio 1 GPIO_ACTIVE_LOW>;
33 linux,input-type = <EV_SW>;
35 gpios = <&pio 0 GPIO_ACTIVE_HIGH>;
36 debounce-interval = <60>;
41 compatible = "gpio-leds";
43 led_lightblue: led@0 {
45 gpios = <&pio 31 GPIO_ACTIVE_LOW>;
49 label = "white:system";
50 gpios = <&pio 30 GPIO_ACTIVE_LOW>;
54 fan_5v: regulator-fan-5v {
55 compatible = "regulator-fixed";
56 regulator-name = "fan";
57 regulator-min-microvolt = <5000000>;
58 regulator-max-microvolt = <5000000>;
59 gpio = <&pio 28 GPIO_ACTIVE_HIGH>;
64 usb_vbus: regulator-usb-vbus {
65 compatible = "regulator-fixed";
66 regulator-name = "usb_vbus";
67 regulator-min-microvolt = <5000000>;
68 regulator-max-microvolt = <5000000>;
69 gpio = <&pio 12 GPIO_ACTIVE_HIGH>;
84 pinctrl-names = "default";
85 pinctrl-0 = <&mdio_pins>;
90 compatible = "mediatek,eth-mac";
92 phy-mode = "2500base-x";
94 nvmem-cells = <&macaddr>;
95 nvmem-cell-names = "mac-address";
99 compatible = "mediatek,eth-mac";
102 phy-handle = <&int_gbe_phy>;
103 nvmem-cells = <&macaddr>;
104 nvmem-cell-names = "mac-address";
105 mac-address-increment = <1>;
110 reset-gpios = <&pio 14 GPIO_ACTIVE_LOW>;
111 reset-delay-us = <600>;
112 reset-post-delay-us = <20000>;
114 phy0: ethernet-phy@5 {
116 compatible = "ethernet-phy-ieee802.3-c45";
117 phy-mode = "2500base-x";
122 pinctrl-names = "default";
123 pinctrl-0 = <&pwm_pins>;
129 pwms = <&pwm 0 40000 0>;
130 fan-supply = <&fan_5v>;
131 interrupt-parent = <&pio>;
132 interrupts = <29 IRQ_TYPE_EDGE_RISING>;
137 pinctrl-names = "default";
138 pinctrl-0 = <&spi0_flash_pins>;
142 #address-cells = <1>;
144 compatible = "spi-nand";
146 spi-max-frequency = <52000000>;
149 spi-cal-mode = "read-data";
150 spi-cal-datalen = <7>;
151 spi-cal-data = /bits/ 8 <0x53 0x50 0x49 0x4E 0x41 0x4E 0x44>;
152 spi-cal-addrlen = <5>;
153 spi-cal-addr = /bits/ 32 <0x0 0x0 0x0 0x0 0x0>;
155 spi-tx-bus-width = <4>;
156 spi-rx-bus-width = <4>;
158 mediatek,bmt-max-ratio = <1>;
159 mediatek,bmt-max-reserved-blocks = <64>;
162 compatible = "fixed-partitions";
163 #address-cells = <1>;
168 reg = <0x00000 0x0100000>;
173 label = "u-boot-env";
174 reg = <0x0100000 0x0080000>;
177 factory: partition@180000 {
179 reg = <0x180000 0x0200000>;
182 compatible = "nvmem-cells";
183 #address-cells = <1>;
193 reg = <0x380000 0x0200000>;
199 reg = <0x580000 0x0040000>;
204 reg = <0x5c0000 0xf640000>;
205 compatible = "linux,ubi";
212 spi0_flash_pins: spi0-pins {
215 groups = "spi0", "spi0_wp_hold";
219 pwm_pins: pwm0-pins {
232 vbus-supply = <&usb_vbus>;
238 mediatek,mtd-eeprom = <&factory 0x0>;