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 = "netgear,pr2000", "ralink,mt7620n-soc";
11 model = "Netgear PR2000";
14 label-mac-device = ðernet;
18 compatible = "gpio-leds";
21 label = "green:internet";
22 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
27 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
28 linux,default-trigger = "phy0tpt";
32 function = LED_FUNCTION_USB;
33 color = <LED_COLOR_ID_GREEN>;
34 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
35 trigger-sources = <&ohci_port1>, <&ehci_port1>;
36 linux,default-trigger = "usbport";
41 compatible = "gpio-keys";
45 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_RESTART>;
51 gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
53 linux,input-type = <EV_SW>;
58 gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
60 linux,input-type = <EV_SW>;
77 compatible = "jedec,spi-nor";
79 spi-max-frequency = <50000000>;
83 compatible = "fixed-partitions";
95 reg = <0x30000 0x10000>;
98 /* sercomm header for kernel starts at 0x3ffba
99 * can be safely ignored since not used by OpenWRT
103 compatible = "denx,uimage";
105 reg = <0x40000 0xf20000>;
110 reg = <0xf60000 0x10000>;
114 compatible = "fixed-layout";
115 #address-cells = <1>;
118 eeprom_factory_0: eeprom@0 {
125 label = "board_data";
126 reg = <0xf70000 0x10000>;
130 compatible = "fixed-layout";
131 #address-cells = <1>;
134 macaddr_board_data_b0: macaddr@b0 {
142 reg = <0xf80000 0x10000>;
147 label = "Traffic Meter";
148 reg = <0xf90000 0x10000>;
153 label = "Traffic Meter2";
154 reg = <0xfa0000 0x10000>;
160 reg = <0xfb0000 0x10000>;
165 reg = <0xfc0000 0x10000>;
170 label = "ralink_nvram";
171 reg = <0xfd0000 0x10000>;
177 reg = <0xfe0000 0x10000>;
183 reg = <0xff0000 0x10000>;
191 mediatek,portmap = "wllll";
192 nvmem-cells = <&macaddr_board_data_b0>;
193 nvmem-cell-names = "mac-address";
205 nvmem-cells = <&eeprom_factory_0>, <&macaddr_board_data_b0>;
206 nvmem-cell-names = "eeprom", "mac-address";
211 groups = "ephy", "wled", "pa", "i2c";