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