1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/leds/common.h>
11 model = "H3C Magic NX30 Pro";
12 compatible = "h3c,magic-nx30-pro", "mediatek,mt7981";
16 led-boot = &led_status_green;
17 led-failsafe = &led_status_red;
18 led-running = &led_status_green;
19 led-upgrade = &led_status_red;
23 stdout-path = "serial0:115200n8";
27 reg = <0 0x40000000 0 0x10000000>;
31 compatible = "gpio-keys";
35 linux,code = <KEY_RESTART>;
36 gpios = <&pio 1 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_WPS_BUTTON>;
42 gpios = <&pio 0 GPIO_ACTIVE_LOW>;
47 compatible = "gpio-leds";
49 led_status_green: green {
50 function = LED_FUNCTION_STATUS;
51 color = <LED_COLOR_ID_GREEN>;
52 gpios = <&pio 4 GPIO_ACTIVE_LOW>;
56 function = LED_FUNCTION_STATUS;
57 color = <LED_COLOR_ID_RED>;
58 gpios = <&pio 5 GPIO_ACTIVE_LOW>;
67 compatible = "mediatek,eth-mac";
69 phy-mode = "2500base-x";
79 compatible = "mediatek,eth-mac";
82 phy-handle = <&int_gbe_phy>;
88 compatible = "mediatek,mt7531";
90 reset-gpios = <&pio 39 GPIO_ACTIVE_HIGH>;
92 #interrupt-cells = <1>;
93 interrupt-parent = <&pio>;
94 interrupts = <38 IRQ_TYPE_LEVEL_HIGH>;
99 pinctrl-names = "default";
100 pinctrl-0 = <&spi0_flash_pins>;
104 compatible = "spi-nand";
105 #address-cells = <1>;
109 spi-max-frequency = <52000000>;
110 spi-tx-bus-width = <4>;
111 spi-rx-bus-width = <4>;
114 compatible = "fixed-partitions";
115 #address-cells = <1>;
120 reg = <0x0000000 0x0100000>;
125 label = "u-boot-env";
126 reg = <0x0100000 0x0080000>;
129 factory: partition@180000 {
131 reg = <0x0180000 0x0200000>;
137 reg = <0x0380000 0x0200000>;
143 reg = <0x0580000 0x4000000>;
146 /* yaffs partition */
149 reg = <0x4580000 0x0600000>;
153 /* yaffs partition */
155 label = "pdt_data_1";
156 reg = <0x4b80000 0x0600000>;
162 reg = <0x5180000 0x0100000>;
168 reg = <0x5280000 0x2580000>;
177 #address-cells = <1>;
198 phy-mode = "2500base-x";
210 spi0_flash_pins: spi0-pins {
213 groups = "spi0", "spi0_wp_hold";
217 pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
218 drive-strength = <8>;
219 mediatek,pull-up-adv = <0>; /* bias-disable */
223 pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
224 drive-strength = <8>;
225 mediatek,pull-up-adv = <0>; /* bias-disable */
241 mediatek,mtd-eeprom = <&factory 0x0>;