OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
1 | /dts-v1/; |
1 | /dts-v1/; |
|
2 | |
2 | |
|
3 | #include "bcm6328.dtsi" |
3 | #include "bcm6328.dtsi" |
|
4 | |
4 | |
|
5 | #include <dt-bindings/input/input.h> |
5 | #include <dt-bindings/input/input.h> |
|
6 | |
6 | |
|
7 | / { |
7 | / { |
|
8 | model = "Comtrend AR-5381u"; |
8 | model = "Comtrend AR-5381u"; |
|
9 | compatible = "comtrend,ar-5381u", "brcm,bcm6328"; |
9 | compatible = "comtrend,ar-5381u", "brcm,bcm6328"; |
|
10 | |
10 | |
|
11 | chosen { |
11 | chosen { |
|
12 | bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200"; |
12 | bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200"; |
|
13 | stdout-path = "serial0:115200n8"; |
13 | stdout-path = "serial0:115200n8"; |
|
14 | }; |
14 | }; |
|
15 | |
15 | |
|
16 | keys { |
16 | gpio-keys-polled { |
|
17 | compatible = "gpio-keys-polled"; |
17 | compatible = "gpio-keys-polled"; |
|
18 | #address-cells = <1>; |
18 | #address-cells = <1>; |
|
19 | #size-cells = <0>; |
19 | #size-cells = <0>; |
|
20 | poll-interval = <20>; |
20 | poll-interval = <20>; |
|
- | 21 | debounce-interval = <60>; |
||
21 | |
22 | |
|
22 | reset { |
23 | reset { |
|
23 | label = "reset"; |
24 | label = "reset"; |
|
24 | gpios = <&pinctrl 23 1>; |
25 | gpios = <&pinctrl 23 1>; |
|
25 | linux,code = <KEY_RESTART>; |
26 | linux,code = <KEY_RESTART>; |
|
26 | debounce-interval = <60>; |
- | ||
27 | }; |
27 | }; |
|
28 | }; |
28 | }; |
|
29 | |
29 | |
|
30 | leds { |
30 | gpio-leds { |
|
31 | compatible = "gpio-leds"; |
31 | compatible = "gpio-leds"; |
|
32 | |
32 | |
|
33 | alarm_red { |
33 | alarm_red { |
|
34 | label = "AR-5381u:red:alarm"; |
34 | label = "AR-5381u:red:alarm"; |
|
35 | gpios = <&pinctrl 2 1>; |
35 | gpios = <&pinctrl 2 1>; |
|
36 | }; |
36 | }; |
|
37 | inet_green { |
37 | inet_green { |
|
38 | label = "AR-5381u:green:inet"; |
38 | label = "AR-5381u:green:inet"; |
|
39 | gpios = <&pinctrl 3 1>; |
39 | gpios = <&pinctrl 3 1>; |
|
40 | }; |
40 | }; |
|
41 | power_green { |
41 | power_green { |
|
42 | label = "AR-5381u:green:power"; |
42 | label = "AR-5381u:green:power"; |
|
43 | gpios = <&pinctrl 4 1>; |
43 | gpios = <&pinctrl 4 1>; |
|
44 | default-state = "on"; |
44 | default-state = "on"; |
|
45 | }; |
45 | }; |
|
46 | }; |
46 | }; |
|
47 | }; |
47 | }; |
|
48 | |
48 | |
|
49 | &hsspi { |
49 | &hsspi { |
|
50 | status = "ok"; |
50 | status = "ok"; |
|
51 | |
51 | |
|
52 | flash@0 { |
52 | flash@0 { |
|
53 | compatible = "jedec,spi-nor"; |
53 | compatible = "jedec,spi-nor"; |
|
54 | spi-max-frequency = <16666667>; |
54 | spi-max-frequency = <16666667>; |
|
55 | spi-tx-bus-width = <2>; |
55 | spi-tx-bus-width = <2>; |
|
56 | spi-rx-bus-width = <2>; |
56 | spi-rx-bus-width = <2>; |
|
57 | reg = <0>; |
57 | reg = <0>; |
|
58 | |
58 | |
|
59 | #address-cells = <1>; |
59 | #address-cells = <1>; |
|
60 | #size-cells = <1>; |
60 | #size-cells = <1>; |
|
- | 61 | |
||
- | 62 | linux,part-probe = "bcm63xxpart"; |
||
61 | |
63 | |
|
62 | partitions { |
64 | partitions { |
|
63 | compatible = "fixed-partitions"; |
65 | compatible = "fixed-partitions"; |
|
64 | #address-cells = <1>; |
66 | #address-cells = <1>; |
|
65 | #size-cells = <1>; |
67 | #size-cells = <1>; |
|
66 | |
68 | |
|
67 | cfe@0 { |
69 | cfe@0 { |
|
68 | reg = <0x000000 0x010000>; |
70 | reg = <0x000000 0x010000>; |
|
69 | label = "cfe"; |
71 | label = "cfe"; |
|
70 | read-only; |
72 | read-only; |
|
71 | }; |
73 | }; |
|
72 | |
74 | |
|
73 | linux@10000 { |
75 | linux@10000 { |
|
74 | reg = <0x010000 0xfe0000>; |
76 | reg = <0x010000 0xfe0000>; |
|
75 | label = "linux"; |
77 | label = "linux"; |
|
76 | compatible = "brcm,bcm963xx-imagetag"; |
78 | compatible = "brcm,bcm963xx-imagetag"; |
|
77 | }; |
79 | }; |
|
78 | |
80 | |
|
79 | nvram@ff0000 { |
81 | nvram@ff0000 { |
|
80 | reg = <0xff0000 0x010000>; |
82 | reg = <0xff0000 0x010000>; |
|
81 | label = "nvram"; |
83 | label = "nvram"; |
|
82 | }; |
84 | }; |
|
83 | }; |
85 | }; |
|
84 | }; |
86 | }; |
|
85 | }; |
87 | }; |
|
86 | |
88 | |
|
87 | &uart0 { |
89 | &uart0 { |
|
88 | status = "ok"; |
90 | status = "ok"; |
|
89 | }; |
91 | }; |
|
90 | |
92 | |