OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 7... | Line 7... | |||
7 | |
7 | |
|
8 | / { |
8 | / { |
|
9 | compatible = "elecom,wrc-1167ghbk2-s", "mediatek,mt7621-soc"; |
9 | compatible = "elecom,wrc-1167ghbk2-s", "mediatek,mt7621-soc"; |
|
Line 10... | Line -... | |||
10 | model = "ELECOM WRC-1167GHBK2-S"; |
- | ||
11 | |
- | ||
12 | aliases { |
- | ||
13 | led-boot = &led_power_green; |
- | ||
14 | led-failsafe = &led_power_green; |
- | ||
15 | led-running = &led_power_green; |
- | ||
16 | led-upgrade = &led_power_green; |
- | ||
17 | }; |
10 | model = "ELECOM WRC-1167GHBK2-S"; |
|
18 | |
11 | |
|
19 | memory@0 { |
12 | memory@0 { |
|
20 | device_type = "memory"; |
13 | device_type = "memory"; |
|
Line 21... | Line 14... | |||
21 | reg = <0x0 0x8000000>; |
14 | reg = <0x0 0x8000000>; |
|
22 | }; |
15 | }; |
|
23 | |
16 | |
|
Line 24... | Line 17... | |||
24 | chosen { |
17 | chosen { |
|
25 | bootargs = "console=ttyS0,57600"; |
18 | bootargs = "console=ttyS0,57600"; |
|
Line 26... | Line 19... | |||
26 | }; |
19 | }; |
|
27 | |
20 | |
|
28 | leds { |
21 | gpio-leds { |
|
Line 36... | Line 29... | |||
36 | wlan5g { |
29 | wlan5g { |
|
37 | label = "wrc-1167ghbk2-s:white:wlan5g"; |
30 | label = "wrc-1167ghbk2-s:white:wlan5g"; |
|
38 | gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; |
31 | gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; |
|
39 | }; |
32 | }; |
|
Line 40... | Line 33... | |||
40 | |
33 | |
|
41 | led_power_green: power_green { |
34 | power_green { |
|
42 | label = "wrc-1167ghbk2-s:green:power"; |
35 | label = "wrc-1167ghbk2-s:green:power"; |
|
43 | gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; |
36 | gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; |
|
Line 44... | Line 37... | |||
44 | }; |
37 | }; |
|
Line 57... | Line 50... | |||
57 | label = "wrc-1167ghbk2-s:red:power"; |
50 | label = "wrc-1167ghbk2-s:red:power"; |
|
58 | gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>; |
51 | gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>; |
|
59 | }; |
52 | }; |
|
60 | }; |
53 | }; |
|
Line 61... | Line 54... | |||
61 | |
54 | |
|
62 | keys { |
55 | gpio-keys-polled { |
|
- | 56 | compatible = "gpio-keys-polled"; |
||
- | 57 | #address-cells = <1>; |
||
63 | compatible = "gpio-keys-polled"; |
58 | #size-cells = <0>; |
|
Line 64... | Line 59... | |||
64 | poll-interval = <20>; |
59 | poll-interval = <20>; |
|
65 | |
60 | |
|
66 | reset { |
61 | reset { |
|
Line 83... | Line 78... | |||
83 | |
78 | |
|
84 | &spi0 { |
79 | &spi0 { |
|
Line 85... | Line 80... | |||
85 | status = "okay"; |
80 | status = "okay"; |
|
- | 81 | |
||
- | 82 | m25p80@0 { |
||
86 | |
83 | #address-cells = <1>; |
|
87 | m25p80@0 { |
84 | #size-cells = <1>; |
|
88 | compatible = "jedec,spi-nor"; |
85 | compatible = "jedec,spi-nor"; |
|
- | 86 | reg = <0>; |
||
- | 87 | spi-max-frequency = <10000000>; |
||
- | 88 | m25p,chunked-io = <32>; |
||
- | 89 | |
||
- | 90 | partition@0 { |
||
- | 91 | label = "u-boot"; |
||
- | 92 | reg = <0x0 0x30000>; |
||
- | 93 | read-only; |
||
- | 94 | }; |
||
- | 95 | |
||
- | 96 | partition@30000 { |
||
- | 97 | label = "u-boot-env"; |
||
- | 98 | reg = <0x30000 0x10000>; |
||
- | 99 | read-only; |
||
- | 100 | }; |
||
- | 101 | |
||
- | 102 | factory: partition@40000 { |
||
- | 103 | label = "factory"; |
||
- | 104 | reg = <0x40000 0x10000>; |
||
- | 105 | read-only; |
||
- | 106 | }; |
||
- | 107 | |
||
- | 108 | partition@50000 { |
||
- | 109 | label = "firmware"; |
||
- | 110 | reg = <0x50000 0xf20000>; |
||
- | 111 | }; |
||
- | 112 | |
||
- | 113 | partition@f70000 { |
||
- | 114 | label = "user_data"; |
||
- | 115 | reg = <0xf70000 0x80000>; |
||
Line 89... | Line -... | |||
89 | reg = <0>; |
- | ||
90 | spi-max-frequency = <10000000>; |
- | ||
91 | |
- | ||
92 | partitions { |
- | ||
93 | compatible = "fixed-partitions"; |
- | ||
94 | #address-cells = <1>; |
- | ||
95 | #size-cells = <1>; |
- | ||
96 | |
- | ||
97 | partition@0 { |
- | ||
98 | label = "u-boot"; |
- | ||
99 | reg = <0x0 0x30000>; |
- | ||
100 | read-only; |
- | ||
101 | }; |
- | ||
102 | |
- | ||
103 | partition@30000 { |
- | ||
104 | label = "u-boot-env"; |
- | ||
105 | reg = <0x30000 0x10000>; |
- | ||
106 | read-only; |
- | ||
107 | }; |
- | ||
108 | |
- | ||
109 | factory: partition@40000 { |
- | ||
110 | label = "factory"; |
- | ||
111 | reg = <0x40000 0x10000>; |
- | ||
112 | read-only; |
- | ||
113 | }; |
- | ||
114 | |
- | ||
115 | partition@50000 { |
- | ||
116 | compatible = "denx,uimage"; |
- | ||
117 | label = "firmware"; |
- | ||
118 | reg = <0x50000 0xf20000>; |
- | ||
119 | }; |
- | ||
120 | |
- | ||
121 | partition@f70000 { |
- | ||
122 | label = "user_data"; |
- | ||
123 | reg = <0xf70000 0x80000>; |
- | ||
124 | read-only; |
116 | read-only; |
|
125 | }; |
117 | }; |
|
126 | |
118 | |
|
127 | partition@ff0000 { |
119 | partition@ff0000 { |
|
128 | label = "NVRAM"; |
- | ||
129 | reg = <0xff0000 0x10000>; |
120 | label = "NVRAM"; |
|
130 | read-only; |
121 | reg = <0xff0000 0x10000>; |
|
131 | }; |
122 | read-only; |
|
Line 132... | Line 123... | |||
132 | }; |
123 | }; |
|
Line 142... | Line 133... | |||
142 | }; |
133 | }; |
|
143 | }; |
134 | }; |
|
Line 144... | Line 135... | |||
144 | |
135 | |
|
145 | &pcie { |
136 | &pcie { |
|
146 | status = "okay"; |
- | ||
147 | /* |
137 | status = "okay"; |
|
148 | * WRC-1167GHBK2-S has MT7615D for 2.4/5 GHz wifi, |
138 | // WRC-1167GHBK2-S has MT7615D for 2.4/5 GHz wifi, |
|
149 | * but it's not supported in OpenWrt. |
- | ||
150 | */ |
139 | // but it's not supported in OpenWrt. |
|
Line 151... | Line 140... | |||
151 | }; |
140 | }; |
|
152 | |
141 | |
|
153 | &xhci { |
142 | &xhci { |