1 From f5d83b714e304d5f3229da434af2eeea033c4f5d Mon Sep 17 00:00:00 2001
2 From: William Zhang <william.zhang@broadcom.com>
3 Date: Mon, 6 Feb 2023 22:58:15 -0800
4 Subject: [PATCH] arm64: dts: broadcom: bcmbca: Add spi controller node
6 Add support for HSSPI controller in ARMv8 chip dts files.
8 Signed-off-by: William Zhang <william.zhang@broadcom.com>
9 Link: https://lore.kernel.org/r/20230207065826.285013-5-william.zhang@broadcom.com
10 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
12 .../boot/dts/broadcom/bcmbca/bcm4908.dtsi | 18 +++++++++++++++++
13 .../boot/dts/broadcom/bcmbca/bcm4912.dtsi | 20 +++++++++++++++++++
14 .../boot/dts/broadcom/bcmbca/bcm63146.dtsi | 19 ++++++++++++++++++
15 .../boot/dts/broadcom/bcmbca/bcm63158.dtsi | 19 ++++++++++++++++++
16 .../boot/dts/broadcom/bcmbca/bcm6813.dtsi | 20 +++++++++++++++++++
17 .../boot/dts/broadcom/bcmbca/bcm6856.dtsi | 18 +++++++++++++++++
18 .../boot/dts/broadcom/bcmbca/bcm6858.dtsi | 18 +++++++++++++++++
19 .../boot/dts/broadcom/bcmbca/bcm94908.dts | 4 ++++
20 .../boot/dts/broadcom/bcmbca/bcm94912.dts | 4 ++++
21 .../boot/dts/broadcom/bcmbca/bcm963146.dts | 4 ++++
22 .../boot/dts/broadcom/bcmbca/bcm963158.dts | 4 ++++
23 .../boot/dts/broadcom/bcmbca/bcm96813.dts | 4 ++++
24 .../boot/dts/broadcom/bcmbca/bcm96856.dts | 4 ++++
25 .../boot/dts/broadcom/bcmbca/bcm96858.dts | 4 ++++
26 14 files changed, 160 insertions(+)
28 --- a/arch/arm64/boot/dts/broadcom/bcmbca/bcm4908.dtsi
29 +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm4908.dtsi
31 clock-frequency = <50000000>;
32 clock-output-names = "periph";
35 + hsspi_pll: hsspi-pll {
36 + compatible = "fixed-clock";
38 + clock-frequency = <400000000>;
48 + #address-cells = <1>;
50 + compatible = "brcm,bcm4908-hsspi", "brcm,bcmbca-hsspi-v1.0";
51 + reg = <0x1000 0x600>;
52 + interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
53 + clocks = <&hsspi_pll &hsspi_pll>;
54 + clock-names = "hsspi", "pll";
56 + status = "disabled";
59 nand-controller@1800 {
62 --- a/arch/arm64/boot/dts/broadcom/bcmbca/bcm4912.dtsi
63 +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm4912.dtsi
66 clock-frequency = <200000000>;
70 compatible = "fixed-factor-clock";
77 + hsspi_pll: hsspi-pll {
78 + compatible = "fixed-clock";
80 + clock-frequency = <200000000>;
87 ranges = <0x0 0x0 0xff800000 0x800000>;
90 + #address-cells = <1>;
92 + compatible = "brcm,bcm4912-hsspi", "brcm,bcmbca-hsspi-v1.1";
93 + reg = <0x1000 0x600>, <0x2610 0x4>;
94 + reg-names = "hsspi", "spim-ctrl";
95 + interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
96 + clocks = <&hsspi_pll &hsspi_pll>;
97 + clock-names = "hsspi", "pll";
99 + status = "disabled";
102 uart0: serial@12000 {
103 compatible = "arm,pl011", "arm,primecell";
104 reg = <0x12000 0x1000>;
105 --- a/arch/arm64/boot/dts/broadcom/bcmbca/bcm63146.dtsi
106 +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm63146.dtsi
109 clock-frequency = <200000000>;
113 compatible = "fixed-factor-clock";
120 + hsspi_pll: hsspi-pll {
121 + compatible = "fixed-clock";
122 + #clock-cells = <0>;
123 + clock-frequency = <200000000>;
130 ranges = <0x0 0x0 0xff800000 0x800000>;
133 + #address-cells = <1>;
135 + compatible = "brcm,bcm63146-hsspi", "brcm,bcmbca-hsspi-v1.0";
136 + reg = <0x1000 0x600>;
137 + interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
138 + clocks = <&hsspi_pll &hsspi_pll>;
139 + clock-names = "hsspi", "pll";
141 + status = "disabled";
144 uart0: serial@12000 {
145 compatible = "arm,pl011", "arm,primecell";
146 reg = <0x12000 0x1000>;
147 --- a/arch/arm64/boot/dts/broadcom/bcmbca/bcm63158.dtsi
148 +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm63158.dtsi
151 clock-frequency = <200000000>;
155 compatible = "fixed-factor-clock";
162 + hsspi_pll: hsspi-pll {
163 + compatible = "fixed-clock";
164 + #clock-cells = <0>;
165 + clock-frequency = <400000000>;
172 ranges = <0x0 0x0 0xff800000 0x800000>;
175 + #address-cells = <1>;
177 + compatible = "brcm,bcm63158-hsspi", "brcm,bcmbca-hsspi-v1.0";
178 + reg = <0x1000 0x600>;
179 + interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
180 + clocks = <&hsspi_pll &hsspi_pll>;
181 + clock-names = "hsspi", "pll";
183 + status = "disabled";
186 uart0: serial@12000 {
187 compatible = "arm,pl011", "arm,primecell";
188 reg = <0x12000 0x1000>;
189 --- a/arch/arm64/boot/dts/broadcom/bcmbca/bcm6813.dtsi
190 +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm6813.dtsi
193 clock-frequency = <200000000>;
197 compatible = "fixed-factor-clock";
204 + hsspi_pll: hsspi-pll {
205 + compatible = "fixed-clock";
206 + #clock-cells = <0>;
207 + clock-frequency = <200000000>;
214 ranges = <0x0 0x0 0xff800000 0x800000>;
217 + #address-cells = <1>;
219 + compatible = "brcm,bcm6813-hsspi", "brcm,bcmbca-hsspi-v1.1";
220 + reg = <0x1000 0x600>, <0x2610 0x4>;
221 + reg-names = "hsspi", "spim-ctrl";
222 + interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
223 + clocks = <&hsspi_pll &hsspi_pll>;
224 + clock-names = "hsspi", "pll";
226 + status = "disabled";
229 uart0: serial@12000 {
230 compatible = "arm,pl011", "arm,primecell";
231 reg = <0x12000 0x1000>;
232 --- a/arch/arm64/boot/dts/broadcom/bcmbca/bcm6856.dtsi
233 +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm6856.dtsi
236 clock-frequency = <200000000>;
239 + hsspi_pll: hsspi-pll {
240 + compatible = "fixed-clock";
241 + #clock-cells = <0>;
242 + clock-frequency = <400000000>;
248 clock-names = "refclk";
253 + #address-cells = <1>;
255 + compatible = "brcm,bcm6856-hsspi", "brcm,bcmbca-hsspi-v1.0";
256 + reg = <0x1000 0x600>;
257 + interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
258 + clocks = <&hsspi_pll &hsspi_pll>;
259 + clock-names = "hsspi", "pll";
261 + status = "disabled";
265 --- a/arch/arm64/boot/dts/broadcom/bcmbca/bcm6858.dtsi
266 +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm6858.dtsi
269 clock-frequency = <200000000>;
272 + hsspi_pll: hsspi-pll {
273 + compatible = "fixed-clock";
274 + #clock-cells = <0>;
275 + clock-frequency = <400000000>;
281 clock-names = "refclk";
286 + #address-cells = <1>;
288 + compatible = "brcm,bcm6858-hsspi", "brcm,bcmbca-hsspi-v1.0";
289 + reg = <0x1000 0x600>;
290 + interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
291 + clocks = <&hsspi_pll &hsspi_pll>;
292 + clock-names = "hsspi", "pll";
294 + status = "disabled";
298 --- a/arch/arm64/boot/dts/broadcom/bcmbca/bcm94908.dts
299 +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm94908.dts
308 --- a/arch/arm64/boot/dts/broadcom/bcmbca/bcm94912.dts
309 +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm94912.dts
318 --- a/arch/arm64/boot/dts/broadcom/bcmbca/bcm963146.dts
319 +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm963146.dts
328 --- a/arch/arm64/boot/dts/broadcom/bcmbca/bcm963158.dts
329 +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm963158.dts
338 --- a/arch/arm64/boot/dts/broadcom/bcmbca/bcm96813.dts
339 +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm96813.dts
348 --- a/arch/arm64/boot/dts/broadcom/bcmbca/bcm96856.dts
349 +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm96856.dts
358 --- a/arch/arm64/boot/dts/broadcom/bcmbca/bcm96858.dts
359 +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm96858.dts