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