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