OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 4... | Line 4... | |||
4 | |
4 | |
|
5 | #include <dt-bindings/gpio/gpio.h> |
5 | #include <dt-bindings/gpio/gpio.h> |
|
Line 6... | Line 6... | |||
6 | #include <dt-bindings/input/input.h> |
6 | #include <dt-bindings/input/input.h> |
|
7 | |
7 | |
|
8 | /{ |
8 | /{ |
|
Line 9... | Line -... | |||
9 | compatible = "glinet,gl-mt300n-v2", "mediatek,mt7628an-soc"; |
- | ||
10 | model = "GL-MT300N-V2"; |
- | ||
11 | |
- | ||
12 | aliases { |
- | ||
13 | led-boot = &led_power; |
- | ||
14 | led-failsafe = &led_power; |
- | ||
15 | led-running = &led_power; |
- | ||
16 | led-upgrade = &led_power; |
9 | compatible = "glinet,gl-mt300n-v2", "ralink,mt7620an-soc"; |
|
17 | }; |
10 | model = "GL-MT300N-V2"; |
|
18 | |
11 | |
|
Line 19... | Line 12... | |||
19 | chosen { |
12 | chosen { |
|
20 | bootargs = "console=ttyS0,115200"; |
13 | bootargs = "console=ttyS0,115200"; |
|
21 | }; |
14 | }; |
|
22 | |
15 | |
|
Line 23... | Line 16... | |||
23 | memory@0 { |
16 | memory@0 { |
|
24 | device_type = "memory"; |
17 | device_type = "memory"; |
|
Line 25... | Line 18... | |||
25 | reg = <0x0 0x8000000>; |
18 | reg = <0x0 0x8000000>; |
|
26 | }; |
19 | }; |
|
27 | |
20 | |
|
28 | leds { |
21 | gpio-leds { |
|
29 | compatible = "gpio-leds"; |
22 | compatible = "gpio-leds"; |
|
Line 30... | Line 23... | |||
30 | |
23 | |
|
31 | led_power: power { |
24 | power { |
|
32 | label = "gl-mt300n-v2:green:power"; |
25 | label = "gl-mt300n-v2:green:power"; |
|
33 | default-state = "on"; |
26 | default-state = "on"; |
|
Line 34... | Line 27... | |||
34 | gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; |
27 | gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; |
|
35 | }; |
28 | }; |
|
36 | |
29 | |
|
37 | wan { |
30 | wan { |
|
38 | label = "gl-mt300n-v2:green:wan"; |
31 | label = "gl-mt300n-v2:blue:wan"; |
|
Line 39... | Line 32... | |||
39 | gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; |
32 | gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; |
|
40 | }; |
33 | }; |
|
- | 34 | |
||
- | 35 | wlan { |
||
41 | |
36 | label = "gl-mt300n-v2:red:wlan"; |
|
Line 42... | Line 37... | |||
42 | wlan { |
37 | gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; |
|
43 | label = "gl-mt300n-v2:red:wlan"; |
38 | }; |
|
44 | gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; |
39 | }; |
|
Line 76... | Line 71... | |||
76 | gpio-export,name = "usb"; |
71 | gpio-export,name = "usb"; |
|
77 | gpio-export,output = <1>; |
72 | gpio-export,output = <1>; |
|
78 | gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; |
73 | gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; |
|
79 | }; |
74 | }; |
|
80 | }; |
75 | }; |
|
- | 76 | |
||
81 | }; |
77 | }; |
|
Line 82... | Line 78... | |||
82 | |
78 | |
|
83 | &pinctrl { |
79 | &pinctrl { |
|
84 | state_default: pinctrl0 { |
80 | state_default: pinctrl0 { |
|
Line 100... | Line 96... | |||
100 | |
96 | |
|
101 | &spi0 { |
97 | &spi0 { |
|
Line 102... | Line 98... | |||
102 | status = "okay"; |
98 | status = "okay"; |
|
- | 99 | |
||
- | 100 | m25p80@0 { |
||
103 | |
101 | #address-cells = <1>; |
|
104 | m25p80@0 { |
102 | #size-cells = <1>; |
|
105 | compatible = "jedec,spi-nor"; |
103 | compatible = "jedec,spi-nor"; |
|
- | 104 | reg = <0>; |
||
- | 105 | spi-max-frequency = <10000000>; |
||
- | 106 | m25p,chunked-io = <32>; |
||
- | 107 | |
||
- | 108 | partition@0 { |
||
- | 109 | label = "u-boot"; |
||
- | 110 | reg = <0x0 0x30000>; |
||
- | 111 | read-only; |
||
- | 112 | }; |
||
- | 113 | |
||
- | 114 | partition@30000 { |
||
- | 115 | label = "u-boot-env"; |
||
- | 116 | reg = <0x30000 0x10000>; |
||
- | 117 | read-only; |
||
- | 118 | }; |
||
- | 119 | |
||
- | 120 | factory: partition@40000 { |
||
- | 121 | label = "factory"; |
||
- | 122 | reg = <0x40000 0x10000>; |
||
Line 106... | Line -... | |||
106 | reg = <0>; |
- | ||
107 | spi-max-frequency = <10000000>; |
- | ||
108 | |
- | ||
109 | partitions { |
- | ||
110 | compatible = "fixed-partitions"; |
- | ||
111 | #address-cells = <1>; |
- | ||
112 | #size-cells = <1>; |
- | ||
113 | |
- | ||
114 | partition@0 { |
- | ||
115 | label = "u-boot"; |
- | ||
116 | reg = <0x0 0x30000>; |
- | ||
117 | read-only; |
- | ||
118 | }; |
- | ||
119 | |
- | ||
120 | partition@30000 { |
- | ||
121 | label = "u-boot-env"; |
- | ||
122 | reg = <0x30000 0x10000>; |
- | ||
123 | read-only; |
- | ||
124 | }; |
- | ||
125 | |
- | ||
126 | factory: partition@40000 { |
- | ||
127 | label = "factory"; |
- | ||
128 | reg = <0x40000 0x10000>; |
- | ||
129 | read-only; |
123 | read-only; |
|
130 | }; |
- | ||
131 | |
124 | }; |
|
132 | partition@50000 { |
125 | |
|
133 | compatible = "denx,uimage"; |
- | ||
134 | label = "firmware"; |
126 | partition@50000 { |
|
135 | reg = <0x50000 0xfb0000>; |
127 | label = "firmware"; |
|
136 | }; |
128 | reg = <0x50000 0xfb0000>; |
|
Line 137... | Line 129... | |||
137 | }; |
129 | }; |