8fae7fa78aa89335c93eac8182e36765e51761d6
[openwrt/staging/mkresin.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 = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
13 };
14
15 gpio-keys-polled {
16 compatible = "gpio-keys-polled";
17 #address-cells = <1>;
18 #size-cells = <0>;
19 poll-interval = <20>;
20 debounce-interval = <60>;
21
22 wps {
23 label = "wps";
24 gpios = <&pinctrl 33 1>;
25 linux,code = <KEY_WPS_BUTTON>;
26 };
27
28 reset {
29 label = "reset";
30 gpios = <&pinctrl 34 1>;
31 linux,code = <KEY_RESTART>;
32 };
33 };
34
35 gpio-leds {
36 compatible = "gpio-leds";
37
38 inet {
39 label = "96318REF_P300:green:inet";
40 gpios = <&pinctrl 8 1>;
41 };
42
43 inet_fail {
44 label = "96318REF_P300:red:inet-fail";
45 gpios = <&pinctrl 9 1>;
46 };
47
48 post_failed {
49 label = "96318REF_P300:red:post-failed";
50 gpios = <&pinctrl 11 1>;
51 };
52
53 usb_pwron {
54 label = "96318REF_P300::usb-pwron";
55 gpios = <&pinctrl 13 1>;
56 default-state = "on";
57 };
58 };
59 };
60
61 &hsspi {
62 status = "ok";
63
64 flash@0 {
65 compatible = "jedec,spi-nor";
66 spi-max-frequency = <62500000>;
67 spi-tx-bus-width = <2>;
68 spi-rx-bus-width = <2>;
69 reg = <0>;
70
71 #address-cells = <1>;
72 #size-cells = <1>;
73
74 linux,part-probe = "bcm63xxpart";
75 };
76 };
77
78 &pinctrl {
79 pinctrl-names = "default";
80 pinctrl-0 = <&pinctrl_usb_pwron>;
81 };