OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 6... | Line 6... | |||
6 | |
6 | |
|
7 | / { |
7 | / { |
|
8 | compatible = "zbtlink,zbt-we1226", "mediatek,mt7628an-soc"; |
8 | compatible = "zbtlink,zbt-we1226", "mediatek,mt7628an-soc"; |
|
Line 9... | Line -... | |||
9 | model = "Zbtlink ZBT-WE1226"; |
- | ||
10 | |
- | ||
11 | aliases { |
- | ||
12 | led-boot = &led_wlan; |
- | ||
13 | led-failsafe = &led_wlan; |
- | ||
14 | led-running = &led_wlan; |
- | ||
15 | led-upgrade = &led_wlan; |
- | ||
16 | }; |
9 | model = "Zbtlink ZBT-WE1226"; |
|
17 | |
10 | |
|
18 | chosen { |
11 | chosen { |
|
Line 19... | Line 12... | |||
19 | bootargs = "console=ttyS0,115200"; |
12 | bootargs = "console=ttyS0,115200"; |
|
20 | }; |
13 | }; |
|
21 | |
14 | |
|
22 | memory@0 { |
15 | memory@0 { |
|
Line 23... | Line 16... | |||
23 | device_type = "memory"; |
16 | device_type = "memory"; |
|
24 | reg = <0x0 0x4000000>; |
17 | reg = <0x0 0x4000000>; |
|
- | 18 | }; |
||
- | 19 | |
||
25 | }; |
20 | gpio-keys-polled { |
|
Line 26... | Line 21... | |||
26 | |
21 | compatible = "gpio-keys-polled"; |
|
27 | keys { |
22 | #address-cells = <1>; |
|
28 | compatible = "gpio-keys-polled"; |
23 | #size-cells = <0>; |
|
29 | poll-interval = <20>; |
24 | poll-interval = <20>; |
|
30 | |
25 | |
|
31 | reset { |
26 | reset { |
|
Line 32... | Line 27... | |||
32 | label = "reset"; |
27 | label = "reset"; |
|
33 | gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; |
28 | gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; |
|
Line 34... | Line 29... | |||
34 | linux,code = <KEY_RESTART>; |
29 | linux,code = <KEY_RESTART>; |
|
35 | }; |
30 | }; |
|
36 | }; |
31 | }; |
|
Line 51... | Line 46... | |||
51 | lan2 { |
46 | lan2 { |
|
52 | label = "zbt-we1226:green:lan2"; |
47 | label = "zbt-we1226:green:lan2"; |
|
53 | gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; |
48 | gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; |
|
54 | }; |
49 | }; |
|
Line 55... | Line 50... | |||
55 | |
50 | |
|
56 | led_wlan: wlan { |
51 | wlan { |
|
57 | label = "zbt-we1226:green:wlan"; |
52 | label = "zbt-we1226:green:wlan"; |
|
58 | gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; |
53 | gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; |
|
59 | }; |
54 | }; |
|
60 | }; |
55 | }; |
|
Line 71... | Line 66... | |||
71 | |
66 | |
|
72 | &spi0 { |
67 | &spi0 { |
|
Line 73... | Line 68... | |||
73 | status = "okay"; |
68 | status = "okay"; |
|
- | 69 | |
||
- | 70 | m25p80@0 { |
||
74 | |
71 | #address-cells = <1>; |
|
75 | m25p80@0 { |
72 | #size-cells = <1>; |
|
76 | compatible = "jedec,spi-nor"; |
73 | compatible = "jedec,spi-nor"; |
|
- | 74 | reg = <0>; |
||
- | 75 | spi-max-frequency = <10000000>; |
||
- | 76 | m25p,chunked-io = <32>; |
||
- | 77 | |
||
- | 78 | partition@0 { |
||
- | 79 | label = "u-boot"; |
||
- | 80 | reg = <0x0 0x30000>; |
||
- | 81 | read-only; |
||
- | 82 | }; |
||
- | 83 | |
||
- | 84 | partition@30000 { |
||
- | 85 | label = "u-boot-env"; |
||
- | 86 | reg = <0x30000 0x10000>; |
||
- | 87 | read-only; |
||
- | 88 | }; |
||
- | 89 | |
||
- | 90 | factory: partition@40000 { |
||
- | 91 | label = "factory"; |
||
- | 92 | reg = <0x40000 0x10000>; |
||
Line 77... | Line -... | |||
77 | reg = <0>; |
- | ||
78 | spi-max-frequency = <10000000>; |
- | ||
79 | |
- | ||
80 | partitions { |
- | ||
81 | compatible = "fixed-partitions"; |
- | ||
82 | #address-cells = <1>; |
- | ||
83 | #size-cells = <1>; |
- | ||
84 | |
- | ||
85 | partition@0 { |
- | ||
86 | label = "u-boot"; |
- | ||
87 | reg = <0x0 0x30000>; |
- | ||
88 | read-only; |
- | ||
89 | }; |
- | ||
90 | |
- | ||
91 | partition@30000 { |
- | ||
92 | label = "u-boot-env"; |
- | ||
93 | reg = <0x30000 0x10000>; |
- | ||
94 | read-only; |
- | ||
95 | }; |
- | ||
96 | |
- | ||
97 | factory: partition@40000 { |
- | ||
98 | label = "factory"; |
- | ||
99 | reg = <0x40000 0x10000>; |
- | ||
100 | read-only; |
93 | read-only; |
|
101 | }; |
- | ||
102 | |
94 | }; |
|
103 | partition@50000 { |
95 | |
|
104 | compatible = "denx,uimage"; |
- | ||
105 | label = "firmware"; |
96 | partition@50000 { |
|
106 | reg = <0x50000 0x7b0000>; |
97 | label = "firmware"; |
|
107 | }; |
98 | reg = <0x50000 0x7b0000>; |
|
Line 108... | Line 99... | |||
108 | }; |
99 | }; |