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>;
49 compatible = "mediatek,eth-mac";
51 phy-mode = "2500base-x";
53 nvmem-cells = <&macaddr_factory_4>;
54 nvmem-cell-names = "mac-address";
55 mac-address-increment = <(-1)>;
72 compatible = "mediatek,mt7531";
74 reset-gpios = <&pio 5 GPIO_ACTIVE_HIGH>;
76 #interrupt-cells = <1>;
77 interrupt-parent = <&pio>;
78 interrupts = <66 IRQ_TYPE_LEVEL_HIGH>;
83 spi_flash_pins: spi-flash-pins-33-to-38 {
86 groups = "spi0", "spi0_wp_hold";
89 pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
91 mediatek,pull-up-adv = <0>; /* bias-disable */
94 pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
96 mediatek,pull-down-adv = <0>; /* bias-disable */
100 spi_led_pins: spic-pins-29-to-32 {
107 wf_2g_5g_pins: wf_2g_5g-pins {
110 groups = "wf_2g", "wf_5g";
113 pins = "WF0_HB1", "WF0_HB2", "WF0_HB3", "WF0_HB4",
114 "WF0_HB0", "WF0_HB0_B", "WF0_HB5", "WF0_HB6",
115 "WF0_HB7", "WF0_HB8", "WF0_HB9", "WF0_HB10",
116 "WF0_TOP_CLK", "WF0_TOP_DATA", "WF1_HB1",
117 "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
118 "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
119 "WF1_TOP_CLK", "WF1_TOP_DATA";
120 drive-strength = <4>;
126 pinctrl-names = "default";
127 pinctrl-0 = <&spi_flash_pins>;
130 spi_nand_flash: flash@0 {
131 compatible = "spi-nand";
132 #address-cells = <1>;
136 spi-max-frequency = <20000000>;
137 spi-tx-buswidth = <4>;
138 spi-rx-buswidth = <4>;
140 partitions: partitions {
141 compatible = "fixed-partitions";
142 #address-cells = <1>;
147 reg = <0x0 0x100000>;
153 reg = <0x100000 0x40000>;
158 reg = <0x140000 0x40000>;
161 factory: partition@180000 {
163 reg = <0x180000 0x200000>;
166 compatible = "nvmem-cells";
167 #address-cells = <1>;
170 macaddr_factory_4: macaddr@4 {
177 reg = <0x380000 0x200000>;
185 pinctrl-names = "default";
186 pinctrl-0 = <&spi_led_pins>;
190 #address-cells = <1>;
192 compatible = "worldsemi,ws2812b";
194 spi-max-frequency = <3000000>;
196 led_status_rgb: led@0 {
198 label = "rgb:status";
199 color-index = <LED_COLOR_ID_RED LED_COLOR_ID_GREEN LED_COLOR_ID_BLUE>;
202 led_network_rgb: led@1 {
204 label = "rgb:network";
205 color-index = <LED_COLOR_ID_RED LED_COLOR_ID_GREEN LED_COLOR_ID_BLUE>;
212 #address-cells = <1>;
239 phy-mode = "2500base-x";
252 pinctrl-names = "default";
253 pinctrl-0 = <&wf_2g_5g_pins>;
255 mediatek,mtd-eeprom = <&factory 0x0>;