OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 7... | Line 7... | |||
7 | |
7 | |
|
8 | / { |
8 | / { |
|
9 | compatible = "gnubee,gb-pc1", "mediatek,mt7621-soc"; |
9 | compatible = "gnubee,gb-pc1", "mediatek,mt7621-soc"; |
|
Line 10... | Line -... | |||
10 | model = "GB-PC1"; |
- | ||
11 | |
- | ||
12 | aliases { |
- | ||
13 | led-boot = &led_status; |
- | ||
14 | led-failsafe = &led_status; |
- | ||
15 | led-running = &led_status; |
- | ||
16 | led-upgrade = &led_status; |
- | ||
17 | }; |
10 | model = "GB-PC1"; |
|
18 | |
11 | |
|
19 | memory@0 { |
12 | memory@0 { |
|
20 | device_type = "memory"; |
13 | device_type = "memory"; |
|
Line 21... | Line 14... | |||
21 | reg = <0x0 0x1c000000>, <0x20000000 0x4000000>; |
14 | reg = <0x0 0x1c000000>, <0x20000000 0x4000000>; |
|
22 | }; |
15 | }; |
|
23 | |
16 | |
|
Line 24... | Line 17... | |||
24 | chosen { |
17 | chosen { |
|
25 | bootargs = "console=ttyS0,57600"; |
18 | bootargs = "console=ttyS0,57600"; |
|
- | 19 | }; |
||
- | 20 | |
||
26 | }; |
21 | gpio-keys-polled { |
|
Line 27... | Line 22... | |||
27 | |
22 | compatible = "gpio-keys-polled"; |
|
28 | keys { |
23 | #address-cells = <1>; |
|
29 | compatible = "gpio-keys-polled"; |
24 | #size-cells = <0>; |
|
30 | poll-interval = <20>; |
25 | poll-interval = <20>; |
|
31 | |
26 | |
|
32 | reset { |
27 | reset { |
|
Line 33... | Line 28... | |||
33 | label = "reset"; |
28 | label = "reset"; |
|
34 | gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>; |
29 | gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>; |
|
Line 35... | Line 30... | |||
35 | linux,code = <KEY_RESTART>; |
30 | linux,code = <KEY_RESTART>; |
|
36 | }; |
31 | }; |
|
37 | }; |
32 | }; |
|
38 | |
33 | |
|
Line 39... | Line 34... | |||
39 | leds { |
34 | gpio-leds { |
|
40 | compatible = "gpio-leds"; |
35 | compatible = "gpio-leds"; |
|
41 | |
36 | |
|
42 | system { |
37 | system { |
|
Line 43... | Line 38... | |||
43 | label = "gb-pc1:green:system"; |
38 | label = "gb-pc1:green:system"; |
|
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"; |
|
- | 70 | reg = <0>; |
||
- | 71 | spi-max-frequency = <10000000>; |
||
- | 72 | m25p,chunked-io = <32>; |
||
- | 73 | |
||
- | 74 | partition@0 { |
||
- | 75 | label = "u-boot"; |
||
- | 76 | reg = <0x0 0x30000>; |
||
- | 77 | read-only; |
||
- | 78 | }; |
||
- | 79 | |
||
- | 80 | partition@30000 { |
||
- | 81 | label = "u-boot-env"; |
||
- | 82 | reg = <0x30000 0x10000>; |
||
- | 83 | read-only; |
||
- | 84 | }; |
||
- | 85 | |
||
- | 86 | factory: partition@40000 { |
||
- | 87 | label = "factory"; |
||
- | 88 | reg = <0x40000 0x10000>; |
||
Line 73... | Line -... | |||
73 | reg = <0>; |
- | ||
74 | spi-max-frequency = <10000000>; |
- | ||
75 | |
- | ||
76 | partitions { |
- | ||
77 | compatible = "fixed-partitions"; |
- | ||
78 | #address-cells = <1>; |
- | ||
79 | #size-cells = <1>; |
- | ||
80 | |
- | ||
81 | partition@0 { |
- | ||
82 | label = "u-boot"; |
- | ||
83 | reg = <0x0 0x30000>; |
- | ||
84 | read-only; |
- | ||
85 | }; |
- | ||
86 | |
- | ||
87 | partition@30000 { |
- | ||
88 | label = "u-boot-env"; |
- | ||
89 | reg = <0x30000 0x10000>; |
- | ||
90 | read-only; |
- | ||
91 | }; |
- | ||
92 | |
- | ||
93 | factory: partition@40000 { |
- | ||
94 | label = "factory"; |
- | ||
95 | reg = <0x40000 0x10000>; |
- | ||
96 | read-only; |
89 | read-only; |
|
97 | }; |
- | ||
98 | |
90 | }; |
|
99 | partition@50000 { |
91 | |
|
100 | compatible = "denx,uimage"; |
- | ||
101 | label = "firmware"; |
92 | partition@50000 { |
|
102 | reg = <0x50000 0x1fb0000>; |
93 | label = "firmware"; |
|
103 | }; |
94 | reg = <0x50000 0x1fb0000>; |
|
Line -... | Line 95... | |||
- | 95 | }; |
||
- | 96 | }; |
||
- | 97 | }; |
||
- | 98 | |
||
- | 99 | &cpuclock { |
||
104 | }; |
100 | compatible = "fixed-clock"; |
|
105 | }; |
101 | clock-frequency = <900000000>; |
|
106 | }; |
102 | }; |
|
Line 107... | Line 103... | |||
107 | |
103 | |