brcm63xx: probe SPI flash through DT
[openwrt/openwrt.git] / target / linux / brcm63xx / dts / bcm63268.dtsi
1 / {
2 #address-cells = <1>;
3 #size-cells = <1>;
4 compatible = "brcm,bcm63268";
5
6 aliases {
7 gpio0 = &gpio0;
8 gpio1 = &gpio1;
9 spi0 = &lsspi;
10 spi1 = &hsspi;
11 };
12
13 cpus {
14 #address-cells = <1>;
15 #size-cells = <0>;
16
17 cpu@0 {
18 compatible = "brcm,bmips4350", "mips,mips4Kc";
19 device_type = "cpu";
20 reg = <0>;
21 };
22
23 cpu@1 {
24 compatible = "brcm,bmips4350", "mips,mips4Kc";
25 device_type = "cpu";
26 reg = <1>;
27 };
28 };
29
30 cpu_intc: interrupt-controller {
31 #address-cells = <0>;
32 compatible = "mti,cpu-interrupt-controller";
33
34 interrupt-controller;
35 #interrupt-cells = <1>;
36 };
37
38 memory { device_type = "memory"; reg = <0 0>; };
39
40 ubus@10000000 {
41 #address-cells = <1>;
42 #size-cells = <1>;
43 ranges;
44 compatible = "simple-bus";
45 interrupt-parent = <&periph_intc>;
46
47 ext_intc: interrupt-controller@10000018 {
48 compatible = "brcm,bcm6345-ext-intc";
49 reg = <0x10000018 0x4>;
50
51 interrupt-controller;
52 #interrupt-cells = <2>;
53
54 interrupts = <44>, <45>, <46>, <47>;
55 };
56
57 periph_intc: interrupt-controller@10000020 {
58 compatible = "brcm,bcm6345-l1-intc";
59 reg = <0x10000020 0x20>,
60 <0x10000040 0x20>;
61
62 interrupt-controller;
63 #interrupt-cells = <1>;
64
65 interrupt-parent = <&cpu_intc>;
66 interrupts = <2>, <3>;
67 };
68
69 gpio1: gpio-controller@100000c0 {
70 compatible = "brcm,bcm6345-gpio";
71 reg = <0x100000c0 4>, <0x100000c8 4>;
72
73 gpio-controller;
74 #gpio-cells = <2>;
75
76 ngpios = <20>;
77
78 interrupt-parent = <&periph_intc>;
79 interrupts = <0 0>, <1 0>, <2 0>, <3 0>;
80 interrupt-names = "gpio0", "gpio1", "gpio2", "gpio3";
81 };
82
83 gpio0: gpio-controller@100000c4 {
84 compatible = "brcm,bcm6345-gpio";
85 reg = <0x100000c4 4>, <0x100000cc 4>;
86
87 gpio-controller;
88 #gpio-cells = <2>;
89 };
90
91 lsspi: spi@10000800 {
92 #address-cells = <1>;
93 #size-cells = <0>;
94 compatible = "brcm,bcm6358-spi";
95 reg = <0x10000800 0x70c>;
96 interrupts = <80>;
97 /* clocks = <&clkctl 15>; */
98 };
99
100 hsspi: spi@10001000 {
101 #address-cells = <1>;
102 #size-cells = <0>;
103 compatible = "brcm,bcm6328-hsspi";
104 reg = <0x10001000 0x600>;
105 interrupts = <6>;
106 /* clocks = <&clkctl 16>; */
107 };
108 };
109 };