OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
1 | /dts-v1/; |
1 | /dts-v1/; |
|
2 | |
2 | |
|
3 | #include "bcm6318.dtsi" |
3 | #include "bcm6318.dtsi" |
|
4 | |
4 | |
|
5 | #include <dt-bindings/input/input.h> |
5 | #include <dt-bindings/input/input.h> |
|
6 | |
6 | |
|
7 | / { |
7 | / { |
|
8 | model = "Broadcom BCM96318REF_P300 reference board"; |
8 | model = "Broadcom BCM96318REF_P300 reference board"; |
|
9 | compatible = "brcm,bcm96318ref_p300", "brcm,bcm6318"; |
9 | compatible = "brcm,bcm96318ref_p300", "brcm,bcm6318"; |
|
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 | wps { |
23 | wps { |
|
23 | label = "wps"; |
24 | label = "wps"; |
|
24 | gpios = <&pinctrl 33 1>; |
25 | gpios = <&pinctrl 33 1>; |
|
25 | linux,code = <KEY_WPS_BUTTON>; |
26 | linux,code = <KEY_WPS_BUTTON>; |
|
26 | debounce-interval = <60>; |
- | ||
27 | }; |
27 | }; |
|
28 | |
28 | |
|
29 | reset { |
29 | reset { |
|
30 | label = "reset"; |
30 | label = "reset"; |
|
31 | gpios = <&pinctrl 34 1>; |
31 | gpios = <&pinctrl 34 1>; |
|
32 | linux,code = <KEY_RESTART>; |
32 | linux,code = <KEY_RESTART>; |
|
33 | debounce-interval = <60>; |
- | ||
34 | }; |
33 | }; |
|
35 | }; |
34 | }; |
|
36 | |
35 | |
|
37 | leds { |
36 | gpio-leds { |
|
38 | compatible = "gpio-leds"; |
37 | compatible = "gpio-leds"; |
|
39 | |
38 | |
|
40 | inet { |
39 | inet { |
|
41 | label = "96318REF_P300:green:inet"; |
40 | label = "96318REF_P300:green:inet"; |
|
42 | gpios = <&pinctrl 8 1>; |
41 | gpios = <&pinctrl 8 1>; |
|
43 | }; |
42 | }; |
|
44 | |
43 | |
|
45 | inet_fail { |
44 | inet_fail { |
|
46 | label = "96318REF_P300:red:inet-fail"; |
45 | label = "96318REF_P300:red:inet-fail"; |
|
47 | gpios = <&pinctrl 9 1>; |
46 | gpios = <&pinctrl 9 1>; |
|
48 | }; |
47 | }; |
|
49 | |
48 | |
|
50 | post_failed { |
49 | post_failed { |
|
51 | label = "96318REF_P300:red:post-failed"; |
50 | label = "96318REF_P300:red:post-failed"; |
|
52 | gpios = <&pinctrl 11 1>; |
51 | gpios = <&pinctrl 11 1>; |
|
53 | }; |
52 | }; |
|
54 | |
53 | |
|
55 | usb_pwron { |
54 | usb_pwron { |
|
56 | label = "96318REF_P300::usb-pwron"; |
55 | label = "96318REF_P300::usb-pwron"; |
|
57 | gpios = <&pinctrl 13 1>; |
56 | gpios = <&pinctrl 13 1>; |
|
58 | default-state = "on"; |
57 | default-state = "on"; |
|
59 | }; |
58 | }; |
|
60 | }; |
59 | }; |
|
61 | }; |
60 | }; |
|
62 | |
61 | |
|
63 | &hsspi { |
62 | &hsspi { |
|
64 | status = "ok"; |
63 | status = "ok"; |
|
65 | |
64 | |
|
66 | flash@0 { |
65 | flash@0 { |
|
67 | compatible = "jedec,spi-nor"; |
66 | compatible = "jedec,spi-nor"; |
|
68 | spi-max-frequency = <62500000>; |
67 | spi-max-frequency = <62500000>; |
|
69 | spi-tx-bus-width = <2>; |
68 | spi-tx-bus-width = <2>; |
|
70 | spi-rx-bus-width = <2>; |
69 | spi-rx-bus-width = <2>; |
|
71 | reg = <0>; |
70 | reg = <0>; |
|
72 | |
71 | |
|
73 | #address-cells = <1>; |
72 | #address-cells = <1>; |
|
74 | #size-cells = <1>; |
73 | #size-cells = <1>; |
|
- | 74 | |
||
- | 75 | linux,part-probe = "bcm63xxpart"; |
||
75 | |
76 | |
|
76 | partitions { |
77 | partitions { |
|
77 | compatible = "brcm,bcm963xx-cfe-nor-partitions"; |
78 | compatible = "brcm,bcm963xx-cfe-nor-partitions"; |
|
78 | }; |
79 | }; |
|
79 | }; |
80 | }; |
|
80 | }; |
81 | }; |
|
81 | |
82 | |
|
82 | &pinctrl { |
83 | &pinctrl { |
|
83 | pinctrl-names = "default"; |
84 | pinctrl-names = "default"; |
|
84 | pinctrl-0 = <&pinctrl_usb_pwron>; |
85 | pinctrl-0 = <&pinctrl_usb_pwron>; |
|
85 | }; |
86 | }; |
|
86 | |
87 | |
|
87 | &uart0 { |
88 | &uart0 { |
|
88 | status = "ok"; |
89 | status = "ok"; |
|
89 | }; |
90 | }; |
|
90 | |
91 | |