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,115200"; |
13 | bootargs = "console=ttyS0,115200"; |
|
Line 14... | Line 14... | |||
14 | }; |
14 | }; |
|
15 | |
15 | |
|
16 | leds { |
16 | gpio-leds { |
|
17 | compatible = "gpio-leds"; |
17 | compatible = "gpio-leds"; |
|
18 | lan { |
18 | lan { |
|
19 | label = "c20i:blue:lan"; |
19 | label = "c20i:blue:lan"; |
|
20 | gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
20 | gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
|
21 | }; |
21 | }; |
|
22 | usb { |
22 | usb { |
|
23 | label = "c20i:blue:usb"; |
- | ||
24 | gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
- | ||
25 | trigger-sources = <&ohci_port1>, <&ehci_port1>; |
23 | label = "c20i:blue:usb"; |
|
26 | linux,default-trigger = "usbport"; |
24 | gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
|
27 | }; |
25 | }; |
|
28 | wps { |
26 | wps { |
|
29 | label = "c20i:blue:wps"; |
27 | label = "c20i:blue:wps"; |
|
Line 37... | Line 35... | |||
37 | label = "c20i:blue:wlan"; |
35 | label = "c20i:blue:wlan"; |
|
38 | gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
36 | gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
|
39 | }; |
37 | }; |
|
40 | }; |
38 | }; |
|
Line 41... | Line 39... | |||
41 | |
39 | |
|
42 | keys { |
40 | gpio-keys { |
|
43 | compatible = "gpio-keys"; |
- | ||
- | 41 | compatible = "gpio-keys"; |
||
- | 42 | #address-cells = <1>; |
||
44 | |
43 | #size-cells = <0>; |
|
45 | rfkill { |
44 | rfkill { |
|
46 | label = "rfkill"; |
45 | label = "rfkill"; |
|
47 | gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
46 | gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
|
48 | linux,code = <KEY_RFKILL>; |
47 | linux,code = <KEY_RFKILL>; |
|
Line 69... | Line 68... | |||
69 | |
68 | |
|
70 | &spi0 { |
69 | &spi0 { |
|
Line 71... | Line 70... | |||
71 | status = "okay"; |
70 | status = "okay"; |
|
- | 71 | |
||
- | 72 | m25p80@0 { |
||
72 | |
73 | #address-cells = <1>; |
|
73 | m25p80@0 { |
74 | #size-cells = <1>; |
|
74 | compatible = "jedec,spi-nor"; |
75 | compatible = "jedec,spi-nor"; |
|
Line 75... | Line -... | |||
75 | reg = <0>; |
- | ||
76 | spi-max-frequency = <10000000>; |
- | ||
77 | |
- | ||
78 | partitions { |
- | ||
79 | compatible = "fixed-partitions"; |
- | ||
80 | #address-cells = <1>; |
76 | reg = <0>; |
|
81 | #size-cells = <1>; |
77 | spi-max-frequency = <10000000>; |
|
82 | |
78 | |
|
83 | partition@0 { |
79 | partition@0 { |
|
84 | label = "u-boot"; |
80 | label = "u-boot"; |
|
85 | reg = <0x0 0x20000>; |
81 | reg = <0x0 0x20000>; |
|
86 | read-only; |
82 | read-only; |
|
87 | }; |
- | ||
88 | |
83 | }; |
|
89 | partition@20000 { |
84 | |
|
90 | compatible = "tplink,firmware"; |
85 | partition@20000 { |
|
91 | label = "firmware"; |
86 | label = "firmware"; |
|
92 | reg = <0x20000 0x7a0000>; |
87 | reg = <0x20000 0x7a0000>; |
|
93 | }; |
88 | }; |
|
94 | |
89 | |
|
95 | partition@7c0000 { |
90 | partition@7c0000 { |
|
96 | label = "config"; |
91 | label = "config"; |
|
97 | reg = <0x7c0000 0x10000>; |
92 | reg = <0x7c0000 0x10000>; |
|
98 | }; |
93 | }; |
|
99 | |
94 | |
|
100 | rom: partition@7d0000 { |
95 | rom: partition@7d0000 { |
|
101 | label = "rom"; |
96 | label = "rom"; |
|
102 | reg = <0x7d0000 0x10000>; |
97 | reg = <0x7d0000 0x10000>; |
|
103 | }; |
98 | }; |
|
104 | |
99 | |
|
105 | partition@7e0000 { |
100 | partition@7e0000 { |
|
106 | label = "romfile"; |
101 | label = "romfile"; |
|
107 | reg = <0x7e0000 0x10000>; |
102 | reg = <0x7e0000 0x10000>; |
|
108 | }; |
103 | }; |
|
109 | |
104 | |
|
110 | radio: partition@7f0000 { |
- | ||
111 | label = "radio"; |
105 | radio: partition@7f0000 { |
|
112 | reg = <0x7f0000 0x10000>; |
106 | label = "radio"; |
|
113 | }; |
107 | reg = <0x7f0000 0x10000>; |
|
Line 114... | Line 108... | |||
114 | }; |
108 | }; |
|
Line 146... | Line 140... | |||
146 | ralink,mtd-eeprom = <&radio 0>; |
140 | ralink,mtd-eeprom = <&radio 0>; |
|
147 | }; |
141 | }; |
|
Line 148... | Line 142... | |||
148 | |
142 | |
|
149 | &pcie { |
143 | &pcie { |
|
150 | status = "okay"; |
- | ||
Line 151... | Line 144... | |||
151 | }; |
144 | status = "okay"; |
|
152 | |
145 | |
|
153 | &pcie0 { |
146 | pcie-bridge { |
|
- | 147 | mt76@0,0 { |
||
154 | mt76@0,0 { |
148 | reg = <0x0000 0 0 0 0>; |
|
155 | reg = <0x0000 0 0 0 0>; |
149 | device_type = "pci"; |
|
156 | mediatek,mtd-eeprom = <&radio 32768>; |
150 | mediatek,mtd-eeprom = <&radio 32768>; |
|
157 | ieee80211-freq-limit = <5000000 6000000>; |
151 | }; |