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>
10 model = "H3C Magic NX30 Pro";
11 compatible = "h3c,magic-nx30-pro", "mediatek,mt7981";
15 led-boot = &led_status_green;
16 led-failsafe = &led_status_red;
17 led-running = &led_status_green;
18 led-upgrade = &led_status_red;
22 stdout-path = "serial0:115200n8";
26 reg = <0 0x40000000 0 0x10000000>;
30 compatible = "gpio-keys";
34 linux,code = <KEY_RESTART>;
35 gpios = <&pio 1 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_WPS_BUTTON>;
41 gpios = <&pio 0 GPIO_ACTIVE_LOW>;
46 compatible = "gpio-leds";
48 led_status_green: green {
49 label = "green:status";
50 gpios = <&pio 4 GPIO_ACTIVE_LOW>;
55 gpios = <&pio 5 GPIO_ACTIVE_LOW>;
64 compatible = "mediatek,eth-mac";
66 phy-mode = "2500base-x";
76 compatible = "mediatek,eth-mac";
79 phy-handle = <&int_gbe_phy>;
85 compatible = "mediatek,mt7531";
87 reset-gpios = <&pio 39 GPIO_ACTIVE_HIGH>;
89 #interrupt-cells = <1>;
90 interrupt-parent = <&pio>;
91 interrupts = <38 IRQ_TYPE_LEVEL_HIGH>;
96 pinctrl-names = "default";
97 pinctrl-0 = <&spi0_flash_pins>;
101 compatible = "spi-nand";
102 #address-cells = <1>;
106 spi-max-frequency = <52000000>;
107 spi-tx-bus-width = <4>;
108 spi-rx-bus-width = <4>;
111 compatible = "fixed-partitions";
112 #address-cells = <1>;
117 reg = <0x0000000 0x0100000>;
122 label = "u-boot-env";
123 reg = <0x0100000 0x0080000>;
126 factory: partition@180000 {
128 reg = <0x0180000 0x0200000>;
134 reg = <0x0380000 0x0200000>;
140 reg = <0x0580000 0x4000000>;
143 /* yaffs partition */
146 reg = <0x4580000 0x0600000>;
150 /* yaffs partition */
152 label = "pdt_data_1";
153 reg = <0x4b80000 0x0600000>;
159 reg = <0x5180000 0x0100000>;
165 reg = <0x5280000 0x2580000>;
174 #address-cells = <1>;
195 phy-mode = "2500base-x";
207 spi0_flash_pins: spi0-pins {
210 groups = "spi0", "spi0_wp_hold";
214 pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
215 drive-strength = <8>;
216 mediatek,pull-up-adv = <0>; /* bias-disable */
220 pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
221 drive-strength = <8>;
222 mediatek,pull-up-adv = <0>; /* bias-disable */
238 mediatek,mtd-eeprom = <&factory 0x0>;