1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/leds/common.h>
8 #include "mt7986a.dtsi"
13 led-boot = &led_status_rgb;
14 led-failsafe = &led_status_rgb;
15 led-running = &led_status_rgb;
16 led-upgrade = &led_status_rgb;
20 stdout-path = "serial0:115200n8";
24 reg = <0 0x40000000 0 0x20000000>;
28 compatible = "gpio-keys";
32 gpios = <&pio 9 GPIO_ACTIVE_LOW>;
33 linux,code = <KEY_RESTART>;
38 gpios = <&pio 10 GPIO_ACTIVE_LOW>;
40 linux,input-type = <EV_SW>;
53 compatible = "mediatek,eth-mac";
55 phy-mode = "2500base-x";
57 nvmem-cells = <&macaddr_factory_4 (-1)>;
58 nvmem-cell-names = "mac-address";
75 compatible = "mediatek,mt7531";
77 reset-gpios = <&pio 5 GPIO_ACTIVE_HIGH>;
79 #interrupt-cells = <1>;
80 interrupt-parent = <&pio>;
81 interrupts = <66 IRQ_TYPE_LEVEL_HIGH>;
86 spi_flash_pins: spi-flash-pins-33-to-38 {
89 groups = "spi0", "spi0_wp_hold";
92 pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
94 mediatek,pull-up-adv = <0>; /* bias-disable */
97 pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
99 mediatek,pull-down-adv = <0>; /* bias-disable */
103 spi_led_pins: spic-pins-29-to-32 {
110 wf_2g_5g_pins: wf_2g_5g-pins {
113 groups = "wf_2g", "wf_5g";
116 pins = "WF0_HB1", "WF0_HB2", "WF0_HB3", "WF0_HB4",
117 "WF0_HB0", "WF0_HB0_B", "WF0_HB5", "WF0_HB6",
118 "WF0_HB7", "WF0_HB8", "WF0_HB9", "WF0_HB10",
119 "WF0_TOP_CLK", "WF0_TOP_DATA", "WF1_HB1",
120 "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
121 "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
122 "WF1_TOP_CLK", "WF1_TOP_DATA";
123 drive-strength = <4>;
129 pinctrl-names = "default";
130 pinctrl-0 = <&spi_flash_pins>;
133 spi_nand_flash: flash@0 {
134 compatible = "spi-nand";
135 #address-cells = <1>;
139 spi-max-frequency = <20000000>;
140 spi-tx-bus-width = <4>;
141 spi-rx-bus-width = <4>;
143 partitions: partitions {
144 compatible = "fixed-partitions";
145 #address-cells = <1>;
150 reg = <0x0 0x100000>;
156 reg = <0x100000 0x40000>;
161 reg = <0x140000 0x40000>;
164 factory: partition@180000 {
166 reg = <0x180000 0x200000>;
170 compatible = "fixed-layout";
171 #address-cells = <1>;
174 macaddr_factory_4: macaddr@4 {
175 compatible = "mac-base";
177 #nvmem-cell-cells = <1>;
184 reg = <0x380000 0x200000>;
192 pinctrl-names = "default";
193 pinctrl-0 = <&spi_led_pins>;
197 #address-cells = <1>;
199 compatible = "worldsemi,ws2812b";
201 spi-max-frequency = <3000000>;
203 led_status_rgb: led@0 {
205 label = "rgb:status";
206 color-index = <LED_COLOR_ID_RED LED_COLOR_ID_GREEN LED_COLOR_ID_BLUE>;
209 led_network_rgb: led@1 {
211 label = "rgb:network";
212 color-index = <LED_COLOR_ID_RED LED_COLOR_ID_GREEN LED_COLOR_ID_BLUE>;
219 #address-cells = <1>;
245 phy-mode = "2500base-x";
270 pinctrl-names = "default";
271 pinctrl-0 = <&wf_2g_5g_pins>;
273 mediatek,mtd-eeprom = <&factory 0x0>;