1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include "mt7628an.dtsi"
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
10 compatible = "netgear,r6020", "mediatek,mt7628an-soc";
11 model = "Netgear R6020";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
21 compatible = "gpio-keys";
25 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_RESTART>;
31 compatible = "gpio-leds";
34 label = "r6020:green:lan";
35 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
39 label = "r6020:green:power";
40 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
44 label = "r6020:green:wlan2g";
45 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
46 linux,default-trigger = "phy0tpt";
50 label = "r6020:orange:wlan2g";
51 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
55 label = "r6020:green:wan";
56 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
60 label = "r6020:orange:wan";
61 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
68 groups = "p0led_an", "p1led_an", "p2led_an",
69 "p3led_an", "p4led_an", "wdt",
79 compatible = "jedec,spi-nor";
81 spi-max-frequency = <86000000>;
85 compatible = "fixed-partitions";
95 factory: partition@40000 {
97 reg = <0x40000 0x20000>;
103 reg = <0x60000 0x30000>;
108 compatible = "denx,uimage";
110 reg = <0x90000 0x6f0000>;
115 reg = <0x780000 0x20000>;
121 reg = <0x7a0000 0x20000>;
127 reg = <0x7c0000 0x20000>;
133 reg = <0x7e0000 0x10000>;
139 reg = <0x7f0000 0x10000>;
151 mtd-mac-address = <&factory 0x4>;
160 reg = <0x0000 0 0 0 0>;
161 mediatek,mtd-eeprom = <&factory 0x8000>;
162 ieee80211-freq-limit = <5000000 6000000>;