4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/leds/common.h>
9 model = "Confiabits MT7981";
10 compatible = "confiabits,mt7981", "mediatek,mt7981";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
21 stdout-path = "serial0:115200n8";
25 compatible = "gpio-keys";
29 linux,input-type = <EV_SW>;
31 gpios = <&pio 0 GPIO_ACTIVE_HIGH>;
32 debounce-interval = <60>;
37 linux,code = <KEY_RESTART>;
38 gpios = <&pio 1 GPIO_ACTIVE_LOW>;
43 compatible = "gpio-leds";
46 color = <LED_COLOR_ID_RED>;
47 function = LED_FUNCTION_WLAN;
48 function-enumerator = <5>;
49 gpios = <&pio 5 GPIO_ACTIVE_LOW>;
50 linux,default-trigger = "phy1tpt";
54 color = <LED_COLOR_ID_RED>;
55 function = LED_FUNCTION_WAN;
56 gpios = <&pio 6 GPIO_ACTIVE_LOW>;
59 led_power: led-power {
60 label = "blue:power"; // can be removed once #13837 is merged
61 color = <LED_COLOR_ID_BLUE>;
62 function = LED_FUNCTION_POWER;
63 gpios = <&pio 7 GPIO_ACTIVE_LOW>;
67 color = <LED_COLOR_ID_BLUE>;
68 function = LED_FUNCTION_LAN;
69 function-enumerator = <1>;
70 gpios = <&pio 9 GPIO_ACTIVE_LOW>;
74 color = <LED_COLOR_ID_BLUE>;
75 function = LED_FUNCTION_LAN;
76 function-enumerator = <2>;
77 gpios = <&pio 10 GPIO_ACTIVE_LOW>;
81 color = <LED_COLOR_ID_BLUE>;
82 function = LED_FUNCTION_LAN;
83 function-enumerator = <3>;
84 gpios = <&pio 11 GPIO_ACTIVE_LOW>;
88 color = <LED_COLOR_ID_BLUE>;
89 function = LED_FUNCTION_WAN;
90 gpios = <&pio 12 GPIO_ACTIVE_LOW>;
94 color = <LED_COLOR_ID_RED>;
95 function = LED_FUNCTION_WLAN;
96 function-enumerator = <2>;
97 gpios = <&pio 34 GPIO_ACTIVE_LOW>;
98 linux,default-trigger = "phy0tpt";
102 color = <LED_COLOR_ID_BLUE>;
103 function = "mesh"; // no LED_FUNCTION_MESH yet
104 gpios = <&pio 35 GPIO_ACTIVE_LOW>;
118 pinctrl-names = "default";
119 pinctrl-0 = <&mdio_pins>;
124 compatible = "mediatek,eth-mac";
126 phy-mode = "2500base-x";
128 nvmem-cell-names = "mac-address";
129 nvmem-cells = <&macaddr_factory_4 0>;
141 #address-cells = <1>;
145 compatible = "mediatek,mt7531";
147 reset-gpios = <&pio 39 GPIO_ACTIVE_HIGH>;
153 #address-cells = <1>;
175 nvmem-cell-names = "mac-address";
176 nvmem-cells = <&macaddr_factory_4 1>;
183 phy-mode = "2500base-x";
195 pinctrl-names = "default";
196 pinctrl-0 = <&spi0_flash_pins>;
200 #address-cells = <1>;
202 compatible = "spi-nand";
204 spi-max-frequency = <52000000>;
207 spi-cal-mode = "read-data";
208 spi-cal-datalen = <7>;
209 spi-cal-data = /bits/ 8 <0x53 0x50 0x49 0x4E 0x41 0x4E 0x44>;
210 spi-cal-addrlen = <5>;
211 spi-cal-addr = /bits/ 32 <0x0 0x0 0x0 0x0 0x0>;
213 spi-tx-buswidth = <4>;
214 spi-rx-buswidth = <4>;
216 mediatek,bmt-max-ratio = <1>;
217 mediatek,bmt-max-reserved-blocks = <64>;
220 compatible = "fixed-partitions";
221 #address-cells = <1>;
226 reg = <0x00000 0x0100000>;
231 label = "u-boot-env";
232 reg = <0x0100000 0x0080000>;
236 factory: partition@180000 {
238 reg = <0x180000 0x0200000>;
242 compatible = "fixed-layout";
243 #address-cells = <1>;
246 eeprom_factory_0: eeprom@0 {
250 macaddr_factory_4: macaddr@4 {
251 compatible = "mac-base";
253 #nvmem-cell-cells = <1>;
260 reg = <0x380000 0x0200000>;
266 reg = <0x580000 0x4000000>;
267 compatible = "linux,ubi";
274 spi0_flash_pins: spi0-pins {
277 groups = "spi0", "spi0_wp_hold";
289 mediatek,u3p-dis-msk = <0x1>;
294 nvmem-cells = <&eeprom_factory_0>;
295 nvmem-cell-names = "eeprom";