1 From 9fcbc40311f8de3f7a0a27155f310ff19e150d76 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Thu, 30 Jul 2020 18:06:24 +0100
4 Subject: [PATCH] overlays: Delete spi0-hw-cs
6 The spi0-hw-cs overlay is unnecessary (and actually harmful) with the
7 current kernels. Delete it, leaving a note in the README and a
8 deprecation message from the firmware:
10 dterror: overlay 'spi0-hw-cs' is deprecated: no longer necessary
12 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
14 arch/arm/boot/dts/overlays/Makefile | 1 -
15 arch/arm/boot/dts/overlays/README | 6 ++---
16 arch/arm/boot/dts/overlays/overlay_map.dts | 4 +++
17 .../boot/dts/overlays/spi0-hw-cs-overlay.dts | 26 -------------------
18 4 files changed, 7 insertions(+), 30 deletions(-)
19 delete mode 100644 arch/arm/boot/dts/overlays/spi0-hw-cs-overlay.dts
21 --- a/arch/arm/boot/dts/overlays/Makefile
22 +++ b/arch/arm/boot/dts/overlays/Makefile
23 @@ -159,7 +159,6 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
31 --- a/arch/arm/boot/dts/overlays/README
32 +++ b/arch/arm/boot/dts/overlays/README
33 @@ -2346,9 +2346,9 @@ Params: cs0_pin GPIO pin
37 -Info: Re-enables hardware CS/CE (chip selects) for SPI0
38 -Load: dtoverlay=spi0-hw-cs
40 +Info: This overlay has been deprecated and removed because it is no longer
41 + necessary and has been seen to prevent spi0 from working.
46 --- a/arch/arm/boot/dts/overlays/overlay_map.dts
47 +++ b/arch/arm/boot/dts/overlays/overlay_map.dts
49 deprecated = "use sdio,bus_width=1,gpios_22_25";
53 + deprecated = "no longer necessary";
59 --- a/arch/arm/boot/dts/overlays/spi0-hw-cs-overlay.dts
63 - * Device tree overlay to re-enable hardware CS for SPI0
70 - compatible = "brcm,bcm2835";
75 - cs-gpios = <0>, <0>;
81 - target = <&spi0_cs_pins>;
84 - brcm,function = <4>; /* alt0 */