ramips: add support for ALFA Network Quad-E4G
[oweals/openwrt.git] / target / linux / ramips / dts / mt7621_netgear_r6220.dts
1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
3
4 #include "mt7621_netgear_sercomm.dtsi"
5
6 / {
7         compatible = "netgear,r6220", "mediatek,mt7621-soc";
8         model = "Netgear R6220";
9
10         keys {
11                 compatible = "gpio-keys";
12
13                 wps {
14                         label = "wps";
15                         gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
16                         linux,code = <KEY_WPS_BUTTON>;
17                 };
18
19                 wifi {
20                         label = "wifi";
21                         gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
22                         linux,code = <KEY_RFKILL>;
23                 };
24
25                 reset {
26                         label = "reset";
27                         gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
28                         linux,code = <KEY_RESTART>;
29                 };
30         };
31 };
32
33 &leds {
34         wps {
35                 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
36                 label = "r6220:green:wps";
37         };
38 };
39
40 &led_power {
41         label = "r6220:green:power";
42 };
43
44 &led_usb {
45         label = "r6220:green:usb";
46 };
47
48 &led_internet {
49         label = "r6220:green:wan";
50 };
51
52 &led_wifi {
53         label = "r6220:green:wifi";
54 };
55
56 &nand {
57         status = "okay";
58
59         partitions {
60                 compatible = "fixed-partitions";
61                 #address-cells = <1>;
62                 #size-cells = <1>;
63
64                 partition@0 {
65                         label = "u-boot";
66                         reg = <0x0 0x100000>;
67                         read-only;
68                 };
69
70                 partition@100000 {
71                         label = "SC PID";
72                         reg = <0x100000 0x100000>;
73                         read-only;
74                 };
75
76                 partition@200000 {
77                         label = "kernel";
78                         reg = <0x200000 0x400000>;
79                 };
80
81                 partition@600000 {
82                         label = "ubi";
83                         reg = <0x600000 0x1c00000>;
84                 };
85
86                 factory: partition@2e00000 {
87                         label = "factory";
88                         reg = <0x2e00000 0x100000>;
89                         read-only;
90                 };
91
92                 partition@4200000 {
93                         label = "reserved";
94                         reg = <0x4200000 0x3c00000>;
95                         read-only;
96                 };
97         };
98 };