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