3 #include "mt7620n.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "asus,rt-n12p", "ralink,mt7620n-soc";
10 model = "Asus RT-N12+";
13 bootargs = "console=ttyS0,115200";
17 compatible = "gpio-leds";
20 label = "rt-n12p:green:wan";
21 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
25 label = "rt-n12p:green:lan";
26 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
30 label = "rt-n12p:green:power";
31 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
35 label = "rt-n12p:green:air";
36 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
41 compatible = "gpio-keys-polled";
48 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_RESTART>;
72 compatible = "jedec,spi-nor";
74 spi-max-frequency = <10000000>;
84 reg = <0x30000 0x10000>;
88 factory: partition@40000 {
90 reg = <0x40000 0x10000>;
96 reg = <0x50000 0xfb0000>;
102 mtd-mac-address = <&factory 0x4>;
103 mediatek,portmap = "wllll";
107 ralink,mtd-eeprom = <&factory 0>;
111 state_default: pinctrl0 {
113 ralink,group = "ephy", "wled", "i2c", "wdt", "pa", "spi refclk";
114 ralink,function = "gpio";