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 compatible = "fixed-layout";
113 #address-cells = <1>;
116 eeprom_factory_0: eeprom@0 {
122 board_data: partition@f70000 {
123 label = "board_data";
124 reg = <0xf70000 0x10000>;
128 compatible = "fixed-layout";
129 #address-cells = <1>;
132 macaddr_board_data_b0: macaddr@b0 {
140 reg = <0xf80000 0x10000>;
145 label = "Traffic Meter";
146 reg = <0xf90000 0x10000>;
151 label = "Traffic Meter2";
152 reg = <0xfa0000 0x10000>;
158 reg = <0xfb0000 0x10000>;
163 reg = <0xfc0000 0x10000>;
168 label = "ralink_nvram";
169 reg = <0xfd0000 0x10000>;
175 reg = <0xfe0000 0x10000>;
181 reg = <0xff0000 0x10000>;
189 mediatek,portmap = "wllll";
190 nvmem-cells = <&macaddr_board_data_b0>;
191 nvmem-cell-names = "mac-address";
203 nvmem-cells = <&eeprom_factory_0>, <&macaddr_board_data_b0>;
204 nvmem-cell-names = "eeprom", "mac-address";
209 groups = "ephy", "wled", "pa", "i2c";