ramips: add support for Netgear R6120
[openwrt/staging/chunkeey.git] / target / linux / ramips / dts / R6120.dts
1 /dts-v1/;
2
3 #include "mt7628an.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "netgear,r6120", "mediatek,mt7628an-soc";
10 model = "Netgear AC1200 R6120";
11
12 aliases {
13 led-status = &led_power;
14 };
15
16 memory@0 {
17 device_type = "memory";
18 reg = <0x0 0x4000000>;
19 };
20
21 gpio-keys-polled {
22 compatible = "gpio-keys-polled";
23 poll-interval = <20>;
24
25 reset {
26 label = "reset";
27 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
28 linux,code = <KEY_RESTART>;
29 };
30 };
31
32 gpio-leds {
33 compatible = "gpio-leds";
34
35 lan {
36 label = "r6120:green:lan";
37 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
38 };
39
40 led_power: power {
41 label = "r6120:green:power";
42 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
43 };
44
45 wlan {
46 label = "r6120:green:wlan2g";
47 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
48 };
49
50 wlan_orange {
51 label = "r6120:orange:wlan2g";
52 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
53 };
54
55 wlan5 {
56 label = "r6120:green:wlan5g";
57 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
58 };
59
60 wlan5_orange {
61 label = "r6120:orange:wlan5g";
62 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
63 };
64 };
65 };
66
67 &pinctrl {
68 state_default: pinctrl0 {
69 gpio {
70 ralink,group = "p0led_an", "p1led_an", "p2led_an",
71 "p3led_an", "p4led_an", "wdt", "wled_an";
72 ralink,function = "gpio";
73 };
74 };
75 };
76
77 &spi0 {
78 status = "okay";
79
80 flash@0 {
81 compatible = "jedec,spi-nor";
82 reg = <0>;
83 spi-max-frequency = <10000000>;
84 m25p,chunked-io = <32>;
85
86 partitions {
87 compatible = "fixed-partitions";
88 #address-cells = <1>;
89 #size-cells = <1>;
90
91 partition@0 {
92 label = "u-boot";
93 reg = <0x0 0x40000>;
94 read-only;
95 };
96
97 factory: partition@40000 {
98 label = "factory";
99 reg = <0x40000 0x20000>;
100 read-only;
101 };
102
103 nvram: partition@60000 {
104 label = "nvram";
105 reg = <0x60000 0x30000>;
106 read-only;
107 };
108
109 partition@90000 {
110 label = "firmware";
111 reg = <0x90000 0xf60000>;
112 };
113
114 partition@ff0000 {
115 label = "reserved";
116 reg = <0xff0000 0x10000>;
117 read-only;
118 };
119 };
120 };
121 };
122
123 &wmac {
124 status = "okay";
125 mtd-mac-address = <&nvram 0x100b0>;
126 mediatek,mtd-eeprom = <&factory 0x20000>;
127 };
128
129 &ethernet {
130 mtd-mac-address = <&nvram 0x100b0>;
131 };
132
133 &pcie {
134 status = "okay";
135 };
136
137 &pcie0 {
138 wifi@0,0 {
139 reg = <0x0000 0 0 0 0>;
140 mediatek,mtd-eeprom = <&factory 0x28000>;
141 ieee80211-freq-limit = <5000000 6000000>;
142 mtd-mac-address = <&nvram 0x100b0>;
143 mtd-mac-address-increment = <(2)>;
144 };
145 };