OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
1 | /dts-v1/; |
1 | /dts-v1/; |
|
2 | |
2 | |
|
3 | #include "mt7620n.dtsi" |
3 | #include "mt7620n.dtsi" |
|
4 | |
4 | |
|
5 | #include <dt-bindings/gpio/gpio.h> |
5 | #include <dt-bindings/gpio/gpio.h> |
|
6 | #include <dt-bindings/input/input.h> |
6 | #include <dt-bindings/input/input.h> |
|
7 | |
7 | |
|
8 | / { |
8 | / { |
|
9 | compatible = "vonets,var11n-300", "ralink,mt7620n-soc"; |
9 | compatible = "vonets,var11n-300", "ralink,mt7620n-soc"; |
|
10 | model = "Vonets VAR11N-300"; |
10 | model = "Vonets VAR11N-300"; |
|
11 | |
- | ||
12 | aliases { |
- | ||
13 | led-boot = &led_system; |
- | ||
14 | led-failsafe = &led_system; |
- | ||
15 | led-running = &led_system; |
- | ||
16 | led-upgrade = &led_system; |
- | ||
17 | }; |
- | ||
18 | |
11 | |
|
19 | leds { |
12 | gpio-leds { |
|
20 | compatible = "gpio-leds"; |
13 | compatible = "gpio-leds"; |
|
21 | |
14 | |
|
22 | led_system: system { |
15 | system { |
|
23 | label = "var11n-300:blue:system"; |
16 | label = "var11n-300:blue:system"; |
|
24 | gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; |
17 | gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; |
|
25 | }; |
18 | }; |
|
26 | }; |
19 | }; |
|
27 | |
20 | |
|
28 | keys { |
21 | gpio-keys-polled { |
|
- | 22 | compatible = "gpio-keys-polled"; |
||
- | 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 { |
|
33 | label = "reset"; |
28 | label = "reset"; |
|
34 | gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
29 | gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
|
35 | linux,code = <KEY_RESTART>; |
30 | linux,code = <KEY_RESTART>; |
|
36 | }; |
31 | }; |
|
37 | }; |
32 | }; |
|
38 | }; |
33 | }; |
|
39 | |
34 | |
|
40 | &gpio0 { |
35 | &gpio0 { |
|
41 | status = "okay"; |
36 | status = "okay"; |
|
42 | }; |
37 | }; |
|
43 | |
38 | |
|
44 | &spi0 { |
39 | &spi0 { |
|
45 | status = "okay"; |
40 | status = "okay"; |
|
46 | |
41 | |
|
47 | m25p80@0 { |
42 | m25p80@0 { |
|
- | 43 | #address-cells = <1>; |
||
- | 44 | #size-cells = <1>; |
||
48 | compatible = "jedec,spi-nor"; |
45 | compatible = "jedec,spi-nor"; |
|
49 | reg = <0>; |
46 | reg = <0>; |
|
50 | spi-max-frequency = <10000000>; |
47 | spi-max-frequency = <10000000>; |
|
51 | |
- | ||
52 | partitions { |
- | ||
53 | compatible = "fixed-partitions"; |
- | ||
54 | #address-cells = <1>; |
- | ||
55 | #size-cells = <1>; |
- | ||
56 | |
48 | |
|
57 | partition@0 { |
49 | partition@0 { |
|
58 | label = "u-boot"; |
50 | label = "u-boot"; |
|
59 | reg = <0x0 0x30000>; |
51 | reg = <0x0 0x30000>; |
|
60 | read-only; |
52 | read-only; |
|
61 | }; |
53 | }; |
|
62 | |
54 | |
|
63 | partition@30000 { |
55 | partition@30000 { |
|
64 | label = "u-boot-env"; |
56 | label = "u-boot-env"; |
|
65 | reg = <0x30000 0x10000>; |
57 | reg = <0x30000 0x10000>; |
|
66 | read-only; |
58 | read-only; |
|
67 | }; |
59 | }; |
|
68 | |
60 | |
|
69 | factory: partition@40000 { |
61 | factory: partition@40000 { |
|
70 | label = "factory"; |
62 | label = "factory"; |
|
71 | reg = <0x40000 0x10000>; |
63 | reg = <0x40000 0x10000>; |
|
72 | read-only; |
64 | read-only; |
|
73 | }; |
65 | }; |
|
74 | |
66 | |
|
75 | partition@50000 { |
- | ||
76 | compatible = "denx,uimage"; |
67 | partition@50000 { |
|
77 | label = "firmware"; |
68 | label = "firmware"; |
|
78 | reg = <0x50000 0x3b0000>; |
- | ||
79 | }; |
69 | reg = <0x50000 0x3b0000>; |
|
80 | }; |
70 | }; |
|
81 | }; |
71 | }; |
|
82 | }; |
72 | }; |
|
83 | |
73 | |
|
84 | ðernet { |
74 | ðernet { |
|
85 | mtd-mac-address = <&factory 0x4>; |
75 | mtd-mac-address = <&factory 0x4>; |
|
86 | mediatek,portmap = "llllw"; |
76 | mediatek,portmap = "llllw"; |
|
87 | }; |
77 | }; |
|
88 | |
78 | |
|
89 | &wmac { |
79 | &wmac { |
|
90 | ralink,mtd-eeprom = <&factory 0>; |
80 | ralink,mtd-eeprom = <&factory 0>; |
|
91 | }; |
81 | }; |
|
92 | |
82 | |
|
93 | &pinctrl { |
83 | &pinctrl { |
|
94 | state_default: pinctrl0 { |
84 | state_default: pinctrl0 { |
|
95 | default { |
85 | default { |
|
96 | ralink,group = "i2c"; |
86 | ralink,group = "i2c"; |
|
97 | ralink,function = "gpio"; |
87 | ralink,function = "gpio"; |
|
98 | }; |
88 | }; |
|
99 | }; |
89 | }; |
|
100 | }; |
90 | }; |
|
101 | |
91 | |