OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 7... | Line 7... | |||
7 | |
7 | |
|
8 | / { |
8 | / { |
|
9 | compatible = "d-team,newifi-d2", "mediatek,mt7621-soc"; |
9 | compatible = "d-team,newifi-d2", "mediatek,mt7621-soc"; |
|
Line 10... | Line -... | |||
10 | model = "Newifi-D2"; |
- | ||
11 | |
- | ||
12 | aliases { |
- | ||
13 | led-boot = &led_power_blue; |
- | ||
14 | led-failsafe = &led_power_blue; |
- | ||
15 | led-running = &led_power_blue; |
- | ||
16 | led-upgrade = &led_power_blue; |
- | ||
17 | }; |
10 | model = "Newifi-D2"; |
|
18 | |
11 | |
|
19 | memory@0 { |
12 | memory@0 { |
|
20 | device_type = "memory"; |
13 | device_type = "memory"; |
|
Line 21... | Line 14... | |||
21 | reg = <0x0 0x1c000000>, <0x20000000 0x4000000>; |
14 | reg = <0x0 0x1c000000>, <0x20000000 0x4000000>; |
|
22 | }; |
15 | }; |
|
23 | |
16 | |
|
Line 24... | Line 17... | |||
24 | chosen { |
17 | chosen { |
|
25 | bootargs = "console=ttyS0,115200"; |
18 | bootargs = "console=ttyS0,115200"; |
|
Line 26... | Line 19... | |||
26 | }; |
19 | }; |
|
27 | |
20 | |
|
28 | leds { |
21 | gpio-leds { |
|
29 | compatible = "gpio-leds"; |
22 | compatible = "gpio-leds"; |
|
Line 30... | Line 23... | |||
30 | |
23 | |
|
31 | power-amber { |
24 | power-amber { |
|
32 | label = "newifi-d2:amber:power"; |
25 | label = "newifi-d2:amber:power"; |
|
33 | gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; |
26 | gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; |
|
Line 34... | Line 27... | |||
34 | }; |
27 | }; |
|
Line 59... | Line 52... | |||
59 | }; |
52 | }; |
|
Line 60... | Line 53... | |||
60 | |
53 | |
|
61 | usb { |
54 | usb { |
|
62 | label = "newifi-d2:blue:usb"; |
55 | label = "newifi-d2:blue:usb"; |
|
63 | gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
- | ||
64 | trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; |
- | ||
65 | linux,default-trigger = "usbport"; |
56 | gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
|
66 | }; |
57 | }; |
|
Line 67... | Line 58... | |||
67 | }; |
58 | }; |
|
68 | |
59 | |
|
- | 60 | gpio-keys-polled { |
||
- | 61 | compatible = "gpio-keys-polled"; |
||
69 | keys { |
62 | #address-cells = <1>; |
|
Line 70... | Line 63... | |||
70 | compatible = "gpio-keys-polled"; |
63 | #size-cells = <0>; |
|
71 | poll-interval = <20>; |
64 | poll-interval = <20>; |
|
72 | |
65 | |
|
Line 97... | Line 90... | |||
97 | |
90 | |
|
98 | &spi0 { |
91 | &spi0 { |
|
Line 99... | Line 92... | |||
99 | status = "okay"; |
92 | status = "okay"; |
|
- | 93 | |
||
- | 94 | m25p80@0 { |
||
100 | |
95 | #address-cells = <1>; |
|
101 | m25p80@0 { |
96 | #size-cells = <1>; |
|
102 | compatible = "jedec,spi-nor"; |
97 | compatible = "jedec,spi-nor"; |
|
- | 98 | reg = <0>; |
||
- | 99 | spi-max-frequency = <10000000>; |
||
- | 100 | m25p,chunked-io = <32>; |
||
- | 101 | |
||
- | 102 | partition@0 { |
||
- | 103 | label = "u-boot"; |
||
- | 104 | reg = <0x0 0x30000>; |
||
- | 105 | read-only; |
||
- | 106 | }; |
||
- | 107 | |
||
- | 108 | partition@30000 { |
||
- | 109 | label = "u-boot-env"; |
||
- | 110 | reg = <0x30000 0x10000>; |
||
Line 103... | Line -... | |||
103 | reg = <0>; |
- | ||
104 | spi-max-frequency = <10000000>; |
- | ||
105 | |
- | ||
106 | partitions { |
- | ||
107 | compatible = "fixed-partitions"; |
- | ||
108 | #address-cells = <1>; |
- | ||
109 | #size-cells = <1>; |
- | ||
110 | |
- | ||
111 | partition@0 { |
- | ||
112 | label = "u-boot"; |
- | ||
113 | reg = <0x0 0x30000>; |
- | ||
114 | read-only; |
- | ||
115 | }; |
- | ||
116 | |
- | ||
117 | partition@30000 { |
- | ||
118 | label = "u-boot-env"; |
- | ||
119 | reg = <0x30000 0x10000>; |
- | ||
120 | read-only; |
111 | read-only; |
|
121 | }; |
112 | }; |
|
122 | |
113 | |
|
123 | factory: partition@40000 { |
114 | factory: partition@40000 { |
|
124 | label = "factory"; |
115 | label = "factory"; |
|
125 | reg = <0x40000 0x10000>; |
116 | reg = <0x40000 0x10000>; |
|
126 | read-only; |
117 | read-only; |
|
127 | }; |
- | ||
128 | |
118 | }; |
|
129 | partition@50000 { |
119 | |
|
130 | compatible = "denx,uimage"; |
- | ||
131 | label = "firmware"; |
120 | partition@50000 { |
|
132 | reg = <0x50000 0x1fb0000>; |
121 | label = "firmware"; |
|
133 | }; |
122 | reg = <0x50000 0x1fb0000>; |
|
Line 134... | Line 123... | |||
134 | }; |
123 | }; |
|
135 | }; |
124 | }; |
|
136 | }; |
- | ||
Line 137... | Line 125... | |||
137 | |
125 | }; |
|
138 | &pcie { |
126 | |
|
139 | status = "okay"; |
127 | &pcie { |
|
- | 128 | status = "okay"; |
||
140 | }; |
129 | |
|
141 | |
130 | pcie0 { |
|
- | 131 | mt76@0,0 { |
||
142 | &pcie0 { |
132 | reg = <0x0000 0 0 0 0>; |
|
143 | mt76@0,0 { |
- | ||
Line 144... | Line 133... | |||
144 | reg = <0x0000 0 0 0 0>; |
133 | device_type = "pci"; |
|
145 | mediatek,mtd-eeprom = <&factory 0x8000>; |
134 | mediatek,mtd-eeprom = <&factory 0x8000>; |
|
146 | ieee80211-freq-limit = <5000000 6000000>; |
135 | ieee80211-freq-limit = <5000000 6000000>; |
|
- | 136 | }; |
||
147 | }; |
137 | }; |
|
- | 138 | |
||
148 | }; |
139 | pcie1 { |
|
149 | |
140 | mt76@1,0 { |
|
Line 150... | Line 141... | |||
150 | &pcie1 { |
141 | reg = <0x0000 0 0 0 0>; |
|
151 | mt76@0,0 { |
142 | device_type = "pci"; |