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 28... | Line 28... | |||
28 | |
28 | |
|
29 | wlan { |
29 | wlan { |
|
30 | label = "gl-mt300n:wlan"; |
30 | label = "gl-mt300n:wlan"; |
|
31 | gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
31 | gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
|
- | 32 | }; |
||
32 | }; |
33 | |
|
Line 33... | Line 34... | |||
33 | }; |
34 | }; |
|
34 | |
35 | |
|
- | 36 | gpio-keys-polled { |
||
- | 37 | compatible = "gpio-keys-polled"; |
||
35 | keys { |
38 | #address-cells = <1>; |
|
36 | compatible = "gpio-keys-polled"; |
39 | #size-cells = <0>; |
|
37 | poll-interval = <20>; |
40 | poll-interval = <20>; |
|
38 | reset { |
41 | reset { |
|
39 | label = "reset"; |
42 | label = "reset"; |
|
Line 45... | Line 48... | |||
45 | label = "BTN_0"; |
48 | label = "BTN_0"; |
|
46 | gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; |
49 | gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; |
|
47 | linux,code = <BTN_0>; |
50 | linux,code = <BTN_0>; |
|
48 | }; |
51 | }; |
|
Line 49... | Line 52... | |||
49 | |
52 | |
|
50 | BTN_1 { |
53 | BTN_1 { |
|
51 | label = "BTN_1"; |
54 | label = "BTN_1"; |
|
52 | gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; |
55 | gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; |
|
53 | linux,code = <BTN_1>; |
56 | linux,code = <BTN_1>; |
|
54 | }; |
57 | }; |
|
Line 64... | Line 67... | |||
64 | }; |
67 | }; |
|
Line 65... | Line 68... | |||
65 | |
68 | |
|
66 | &gpio2 { |
69 | &gpio2 { |
|
67 | status = "okay"; |
70 | status = "okay"; |
|
68 | }; |
71 | }; |
|
69 | |
72 | |
|
70 | &gpio3 { |
73 | &gpio3 { |
|
71 | status = "okay"; |
74 | status = "okay"; |
|
Line 72... | Line 75... | |||
72 | }; |
75 | }; |
|
73 | |
76 | |
|
Line 74... | Line 77... | |||
74 | &spi0 { |
77 | &spi0 { |
|
- | 78 | status = "okay"; |
||
- | 79 | |
||
75 | status = "okay"; |
80 | m25p80@0 { |
|
76 | |
81 | #address-cells = <1>; |
|
77 | m25p80@0 { |
82 | #size-cells = <1>; |
|
Line 78... | Line -... | |||
78 | compatible = "jedec,spi-nor"; |
- | ||
79 | reg = <0>; |
- | ||
80 | spi-max-frequency = <10000000>; |
- | ||
81 | |
- | ||
82 | partitions { |
- | ||
83 | compatible = "fixed-partitions"; |
83 | compatible = "jedec,spi-nor"; |
|
84 | #address-cells = <1>; |
84 | reg = <0>; |
|
85 | #size-cells = <1>; |
85 | spi-max-frequency = <10000000>; |
|
86 | |
86 | |
|
87 | partition@0 { |
87 | partition@0 { |
|
88 | label = "u-boot"; |
88 | label = "u-boot"; |
|
89 | reg = <0x0 0x30000>; |
89 | reg = <0x0 0x30000>; |
|
90 | }; |
90 | }; |
|
91 | |
91 | |
|
92 | partition@30000 { |
92 | partition@30000 { |
|
93 | label = "u-boot-env"; |
93 | label = "u-boot-env"; |
|
94 | reg = <0x30000 0x10000>; |
94 | reg = <0x30000 0x10000>; |
|
95 | read-only; |
95 | read-only; |
|
96 | }; |
96 | }; |
|
97 | |
97 | |
|
98 | factory: partition@40000 { |
98 | factory: partition@40000 { |
|
99 | label = "factory"; |
99 | label = "factory"; |
|
100 | reg = <0x40000 0x10000>; |
100 | reg = <0x40000 0x10000>; |
|
101 | read-only; |
- | ||
102 | }; |
101 | read-only; |
|
103 | |
102 | }; |
|
104 | partition@50000 { |
103 | |
|
105 | compatible = "denx,uimage"; |
104 | partition@50000 { |
|
106 | label = "firmware"; |
105 | label = "firmware"; |
|
107 | reg = <0x50000 0xf80000>; |
106 | reg = <0x50000 0xf80000>; |
|
108 | }; |
107 | }; |
|
109 | |
- | ||
110 | partition@ff0000 { |
108 | |
|
111 | label = "art"; |
109 | partition@ff0000 { |
|
112 | reg = <0xff0000 0x10000>; |
110 | label = "art"; |
|
Line 113... | Line 111... | |||
113 | }; |
111 | reg = <0xff0000 0x10000>; |