1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "mt7620n.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "snr,cpe-w4n-mt", "ralink,mt7620n-soc";
11 model = "SNR-CPE-W4N (rev.M)";
15 led-failsafe = &led_sys;
16 led-running = &led_wps;
17 led-upgrade = &led_sys;
21 compatible = "gpio-leds";
25 color = <LED_COLOR_ID_GREEN>;
26 function = LED_FUNCTION_STATUS;
27 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; // GPIO#38
33 color = <LED_COLOR_ID_GREEN>;
34 function = LED_FUNCTION_WPS;
35 gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; // GPIO#39
40 color = <LED_COLOR_ID_GREEN>;
41 function = LED_FUNCTION_WLAN;
42 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; // GPIO#72
47 compatible = "gpio-keys";
50 label = "Reset Button";
51 gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; // GPIO#1
52 linux,code = <KEY_RESTART>;
73 compatible = "jedec,spi-nor";
75 spi-max-frequency = <48000000>;
78 compatible = "fixed-partitions";
90 reg = <0x30000 0x10000>;
93 factory: partition@40000 {
95 reg = <0x40000 0x100000>;
100 compatible = "denx,uimage";
102 reg = <0x50000 0x7b0000>;
107 reg = <0x30000 0x1000>;
115 groups = "i2c", "spi refclk";
121 ralink,mtd-eeprom = <&factory 0x0>;