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