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