OpenWrt – Blame information for rev 2
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /dts-v1/; |
2 | |||
3 | #include "mt7621.dtsi" |
||
4 | |||
5 | #include <dt-bindings/gpio/gpio.h> |
||
6 | #include <dt-bindings/input/input.h> |
||
7 | |||
8 | / { |
||
9 | compatible = "buffalo,wsr-1166dhp", "mediatek,mt7621-soc"; |
||
10 | model = "Buffalo WSR-1166DHP"; |
||
11 | |||
12 | aliases { |
||
13 | led-boot = &led_power; |
||
14 | led-failsafe = &led_power; |
||
15 | led-running = &led_power; |
||
16 | led-upgrade = &led_power; |
||
17 | }; |
||
18 | |||
19 | memory@0 { |
||
20 | device_type = "memory"; |
||
21 | reg = <0x0 0x8000000>; |
||
22 | }; |
||
23 | |||
24 | chosen { |
||
25 | bootargs = "console=ttyS0,57600"; |
||
26 | }; |
||
27 | |||
28 | leds { |
||
29 | compatible = "gpio-leds"; |
||
30 | |||
31 | internet_g { |
||
32 | label = "wsr-1166:green:internet"; |
||
33 | gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; |
||
34 | }; |
||
35 | |||
36 | router_g { |
||
37 | label = "wsr-1166:green:router"; |
||
38 | gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; |
||
39 | }; |
||
40 | |||
41 | router_o { |
||
42 | label = "wsr-1166:orange:router"; |
||
43 | gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; |
||
44 | }; |
||
45 | |||
46 | internet_o { |
||
47 | label = "wsr-1166:orange:internet"; |
||
48 | gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; |
||
49 | }; |
||
50 | |||
51 | wifi_o { |
||
52 | label = "wsr-1166:orange:wifi"; |
||
53 | gpios = <&gpio1 13 GPIO_ACTIVE_LOW>; |
||
54 | }; |
||
55 | |||
56 | led_power: power { |
||
57 | label = "wsr-1166:green:power"; |
||
58 | gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; |
||
59 | }; |
||
60 | |||
61 | diag { |
||
62 | label = "wsr-1166:orange:diag"; |
||
63 | gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; |
||
64 | }; |
||
65 | |||
66 | wifi_g { |
||
67 | label = "wsr-1166:green:wifi"; |
||
68 | gpios = <&gpio1 16 GPIO_ACTIVE_LOW>; |
||
69 | }; |
||
70 | }; |
||
71 | |||
72 | keys { |
||
73 | compatible = "gpio-keys-polled"; |
||
74 | poll-interval = <20>; |
||
75 | |||
76 | power { |
||
77 | label = "power"; |
||
78 | gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
||
79 | linux,code = <KEY_POWER>; |
||
80 | }; |
||
81 | |||
82 | reset { |
||
83 | label = "reset"; |
||
84 | gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; |
||
85 | linux,code = <KEY_RESTART>; |
||
86 | }; |
||
87 | |||
88 | aoss { |
||
89 | label = "aoss"; |
||
90 | gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; |
||
91 | linux,code = <KEY_WPS_BUTTON>; |
||
92 | }; |
||
93 | |||
94 | auto { |
||
95 | label = "mode"; |
||
96 | gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; |
||
97 | linux,code = <BTN_0>; |
||
98 | linux,input-type = <EV_SW>; |
||
99 | }; |
||
100 | |||
101 | ap { |
||
102 | label = "ap"; |
||
103 | gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>; |
||
104 | linux,code = <BTN_0>; |
||
105 | linux,input-type = <EV_SW>; |
||
106 | }; |
||
107 | |||
108 | router { |
||
109 | label = "router"; |
||
110 | gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; |
||
111 | linux,code = <BTN_0>; |
||
112 | linux,input-type = <EV_SW>; |
||
113 | }; |
||
114 | }; |
||
115 | |||
116 | gpio_poweroff { |
||
117 | compatible = "gpio-poweroff"; |
||
118 | gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
||
119 | }; |
||
120 | }; |
||
121 | |||
122 | &spi0 { |
||
123 | status = "okay"; |
||
124 | |||
125 | m25p80@0 { |
||
126 | compatible = "jedec,spi-nor"; |
||
127 | reg = <0>; |
||
128 | spi-max-frequency = <10000000>; |
||
129 | |||
130 | partitions { |
||
131 | compatible = "fixed-partitions"; |
||
132 | #address-cells = <1>; |
||
133 | #size-cells = <1>; |
||
134 | |||
135 | partition@0 { |
||
136 | label = "u-boot"; |
||
137 | reg = <0x0 0x30000>; |
||
138 | read-only; |
||
139 | }; |
||
140 | |||
141 | partition@30000 { |
||
142 | label = "u-boot-env"; |
||
143 | reg = <0x30000 0x10000>; |
||
144 | read-only; |
||
145 | }; |
||
146 | |||
147 | factory: partition@40000 { |
||
148 | label = "factory"; |
||
149 | reg = <0x40000 0x10000>; |
||
150 | read-only; |
||
151 | }; |
||
152 | |||
153 | partition@50000 { |
||
154 | compatible = "openwrt,trx"; |
||
155 | label = "firmware"; |
||
156 | reg = <0x50000 0xf90000>; |
||
157 | }; |
||
158 | |||
159 | partition@fe0000 { |
||
160 | label = "board_data"; |
||
161 | reg = <0xfe0000 0x20000>; |
||
162 | }; |
||
163 | }; |
||
164 | }; |
||
165 | }; |
||
166 | |||
167 | &pinctrl { |
||
168 | state_default: pinctrl0 { |
||
169 | gpio { |
||
170 | ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci"; |
||
171 | ralink,function = "gpio"; |
||
172 | }; |
||
173 | }; |
||
174 | }; |
||
175 | |||
176 | &pcie { |
||
177 | status = "okay"; |
||
178 | }; |
||
179 | |||
180 | &pcie0 { |
||
181 | mt76@0,0 { |
||
182 | reg = <0x0000 0 0 0 0>; |
||
183 | mediatek,mtd-eeprom = <&factory 0x8000>; |
||
184 | ieee80211-freq-limit = <5000000 6000000>; |
||
185 | }; |
||
186 | }; |
||
187 | |||
188 | &pcie1 { |
||
189 | mt76@0,0 { |
||
190 | reg = <0x0000 0 0 0 0>; |
||
191 | mediatek,mtd-eeprom = <&factory 0x0000>; |
||
192 | }; |
||
193 | }; |
||
194 | |||
195 | &xhci { |
||
196 | status = "disabled"; |
||
197 | }; |