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