OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 7... | Line 7... | |||
7 | |
7 | |
|
8 | / { |
8 | / { |
|
9 | compatible = "buffalo,whr-1166d", "ralink,mt7620a-soc"; |
9 | compatible = "buffalo,whr-1166d", "ralink,mt7620a-soc"; |
|
Line 10... | Line -... | |||
10 | model = "Buffalo WHR-1166D"; |
- | ||
11 | |
- | ||
12 | aliases { |
- | ||
13 | led-boot = &led_power_green; |
- | ||
14 | led-failsafe = &led_power_green; |
- | ||
15 | led-running = &led_power_green; |
- | ||
16 | led-upgrade = &led_power_green; |
- | ||
17 | }; |
10 | model = "Buffalo WHR-1166D"; |
|
18 | |
11 | |
|
Line 19... | Line 12... | |||
19 | leds { |
12 | gpio-leds { |
|
20 | compatible = "gpio-leds"; |
13 | compatible = "gpio-leds"; |
|
21 | |
14 | |
|
Line 27... | Line 20... | |||
27 | wifi { |
20 | wifi { |
|
28 | label = "whr-1166d:green:wifi"; |
21 | label = "whr-1166d:green:wifi"; |
|
29 | gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
22 | gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
|
30 | }; |
23 | }; |
|
Line 31... | Line 24... | |||
31 | |
24 | |
|
32 | led_power_green: power2 { |
25 | power2 { |
|
33 | label = "whr-1166d:green:power"; |
26 | label = "whr-1166d:green:power"; |
|
34 | gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
27 | gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
|
Line 35... | Line 28... | |||
35 | }; |
28 | }; |
|
Line 53... | Line 46... | |||
53 | label = "whr-1166d:green:router"; |
46 | label = "whr-1166d:green:router"; |
|
54 | gpios = <&gpio2 19 GPIO_ACTIVE_LOW>; |
47 | gpios = <&gpio2 19 GPIO_ACTIVE_LOW>; |
|
55 | }; |
48 | }; |
|
56 | }; |
49 | }; |
|
Line 57... | Line 50... | |||
57 | |
50 | |
|
58 | keys { |
51 | gpio-keys-polled { |
|
- | 52 | compatible = "gpio-keys-polled"; |
||
- | 53 | #address-cells = <1>; |
||
59 | compatible = "gpio-keys-polled"; |
54 | #size-cells = <0>; |
|
Line 60... | Line 55... | |||
60 | poll-interval = <20>; |
55 | poll-interval = <20>; |
|
61 | |
56 | |
|
62 | reset { |
57 | reset { |
|
Line 93... | Line 88... | |||
93 | |
88 | |
|
94 | &spi0 { |
89 | &spi0 { |
|
Line 95... | Line 90... | |||
95 | status = "okay"; |
90 | status = "okay"; |
|
- | 91 | |
||
- | 92 | m25p80@0 { |
||
96 | |
93 | #address-cells = <1>; |
|
97 | m25p80@0 { |
94 | #size-cells = <1>; |
|
98 | compatible = "jedec,spi-nor"; |
95 | compatible = "jedec,spi-nor"; |
|
Line 99... | Line -... | |||
99 | reg = <0>; |
- | ||
100 | spi-max-frequency = <10000000>; |
- | ||
101 | |
- | ||
102 | partitions { |
- | ||
103 | compatible = "fixed-partitions"; |
- | ||
104 | #address-cells = <1>; |
96 | reg = <0>; |
|
105 | #size-cells = <1>; |
97 | spi-max-frequency = <10000000>; |
|
106 | |
98 | |
|
107 | partition@0 { |
99 | partition@0 { |
|
108 | label = "u-boot"; |
100 | label = "u-boot"; |
|
109 | reg = <0x0 0x30000>; |
101 | reg = <0x0 0x30000>; |
|
110 | read-only; |
102 | read-only; |
|
111 | }; |
103 | }; |
|
112 | |
104 | |
|
113 | partition@30000 { |
105 | partition@30000 { |
|
114 | label = "u-boot-env"; |
106 | label = "u-boot-env"; |
|
115 | reg = <0x30000 0x10000>; |
107 | reg = <0x30000 0x10000>; |
|
116 | read-only; |
108 | read-only; |
|
117 | }; |
109 | }; |
|
118 | |
110 | |
|
119 | factory: partition@40000 { |
111 | factory: partition@40000 { |
|
120 | label = "factory"; |
112 | label = "factory"; |
|
121 | reg = <0x40000 0x10000>; |
113 | reg = <0x40000 0x10000>; |
|
122 | read-only; |
114 | read-only; |
|
123 | }; |
- | ||
124 | |
115 | }; |
|
125 | partition@50000 { |
116 | |
|
126 | compatible = "denx,uimage"; |
- | ||
127 | label = "firmware"; |
117 | partition@50000 { |
|
128 | reg = <0x50000 0xfb0000>; |
118 | label = "firmware"; |
|
129 | }; |
119 | reg = <0x50000 0xfb0000>; |
|
Line 130... | Line 120... | |||
130 | }; |
120 | }; |
|
Line 168... | Line 158... | |||
168 | ralink,mtd-eeprom = <&factory 0>; |
158 | ralink,mtd-eeprom = <&factory 0>; |
|
169 | }; |
159 | }; |
|
Line 170... | Line 160... | |||
170 | |
160 | |
|
171 | &pcie { |
161 | &pcie { |
|
172 | status = "okay"; |
- | ||
Line 173... | Line 162... | |||
173 | }; |
162 | status = "okay"; |
|
174 | |
163 | |
|
175 | &pcie0 { |
164 | pcie-bridge { |
|
176 | wifi@0,0 { |
165 | wifi@0,0 { |
|
177 | compatible = "pci0,0"; |
166 | compatible = "pci0,0"; |
|
178 | reg = <0x0000 0 0 0 0>; |
167 | reg = <0x0000 0 0 0 0>; |
|
- | 168 | mediatek,mtd-eeprom = <&factory 0x8000>; |
||
179 | mediatek,mtd-eeprom = <&factory 0x8000>; |
169 | ieee80211-freq-limit = <5000000 6000000>; |
|
180 | ieee80211-freq-limit = <5000000 6000000>; |
170 | }; |