bcm27xx: update 6.1 patches to latest version
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-6.1 / 950-1063-dts-rp1-Add-spi6-fix-spi1-address-cells.patch
1 From cd66a0832351762b496bdce6f2f94a871d11484e Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Thu, 2 Nov 2023 13:12:55 +0000
4 Subject: [PATCH] dts: rp1: Add spi6, fix spi1 #address-cells
5
6 spi6 won't be useful on Pi 5 because it can't be enabled on the 40-pin
7 header, but include it for completeness.
8
9 Also fix the #address-cells value for spi1, otherwise the kernel will
10 reject attempts to apply the, say, spi1-2cs overlay at runtime.
11
12 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
13 ---
14 arch/arm/boot/dts/rp1.dtsi | 17 ++++++++++++++++-
15 1 file changed, 16 insertions(+), 1 deletion(-)
16
17 --- a/arch/arm/boot/dts/rp1.dtsi
18 +++ b/arch/arm/boot/dts/rp1.dtsi
19 @@ -187,7 +187,7 @@
20 interrupts = <RP1_INT_SPI1 IRQ_TYPE_LEVEL_HIGH>;
21 clocks = <&rp1_clocks RP1_CLK_SYS>;
22 clock-names = "ssi_clk";
23 - #address-cells = <0>;
24 + #address-cells = <1>;
25 #size-cells = <0>;
26 num-cs = <2>;
27 dmas = <&rp1_dma RP1_DMA_SPI1_TX>,
28 @@ -262,6 +262,21 @@
29 dma-names = "tx", "rx";
30 status = "disabled";
31 };
32 +
33 + rp1_spi6: spi@68000 {
34 + reg = <0xc0 0x40068000 0x0 0x130>;
35 + compatible = "snps,dw-apb-ssi";
36 + interrupts = <RP1_INT_SPI6 IRQ_TYPE_LEVEL_HIGH>;
37 + clocks = <&rp1_clocks RP1_CLK_SYS>;
38 + clock-names = "ssi_clk";
39 + #address-cells = <1>;
40 + #size-cells = <0>;
41 + num-cs = <2>;
42 + dmas = <&rp1_dma RP1_DMA_SPI6_TX>,
43 + <&rp1_dma RP1_DMA_SPI6_RX>;
44 + dma-names = "tx", "rx";
45 + status = "disabled";
46 + };
47
48 // SPI7 is a target/slave interface
49 rp1_spi7: spi@6c000 {