OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 7... | Line 7... | |||
7 | |
7 | |
|
8 | / { |
8 | / { |
|
9 | compatible = "buffalo,wcr-1166ds", "mediatek,mt7628an-soc"; |
9 | compatible = "buffalo,wcr-1166ds", "mediatek,mt7628an-soc"; |
|
Line 10... | Line 10... | |||
10 | model = "Buffalo WCR-1166DS"; |
10 | model = "Buffalo WCR-1166DS"; |
|
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 | |
11 | |
|
- | 12 | gpio-keys-polled { |
||
- | 13 | compatible = "gpio-keys-polled"; |
||
19 | keys { |
14 | #address-cells = <1>; |
|
Line 20... | Line 15... | |||
20 | compatible = "gpio-keys-polled"; |
15 | #size-cells = <0>; |
|
21 | poll-interval = <20>; |
16 | poll-interval = <20>; |
|
22 | |
17 | |
|
Line 38... | Line 33... | |||
38 | gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; |
33 | gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; |
|
39 | linux,code = <KEY_RESTART>; |
34 | linux,code = <KEY_RESTART>; |
|
40 | }; |
35 | }; |
|
41 | }; |
36 | }; |
|
Line 42... | Line 37... | |||
42 | |
37 | |
|
43 | leds { |
38 | gpio-leds { |
|
Line 44... | Line 39... | |||
44 | compatible = "gpio-leds"; |
39 | compatible = "gpio-leds"; |
|
45 | |
40 | |
|
46 | router_o { |
41 | router_o { |
|
Line 76... | Line 71... | |||
76 | diag { |
71 | diag { |
|
77 | label = "wcr-1166ds:orange:diag"; |
72 | label = "wcr-1166ds:orange:diag"; |
|
78 | gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; |
73 | gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; |
|
79 | }; |
74 | }; |
|
Line 80... | Line 75... | |||
80 | |
75 | |
|
81 | led_power: power { |
76 | power { |
|
82 | label = "wcr-1166ds:green:power"; |
77 | label = "wcr-1166ds:green:power"; |
|
83 | gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; |
78 | gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; |
|
84 | }; |
79 | }; |
|
85 | }; |
80 | }; |
|
Line 98... | Line 93... | |||
98 | status = "disabled"; |
93 | status = "disabled"; |
|
99 | }; |
94 | }; |
|
Line 100... | Line 95... | |||
100 | |
95 | |
|
101 | &pcie { |
96 | &pcie { |
|
102 | status = "okay"; |
- | ||
103 | }; |
- | ||
104 | |
97 | status = "okay"; |
|
105 | &pcie0 { |
98 | pcie-bridge { |
|
106 | mt76@0,0 { |
99 | mt76@0,0 { |
|
- | 100 | reg = <0x0000 0 0 0 0>; |
||
107 | reg = <0x0000 0 0 0 0>; |
101 | device_type = "pci"; |
|
108 | mediatek,mtd-eeprom = <&factory 0x8000>; |
102 | mediatek,mtd-eeprom = <&factory 0x8000>; |
|
- | 103 | ieee80211-freq-limit = <5000000 6000000>; |
||
109 | ieee80211-freq-limit = <5000000 6000000>; |
104 | }; |
|
110 | }; |
105 | }; |
|
Line 111... | Line 106... | |||
111 | }; |
106 | }; |
|
112 | |
107 | |
|
Line 121... | Line 116... | |||
121 | |
116 | |
|
122 | &spi0 { |
117 | &spi0 { |
|
Line 123... | Line 118... | |||
123 | status = "okay"; |
118 | status = "okay"; |
|
- | 119 | |
||
- | 120 | m25p80@0 { |
||
124 | |
121 | #address-cells = <1>; |
|
125 | m25p80@0 { |
122 | #size-cells = <1>; |
|
126 | compatible = "jedec,spi-nor"; |
123 | compatible = "jedec,spi-nor"; |
|
- | 124 | reg = <0>; |
||
- | 125 | spi-max-frequency = <10000000>; |
||
- | 126 | m25p,chunked-io = <32>; |
||
- | 127 | |
||
- | 128 | partition@0 { |
||
- | 129 | label = "u-boot"; |
||
- | 130 | reg = <0x0 0x30000>; |
||
- | 131 | read-only; |
||
- | 132 | }; |
||
- | 133 | |
||
- | 134 | partition@30000 { |
||
- | 135 | label = "u-boot-env"; |
||
- | 136 | reg = <0x30000 0x10000>; |
||
- | 137 | read-only; |
||
- | 138 | }; |
||
- | 139 | |
||
- | 140 | factory: partition@40000 { |
||
- | 141 | label = "factory"; |
||
- | 142 | reg = <0x40000 0x10000>; |
||
- | 143 | read-only; |
||
- | 144 | }; |
||
- | 145 | |
||
- | 146 | partition@50000 { |
||
- | 147 | label = "firmware"; |
||
- | 148 | reg = <0x50000 0x7c0000>; |
||
- | 149 | }; |
||
- | 150 | |
||
- | 151 | partition@810000 { |
||
- | 152 | label = "firmware2"; |
||
- | 153 | reg = <0x810000 0x7c0000>; |
||
- | 154 | }; |
||
- | 155 | |
||
- | 156 | partition@fd0000 { |
||
- | 157 | label = "glbcfg"; |
||
- | 158 | reg = <0xfd0000 0x10000>; |
||
Line 127... | Line -... | |||
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 0x7c0000>; |
- | ||
157 | }; |
- | ||
158 | |
- | ||
159 | partition@810000 { |
- | ||
160 | label = "firmware2"; |
- | ||
161 | reg = <0x810000 0x7c0000>; |
- | ||
162 | }; |
- | ||
163 | |
- | ||
164 | partition@fd0000 { |
- | ||
165 | label = "glbcfg"; |
- | ||
166 | reg = <0xfd0000 0x10000>; |
- | ||
167 | read-only; |
159 | read-only; |
|
168 | }; |
160 | }; |
|
169 | |
161 | |
|
170 | partition@fe0000 { |
162 | partition@fe0000 { |
|
171 | label = "board_data"; |
- | ||
172 | reg = <0xfe0000 0x10000>; |
163 | label = "board_data"; |
|
173 | read-only; |
164 | reg = <0xfe0000 0x10000>; |
|
174 | }; |
165 | read-only; |
|
Line 175... | Line 166... | |||
175 | }; |
166 | }; |