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