OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 5... | Line 5... | |||
5 | #include <dt-bindings/input/input.h> |
5 | #include <dt-bindings/input/input.h> |
|
6 | #include <dt-bindings/gpio/gpio.h> |
6 | #include <dt-bindings/gpio/gpio.h> |
|
Line 7... | Line 7... | |||
7 | |
7 | |
|
8 | / { |
8 | / { |
|
9 | compatible = "mikrotik,rbm33g", "mediatek,mt7621-soc"; |
9 | compatible = "mikrotik,rbm33g", "mediatek,mt7621-soc"; |
|
10 | model = "MikroTik RouterBOARD M33G"; |
- | ||
11 | |
- | ||
12 | aliases { |
- | ||
13 | led-boot = &led_usr; |
- | ||
14 | led-failsafe = &led_usr; |
- | ||
15 | led-running = &led_usr; |
- | ||
16 | led-upgrade = &led_usr; |
- | ||
Line 17... | Line 10... | |||
17 | }; |
10 | model = "MikroTik RBM33G"; |
|
18 | |
11 | |
|
19 | memory@0 { |
12 | memory@0 { |
|
20 | device_type = "memory"; |
13 | device_type = "memory"; |
|
Line 21... | Line 14... | |||
21 | reg = <0x0 0x10000000>; |
14 | reg = <0x0 0x10000000>; |
|
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"; |
|
- | 23 | |
||
30 | |
24 | usr { |
|
Line 31... | Line 25... | |||
31 | led_usr: usr { |
25 | label = "rbm33g:green:usr"; |
|
32 | label = "rbm33g:green:usr"; |
26 | gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; |
|
- | 27 | }; |
||
- | 28 | |
||
33 | gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; |
29 | }; |
|
Line 34... | Line 30... | |||
34 | }; |
30 | |
|
35 | }; |
31 | gpio-keys-polled { |
|
36 | |
32 | compatible = "gpio-keys-polled"; |
|
Line 96... | Line 92... | |||
96 | |
92 | |
|
97 | &spi0 { |
93 | &spi0 { |
|
Line 98... | Line 94... | |||
98 | status = "okay"; |
94 | status = "okay"; |
|
- | 95 | |
||
- | 96 | w25q40@0 { |
||
99 | |
97 | #address-cells = <1>; |
|
100 | w25q40@0 { |
98 | #size-cells = <1>; |
|
101 | compatible = "jedec,spi-nor"; |
99 | compatible = "jedec,spi-nor"; |
|
Line 102... | Line -... | |||
102 | reg = <0>; |
- | ||
103 | spi-max-frequency = <3125000>; |
- | ||
104 | |
- | ||
105 | partitions { |
- | ||
106 | compatible = "fixed-partitions"; |
- | ||
107 | #address-cells = <1>; |
100 | reg = <0>; |
|
108 | #size-cells = <1>; |
101 | spi-max-frequency = <3125000>; |
|
109 | |
102 | |
|
110 | partition@0 { |
103 | partition@0 { |
|
111 | label = "RouterBoot"; |
- | ||
112 | reg = <0x0 0x40000>; |
- | ||
113 | read-only; |
- | ||
114 | compatible = "fixed-partitions"; |
- | ||
115 | #address-cells = <1>; |
- | ||
116 | #size-cells = <1>; |
- | ||
117 | |
- | ||
118 | partition@0 { |
- | ||
119 | label = "bootloader1"; |
- | ||
120 | reg = <0x0 0xf000>; |
- | ||
121 | read-only; |
- | ||
122 | }; |
- | ||
123 | |
- | ||
124 | hard_config: partition@f000 { |
- | ||
125 | label = "hard_config"; |
- | ||
126 | reg = <0xf000 0x1000>; |
- | ||
127 | read-only; |
- | ||
128 | }; |
- | ||
129 | |
- | ||
130 | partition@10000 { |
- | ||
131 | label = "bootloader2"; |
- | ||
132 | reg = <0x10000 0xf000>; |
- | ||
133 | read-only; |
- | ||
134 | }; |
- | ||
135 | |
- | ||
136 | partition@20000 { |
- | ||
137 | label = "soft_config"; |
- | ||
138 | reg = <0x20000 0x1000>; |
- | ||
139 | }; |
- | ||
140 | |
- | ||
141 | partition@30000 { |
- | ||
142 | label = "bios"; |
- | ||
143 | reg = <0x30000 0x1000>; |
- | ||
144 | read-only; |
104 | label = "routerboot"; |
|
- | 105 | reg = <0x0 0xf000>; |
||
- | 106 | read-only; |
||
- | 107 | }; |
||
- | 108 | |
||
- | 109 | factory: partition@f000 { |
||
- | 110 | label = "factory"; |
||
- | 111 | reg = <0xf000 0x71000>; |
||
145 | }; |
112 | read-only; |
|
Line 146... | Line 113... | |||
146 | }; |
113 | }; |
|
- | 114 | |
||
- | 115 | }; |
||
147 | }; |
116 | |
|
148 | }; |
117 | w25q128@0 { |
|
149 | |
- | ||
150 | w25q128@1 { |
118 | #address-cells = <1>; |
|
Line 151... | Line -... | |||
151 | compatible = "jedec,spi-nor"; |
- | ||
152 | reg = <1>; |
- | ||
153 | // XXX empiric value to obtain actual 10MHz SCK at the chip |
- | ||
154 | spi-max-frequency = <3125000>; |
- | ||
155 | |
- | ||
156 | partitions { |
- | ||
157 | compatible = "fixed-partitions"; |
- | ||
158 | #address-cells = <1>; |
119 | #size-cells = <1>; |
|
159 | #size-cells = <1>; |
- | ||
160 | |
120 | compatible = "jedec,spi-nor"; |
|
161 | // Region <0x0 0x40000> seems reserved by OEM |
121 | reg = <1>; |
|
162 | |
- | ||
163 | partition@40000 { |
122 | spi-max-frequency = <3125000>; |
|
164 | compatible = "mikrotik,minor"; |
123 | |
|
165 | label = "firmware"; |
124 | partition@40000 { |
|
Line 166... | Line 125... | |||
166 | reg = <0x040000 0xFC0000>; |
125 | label = "firmware"; |
|
167 | }; |
126 | reg = <0x040000 0xFC0000>; |
|
168 | }; |
127 | }; |
|
169 | }; |
128 | }; |
|
Line 170... | Line 129... | |||
170 | }; |
129 | }; |