ramips: fix partition layout of WHR-300HP2, WHR-1166D, WHR-600D
[openwrt/svn-archive/archive.git] / target / linux / ramips / dts / W306R_V20.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6 compatible = "W306R_V20", "ralink,rt3052-soc";
7 model = "Tenda W306R V2.0";
8
9 cfi@1f000000 {
10 compatible = "cfi-flash";
11 reg = <0x1f000000 0x800000>;
12
13 bank-width = <2>;
14 device-width = <2>;
15 #address-cells = <1>;
16 #size-cells = <1>;
17
18 partition@0 {
19 label = "u-boot";
20 reg = <0x0 0x30000>;
21 read-only;
22 };
23
24 partition@30000 {
25 label = "u-boot-env";
26 reg = <0x30000 0x10000>;
27 read-only;
28 };
29
30 factory: partition@40000 {
31 label = "factory";
32 reg = <0x40000 0x10000>;
33 read-only;
34 };
35
36 partition@50000 {
37 label = "firmware";
38 reg = <0x50000 0x3b0000>;
39 };
40 };
41
42 pinctrl {
43 state_default: pinctrl0 {
44 gpio {
45 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
46 ralink,function = "gpio";
47 };
48 };
49 };
50
51 ethernet@10100000 {
52 mtd-mac-address = <&factory 0x28>;
53 };
54
55 esw@10110000 {
56 ralink,portmap = <0x3e>;
57 };
58
59 wmac@10180000 {
60 ralink,mtd-eeprom = <&factory 0>;
61 };
62
63 gpio-leds {
64 compatible = "gpio-leds";
65 sys {
66 label = "w306r-v20:green:sys";
67 gpios = <&gpio0 9 1>;
68 };
69 wps {
70 label = "w306r-v20:green:wps";
71 gpios = <&gpio0 13 1>;
72 };
73 };
74
75 gpio-keys-polled {
76 compatible = "gpio-keys-polled";
77 #address-cells = <1>;
78 #size-cells = <0>;
79 poll-interval = <20>;
80 reset {
81 label = "RESET/WPS";
82 gpios = <&gpio0 10 1>;
83 linux,code = <0x198>;
84 };
85 };
86 };