3 #include "mt7628an.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "netgear,r6120", "mediatek,mt7628an-soc";
10 model = "Netgear AC1200 R6120";
13 led-status = &led_power;
17 device_type = "memory";
18 reg = <0x0 0x4000000>;
22 compatible = "gpio-keys-polled";
27 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
28 linux,code = <KEY_RESTART>;
33 compatible = "gpio-leds";
36 label = "r6120:green:lan";
37 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
41 label = "r6120:green:power";
42 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
46 label = "r6120:green:wlan2g";
47 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
51 label = "r6120:orange:wlan2g";
52 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
56 label = "r6120:green:wlan5g";
57 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
61 label = "r6120:orange:wlan5g";
62 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
68 state_default: pinctrl0 {
70 ralink,group = "p0led_an", "p1led_an", "p2led_an",
71 "p3led_an", "p4led_an", "wdt", "wled_an";
72 ralink,function = "gpio";
81 compatible = "jedec,spi-nor";
83 spi-max-frequency = <10000000>;
84 m25p,chunked-io = <32>;
87 compatible = "fixed-partitions";
97 factory: partition@40000 {
99 reg = <0x40000 0x20000>;
103 nvram: partition@60000 {
105 reg = <0x60000 0x30000>;
111 reg = <0x90000 0xf60000>;
116 reg = <0xff0000 0x10000>;
125 mtd-mac-address = <&nvram 0x100b0>;
126 mediatek,mtd-eeprom = <&factory 0x20000>;
130 mtd-mac-address = <&nvram 0x100b0>;
139 reg = <0x0000 0 0 0 0>;
140 mediatek,mtd-eeprom = <&factory 0x28000>;
141 ieee80211-freq-limit = <5000000 6000000>;
142 mtd-mac-address = <&nvram 0x100b0>;
143 mtd-mac-address-increment = <(2)>;