ramips: fix indentation and other mistakes in .dts{, i} files
[openwrt/svn-archive/archive.git] / target / linux / ramips / dts / WSR-1166.dts
1 /dts-v1/;
2
3 /include/ "mt7621.dtsi"
4
5 / {
6 compatible = "ralink,mt7621-eval-board", "ralink,mt7621-soc";
7 model = "Buffalo WSR-1166DHP";
8
9 memory@0 {
10 device_type = "memory";
11 reg = <0x0 0x8000000>;
12 };
13
14 chosen {
15 bootargs = "console=ttyS0,57600";
16 };
17
18 palmbus@1E000000 {
19 spi@b00 {
20 status = "okay";
21
22 m25p80@0 {
23 #address-cells = <1>;
24 #size-cells = <1>;
25 compatible = "mx25l12805d";
26 reg = <0 0>;
27 linux,modalias = "m25p80";
28 spi-max-frequency = <10000000>;
29
30 partition@0 {
31 label = "u-boot";
32 reg = <0x0 0x30000>;
33 read-only;
34 };
35
36 partition@30000 {
37 label = "u-boot-env";
38 reg = <0x30000 0x10000>;
39 read-only;
40 };
41
42 factory: partition@40000 {
43 label = "factory";
44 reg = <0x40000 0x10000>;
45 read-only;
46 };
47
48 partition@50000 {
49 label = "firmware";
50 reg = <0x50000 0xf90000>;
51 };
52
53 partition@fe00000 {
54 label = "board_data";
55 reg = <0xfe0000 0x10000>;
56 };
57 };
58 };
59 };
60
61 pinctrl {
62 state_default: pinctrl0 {
63 gpio {
64 ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
65 ralink,function = "gpio";
66 };
67 };
68 };
69
70 gpio-leds {
71 compatible = "gpio-leds";
72
73 internet_g {
74 label = "buffalo:green:internet";
75 gpios = <&gpio1 9 1>;
76 };
77
78 router_g {
79 label = "buffalo:green:router";
80 gpios = <&gpio1 10 1>;
81 };
82
83 router_o {
84 label = "buffalo:orange:router";
85 gpios = <&gpio1 11 1>;
86 };
87
88 internet_o {
89 label = "buffalo:orange:internet";
90 gpios = <&gpio1 12 1>;
91 };
92
93 wifi_o {
94 label = "buffalo:orange:wifi";
95 gpios = <&gpio1 13 1>;
96 };
97
98 power {
99 label = "buffalo:green:power";
100 gpios = <&gpio1 14 1>;
101 };
102
103 diag {
104 label = "buffalo:orange:diag";
105 gpios = <&gpio1 15 1>;
106 };
107
108 wifi_g {
109 label = "buffalo:green:wifi";
110 gpios = <&gpio1 16 1>;
111 };
112 };
113
114 gpio-keys-polled {
115 compatible = "gpio-keys-polled";
116 #address-cells = <1>;
117 #size-cells = <0>;
118 poll-interval = <20>;
119
120 power {
121 label = "power";
122 gpios = <&gpio0 18 1>;
123 linux,code = <0x74>;
124 };
125
126 reset {
127 label = "reset";
128 gpios = <&gpio0 3 1>;
129 linux,code = <0x198>;
130 };
131
132 aoss {
133 label = "aoss";
134 gpios = <&gpio0 6 1>;
135 linux,code = <0x211>;
136 };
137
138 auto {
139 label = "mode";
140 gpios = <&gpio0 7 0>;
141 linux,code = <0x100>;
142 linux,input-type = <5>; /* EV_SW */
143 };
144
145 ap {
146 label = "ap";
147 gpios = <&gpio0 10 0>;
148 linux,code = <0x100>;
149 linux,input-type = <5>; /* EV_SW */
150 };
151
152 router {
153 label = "router";
154 gpios = <&gpio0 12 0>;
155 linux,code = <0x100>;
156 linux,input-type = <5>; /* EV_SW */
157 };
158 };
159
160 gpio_poweroff {
161 compatible = "gpio-poweroff";
162 gpios = <&gpio0 0 1>;
163 };
164
165 pcie@1e140000 {
166 status = "okay";
167
168 pcie0 {
169 mt76@0,0 {
170 reg = <0x0000 0 0 0 0>;
171 device_type = "pci";
172 mediatek,mtd-eeprom = <&factory 0x8000>;
173 mediatek,2ghz = <0>;
174 };
175 };
176
177 pcie1 {
178 mt76@1,0 {
179 reg = <0x0000 0 0 0 0>;
180 device_type = "pci";
181 mediatek,mtd-eeprom = <&factory 0x0000>;
182 mediatek,5ghz = <0>;
183 };
184 };
185 };
186 };