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