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 {
107 compatible = "nvmem-cells";
109 reg = <0xf60000 0x10000>;
110 #address-cells = <1>;
114 eeprom_factory_0: eeprom@0 {
119 board_data: partition@f70000 {
120 compatible = "nvmem-cells";
121 label = "board_data";
122 reg = <0xf70000 0x10000>;
123 #address-cells = <1>;
127 macaddr_board_data_b0: macaddr@b0 {
134 reg = <0xf80000 0x10000>;
139 label = "Traffic Meter";
140 reg = <0xf90000 0x10000>;
145 label = "Traffic Meter2";
146 reg = <0xfa0000 0x10000>;
152 reg = <0xfb0000 0x10000>;
157 reg = <0xfc0000 0x10000>;
162 label = "ralink_nvram";
163 reg = <0xfd0000 0x10000>;
169 reg = <0xfe0000 0x10000>;
175 reg = <0xff0000 0x10000>;
183 mediatek,portmap = "wllll";
184 nvmem-cells = <&macaddr_board_data_b0>;
185 nvmem-cell-names = "mac-address";
197 nvmem-cells = <&eeprom_factory_0>, <&macaddr_board_data_b0>;
198 nvmem-cell-names = "eeprom", "mac-address";
203 groups = "ephy", "wled", "pa", "i2c";