brcm63xx: probe SPI flash through DT
[openwrt/openwrt.git] / target / linux / brcm63xx / dts / bcm6318.dtsi
1 / {
2 #address-cells = <1>;
3 #size-cells = <1>;
4 compatible = "brcm,bcm6318";
5
6 aliases {
7 gpio0 = &gpio0;
8 gpio1 = &gpio1;
9 spi1 = &hsspi;
10 };
11
12 cpus {
13 #address-cells = <1>;
14 #size-cells = <0>;
15
16 cpu@0 {
17 compatible = "brcm,bmips3300", "mips,mips4Kc";
18 device_type = "cpu";
19 reg = <0>;
20 };
21 };
22
23 cpu_intc: interrupt-controller {
24 #address-cells = <0>;
25 compatible = "mti,cpu-interrupt-controller";
26
27 interrupt-controller;
28 #interrupt-cells = <1>;
29 };
30
31 memory { device_type = "memory"; reg = <0 0>; };
32
33 ubus@10000000 {
34 #address-cells = <1>;
35 #size-cells = <1>;
36 ranges;
37 compatible = "simple-bus";
38 interrupt-parent = <&periph_intc>;
39
40 ext_intc: interrupt-controller@10000018 {
41 compatible = "brcm,bcm6318-ext-intc";
42 reg = <0x10000018 0x4>;
43
44 interrupt-controller;
45 #interrupt-cells = <2>;
46
47 interrupts = <24>, <25>, <26>, <27>;
48 };
49
50 periph_intc: interrupt-controller@10000020 {
51 compatible = "brcm,bcm6345-l1-intc";
52 reg = <0x10000020 0x20>;
53
54 interrupt-controller;
55 #interrupt-cells = <1>;
56
57 interrupt-parent = <&cpu_intc>;
58 interrupts = <2>;
59 };
60
61 gpio1: gpio-controller@10000080 {
62 compatible = "brcm,bcm6345-gpio";
63 reg = <0x10000080 4>, <0x10000088 4>;
64
65 gpio-controller;
66 #gpio-cells = <2>;
67
68 ngpios = <18>;
69
70 interrupt-parent = <&ext_intc>;
71 interrupts = <0 0>, <1 0>;
72 interrupt-names = "gpio1", "gpio2";
73 };
74
75 gpio0: gpio-controller@10000084 {
76 compatible = "brcm,bcm6345-gpio";
77 reg = <0x10000084 4>, <0x1000008c 4>;
78
79 gpio-controller;
80 #gpio-cells = <2>;
81 };
82
83 hsspi: spi@10003000 {
84 #address-cells = <1>;
85 #size-cells = <0>;
86 compatible = "brcm,bcm6328-hsspi";
87 reg = <0x10003000 0x600>;
88 interrupts = <29>;
89 /* clocks = <&clkctl 25>; */
90 };
91 };
92 };