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>
9 compatible = "netgear,pr2000", "ralink,mt7620n-soc";
10 model = "Netgear PR2000";
13 label-mac-device = ðernet;
17 compatible = "gpio-leds";
20 label = "green:internet";
21 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
26 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
27 linux,default-trigger = "phy0tpt";
32 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
33 trigger-sources = <&ohci_port1>, <&ehci_port1>;
34 linux,default-trigger = "usbport";
39 compatible = "gpio-keys";
43 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_RESTART>;
49 gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
51 linux,input-type = <EV_SW>;
56 gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
58 linux,input-type = <EV_SW>;
75 compatible = "jedec,spi-nor";
77 spi-max-frequency = <50000000>;
81 compatible = "fixed-partitions";
93 reg = <0x30000 0x10000>;
96 /* sercomm header for kernel starts at 0x3ffba
97 * can be safely ignored since not used by OpenWRT
101 compatible = "denx,uimage";
103 reg = <0x40000 0xf20000>;
106 factory: partition@f60000 {
108 reg = <0xf60000 0x10000>;
112 board_data: partition@f70000 {
113 compatible = "nvmem-cells";
114 label = "board_data";
115 reg = <0xf70000 0x10000>;
116 #address-cells = <1>;
120 macaddr_board_data_b0: macaddr@b0 {
127 reg = <0xf80000 0x10000>;
132 label = "Traffic Meter";
133 reg = <0xf90000 0x10000>;
138 label = "Traffic Meter2";
139 reg = <0xfa0000 0x10000>;
145 reg = <0xfb0000 0x10000>;
150 reg = <0xfc0000 0x10000>;
155 label = "ralink_nvram";
156 reg = <0xfd0000 0x10000>;
162 reg = <0xfe0000 0x10000>;
168 reg = <0xff0000 0x10000>;
176 mediatek,portmap = "wllll";
177 nvmem-cells = <&macaddr_board_data_b0>;
178 nvmem-cell-names = "mac-address";
190 ralink,mtd-eeprom = <&factory 0x0>;
191 nvmem-cells = <&macaddr_board_data_b0>;
192 nvmem-cell-names = "mac-address";
197 groups = "ephy", "wled", "pa", "i2c";