ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / EX3700.dts
1 /* This file is released into the public domain */
2
3 /dts-v1/;
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 #include "mt7620a.dtsi"
9
10 / {
11 compatible = "netgear,ex3700", "ralink,mt7620a-soc";
12 model = "Netgear EX3700/EX3800";
13
14 aliases {
15 led-status = &led_power_green;
16 };
17
18 chosen {
19 bootargs = "console=ttyS0,57600";
20 };
21
22 gpio-leds {
23 compatible = "gpio-leds";
24
25 led_power_green: power_g {
26 label = "ex3700:green:power";
27 gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
28 default-state = "on";
29 };
30
31 power_a {
32 label = "ex3700:amber:power";
33 gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
34 default-state = "off";
35 };
36
37 router_g {
38 label = "ex3700:green:router";
39 gpios = <&gpio2 25 GPIO_ACTIVE_LOW>;
40 };
41
42 router_r {
43 label = "ex3700:red:router";
44 gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
45 };
46
47 device_g {
48 label = "ex3700:green:device";
49 gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
50 };
51
52 device_r {
53 label = "ex3700:red:device";
54 gpios = <&gpio2 21 GPIO_ACTIVE_LOW>;
55 };
56
57 wps {
58 label = "ex3700:green:wps";
59 gpios = <&gpio2 27 GPIO_ACTIVE_LOW>;
60 };
61 };
62
63 gpio-keys-polled {
64 compatible = "gpio-keys-polled";
65 poll-interval = <20>;
66
67 reset {
68 label = "reset";
69 gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
70 linux,code = <KEY_RESTART>;
71 };
72
73 wps {
74 label = "wps";
75 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
76 linux,code = <KEY_WPS_BUTTON>;
77 };
78 };
79 };
80
81 &gpio0 {
82 status = "okay";
83 };
84
85 &gpio2 {
86 status = "okay";
87 };
88
89 &spi0 {
90 status = "okay";
91
92 m25p80@0 {
93 #address-cells = <1>;
94 #size-cells = <1>;
95 compatible = "jedec,spi-nor";
96 reg = <0>;
97 spi-max-frequency = <10000000>;
98
99 partition@0 {
100 label = "u-boot";
101 reg = <0x0 0x30000>;
102 read-only;
103 };
104
105 partition@30000 {
106 label = "config";
107 reg = <0x30000 0x10000>;
108 read-only;
109 };
110
111 factory: partition@40000 {
112 label = "factory";
113 reg = <0x40000 0x10000>;
114 read-only;
115 };
116
117 partition@50000 {
118 label = "firmware";
119 reg = <0x50000 0x790000>;
120 };
121
122 partition@7e0000 {
123 label = "board_data";
124 reg = <0x7e0000 0x10000>;
125 read-only;
126 };
127
128 partition@7f0000 {
129 label = "nvram";
130 reg = <0x7f0000 0x10000>;
131 read-only;
132 };
133 };
134 };
135
136 &pcie {
137 status = "okay";
138 };
139
140 &pcie0 {
141 mt76@0,0 {
142 reg = <0x0000 0 0 0 0 >;
143 mediatek,mtd-eeprom = <&factory 0x8000>;
144 ieee80211-freq-limit = <5000000 6000000>;
145 };
146 };
147
148 &ethernet {
149 mtd-mac-address = <&factory 0x28>;
150 };
151
152 &wmac {
153 ralink,mtd-eeprom = <&factory 0x0>;
154 };
155
156 &pinctrl {
157 state_default: pinctrl0 {
158 default {
159 ralink,group = "i2c", "rgmii2", "spi refclk";
160 ralink,function = "gpio";
161 };
162 };
163 };