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 = "nexaira,bc2", "ralink,rt3052-soc"; |
9 | compatible = "nexaira,bc2", "ralink,rt3052-soc"; |
|
10 | model = "NexAira BC2"; |
10 | model = "NexAira BC2"; |
|
11 | |
11 | |
|
12 | cfi@1f000000 { |
12 | cfi@1f000000 { |
|
13 | compatible = "cfi-flash"; |
13 | compatible = "cfi-flash"; |
|
14 | reg = <0x1f000000 0x800000>; |
14 | reg = <0x1f000000 0x800000>; |
|
15 | bank-width = <2>; |
15 | bank-width = <2>; |
|
16 | device-width = <2>; |
16 | device-width = <2>; |
|
- | 17 | #address-cells = <1>; |
||
- | 18 | #size-cells = <1>; |
||
17 | |
- | ||
18 | partitions { |
- | ||
19 | compatible = "fixed-partitions"; |
- | ||
20 | #address-cells = <1>; |
- | ||
21 | #size-cells = <1>; |
- | ||
22 | |
19 | |
|
23 | partition@0 { |
20 | partition@0 { |
|
24 | label = "u-boot"; |
21 | label = "u-boot"; |
|
25 | reg = <0x0 0x30000>; |
22 | reg = <0x0 0x30000>; |
|
26 | read-only; |
23 | read-only; |
|
27 | }; |
24 | }; |
|
28 | |
25 | |
|
29 | partition@30000 { |
26 | partition@30000 { |
|
30 | label = "u-boot-env"; |
27 | label = "u-boot-env"; |
|
31 | reg = <0x30000 0x10000>; |
28 | reg = <0x30000 0x10000>; |
|
32 | read-only; |
29 | read-only; |
|
33 | }; |
30 | }; |
|
34 | |
31 | |
|
35 | factory: partition@40000 { |
32 | factory: partition@40000 { |
|
36 | label = "factory"; |
33 | label = "factory"; |
|
37 | reg = <0x40000 0x10000>; |
34 | reg = <0x40000 0x10000>; |
|
38 | read-only; |
35 | read-only; |
|
39 | }; |
36 | }; |
|
40 | |
37 | |
|
41 | partition@50000 { |
- | ||
42 | compatible = "denx,uimage"; |
38 | partition@50000 { |
|
43 | label = "firmware"; |
39 | label = "firmware"; |
|
44 | reg = <0x50000 0x7b0000>; |
- | ||
45 | }; |
40 | reg = <0x50000 0x7b0000>; |
|
46 | }; |
41 | }; |
|
47 | }; |
42 | }; |
|
48 | |
43 | |
|
49 | leds { |
44 | gpio-leds { |
|
50 | compatible = "gpio-leds"; |
45 | compatible = "gpio-leds"; |
|
51 | |
46 | |
|
52 | usb { |
47 | usb { |
|
53 | label = "bc2:blue:usb"; |
48 | label = "bc2:blue:usb"; |
|
54 | gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; |
49 | gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; |
|
55 | trigger-sources = <&otg_port1>; |
- | ||
56 | linux,default-trigger = "usbport"; |
- | ||
57 | }; |
50 | }; |
|
58 | }; |
51 | }; |
|
59 | |
52 | |
|
60 | keys { |
53 | gpio-keys-polled { |
|
- | 54 | compatible = "gpio-keys-polled"; |
||
- | 55 | #address-cells = <1>; |
||
61 | compatible = "gpio-keys-polled"; |
56 | #size-cells = <0>; |
|
62 | poll-interval = <20>; |
57 | poll-interval = <20>; |
|
63 | |
58 | |
|
64 | reset { |
59 | reset { |
|
65 | label = "reset"; |
60 | label = "reset"; |
|
66 | gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; |
61 | gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; |
|
67 | linux,code = <KEY_RESTART>; |
62 | linux,code = <KEY_RESTART>; |
|
68 | }; |
63 | }; |
|
69 | }; |
64 | }; |
|
70 | }; |
65 | }; |
|
71 | |
66 | |
|
72 | &pinctrl { |
67 | &pinctrl { |
|
73 | state_default: pinctrl0 { |
68 | state_default: pinctrl0 { |
|
74 | gpio { |
69 | gpio { |
|
75 | ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; |
70 | ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; |
|
76 | ralink,function = "gpio"; |
71 | ralink,function = "gpio"; |
|
77 | }; |
72 | }; |
|
78 | }; |
73 | }; |
|
79 | }; |
74 | }; |
|
80 | |
75 | |
|
81 | ðernet { |
76 | ðernet { |
|
82 | mtd-mac-address = <&factory 0x4>; |
77 | mtd-mac-address = <&factory 0x4>; |
|
83 | }; |
78 | }; |
|
84 | |
79 | |
|
85 | &esw { |
80 | &esw { |
|
86 | mediatek,portmap = <0x2f>; |
81 | mediatek,portmap = <0x2f>; |
|
87 | }; |
82 | }; |
|
88 | |
83 | |
|
89 | &wmac { |
84 | &wmac { |
|
90 | ralink,mtd-eeprom = <&factory 0>; |
85 | ralink,mtd-eeprom = <&factory 0>; |
|
91 | }; |
86 | }; |
|
92 | |
87 | |
|
93 | &otg { |
88 | &otg { |
|
94 | status = "okay"; |
89 | status = "okay"; |
|
95 | }; |
90 | }; |
|
96 | |
91 | |