OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 7... | Line 7... | |||
7 | |
7 | |
|
8 | / { |
8 | / { |
|
9 | compatible = "tplink,c20-v1", "ralink,mt7620a-soc"; |
9 | compatible = "tplink,c20-v1", "ralink,mt7620a-soc"; |
|
Line 10... | Line -... | |||
10 | model = "TP-Link Archer C20 v1"; |
- | ||
11 | |
- | ||
12 | aliases { |
- | ||
13 | led-boot = &led_power; |
- | ||
14 | led-failsafe = &led_power; |
- | ||
15 | led-running = &led_power; |
- | ||
16 | led-upgrade = &led_power; |
- | ||
17 | }; |
10 | model = "TP-Link Archer C20 v1"; |
|
18 | |
11 | |
|
19 | chosen { |
12 | chosen { |
|
Line 20... | Line 13... | |||
20 | bootargs = "console=ttyS0,115200"; |
13 | bootargs = "console=ttyS0,115200"; |
|
21 | }; |
14 | }; |
|
Line 22... | Line 15... | |||
22 | |
15 | |
|
23 | leds { |
16 | gpio-leds { |
|
24 | compatible = "gpio-leds"; |
17 | compatible = "gpio-leds"; |
|
25 | |
18 | |
|
Line 26... | Line 19... | |||
26 | lan { |
19 | lan { |
|
27 | label = "c20-v1:blue:lan"; |
20 | label = "c20-v1:blue:lan"; |
|
28 | gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
21 | gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
|
29 | }; |
22 | }; |
|
30 | |
23 | |
|
Line 31... | Line 24... | |||
31 | led_power: power { |
24 | power { |
|
32 | label = "c20-v1:blue:power"; |
25 | label = "c20-v1:blue:power"; |
|
33 | gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
26 | gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
|
34 | default-state = "keep"; |
- | ||
35 | }; |
- | ||
36 | |
27 | default-state = "keep"; |
|
Line 37... | Line 28... | |||
37 | usb { |
28 | }; |
|
38 | label = "c20-v1:blue:usb"; |
29 | |
|
39 | gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; |
30 | usb { |
|
Line 65... | Line 56... | |||
65 | label = "c20-v1:blue:wps"; |
56 | label = "c20-v1:blue:wps"; |
|
66 | gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; |
57 | gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; |
|
67 | }; |
58 | }; |
|
68 | }; |
59 | }; |
|
Line 69... | Line 60... | |||
69 | |
60 | |
|
70 | keys { |
61 | gpio-keys-polled { |
|
- | 62 | compatible = "gpio-keys-polled"; |
||
- | 63 | #address-cells = <1>; |
||
71 | compatible = "gpio-keys-polled"; |
64 | #size-cells = <0>; |
|
Line 72... | Line 65... | |||
72 | poll-interval = <20>; |
65 | poll-interval = <20>; |
|
73 | |
66 | |
|
74 | reset { |
67 | reset { |
|
Line 99... | Line 92... | |||
99 | |
92 | |
|
100 | &spi0 { |
93 | &spi0 { |
|
Line 101... | Line 94... | |||
101 | status = "okay"; |
94 | status = "okay"; |
|
- | 95 | |
||
- | 96 | m25p80@0 { |
||
102 | |
97 | #address-cells = <1>; |
|
103 | m25p80@0 { |
98 | #size-cells = <1>; |
|
104 | compatible = "jedec,spi-nor"; |
99 | compatible = "jedec,spi-nor"; |
|
Line 105... | Line -... | |||
105 | reg = <0>; |
- | ||
106 | spi-max-frequency = <10000000>; |
- | ||
107 | |
- | ||
108 | partitions { |
- | ||
109 | compatible = "fixed-partitions"; |
- | ||
110 | #address-cells = <1>; |
100 | reg = <0>; |
|
111 | #size-cells = <1>; |
101 | spi-max-frequency = <10000000>; |
|
112 | |
102 | |
|
113 | partition@0 { |
103 | partition@0 { |
|
114 | label = "u-boot"; |
104 | label = "u-boot"; |
|
115 | reg = <0x0 0x20000>; |
105 | reg = <0x0 0x20000>; |
|
116 | read-only; |
106 | read-only; |
|
117 | }; |
- | ||
118 | |
107 | }; |
|
119 | partition@20000 { |
108 | |
|
120 | compatible = "tplink,firmware"; |
109 | partition@20000 { |
|
121 | label = "firmware"; |
110 | label = "firmware"; |
|
122 | reg = <0x20000 0x7a0000>; |
111 | reg = <0x20000 0x7a0000>; |
|
123 | }; |
112 | }; |
|
124 | |
113 | |
|
125 | partition@7c0000 { |
114 | partition@7c0000 { |
|
126 | label = "config"; |
115 | label = "config"; |
|
127 | reg = <0x7c0000 0x10000>; |
116 | reg = <0x7c0000 0x10000>; |
|
128 | read-only; |
117 | read-only; |
|
129 | }; |
118 | }; |
|
130 | |
119 | |
|
131 | rom: partition@7d0000 { |
120 | rom: partition@7d0000 { |
|
132 | label = "rom"; |
121 | label = "rom"; |
|
133 | reg = <0x7d0000 0x10000>; |
122 | reg = <0x7d0000 0x10000>; |
|
134 | read-only; |
123 | read-only; |
|
135 | }; |
124 | }; |
|
136 | |
125 | |
|
137 | partition@7e0000 { |
126 | partition@7e0000 { |
|
138 | label = "romfile"; |
127 | label = "romfile"; |
|
139 | reg = <0x7e0000 0x10000>; |
128 | reg = <0x7e0000 0x10000>; |
|
140 | read-only; |
129 | read-only; |
|
141 | }; |
130 | }; |
|
142 | |
131 | |
|
143 | radio: partition@7f0000 { |
132 | radio: partition@7f0000 { |
|
144 | label = "radio"; |
- | ||
145 | reg = <0x7f0000 0x10000>; |
133 | label = "radio"; |
|
146 | read-only; |
134 | reg = <0x7f0000 0x10000>; |
|
147 | }; |
135 | read-only; |
|
Line 148... | Line 136... | |||
148 | }; |
136 | }; |
|
Line 184... | Line 172... | |||
184 | pinctrl-0 = <&pa_pins>; |
172 | pinctrl-0 = <&pa_pins>; |
|
185 | }; |
173 | }; |
|
Line 186... | Line 174... | |||
186 | |
174 | |
|
187 | &pcie { |
175 | &pcie { |
|
188 | status = "okay"; |
- | ||
Line 189... | Line 176... | |||
189 | }; |
176 | status = "okay"; |
|
190 | |
177 | |
|
191 | &pcie0 { |
178 | pcie-bridge { |
|
- | 179 | mt76@0,0 { |
||
192 | mt76@0,0 { |
180 | reg = <0x0000 0 0 0 0>; |
|
193 | reg = <0x0000 0 0 0 0>; |
181 | device_type = "pci"; |
|
194 | mediatek,mtd-eeprom = <&radio 0x8000>; |
182 | mediatek,mtd-eeprom = <&radio 0x8000>; |
|
195 | ieee80211-freq-limit = <5000000 6000000>; |
183 | ieee80211-freq-limit = <5000000 6000000>; |
|
- | 184 | mtd-mac-address = <&rom 0xf100>; |
||
196 | mtd-mac-address = <&rom 0xf100>; |
185 | mtd-mac-address-increment = <(-1)>; |
|
197 | mtd-mac-address-increment = <(-1)>; |
186 | }; |