ralink: add support for WSR-600/1166
[openwrt/openwrt.git] / target / linux / ramips / dts / WSR-600.dts
1 /dts-v1/;
2
3 /include/ "mt7621.dtsi"
4
5 / {
6 compatible = "ralink,mt7621-eval-board", "ralink,mt7621-soc";
7 model = "Buffalo WSR-600";
8
9 memory@0 {
10 reg = <0x0 0x4000000>;
11 };
12
13 chosen {
14 bootargs = "console=ttyS0,57600";
15 };
16
17 palmbus@1E000000 {
18 spi@b00 {
19 status = "okay";
20
21 m25p80@0 {
22 #address-cells = <1>;
23 #size-cells = <1>;
24 compatible = "mx25l12805d";
25 reg = <0 0>;
26 linux,modalias = "m25p80";
27 spi-max-frequency = <10000000>;
28
29 partition@0 {
30 label = "u-boot";
31 reg = <0x0 0x30000>;
32 read-only;
33 };
34
35 partition@30000 {
36 label = "u-boot-env";
37 reg = <0x30000 0x10000>;
38 read-only;
39 };
40
41 factory: partition@40000 {
42 label = "factory";
43 reg = <0x40000 0x10000>;
44 read-only;
45 };
46
47 partition@50000 {
48 label = "firmware";
49 reg = <0x50000 0x6b0000>;
50 };
51
52 partition@f700000 {
53 label = "usercfg";
54 reg = <0x700000 0x100000>;
55 };
56 };
57 };
58 };
59
60 pinctrl {
61 state_default: pinctrl0 {
62 gpio {
63 ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
64 ralink,function = "gpio";
65 };
66 };
67 };
68
69 gpio-leds {
70 compatible = "gpio-leds";
71 power {
72 label = "buffalo:green:power";
73 gpios = <&gpio0 12 1>;
74 };
75 wifi_o {
76 label = "buffalo:orange:wifi";
77 gpios = <&gpio1 9 1>;
78 };
79 diag {
80 label = "buffalo:orange:diag";
81 gpios = <&gpio1 10 1>;
82 };
83 wifi_g {
84 label = "buffalo:green:wifi";
85 gpios = <&gpio1 12 1>;
86 };
87 router_o {
88 label = "buffalo:orange:router";
89 gpios = <&gpio1 13 1>;
90 };
91 router_g {
92 label = "buffalo:green:router";
93 gpios = <&gpio1 14 1>;
94 };
95 internet_o {
96 label = "buffalo:orange:internet";
97 gpios = <&gpio1 15 1>;
98 };
99 internet_g {
100 label = "buffalo:green:internet";
101 gpios = <&gpio1 16 1>;
102 };
103 };
104
105 gpio-keys-polled {
106 compatible = "gpio-keys-polled";
107 #address-cells = <1>;
108 #size-cells = <0>;
109 poll-interval = <20>;
110 power {
111 label = "power";
112 gpios = <&gpio0 8 1>;
113 linux,code = <0x74>;
114 };
115 reset {
116 label = "reset";
117 gpios = <&gpio0 11 1>;
118 linux,code = <0x198>;
119 };
120 aoss {
121 label = "aoss";
122 gpios = <&gpio0 18 1>;
123 linux,code = <0x211>;
124 };
125 auto {
126 label = "mode";
127 gpios = <&gpio0 7 0>;
128 linux,code = <0x100>;
129 linux,input-type = <5>; /* EV_SW */
130 };
131 ap {
132 label = "ap";
133 gpios = <&gpio0 6 0>;
134 linux,code = <0x100>;
135 linux,input-type = <5>; /* EV_SW */
136 };
137 router {
138 label = "router";
139 gpios = <&gpio0 10 0>;
140 linux,code = <0x100>;
141 linux,input-type = <5>; /* EV_SW */
142 };
143 };
144 gpio_poweroff {
145 compatible = "gpio-poweroff";
146 gpios = <&gpio1 11 1>;
147 };
148 };