10910afe31146df3c3b1e6df7d711c7de0812276
[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         gpio-leds {
81                 compatible = "gpio-leds";
82                 power-green {
83                         label = "netgear:green:power";
84                         gpios = <&gpio0 8 1>;
85                 };
86                 power-red {
87                         label = "netgear:red:power";
88                         gpios = <&gpio0 9 1>;
89                 };
90                 wlan-green {
91                         label = "netgear:green:wlan";
92                         gpios = <&gpio0 12 0>;
93                 };
94                 wlan-red {
95                         label = "netgear:red:wlan";
96                         gpios = <&gpio0 13 0>;
97                 };
98         };
99
100         gpio-keys-polled {
101                 compatible = "gpio-keys-polled";
102                 #address-cells = <1>;
103                 #size-cells = <0>;
104                 poll-interval = <20>;
105                 reset {
106                         label = "reset";
107                         gpios = <&gpio0 10 1>;
108                         linux,code = <0x198>;
109                 };
110                 wps {
111                         label = "wps";
112                         gpios = <&gpio0 0 1>;
113                         linux,code = <0x211>;
114                 };
115                 rt {
116                         label = "rt";
117                         gpios = <&gpio0 11 1>;
118                         linux,code = <0x100>;
119                 };
120                 ap {
121                         label = "ap";
122                         gpios = <&gpio0 7 1>;
123                         linux,code = <0x101>;
124                 };
125         };
126 };