OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 7... | Line 7... | |||
7 | |
7 | |
|
8 | / { |
8 | / { |
|
9 | compatible = "elecom,wrh-300cr", "ralink,mt7620n-soc"; |
9 | compatible = "elecom,wrh-300cr", "ralink,mt7620n-soc"; |
|
Line 10... | Line -... | |||
10 | model = "ELECOM WRH-300CR"; |
- | ||
11 | |
- | ||
12 | aliases { |
- | ||
13 | led-boot = &led_wps; |
- | ||
14 | led-failsafe = &led_wps; |
- | ||
15 | led-running = &led_wps; |
- | ||
16 | led-upgrade = &led_wps; |
- | ||
17 | }; |
10 | model = "ELECOM WRH-300CR"; |
|
18 | |
11 | |
|
Line 19... | Line 12... | |||
19 | leds { |
12 | gpio-leds { |
|
20 | compatible = "gpio-leds"; |
13 | compatible = "gpio-leds"; |
|
21 | |
14 | |
|
22 | led_wps: wps { |
15 | wps { |
|
Line 23... | Line 16... | |||
23 | label = "wrh-300cr:green:wps"; |
16 | label = "wrh-300cr:green:wps"; |
|
Line 33... | Line 26... | |||
33 | label = "wrh-300cr:green:wlan"; |
26 | label = "wrh-300cr:green:wlan"; |
|
34 | gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
27 | gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
|
35 | }; |
28 | }; |
|
36 | }; |
29 | }; |
|
Line 37... | Line 30... | |||
37 | |
30 | |
|
38 | keys { |
31 | gpio-keys-polled { |
|
- | 32 | compatible = "gpio-keys-polled"; |
||
- | 33 | #address-cells = <1>; |
||
39 | compatible = "gpio-keys-polled"; |
34 | #size-cells = <0>; |
|
Line 40... | Line 35... | |||
40 | poll-interval = <20>; |
35 | poll-interval = <20>; |
|
41 | |
36 | |
|
42 | reset { |
37 | reset { |
|
Line 67... | Line 62... | |||
67 | |
62 | |
|
68 | &spi0 { |
63 | &spi0 { |
|
Line 69... | Line 64... | |||
69 | status = "okay"; |
64 | status = "okay"; |
|
- | 65 | |
||
- | 66 | m25p80@0 { |
||
70 | |
67 | #address-cells = <1>; |
|
71 | m25p80@0 { |
68 | #size-cells = <1>; |
|
72 | compatible = "jedec,spi-nor"; |
69 | compatible = "jedec,spi-nor"; |
|
Line 73... | Line -... | |||
73 | reg = <0>; |
- | ||
74 | spi-max-frequency = <10000000>; |
- | ||
75 | |
- | ||
76 | partitions { |
- | ||
77 | compatible = "fixed-partitions"; |
- | ||
78 | #address-cells = <1>; |
70 | reg = <0>; |
|
79 | #size-cells = <1>; |
71 | spi-max-frequency = <10000000>; |
|
80 | |
72 | |
|
81 | partition@0 { |
73 | partition@0 { |
|
82 | label = "u-boot"; |
74 | label = "u-boot"; |
|
83 | reg = <0x0 0x30000>; |
75 | reg = <0x0 0x30000>; |
|
84 | read-only; |
76 | read-only; |
|
85 | }; |
77 | }; |
|
86 | |
78 | |
|
87 | partition@30000 { |
79 | partition@30000 { |
|
88 | label = "u-boot-env"; |
80 | label = "u-boot-env"; |
|
89 | reg = <0x30000 0x10000>; |
81 | reg = <0x30000 0x10000>; |
|
90 | }; |
82 | }; |
|
91 | |
83 | |
|
92 | factory: partition@40000 { |
84 | factory: partition@40000 { |
|
93 | label = "factory"; |
85 | label = "factory"; |
|
94 | reg = <0x40000 0x10000>; |
86 | reg = <0x40000 0x10000>; |
|
95 | read-only; |
87 | read-only; |
|
96 | }; |
88 | }; |
|
97 | |
89 | |
|
98 | partition@50000 { |
90 | partition@50000 { |
|
99 | label = "recover"; |
91 | label = "recover"; |
|
100 | reg = <0x50000 0x1c0000>; |
92 | reg = <0x50000 0x1c0000>; |
|
101 | read-only; |
93 | read-only; |
|
102 | }; |
- | ||
103 | |
94 | }; |
|
104 | partition@210000 { |
95 | |
|
105 | compatible = "denx,uimage"; |
- | ||
106 | label = "firmware"; |
96 | partition@210000 { |
|
107 | reg = <0x210000 0xdf0000>; |
97 | label = "firmware"; |
|
108 | }; |
98 | reg = <0x210000 0xdf0000>; |
|
Line 109... | Line 99... | |||
109 | }; |
99 | }; |