OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 7... | Line 7... | |||
7 | |
7 | |
|
8 | / { |
8 | / { |
|
9 | compatible = "dlink,dch-m225", "ralink,mt7620a-soc"; |
9 | compatible = "dlink,dch-m225", "ralink,mt7620a-soc"; |
|
Line 10... | Line 10... | |||
10 | model = "D-Link DCH-M225"; |
10 | model = "D-Link DCH-M225"; |
|
11 | |
- | ||
12 | aliases { |
- | ||
13 | led-boot = &led_power; |
- | ||
14 | led-failsafe = &led_power; |
- | ||
15 | led-running = &led_power; |
- | ||
16 | led-upgrade = &led_power; |
- | ||
17 | }; |
- | ||
18 | |
11 | |
|
- | 12 | gpio-keys-polled { |
||
- | 13 | compatible = "gpio-keys-polled"; |
||
19 | keys { |
14 | #address-cells = <1>; |
|
Line 20... | Line 15... | |||
20 | compatible = "gpio-keys-polled"; |
15 | #size-cells = <0>; |
|
21 | poll-interval = <100>; |
16 | poll-interval = <100>; |
|
22 | |
17 | |
|
Line 31... | Line 26... | |||
31 | gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; |
26 | gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; |
|
32 | linux,code = <KEY_RESTART>; |
27 | linux,code = <KEY_RESTART>; |
|
33 | }; |
28 | }; |
|
34 | }; |
29 | }; |
|
Line 35... | Line 30... | |||
35 | |
30 | |
|
36 | leds { |
31 | gpio-leds { |
|
Line 37... | Line 32... | |||
37 | compatible = "gpio-leds"; |
32 | compatible = "gpio-leds"; |
|
38 | |
33 | |
|
39 | led_power: power { |
34 | power { |
|
40 | label = "dch-m225:green:power"; |
- | ||
41 | gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; |
35 | label = "dch-m225:green:power"; |
|
Line 42... | Line 36... | |||
42 | default-state = "on"; |
36 | gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; |
|
43 | }; |
37 | }; |
|
44 | |
38 | |
|
Line 101... | Line 95... | |||
101 | |
95 | |
|
102 | &spi0 { |
96 | &spi0 { |
|
Line 103... | Line 97... | |||
103 | status = "okay"; |
97 | status = "okay"; |
|
- | 98 | |
||
- | 99 | m25p80@0 { |
||
104 | |
100 | #address-cells = <1>; |
|
105 | m25p80@0 { |
101 | #size-cells = <1>; |
|
106 | compatible = "jedec,spi-nor"; |
102 | compatible = "jedec,spi-nor"; |
|
107 | reg = <0>; |
103 | reg = <0>; |
|
Line 108... | Line -... | |||
108 | spi-max-frequency = <80000000>; |
- | ||
109 | m25p,fast-read; |
- | ||
110 | |
- | ||
111 | partitions { |
- | ||
112 | compatible = "fixed-partitions"; |
- | ||
113 | #address-cells = <1>; |
104 | spi-max-frequency = <80000000>; |
|
114 | #size-cells = <1>; |
105 | m25p,fast-read; |
|
115 | |
106 | |
|
116 | partition@0 { |
107 | partition@0 { |
|
117 | label = "u-boot"; |
108 | label = "u-boot"; |
|
118 | reg = <0x0 0x30000>; |
109 | reg = <0x0 0x30000>; |
|
119 | read-only; |
110 | read-only; |
|
120 | }; |
111 | }; |
|
121 | |
112 | |
|
122 | partition@30000 { |
113 | partition@30000 { |
|
123 | label = "u-boot-env"; |
114 | label = "u-boot-env"; |
|
124 | reg = <0x30000 0x4000>; |
115 | reg = <0x30000 0x4000>; |
|
125 | read-only; |
116 | read-only; |
|
126 | }; |
117 | }; |
|
127 | |
118 | |
|
128 | factory: partition@34000 { |
119 | factory: partition@34000 { |
|
129 | label = "factory"; |
120 | label = "factory"; |
|
130 | reg = <0x34000 0x4000>; |
121 | reg = <0x34000 0x4000>; |
|
131 | read-only; |
122 | read-only; |
|
132 | }; |
123 | }; |
|
133 | |
124 | |
|
134 | nvram: partition@38000 { |
125 | nvram: partition@38000 { |
|
135 | label = "nvram"; |
126 | label = "nvram"; |
|
136 | reg = <0x38000 0x8000>; |
127 | reg = <0x38000 0x8000>; |
|
137 | read-only; |
128 | read-only; |
|
138 | }; |
129 | }; |
|
139 | |
130 | |
|
140 | partition@40000 { |
131 | partition@40000 { |
|
141 | label = "devconf"; |
132 | label = "devconf"; |
|
142 | reg = <0x40000 0x10000>; |
133 | reg = <0x40000 0x10000>; |
|
143 | read-only; |
134 | read-only; |
|
144 | }; |
135 | }; |
|
145 | |
136 | |
|
146 | partition@50000 { |
137 | partition@50000 { |
|
147 | label = "upgrade_rec"; |
138 | label = "upgrade_rec"; |
|
148 | reg = <0x50000 0x100000>; |
139 | reg = <0x50000 0x100000>; |
|
149 | read-only; |
140 | read-only; |
|
150 | }; |
- | ||
151 | |
141 | }; |
|
152 | partition@150000 { |
142 | |
|
153 | compatible = "seama"; |
- | ||
154 | label = "firmware"; |
143 | partition@150000 { |
|
155 | reg = <0x150000 0x6b0000>; |
144 | label = "firmware"; |
|
156 | }; |
145 | reg = <0x150000 0x6b0000>; |
|
Line 157... | Line 146... | |||
157 | }; |
146 | }; |