ramips: fix WHR-600D eeprom dt property
[openwrt/openwrt.git] / target / linux / ramips / dts / EX2700.dts
1 /*
2 * Device Tree file for the Netgear EX2700
3 *
4 * Copyright (C) 2016 Joseph C. Lehner <joseph.c.lehner@gmail.com>
5 *
6 * This file is licensed under the terms of the GNU General Public
7 * License version 2. This program is licensed "as is" without any
8 * warranty of any kind, whether express or implied.
9 */
10
11 /dts-v1/;
12
13 #include "mt7620a.dtsi"
14
15 #include <dt-bindings/input/input.h>
16
17 / {
18 compatible = "ralink,mt7620a-soc";
19 model = "Netgear EX2700";
20
21 chosen {
22 bootargs = "console=ttyS0,57600";
23 };
24
25 gpio-leds {
26 compatible = "gpio-leds";
27
28 power_g {
29 label = "ex2700:green:power";
30 gpios = <&gpio0 9 1>;
31 default-state = "on";
32 };
33
34 power_r {
35 label = "ex2700:red:power";
36 gpios = <&gpio0 11 1>;
37 };
38
39 device_g {
40 label = "ex2700:green:device";
41 gpios = <&gpio0 13 1>;
42 };
43
44 device_r {
45 label = "ex2700:red:device";
46 gpios = <&gpio0 10 1>;
47 };
48
49 router_g {
50 label = "ex2700:green:router";
51 gpios = <&gpio0 12 1>;
52 };
53
54 router_r {
55 label = "ex2700:red:router";
56 gpios = <&gpio0 14 1>;
57 };
58
59 wps {
60 label = "ex2700:green:wps";
61 gpios = <&gpio1 15 1>;
62 };
63 };
64
65 gpio-keys-polled {
66 compatible = "gpio-keys-polled";
67 #address-cells = <1>;
68 #size-cells = <0>;
69 poll-interval = <20>;
70
71 reset {
72 label = "reset";
73 gpios = <&gpio0 1 1>;
74 linux,code = <KEY_RESTART>;
75 };
76
77 wps {
78 label = "wps";
79 gpios = <&gpio0 2 1>;
80 linux,code = <KEY_WPS_BUTTON>;
81 };
82 };
83 };
84
85 &gpio0 {
86 status = "okay";
87 };
88
89 &gpio1 {
90 status = "okay";
91 };
92
93 &spi0 {
94 status = "okay";
95
96 m25p80@0 {
97 #address-cells = <1>;
98 #size-cells = <1>;
99 compatible = "jedec,spi-nor";
100 reg = <0>;
101 linux,modalias = "m25p80", "mx25l3205d";
102 spi-max-frequency = <10000000>;
103
104 partition@0 {
105 label = "u-boot";
106 reg = <0x0 0x30000>;
107 read-only;
108 };
109
110 partition@30000 {
111 label = "u-boot-env";
112 reg = <0x30000 0x10000>;
113 read-only;
114 };
115
116 partition@40000 {
117 label = "firmware";
118 reg = <0x40000 0x3b0000>;
119 };
120
121 art: partition@3f0000 {
122 label = "art";
123 reg = <0x3f0000 0x10000>;
124 read-only;
125 };
126 };
127 };
128
129 &ethernet {
130 mtd-mac-address = <&art 0x0>;
131 };
132
133 &wmac {
134 ralink,mtd-eeprom = <&art 0x1000>;
135 };
136
137 &pinctrl {
138 state_default: pinctrl0 {
139 default {
140 // spi refclk: pins 37, 38, 39
141 // uartf: pins 8, 9, 10, 11, 12, 13, 14
142 // i2c: pins 1, 2
143 ralink,group = "i2c", "uartf", "spi refclk";
144 ralink,function = "gpio";
145 };
146 };
147 };