OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 7... | Line 7... | |||
7 | |
7 | |
|
8 | / { |
8 | / { |
|
9 | compatible = "tplink,tl-wr840n-v5", "mediatek,mt7628an-soc"; |
9 | compatible = "tplink,tl-wr840n-v5", "mediatek,mt7628an-soc"; |
|
Line 10... | Line -... | |||
10 | model = "TP-Link TL-WR840N v5"; |
- | ||
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 = "TP-Link TL-WR840N v5"; |
|
18 | |
11 | |
|
19 | chosen { |
12 | chosen { |
|
Line 20... | Line 13... | |||
20 | bootargs = "console=ttyS0,115200"; |
13 | bootargs = "console=ttyS0,115200"; |
|
21 | }; |
14 | }; |
|
22 | |
15 | |
|
23 | memory@0 { |
16 | memory@0 { |
|
Line 24... | Line 17... | |||
24 | device_type = "memory"; |
17 | device_type = "memory"; |
|
25 | reg = <0x0 0x4000000>; |
18 | reg = <0x0 0x4000000>; |
|
- | 19 | }; |
||
- | 20 | |
||
26 | }; |
21 | gpio-keys-polled { |
|
Line 27... | Line 22... | |||
27 | |
22 | compatible = "gpio-keys-polled"; |
|
28 | keys { |
23 | #address-cells = <1>; |
|
29 | compatible = "gpio-keys-polled"; |
24 | #size-cells = <0>; |
|
30 | poll-interval = <20>; |
25 | poll-interval = <20>; |
|
31 | |
26 | |
|
32 | reset { |
27 | reset { |
|
33 | label = "reset"; |
28 | label = "reset"; |
|
34 | gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; |
29 | gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; |
|
35 | linux,code = <KEY_RESTART>; |
30 | linux,code = <KEY_RESTART>; |
|
Line 36... | Line 31... | |||
36 | }; |
31 | }; |
|
37 | }; |
32 | }; |
|
38 | /* LED used is dual-color,dual lead LED */ |
33 | /* LED used is dual-color,dual lead LED */ |
|
39 | leds { |
34 | gpio-leds { |
|
Line 40... | Line 35... | |||
40 | compatible = "gpio-leds"; |
35 | compatible = "gpio-leds"; |
|
Line 53... | Line 48... | |||
53 | |
48 | |
|
54 | &spi0 { |
49 | &spi0 { |
|
Line 55... | Line 50... | |||
55 | status = "okay"; |
50 | status = "okay"; |
|
- | 51 | |
||
- | 52 | m25p80@0 { |
||
56 | |
53 | #address-cells = <1>; |
|
57 | m25p80@0 { |
54 | #size-cells = <1>; |
|
58 | compatible = "jedec,spi-nor"; |
55 | compatible = "jedec,spi-nor"; |
|
- | 56 | reg = <0>; |
||
- | 57 | spi-max-frequency = <10000000>; |
||
- | 58 | m25p,chunked-io = <32>; |
||
- | 59 | |
||
- | 60 | partition@0 { |
||
- | 61 | label = "boot"; |
||
- | 62 | reg = <0x0 0x20000>; |
||
- | 63 | read-only; |
||
- | 64 | }; |
||
- | 65 | |
||
- | 66 | partition@20000 { |
||
- | 67 | label = "firmware"; |
||
Line 59... | Line -... | |||
59 | reg = <0>; |
- | ||
60 | spi-max-frequency = <10000000>; |
- | ||
61 | |
- | ||
62 | partitions { |
- | ||
63 | compatible = "fixed-partitions"; |
- | ||
64 | #address-cells = <1>; |
- | ||
65 | #size-cells = <1>; |
- | ||
66 | |
- | ||
67 | partition@0 { |
- | ||
68 | label = "boot"; |
- | ||
69 | reg = <0x0 0x20000>; |
- | ||
70 | read-only; |
- | ||
71 | }; |
- | ||
72 | |
- | ||
73 | partition@20000 { |
- | ||
74 | compatible = "tplink,firmware"; |
- | ||
75 | label = "firmware"; |
- | ||
76 | reg = <0x20000 0x3d0000>; |
68 | reg = <0x20000 0x3d0000>; |
|
77 | }; |
69 | }; |
|
78 | |
70 | |
|
79 | factory: partition@3f0000 { |
71 | factory: partition@3f0000 { |
|
80 | label = "factory"; |
- | ||
81 | reg = <0x3f0000 0x10000>; |
72 | label = "factory"; |
|
82 | read-only; |
73 | reg = <0x3f0000 0x10000>; |
|
83 | }; |
74 | read-only; |
|
Line 84... | Line 75... | |||
84 | }; |
75 | }; |
|
Line 94... | Line 85... | |||
94 | }; |
85 | }; |
|
Line 95... | Line 86... | |||
95 | |
86 | |
|
96 | &wmac { |
87 | &wmac { |
|
97 | status = "okay"; |
88 | status = "okay"; |
|
98 | mtd-mac-address = <&factory 0xf100>; |
89 | mtd-mac-address = <&factory 0xf100>; |
|
99 | mediatek,mtd-eeprom = <&factory 0x0>; |
90 | mediatek,mtd-eeprom = <&factory 0x10000>; |
|
Line 100... | Line 91... | |||
100 | }; |
91 | }; |
|
101 | |
92 | |
|
102 | ðernet { |
93 | ðernet { |