OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
1 | /dts-v1/; |
1 | /dts-v1/; |
|
2 | |
2 | |
|
3 | #include <dt-bindings/gpio/gpio.h> |
3 | #include <dt-bindings/gpio/gpio.h> |
|
4 | #include <dt-bindings/input/input.h> |
4 | #include <dt-bindings/input/input.h> |
|
5 | |
5 | |
|
6 | #include "mt7620n.dtsi" |
6 | #include "mt7620n.dtsi" |
|
7 | |
7 | |
|
8 | / { |
8 | / { |
|
9 | compatible = "zbtlink,zbt-we2026", "ralink,mt7620n-soc"; |
9 | compatible = "zbtlink,zbt-we2026", "ralink,mt7620n-soc"; |
|
10 | model = "Zbtlink ZBT-WE2026"; |
10 | model = "Zbtlink ZBT-WE2026"; |
|
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 | |
|
19 | chosen { |
12 | chosen { |
|
20 | bootargs = "console=ttyS0,115200"; |
13 | bootargs = "console=ttyS0,115200"; |
|
21 | }; |
14 | }; |
|
22 | |
15 | |
|
23 | leds { |
16 | gpio-leds { |
|
24 | compatible = "gpio-leds"; |
17 | compatible = "gpio-leds"; |
|
25 | |
18 | |
|
26 | led_power: power { |
19 | power { |
|
27 | label = "zbt-we2026:red:power"; |
20 | label = "zbt-we2026:red:power"; |
|
28 | gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; |
21 | gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; |
|
29 | }; |
22 | }; |
|
30 | |
23 | |
|
31 | wlan { |
24 | wlan { |
|
32 | label = "zbt-we2026:green:wlan"; |
25 | label = "zbt-we2026:green:wlan"; |
|
33 | gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
26 | gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
|
34 | }; |
27 | }; |
|
35 | }; |
28 | }; |
|
36 | |
29 | |
|
37 | keys { |
30 | gpio-keys-polled { |
|
- | 31 | compatible = "gpio-keys-polled"; |
||
- | 32 | #address-cells = <1>; |
||
38 | compatible = "gpio-keys-polled"; |
33 | #size-cells = <0>; |
|
39 | poll-interval = <20>; |
34 | poll-interval = <20>; |
|
40 | |
35 | |
|
41 | reset { |
36 | reset { |
|
42 | label = "reset"; |
37 | label = "reset"; |
|
43 | gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
38 | gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
|
44 | linux,code = <KEY_RESTART>; |
39 | linux,code = <KEY_RESTART>; |
|
45 | }; |
40 | }; |
|
46 | }; |
41 | }; |
|
47 | }; |
42 | }; |
|
48 | |
43 | |
|
49 | &gpio1 { |
44 | &gpio1 { |
|
50 | status = "okay"; |
45 | status = "okay"; |
|
51 | }; |
46 | }; |
|
52 | |
47 | |
|
53 | &gpio3 { |
48 | &gpio3 { |
|
54 | status = "okay"; |
49 | status = "okay"; |
|
55 | }; |
50 | }; |
|
56 | |
51 | |
|
57 | &spi0 { |
52 | &spi0 { |
|
58 | status = "okay"; |
53 | status = "okay"; |
|
59 | |
54 | |
|
60 | en25q64@0 { |
55 | en25q64@0 { |
|
- | 56 | #address-cells = <1>; |
||
- | 57 | #size-cells = <1>; |
||
61 | compatible = "jedec,spi-nor"; |
58 | compatible = "jedec,spi-nor"; |
|
62 | reg = <0>; |
59 | reg = <0>; |
|
63 | spi-max-frequency = <10000000>; |
60 | spi-max-frequency = <10000000>; |
|
64 | |
- | ||
65 | partitions { |
- | ||
66 | compatible = "fixed-partitions"; |
- | ||
67 | #address-cells = <1>; |
- | ||
68 | #size-cells = <1>; |
- | ||
69 | |
61 | |
|
70 | partition@0 { |
62 | partition@0 { |
|
71 | label = "u-boot"; |
63 | label = "u-boot"; |
|
72 | reg = <0x0 0x30000>; |
64 | reg = <0x0 0x30000>; |
|
73 | read-only; |
65 | read-only; |
|
74 | }; |
66 | }; |
|
75 | |
67 | |
|
76 | partition@30000 { |
68 | partition@30000 { |
|
77 | label = "u-boot-env"; |
69 | label = "u-boot-env"; |
|
78 | reg = <0x30000 0x10000>; |
70 | reg = <0x30000 0x10000>; |
|
79 | read-only; |
71 | read-only; |
|
80 | }; |
72 | }; |
|
81 | |
73 | |
|
82 | factory: partition@40000 { |
74 | factory: partition@40000 { |
|
83 | label = "factory"; |
75 | label = "factory"; |
|
84 | reg = <0x40000 0x10000>; |
76 | reg = <0x40000 0x10000>; |
|
85 | read-only; |
77 | read-only; |
|
86 | }; |
78 | }; |
|
87 | |
79 | |
|
88 | partition@50000 { |
- | ||
89 | compatible = "denx,uimage"; |
80 | partition@50000 { |
|
90 | label = "firmware"; |
81 | label = "firmware"; |
|
91 | reg = <0x50000 0x760000>; |
- | ||
92 | }; |
82 | reg = <0x50000 0x760000>; |
|
93 | }; |
83 | }; |
|
94 | }; |
84 | }; |
|
95 | }; |
85 | }; |
|
96 | |
86 | |
|
97 | ðernet { |
87 | ðernet { |
|
98 | mtd-mac-address = <&factory 0x4>; |
88 | mtd-mac-address = <&factory 0x4>; |
|
99 | mediatek,portmap = "wllll"; |
89 | mediatek,portmap = "wllll"; |
|
100 | }; |
90 | }; |
|
101 | |
91 | |
|
102 | &wmac { |
92 | &wmac { |
|
103 | ralink,mtd-eeprom = <&factory 0>; |
93 | ralink,mtd-eeprom = <&factory 0>; |
|
104 | }; |
94 | }; |
|
105 | |
95 | |
|
106 | &pinctrl { |
96 | &pinctrl { |
|
107 | state_default: pinctrl0 { |
97 | state_default: pinctrl0 { |
|
108 | default { |
98 | default { |
|
109 | ralink,group = "i2c", "spi refclk", "wled"; |
99 | ralink,group = "i2c", "spi refclk", "wled"; |
|
110 | ralink,function = "gpio"; |
100 | ralink,function = "gpio"; |
|
111 | }; |
101 | }; |
|
112 | }; |
102 | }; |
|
113 | }; |
103 | }; |
|
114 | |
104 | |