OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 7... | Line 7... | |||
7 | |
7 | |
|
8 | / { |
8 | / { |
|
9 | compatible = "dlink,dwr-512-b", "ralink,rt5350-soc"; |
9 | compatible = "dlink,dwr-512-b", "ralink,rt5350-soc"; |
|
Line 10... | Line 10... | |||
10 | model = "D-Link DWR-512 B"; |
10 | model = "D-Link DWR-512 B"; |
|
11 | |
- | ||
12 | aliases { |
- | ||
13 | led-boot = &led_status; |
- | ||
14 | led-failsafe = &led_status; |
- | ||
15 | led-running = &led_status; |
- | ||
16 | led-upgrade = &led_status; |
- | ||
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 = <20>; |
16 | poll-interval = <20>; |
|
22 | |
17 | |
|
Line 31... | Line 26... | |||
31 | gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
26 | gpios = <&gpio0 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 | sms { |
34 | sms { |
|
40 | label = "dwr-512-b:green:sms"; |
35 | label = "dwr-512-b:green:sms"; |
|
41 | gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; |
36 | gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; |
|
42 | }; |
37 | }; |
|
43 | led_status: status { |
38 | status { |
|
44 | label = "dwr-512-b:green:status"; |
39 | label = "dwr-512-b:green:status"; |
|
45 | gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
40 | gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
|
46 | }; |
41 | }; |
|
Line 79... | Line 74... | |||
79 | }; |
74 | }; |
|
Line 80... | Line 75... | |||
80 | |
75 | |
|
81 | &spi0 { |
76 | &spi0 { |
|
Line 82... | Line 77... | |||
82 | status = "okay"; |
77 | status = "okay"; |
|
- | 78 | |
||
- | 79 | mx25l6405d@0 { |
||
83 | |
80 | #address-cells = <1>; |
|
84 | flash@0 { |
81 | #size-cells = <1>; |
|
85 | compatible = "jedec,spi-nor"; |
82 | compatible = "jedec,spi-nor"; |
|
86 | reg = <0>; |
83 | reg = <0>; |
|
Line 87... | Line -... | |||
87 | spi-max-frequency = <30000000>; |
- | ||
88 | m25p,fast-read; |
- | ||
89 | |
- | ||
90 | partitions { |
- | ||
91 | compatible = "fixed-partitions"; |
- | ||
92 | #address-cells = <1>; |
84 | spi-max-frequency = <30000000>; |
|
93 | #size-cells = <1>; |
85 | m25p,fast-read; |
|
94 | |
86 | |
|
95 | partition@0 { |
87 | partition@0 { |
|
96 | label = "jboot"; |
88 | label = "jboot"; |
|
97 | reg = <0x0 0x10000>; |
89 | reg = <0x0 0x10000>; |
|
98 | read-only; |
90 | read-only; |
|
99 | }; |
- | ||
100 | |
91 | }; |
|
101 | partition@10000 { |
92 | |
|
102 | compatible = "amit,jimage"; |
93 | partition@10000 { |
|
103 | label = "firmware"; |
94 | label = "firmware"; |
|
104 | reg = <0x10000 0x7e0000>; |
95 | reg = <0x10000 0x7e0000>; |
|
105 | }; |
96 | }; |
|
106 | |
97 | |
|
107 | config: partition@7f0000 { |
- | ||
108 | label = "config"; |
98 | config: partition@7f0000 { |
|
109 | reg = <0x7f0000 0x10000>; |
99 | label = "config"; |
|
110 | }; |
100 | reg = <0x7f0000 0x10000>; |
|
Line 111... | Line 101... | |||
111 | }; |
101 | }; |
|
112 | }; |
102 | }; |
|
Line 113... | Line 103... | |||
113 | }; |
103 | }; |
|
114 | |
104 | |
|
115 | &spi1 { |
105 | &spi1 { |
|
116 | status = "okay"; |
106 | status = "okay"; |
|
Line 117... | Line 107... | |||
117 | |
107 | |