ramips: Archer C50v1: fix power led
[openwrt/openwrt.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 spi-max-frequency = <10000000>;
80
81 partition@0 {
82 label = "u-boot";
83 reg = <0x0 0x30000>;
84 read-only;
85 };
86
87 factory: partition@30000 {
88 label = "factory";
89 reg = <0x30000 0x10000>;
90 read-only;
91 };
92
93 partition@40000 {
94 label = "config";
95 reg = <0x40000 0x20000>;
96 read-only;
97 };
98
99 partition@60000 {
100 label = "language";
101 reg = <0x60000 0x30000>;
102 read-only;
103 };
104
105 partition@90000 {
106 label = "pot";
107 reg = <0x90000 0x10000>;
108 read-only;
109 };
110
111 partition@a0000 {
112 label = "checksum";
113 reg = <0xa0000 0x10000>;
114 };
115
116 partition@b0000 {
117 label = "firmware";
118 reg = <0xb0000 0x350000>;
119 };
120 };
121 };
122
123 &pinctrl {
124 state_default: pinctrl0 {
125 gpio {
126 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
127 ralink,function = "gpio";
128 };
129 };
130 };
131
132 &ethernet {
133 mtd-mac-address = <&factory 0x28>;
134 };
135
136 &wmac {
137 ralink,mtd-eeprom = <&factory 0>;
138 };