OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 7... | Line 7... | |||
7 | |
7 | |
|
8 | / { |
8 | / { |
|
9 | compatible = "dlink,dir-645", "ralink,rt3883-soc"; |
9 | compatible = "dlink,dir-645", "ralink,rt3883-soc"; |
|
Line 10... | Line -... | |||
10 | model = "D-Link DIR-645"; |
- | ||
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 = "D-Link DIR-645"; |
|
18 | |
11 | |
|
19 | rtl8367b { |
12 | rtl8367b { |
|
20 | compatible = "realtek,rtl8367b"; |
13 | compatible = "realtek,rtl8367b"; |
|
21 | gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>; |
14 | gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>; |
|
22 | gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>; |
15 | gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>; |
|
Line 23... | Line 16... | |||
23 | realtek,extif1 = <1 0 1 1 1 1 1 1 2>; |
16 | realtek,extif1 = <1 0 1 1 1 1 1 1 2>; |
|
24 | }; |
17 | }; |
|
- | 18 | |
||
- | 19 | gpio-keys-polled { |
||
25 | |
20 | compatible = "gpio-keys-polled"; |
|
Line 26... | Line 21... | |||
26 | keys { |
21 | #address-cells = <1>; |
|
27 | compatible = "gpio-keys-polled"; |
22 | #size-cells = <0>; |
|
28 | poll-interval = <100>; |
23 | poll-interval = <100>; |
|
Line 38... | Line 33... | |||
38 | gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; |
33 | gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; |
|
39 | linux,code = <KEY_WPS_BUTTON>; |
34 | linux,code = <KEY_WPS_BUTTON>; |
|
40 | }; |
35 | }; |
|
41 | }; |
36 | }; |
|
Line 42... | Line 37... | |||
42 | |
37 | |
|
43 | leds { |
38 | gpio-leds { |
|
Line 44... | Line 39... | |||
44 | compatible = "gpio-leds"; |
39 | compatible = "gpio-leds"; |
|
45 | |
40 | |
|
46 | inet { |
41 | inet { |
|
47 | label = "dir-645:green:inet"; |
42 | label = "dir-645:green:inet"; |
|
Line 48... | Line 43... | |||
48 | gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
43 | gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
|
49 | }; |
44 | }; |
|
50 | |
45 | |
|
51 | led_wps: wps { |
46 | wps { |
|
52 | label = "dir-645:green:wps"; |
47 | label = "dir-645:green:wps"; |
|
Line 72... | Line 67... | |||
72 | |
67 | |
|
73 | &spi0 { |
68 | &spi0 { |
|
Line 74... | Line 69... | |||
74 | status = "okay"; |
69 | status = "okay"; |
|
- | 70 | |
||
- | 71 | m25p80@0 { |
||
75 | |
72 | #address-cells = <1>; |
|
76 | m25p80@0 { |
73 | #size-cells = <1>; |
|
77 | compatible = "jedec,spi-nor"; |
74 | compatible = "jedec,spi-nor"; |
|
Line 78... | Line -... | |||
78 | reg = <0>; |
- | ||
79 | spi-max-frequency = <25000000>; |
- | ||
80 | |
- | ||
81 | partitions { |
- | ||
82 | compatible = "fixed-partitions"; |
- | ||
83 | #address-cells = <1>; |
75 | reg = <0>; |
|
84 | #size-cells = <1>; |
76 | spi-max-frequency = <25000000>; |
|
85 | |
77 | |
|
86 | partition@0 { |
78 | partition@0 { |
|
87 | label = "uboot"; |
79 | label = "uboot"; |
|
88 | reg = <0x0 0x30000>; |
80 | reg = <0x0 0x30000>; |
|
89 | read-only; |
81 | read-only; |
|
90 | }; |
82 | }; |
|
91 | |
83 | |
|
92 | partition@30000 { |
84 | partition@30000 { |
|
93 | label = "uboot-env"; |
85 | label = "uboot-env"; |
|
94 | reg = <0x30000 0x4000>; |
86 | reg = <0x30000 0x4000>; |
|
95 | read-only; |
87 | read-only; |
|
96 | }; |
88 | }; |
|
97 | |
89 | |
|
98 | factory: partition@34000 { |
90 | factory: partition@34000 { |
|
99 | label = "factory"; |
91 | label = "factory"; |
|
100 | reg = <0x34000 0x4000>; |
92 | reg = <0x34000 0x4000>; |
|
101 | read-only; |
93 | read-only; |
|
102 | }; |
94 | }; |
|
103 | |
95 | |
|
104 | partition@38000 { |
96 | partition@38000 { |
|
105 | label = "nvram"; |
97 | label = "nvram"; |
|
106 | reg = <0x38000 0x8000>; |
98 | reg = <0x38000 0x8000>; |
|
107 | read-only; |
99 | read-only; |
|
108 | }; |
100 | }; |
|
109 | |
101 | |
|
110 | partition@40000 { |
102 | partition@40000 { |
|
111 | label = "devdata"; |
103 | label = "devdata"; |
|
112 | reg = <0x40000 0x10000>; |
104 | reg = <0x40000 0x10000>; |
|
113 | }; |
- | ||
114 | |
105 | }; |
|
115 | partition@50000 { |
106 | |
|
116 | compatible = "seama"; |
- | ||
117 | label = "firmware"; |
107 | partition@50000 { |
|
118 | reg = <0x50000 0x7b0000>; |
108 | label = "firmware"; |
|
119 | }; |
109 | reg = <0x50000 0x7b0000>; |
|
Line 120... | Line 110... | |||
120 | }; |
110 | }; |