OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 11... | Line 11... | |||
11 | |
11 | |
|
12 | chosen { |
12 | chosen { |
|
13 | bootargs = "console=ttyS0,115200"; |
13 | bootargs = "console=ttyS0,115200"; |
|
Line 14... | Line 14... | |||
14 | }; |
14 | }; |
|
15 | |
15 | |
|
Line 16... | Line 16... | |||
16 | leds { |
16 | gpio-leds { |
|
17 | compatible = "gpio-leds"; |
17 | compatible = "gpio-leds"; |
|
18 | |
18 | |
|
Line 33... | Line 33... | |||
33 | |
33 | |
|
34 | usb { |
34 | usb { |
|
35 | label = "gl-mt300a:usb"; |
35 | label = "gl-mt300a:usb"; |
|
36 | gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
36 | gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
|
- | 37 | }; |
||
37 | }; |
38 | |
|
Line 38... | Line 39... | |||
38 | }; |
39 | }; |
|
39 | |
40 | |
|
- | 41 | gpio-keys-polled { |
||
- | 42 | compatible = "gpio-keys-polled"; |
||
40 | keys { |
43 | #address-cells = <1>; |
|
41 | compatible = "gpio-keys-polled"; |
44 | #size-cells = <0>; |
|
42 | poll-interval = <20>; |
45 | poll-interval = <20>; |
|
43 | reset { |
46 | reset { |
|
44 | label = "reset"; |
47 | label = "reset"; |
|
Line 50... | Line 53... | |||
50 | label = "BTN_0"; |
53 | label = "BTN_0"; |
|
51 | gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
54 | gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
|
52 | linux,code = <BTN_0>; |
55 | linux,code = <BTN_0>; |
|
53 | }; |
56 | }; |
|
Line 54... | Line 57... | |||
54 | |
57 | |
|
55 | BTN_1 { |
58 | BTN_1 { |
|
56 | label = "BTN_1"; |
59 | label = "BTN_1"; |
|
57 | gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
60 | gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
|
58 | linux,code = <BTN_1>; |
61 | linux,code = <BTN_1>; |
|
59 | }; |
62 | }; |
|
60 | }; |
63 | }; |
|
Line 61... | Line 64... | |||
61 | }; |
64 | }; |
|
62 | |
65 | |
|
63 | &gpio0 { |
66 | &gpio0 { |
|
Line 69... | Line 72... | |||
69 | }; |
72 | }; |
|
Line 70... | Line 73... | |||
70 | |
73 | |
|
71 | &gpio2 { |
74 | &gpio2 { |
|
72 | status = "okay"; |
75 | status = "okay"; |
|
73 | }; |
76 | }; |
|
74 | |
77 | |
|
75 | &gpio3 { |
78 | &gpio3 { |
|
76 | status = "okay"; |
79 | status = "okay"; |
|
Line 77... | Line 80... | |||
77 | }; |
80 | }; |
|
78 | |
81 | |
|
Line 79... | Line 82... | |||
79 | &spi0 { |
82 | &spi0 { |
|
- | 83 | status = "okay"; |
||
- | 84 | |
||
80 | status = "okay"; |
85 | m25p80@0 { |
|
81 | |
86 | #address-cells = <1>; |
|
82 | m25p80@0 { |
87 | #size-cells = <1>; |
|
Line 83... | Line -... | |||
83 | compatible = "jedec,spi-nor"; |
- | ||
84 | reg = <0>; |
- | ||
85 | spi-max-frequency = <10000000>; |
- | ||
86 | |
- | ||
87 | partitions { |
- | ||
88 | compatible = "fixed-partitions"; |
88 | compatible = "jedec,spi-nor"; |
|
89 | #address-cells = <1>; |
89 | reg = <0>; |
|
90 | #size-cells = <1>; |
90 | spi-max-frequency = <10000000>; |
|
91 | |
91 | |
|
92 | partition@0 { |
92 | partition@0 { |
|
93 | label = "u-boot"; |
93 | label = "u-boot"; |
|
94 | reg = <0x0 0x30000>; |
94 | reg = <0x0 0x30000>; |
|
95 | }; |
95 | }; |
|
96 | |
96 | |
|
97 | partition@30000 { |
97 | partition@30000 { |
|
98 | label = "u-boot-env"; |
98 | label = "u-boot-env"; |
|
99 | reg = <0x30000 0x10000>; |
99 | reg = <0x30000 0x10000>; |
|
100 | read-only; |
100 | read-only; |
|
101 | }; |
101 | }; |
|
102 | |
102 | |
|
103 | factory: partition@40000 { |
103 | factory: partition@40000 { |
|
104 | label = "factory"; |
104 | label = "factory"; |
|
105 | reg = <0x40000 0x10000>; |
105 | reg = <0x40000 0x10000>; |
|
106 | read-only; |
- | ||
107 | }; |
106 | read-only; |
|
108 | |
107 | }; |
|
109 | partition@50000 { |
108 | |
|
110 | compatible = "denx,uimage"; |
109 | partition@50000 { |
|
111 | label = "firmware"; |
110 | label = "firmware"; |
|
112 | reg = <0x50000 0xf80000>; |
111 | reg = <0x50000 0xf80000>; |
|
113 | }; |
112 | }; |
|
114 | |
- | ||
115 | partition@ff0000 { |
113 | |
|
116 | label = "art"; |
114 | partition@ff0000 { |
|
117 | reg = <0xff0000 0x10000>; |
115 | label = "art"; |
|
Line 118... | Line 116... | |||
118 | }; |
116 | reg = <0xff0000 0x10000>; |