ramips: update DTS files to use jedec,spi-nor compatible string for m25p80 to fix...
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / WNCE2001.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6 compatible = "WNCE2001", "ralink,rt3052-soc";
7 model = "Netgear WNCE2001";
8
9 chosen {
10 bootargs = "console=ttyS0,115200";
11 };
12
13 palmbus@10000000 {
14 spi@b00 {
15 status = "okay";
16
17 m25p80@0 {
18 #address-cells = <1>;
19 #size-cells = <1>;
20 compatible = "jedec,spi-nor";
21 reg = <0 0>;
22 linux,modalias = "m25p80", "mx25l3205d";
23 spi-max-frequency = <10000000>;
24
25 partition@0 {
26 label = "u-boot";
27 reg = <0x0 0x30000>;
28 read-only;
29 };
30
31 factory: partition@30000 {
32 label = "factory";
33 reg = <0x30000 0x10000>;
34 read-only;
35 };
36
37 partition@40000 {
38 label = "config";
39 reg = <0x40000 0x20000>;
40 read-only;
41 };
42
43 partition@60000 {
44 label = "language";
45 reg = <0x60000 0x30000>;
46 read-only;
47 };
48
49 partition@90000 {
50 label = "pot";
51 reg = <0x90000 0x10000>;
52 read-only;
53 };
54
55 partition@a0000 {
56 label = "checksum";
57 reg = <0xa0000 0x10000>;
58 };
59
60 partition@b0000 {
61 label = "firmware";
62 reg = <0xb0000 0x350000>;
63 };
64 };
65 };
66 };
67
68 pinctrl {
69 state_default: pinctrl0 {
70 gpio {
71 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
72 ralink,function = "gpio";
73 };
74 };
75 };
76
77 ethernet@10100000 {
78 mtd-mac-address = <&factory 0x28>;
79 };
80
81 wmac@10180000 {
82 ralink,mtd-eeprom = <&factory 0>;
83 };
84
85 gpio-leds {
86 compatible = "gpio-leds";
87
88 power-green {
89 label = "wnce2001:green:power";
90 gpios = <&gpio0 8 1>;
91 };
92
93 power-red {
94 label = "wnce2001:red:power";
95 gpios = <&gpio0 9 1>;
96 };
97
98 wlan-green {
99 label = "wnce2001:green:wlan";
100 gpios = <&gpio0 12 0>;
101 };
102
103 wlan-red {
104 label = "wnce2001:red:wlan";
105 gpios = <&gpio0 13 0>;
106 };
107 };
108
109 gpio-keys-polled {
110 compatible = "gpio-keys-polled";
111 #address-cells = <1>;
112 #size-cells = <0>;
113 poll-interval = <20>;
114
115 reset {
116 label = "reset";
117 gpios = <&gpio0 10 1>;
118 linux,code = <0x198>;
119 };
120
121 wps {
122 label = "wps";
123 gpios = <&gpio0 0 1>;
124 linux,code = <0x211>;
125 };
126
127 rt {
128 label = "rt";
129 gpios = <&gpio0 11 1>;
130 linux,code = <0x100>;
131 };
132
133 ap {
134 label = "ap";
135 gpios = <&gpio0 7 1>;
136 linux,code = <0x101>;
137 };
138 };
139 };