brcm63xx: probe SPI flash through DT
[openwrt/openwrt.git] / target / linux / brcm63xx / dts / bcm96318ref.dts
1 /dts-v1/;
2
3 #include "bcm6318.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "Broadcom BCM96318REF reference board";
9 compatible = "brcm,bcm96318ref", "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 = <&gpio1 1 1>;
25 linux,code = <KEY_WPS_BUTTON>;
26 };
27
28 reset {
29 label = "reset";
30 gpios = <&gpio1 2 1>;
31 linux,code = <KEY_RESTART>;
32 };
33 };
34
35 gpio-leds {
36 compatible = "gpio-leds";
37
38 inet {
39 label = "96318REF:green:inet";
40 gpios = <&gpio0 8 1>;
41 };
42
43 inet_fail {
44 label = "96318REF:red:inet-fail";
45 gpios = <&gpio0 9 1>;
46 };
47
48 post_failed {
49 label = "96318REF:red:post-failed";
50 gpios = <&gpio0 11 1>;
51 };
52 };
53 };
54
55 &hsspi {
56 status = "ok";
57
58 flash@0 {
59 compatible = "jedec,spi-nor";
60 spi-max-frequency = <62500000>;
61 spi-tx-bus-width = <2>;
62 spi-rx-bus-width = <2>;
63 reg = <0>;
64
65 #address-cells = <1>;
66 #size-cells = <1>;
67
68 linux,part-probe = "bcm63xxpart";
69 };
70 };