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 led-status = &led_power;
17 bootargs = "console=ttyS0,115200";
21 compatible = "gpio-leds";
24 label = "rt-n12p:green:wan";
25 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
29 label = "rt-n12p:green:lan";
30 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
34 label = "rt-n12p:green:power";
35 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
39 label = "rt-n12p:green:air";
40 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
45 compatible = "gpio-keys-polled";
50 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_RESTART>;
72 compatible = "jedec,spi-nor";
74 spi-max-frequency = <10000000>;
77 compatible = "fixed-partitions";
89 reg = <0x30000 0x10000>;
93 factory: partition@40000 {
95 reg = <0x40000 0x10000>;
101 reg = <0x50000 0xfb0000>;
108 mtd-mac-address = <&factory 0x4>;
109 mediatek,portmap = "wllll";
113 ralink,mtd-eeprom = <&factory 0>;
117 state_default: pinctrl0 {
119 ralink,group = "ephy", "wled", "i2c", "wdt", "pa", "spi refclk";
120 ralink,function = "gpio";