OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 7... | Line 7... | |||
7 | |
7 | |
|
8 | / { |
8 | / { |
|
9 | compatible = "dlink,dwr-921-c1", "ralink,mt7620n-soc"; |
9 | compatible = "dlink,dwr-921-c1", "ralink,mt7620n-soc"; |
|
Line 10... | Line 10... | |||
10 | model = "D-Link DWR-921 C1"; |
10 | model = "D-Link DWR-921 C1"; |
|
11 | |
11 | |
|
12 | aliases { |
12 | gpio-keys-polled { |
|
13 | led-boot = &led_sstrenghg; |
- | ||
14 | led-failsafe = &led_sstrenghg; |
- | ||
15 | }; |
- | ||
16 | |
13 | compatible = "gpio-keys-polled"; |
|
17 | keys { |
14 | #address-cells = <1>; |
|
Line 18... | Line 15... | |||
18 | compatible = "gpio-keys-polled"; |
15 | #size-cells = <0>; |
|
19 | poll-interval = <20>; |
16 | poll-interval = <20>; |
|
20 | |
17 | |
|
Line 29... | Line 26... | |||
29 | gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
26 | gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
|
30 | linux,code = <KEY_RESTART>; |
27 | linux,code = <KEY_RESTART>; |
|
31 | }; |
28 | }; |
|
32 | }; |
29 | }; |
|
Line 33... | Line 30... | |||
33 | |
30 | |
|
34 | leds { |
31 | gpio-leds { |
|
Line 35... | Line 32... | |||
35 | compatible = "gpio-leds"; |
32 | compatible = "gpio-leds"; |
|
36 | |
33 | |
|
37 | sms { |
34 | sms { |
|
Line 42... | Line 39... | |||
42 | lan { |
39 | lan { |
|
43 | label = "dwr-921-c1:green:lan"; |
40 | label = "dwr-921-c1:green:lan"; |
|
44 | gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; |
41 | gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; |
|
45 | }; |
42 | }; |
|
Line 46... | Line 43... | |||
46 | |
43 | |
|
47 | led_sstrenghg: sstrengthg { |
44 | sstrengthg { |
|
48 | label = "dwr-921-c1:green:sigstrength"; |
45 | label = "dwr-921-c1:green:sigstrength"; |
|
49 | gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; |
46 | gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; |
|
Line 50... | Line 47... | |||
50 | }; |
47 | }; |
|
Line 95... | Line 92... | |||
95 | }; |
92 | }; |
|
Line 96... | Line 93... | |||
96 | |
93 | |
|
97 | &spi0 { |
94 | &spi0 { |
|
Line 98... | Line 95... | |||
98 | status = "okay"; |
95 | status = "okay"; |
|
- | 96 | |
||
- | 97 | m25p80@0 { |
||
99 | |
98 | #address-cells = <1>; |
|
100 | flash@0 { |
99 | #size-cells = <1>; |
|
101 | compatible = "jedec,spi-nor"; |
100 | compatible = "jedec,spi-nor"; |
|
Line 102... | Line -... | |||
102 | reg = <0>; |
- | ||
103 | spi-max-frequency = <10000000>; |
- | ||
104 | |
- | ||
105 | partitions { |
- | ||
106 | compatible = "fixed-partitions"; |
- | ||
107 | #address-cells = <1>; |
101 | reg = <0>; |
|
108 | #size-cells = <1>; |
102 | spi-max-frequency = <10000000>; |
|
109 | |
103 | |
|
110 | partition@0 { |
104 | partition@0 { |
|
111 | label = "jboot"; |
105 | label = "jboot"; |
|
112 | reg = <0x0 0x10000>; |
106 | reg = <0x0 0x10000>; |
|
113 | read-only; |
107 | read-only; |
|
114 | }; |
- | ||
115 | |
108 | }; |
|
116 | partition@10000 { |
109 | |
|
117 | compatible = "amit,jimage"; |
110 | partition@10000 { |
|
118 | label = "firmware"; |
111 | label = "firmware"; |
|
119 | reg = <0x10000 0xfe0000>; |
112 | reg = <0x10000 0xfe0000>; |
|
120 | }; |
113 | }; |
|
121 | |
114 | |
|
122 | config: partition@ff0000 { |
115 | config: partition@ff0000 { |
|
123 | label = "config"; |
- | ||
124 | reg = <0xff0000 0x10000>; |
116 | label = "config"; |
|
125 | read-only; |
117 | reg = <0xff0000 0x10000>; |
|
126 | }; |
118 | read-only; |
|
Line 127... | Line 119... | |||
127 | }; |
119 | }; |