ef9b5c4aaf159edacb89880f8c249a3d950df1e7
[openwrt/openwrt.git] / target / linux / brcm63xx / dts / bcm96318ref_p300.dts
1 /dts-v1/;
2
3 #include "bcm6318.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "Broadcom BCM96318REF_P300 reference board";
9 compatible = "brcm,bcm96318ref_p300", "brcm,bcm6318";
10
11 chosen {
12 bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
13 stdout-path = "serial0:115200n8";
14 };
15
16 gpio-keys-polled {
17 compatible = "gpio-keys-polled";
18 #address-cells = <1>;
19 #size-cells = <0>;
20 poll-interval = <20>;
21 debounce-interval = <60>;
22
23 wps {
24 label = "wps";
25 gpios = <&pinctrl 33 1>;
26 linux,code = <KEY_WPS_BUTTON>;
27 };
28
29 reset {
30 label = "reset";
31 gpios = <&pinctrl 34 1>;
32 linux,code = <KEY_RESTART>;
33 };
34 };
35
36 gpio-leds {
37 compatible = "gpio-leds";
38
39 inet {
40 label = "96318REF_P300:green:inet";
41 gpios = <&pinctrl 8 1>;
42 };
43
44 inet_fail {
45 label = "96318REF_P300:red:inet-fail";
46 gpios = <&pinctrl 9 1>;
47 };
48
49 post_failed {
50 label = "96318REF_P300:red:post-failed";
51 gpios = <&pinctrl 11 1>;
52 };
53
54 usb_pwron {
55 label = "96318REF_P300::usb-pwron";
56 gpios = <&pinctrl 13 1>;
57 default-state = "on";
58 };
59 };
60 };
61
62 &hsspi {
63 status = "ok";
64
65 flash@0 {
66 compatible = "jedec,spi-nor";
67 spi-max-frequency = <62500000>;
68 spi-tx-bus-width = <2>;
69 spi-rx-bus-width = <2>;
70 reg = <0>;
71
72 #address-cells = <1>;
73 #size-cells = <1>;
74
75 partitions {
76 compatible = "brcm,bcm963xx-cfe-nor-partitions";
77 };
78 };
79 };
80
81 &pinctrl {
82 pinctrl-names = "default";
83 pinctrl-0 = <&pinctrl_usb_pwron>;
84 };
85
86 &uart0 {
87 status = "ok";
88 };