OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 11... | Line 11... | |||
11 | |
11 | |
|
12 | chosen { |
12 | chosen { |
|
13 | bootargs = "console=ttyS0,57600"; |
13 | bootargs = "console=ttyS0,57600"; |
|
Line 14... | Line 14... | |||
14 | }; |
14 | }; |
|
15 | |
15 | |
|
Line 16... | Line 16... | |||
16 | leds { |
16 | gpio-leds { |
|
17 | compatible = "gpio-leds"; |
17 | compatible = "gpio-leds"; |
|
18 | |
18 | |
|
19 | usb { |
- | ||
20 | label = "tiny-ac:green:usb"; |
- | ||
21 | gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
19 | usb { |
|
Line 22... | Line 20... | |||
22 | trigger-sources = <&ohci_port1>, <&ehci_port1>; |
20 | label = "tiny-ac:green:usb"; |
|
23 | linux,default-trigger = "usbport"; |
21 | gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
|
24 | }; |
22 | }; |
|
25 | |
23 | |
|
- | 24 | wifi { |
||
26 | wifi { |
25 | label = "tiny-ac:orange:wifi"; |
|
Line 27... | Line 26... | |||
27 | label = "tiny-ac:orange:wifi"; |
26 | gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
|
28 | gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
27 | }; |
|
- | 28 | |
||
- | 29 | }; |
||
29 | }; |
30 | |
|
Line 30... | Line 31... | |||
30 | }; |
31 | gpio-keys-polled { |
|
31 | |
32 | compatible = "gpio-keys-polled"; |
|
32 | keys { |
33 | #address-cells = <1>; |
|
33 | compatible = "gpio-keys-polled"; |
34 | #size-cells = <0>; |
|
34 | poll-interval = <20>; |
35 | poll-interval = <20>; |
|
- | 36 | |
||
35 | |
37 | reset { |
|
Line 36... | Line 38... | |||
36 | reset { |
38 | label = "reset"; |
|
37 | label = "reset"; |
39 | gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
|
38 | gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
40 | linux,code = <KEY_RESTART>; |
|
Line 66... | Line 68... | |||
66 | |
68 | |
|
67 | &spi0 { |
69 | &spi0 { |
|
Line 68... | Line 70... | |||
68 | status = "okay"; |
70 | status = "okay"; |
|
- | 71 | |
||
- | 72 | m25p80@0 { |
||
69 | |
73 | #address-cells = <1>; |
|
70 | m25p80@0 { |
74 | #size-cells = <1>; |
|
71 | compatible = "jedec,spi-nor"; |
75 | compatible = "jedec,spi-nor"; |
|
Line 72... | Line -... | |||
72 | reg = <0>; |
- | ||
73 | spi-max-frequency = <10000000>; |
- | ||
74 | |
- | ||
75 | partitions { |
- | ||
76 | compatible = "fixed-partitions"; |
- | ||
77 | #address-cells = <1>; |
76 | reg = <0>; |
|
78 | #size-cells = <1>; |
77 | spi-max-frequency = <10000000>; |
|
79 | |
78 | |
|
80 | partition@0 { |
79 | partition@0 { |
|
81 | label = "u-boot"; |
80 | label = "u-boot"; |
|
82 | reg = <0x0 0x30000>; |
81 | reg = <0x0 0x30000>; |
|
83 | read-only; |
82 | read-only; |
|
84 | }; |
83 | }; |
|
85 | |
84 | |
|
86 | partition@30000 { |
85 | partition@30000 { |
|
87 | label = "u-boot-env"; |
86 | label = "u-boot-env"; |
|
88 | reg = <0x30000 0x10000>; |
87 | reg = <0x30000 0x10000>; |
|
89 | read-only; |
88 | read-only; |
|
90 | }; |
89 | }; |
|
91 | |
90 | |
|
92 | factory: partition@40000 { |
91 | factory: partition@40000 { |
|
93 | label = "factory"; |
92 | label = "factory"; |
|
94 | reg = <0x40000 0x10000>; |
93 | reg = <0x40000 0x10000>; |
|
95 | read-only; |
94 | read-only; |
|
96 | }; |
- | ||
97 | |
95 | }; |
|
98 | partition@50000 { |
96 | |
|
99 | compatible = "denx,uimage"; |
- | ||
100 | label = "firmware"; |
97 | partition@50000 { |
|
101 | reg = <0x50000 0x7b0000>; |
98 | label = "firmware"; |
|
102 | }; |
99 | reg = <0x50000 0x7b0000>; |
|
Line 103... | Line 100... | |||
103 | }; |
100 | }; |
|
Line 145... | Line 142... | |||
145 | }; |
142 | }; |
|
146 | }; |
143 | }; |
|
Line 147... | Line 144... | |||
147 | |
144 | |
|
148 | &gsw { |
145 | &gsw { |
|
- | 146 | mediatek,port4 = "gmac"; |
||
149 | mediatek,port4 = "gmac"; |
147 | mediatek,mt7530 = <1>; |
|
Line 150... | Line 148... | |||
150 | }; |
148 | }; |
|
151 | |
149 | |
|
152 | &pcie { |
150 | &pcie { |
|
Line 159... | Line 157... | |||
159 | ralink,group = "uartf", "nd_sd", "wled"; |
157 | ralink,group = "uartf", "nd_sd", "wled"; |
|
160 | ralink,function = "gpio"; |
158 | ralink,function = "gpio"; |
|
161 | }; |
159 | }; |
|
162 | }; |
160 | }; |
|
163 | }; |
161 | }; |
|
164 | |
- | ||
165 | &pcie0 { |
- | ||
166 | mt76@0,0 { |
- | ||
167 | reg = <0x0000 0 0 0 0>; |
- | ||
168 | mediatek,mtd-eeprom = <&factory 0x8000>; |
- | ||
169 | ieee80211-freq-limit = <5000000 6000000>; |
- | ||
170 | }; |
- | ||
171 | }; |
- |