OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
1 | #include "rt5350.dtsi" |
1 | #include "rt5350.dtsi" |
|
2 | |
2 | |
|
3 | #include <dt-bindings/gpio/gpio.h> |
3 | #include <dt-bindings/gpio/gpio.h> |
|
4 | #include <dt-bindings/input/input.h> |
4 | #include <dt-bindings/input/input.h> |
|
5 | |
5 | |
|
6 | / { |
6 | / { |
|
7 | compatible = "7links,px-4885", "ralink,rt5350-soc"; |
7 | compatible = "7links,px-4885", "ralink,rt5350-soc"; |
|
8 | |
- | ||
9 | aliases { |
8 | |
|
10 | led-boot = &led_wifi; |
- | ||
11 | led-failsafe = &led_wifi; |
- | ||
12 | led-running = &led_wifi; |
- | ||
13 | led-upgrade = &led_wifi; |
- | ||
14 | }; |
- | ||
15 | |
- | ||
16 | keys { |
9 | gpio-keys-polled { |
|
- | 10 | compatible = "gpio-keys-polled"; |
||
- | 11 | #address-cells = <1>; |
||
17 | compatible = "gpio-keys-polled"; |
12 | #size-cells = <0>; |
|
18 | poll-interval = <20>; |
13 | poll-interval = <20>; |
|
19 | |
14 | |
|
20 | reset { |
15 | reset { |
|
21 | label = "reset"; |
16 | label = "reset"; |
|
22 | gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
17 | gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
|
23 | linux,code = <KEY_RESTART>; |
18 | linux,code = <KEY_RESTART>; |
|
24 | }; |
19 | }; |
|
25 | }; |
20 | }; |
|
26 | |
21 | |
|
27 | leds { |
22 | gpio-leds { |
|
28 | compatible = "gpio-leds"; |
23 | compatible = "gpio-leds"; |
|
29 | |
24 | |
|
30 | led_wifi: wifi { |
25 | orange { |
|
31 | label = "px-4885:orange:wifi"; |
26 | label = "px-4885:orange:wifi"; |
|
32 | gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
27 | gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
|
33 | }; |
28 | }; |
|
34 | |
29 | |
|
35 | storage { |
30 | blue { |
|
36 | label = "px-4885:blue:storage"; |
31 | label = "px-4885:blue:storage"; |
|
37 | gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; |
- | ||
38 | trigger-sources = <&ohci_port1>, <&ehci_port1>; |
- | ||
39 | linux,default-trigger = "usbport"; |
32 | gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; |
|
40 | }; |
33 | }; |
|
41 | }; |
34 | }; |
|
42 | }; |
35 | }; |
|
43 | |
36 | |
|
44 | &pinctrl { |
37 | &pinctrl { |
|
45 | state_default: pinctrl0 { |
38 | state_default: pinctrl0 { |
|
46 | gpio { |
39 | gpio { |
|
47 | ralink,group = "i2c", "jtag", "uartf"; |
40 | ralink,group = "i2c", "jtag", "uartf"; |
|
48 | ralink,function = "gpio"; |
41 | ralink,function = "gpio"; |
|
49 | }; |
42 | }; |
|
50 | }; |
43 | }; |
|
51 | }; |
44 | }; |
|
52 | |
45 | |
|
53 | ðernet { |
46 | ðernet { |
|
54 | mtd-mac-address = <&factory 0x28>; |
47 | mtd-mac-address = <&factory 0x28>; |
|
55 | }; |
48 | }; |
|
56 | |
49 | |
|
57 | &esw { |
50 | &esw { |
|
58 | mediatek,portmap = <0x3f>; |
51 | mediatek,portmap = <0x3f>; |
|
59 | }; |
52 | }; |
|
60 | |
53 | |
|
61 | &wmac { |
54 | &wmac { |
|
62 | ralink,mtd-eeprom = <&factory 0>; |
55 | ralink,mtd-eeprom = <&factory 0>; |
|
63 | }; |
56 | }; |
|
64 | |
57 | |