1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
8 model = "Zbtlink ZBT-Z8102AX";
9 compatible = "zbtlink,zbt-z8102ax", "mediatek,mt7981";
13 led-boot = &led_status_green;
14 led-failsafe = &led_status_red;
15 led-running = &led_status_green;
16 led-upgrade = &led_status_green;
17 label-mac-device = &gmac0;
21 stdout-path = "serial0:115200n8";
22 bootargs = "earlycon=uart8250,mmio32,0x11002000 console=ttyS0,115200n8 loglevel=8";
26 reg = <0 0x40000000 0 0x40000000>;
30 compatible = "gpio-keys";
34 linux,code = <KEY_RESTART>;
35 gpios = <&pio 1 GPIO_ACTIVE_LOW>;
41 gpios = <&pio 0 GPIO_ACTIVE_HIGH>;
47 gpios = <&pio 12 GPIO_ACTIVE_HIGH>;
52 compatible = "gpio-leds";
56 gpios = <&pio 9 GPIO_ACTIVE_HIGH>;
57 color = <LED_COLOR_ID_RED>;
58 function = LED_FUNCTION_STATUS;
61 led_status_green: green {
62 label = "green:status";
63 gpios = <&pio 10 GPIO_ACTIVE_LOW>;
64 color = <LED_COLOR_ID_GREEN>;
65 function = LED_FUNCTION_STATUS;
69 label = "blue:status";
70 gpios = <&pio 11 GPIO_ACTIVE_LOW>;
71 color = <LED_COLOR_ID_BLUE>;
72 function = LED_FUNCTION_STATUS;
77 gpios = <&pio 8 GPIO_ACTIVE_LOW>;
78 color = <LED_COLOR_ID_BLUE>;
79 function = LED_FUNCTION_USB;
80 function-enumerator = <0>;
85 gpios = <&pio 14 GPIO_ACTIVE_LOW>;
86 color = <LED_COLOR_ID_BLUE>;
87 function = LED_FUNCTION_USB;
88 function-enumerator = <1>;
93 compatible = "linux,wdt-gpio";
94 gpios = <&pio 2 GPIO_ACTIVE_HIGH>;
96 hw_margin_ms = <1000>;
100 compatible = "gpio-export";
104 gpio-export,name = "pcie_power";
105 gpio-export,output = <1>;
106 gpios = <&pio 3 GPIO_ACTIVE_HIGH>;
110 gpio-export,name = "5g1";
111 gpio-export,output = <1>;
112 gpios = <&pio 4 GPIO_ACTIVE_HIGH>;
116 gpio-export,name = "5g2";
117 gpio-export,output = <1>;
118 gpios = <&pio 5 GPIO_ACTIVE_HIGH>;
122 gpio-export,name = "sim1";
123 gpio-export,output = <1>;
124 gpios = <&pio 6 GPIO_ACTIVE_HIGH>;
128 gpio-export,name = "sim2";
129 gpio-export,output = <1>;
130 gpios = <&pio 7 GPIO_ACTIVE_HIGH>;
140 compatible = "mediatek,eth-mac";
142 phy-mode = "2500base-x";
144 nvmem-cell-names = "mac-address";
145 nvmem-cells = <&macaddr_factory_4 2>;
156 compatible = "mediatek,eth-mac";
159 phy-handle = <&int_gbe_phy>;
161 nvmem-cell-names = "mac-address";
162 nvmem-cells = <&macaddr_factory_4 3>;
168 compatible = "mediatek,mt7531";
170 reset-gpios = <&pio 39 GPIO_ACTIVE_HIGH>;
171 interrupt-controller;
172 #interrupt-cells = <1>;
173 interrupt-parent = <&pio>;
174 interrupts = <38 IRQ_TYPE_LEVEL_HIGH>;
179 pinctrl-names = "default";
180 pinctrl-0 = <&spi0_flash_pins>;
184 compatible = "spi-nand";
185 #address-cells = <1>;
189 spi-max-frequency = <52000000>;
190 spi-tx-bus-width = <4>;
191 spi-rx-bus-width = <4>;
194 mediatek,bmt-max-ratio = <1>;
195 mediatek,bmt-max-reserved-blocks = <64>;
198 compatible = "fixed-partitions";
199 #address-cells = <1>;
204 reg = <0x0000000 0x0100000>;
209 label = "u-boot-env";
210 reg = <0x100000 0x80000>;
215 reg = <0x180000 0x200000>;
219 compatible = "fixed-layout";
220 #address-cells = <1>;
223 eeprom_factory: eeprom@0 {
227 macaddr_factory_4: macaddr@4 {
228 compatible = "mac-base";
230 #nvmem-cell-cells = <1>;
237 reg = <0x380000 0x200000>;
243 reg = <0x580000 0x4000000>;
251 #address-cells = <1>;
278 phy-mode = "2500base-x";
290 spi0_flash_pins: spi0-pins {
293 groups = "spi0", "spi0_wp_hold";
297 pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
298 drive-strength = <8>;
299 bias-pull-up = <103>;
303 pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
304 drive-strength = <8>;
305 bias-pull-down = <103>;
329 nvmem-cells = <&eeprom_factory>;
330 nvmem-cell-names = "eeprom";