ramips: fix partition layout of WHR-300HP2, WHR-1166D, WHR-600D
[openwrt/svn-archive/archive.git] / target / linux / ramips / dts / WHR-600D.dts
1 /dts-v1/;
2
3 /include/ "mt7620a.dtsi"
4
5 / {
6 compatible = "ralink,mt7620a-soc";
7 model = "Buffalo WHR-600D";
8
9 palmbus@10000000 {
10 gpio2: gpio@660 {
11 status = "okay";
12 };
13
14 spi@b00 {
15 status = "okay";
16
17 m25p80@0 {
18 #address-cells = <1>;
19 #size-cells = <1>;
20 compatible = "en25q64";
21 reg = <0 0>;
22 linux,modalias = "m25p80", "mx25l6405d";
23 spi-max-frequency = <10000000>;
24
25 partition@0 {
26 label = "u-boot";
27 reg = <0x0 0x30000>;
28 read-only;
29 };
30
31 partition@30000 {
32 label = "u-boot-env";
33 reg = <0x30000 0x10000>;
34 read-only;
35 };
36
37 factory: partition@40000 {
38 label = "factory";
39 reg = <0x40000 0x10000>;
40 read-only;
41 };
42
43 partition@50000 {
44 label = "firmware";
45 reg = <0x50000 0x7b0000>;
46 };
47 };
48 };
49 };
50
51 pinctrl {
52 state_default: pinctrl0 {
53 gpio {
54 ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd";
55 ralink,function = "gpio";
56 };
57 };
58 };
59
60 ethernet@10100000 {
61 pinctrl-names = "default";
62 pinctrl-0 = <&ephy_pins>;
63
64 mtd-mac-address = <&factory 0x4>;
65 ralink,port-map = "llllw";
66 };
67
68 gsw@10110000 {
69 ralink,port4 = "ephy";
70 };
71
72 wmac@10180000 {
73 ralink,mtd-eeprom = <&factory 0>;
74 };
75
76 pcie@10140000 {
77 status = "okay";
78 };
79
80 gpio-leds {
81 compatible = "gpio-leds";
82 power {
83 label = "buffalo:red:power";
84 gpios = <&gpio0 7 1>;
85 };
86 status {
87 label = "buffalo:green:status";
88 gpios = <&gpio0 8 1>;
89 };
90 power2 {
91 label = "buffalo:green:power";
92 gpios = <&gpio0 9 1>;
93 };
94 status2 {
95 label = "buffalo:orange:status";
96 gpios = <&gpio0 10 1>;
97 };
98 internet {
99 label = "buffalo:green:internet";
100 gpios = <&gpio2 17 1>;
101 };
102 router {
103 label = "buffalo:green:router";
104 gpios = <&gpio2 18 1>;
105 };
106 router2 {
107 label = "buffalo:orange:router";
108 gpios = <&gpio2 19 1>;
109 };
110 };
111
112 gpio-keys-polled {
113 compatible = "gpio-keys-polled";
114 #address-cells = <1>;
115 #size-cells = <0>;
116 poll-interval = <20>;
117 s1 {
118 label = "reset";
119 gpios = <&gpio2 12 1>;
120 linux,code = <0x100>;
121 };
122 s2 {
123 label = "aoss";
124 gpios = <&gpio2 13 1>;
125 linux,code = <0x101>;
126 };
127 s3 {
128 label = "ap";
129 gpios = <&gpio2 14 1>;
130 linux,code = <0x102>;
131 };
132 s4 {
133 label = "bridge";
134 gpios = <&gpio2 15 1>;
135 linux,code = <0x103>;
136 };
137 };
138 };