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