b352dbe43a614e16f4b98cacca27b297599ccf61
[openwrt/staging/chunkeey.git] / target / linux / bcm27xx / patches-5.10 / 950-0437-overlays-add-spi-override-to-merus-amp-overlay.patch
1 From e4ba525d61b49bd7355356ccc5eb76026f986c0a Mon Sep 17 00:00:00 2001
2 From: Aaron Shaw <shawaj@gmail.com>
3 Date: Sat, 26 Dec 2020 03:13:14 +0000
4 Subject: [PATCH] overlays: add spi override to merus-amp overlay
5
6 adds an override to the merus-amp overlay to turn the spi bus off
7
8 Change-type: patch
9 Signed-off-by: Aaron Shaw <shawaj@gmail.com>
10 ---
11 arch/arm/boot/dts/overlays/README | 4 ++--
12 arch/arm/boot/dts/overlays/merus-amp-overlay.dts | 10 ++++++++++
13 2 files changed, 12 insertions(+), 2 deletions(-)
14
15 --- a/arch/arm/boot/dts/overlays/README
16 +++ b/arch/arm/boot/dts/overlays/README
17 @@ -1914,8 +1914,8 @@ Params: speed Display
18
19 Name: merus-amp
20 Info: Configures the merus-amp audio card
21 -Load: dtoverlay=merus-amp
22 -Params: <None>
23 +Load: dtoverlay=merus-amp,<param>=<val>
24 +Params: spioff Turn SPI bus off
25
26
27 Name: midi-uart0
28 --- a/arch/arm/boot/dts/overlays/merus-amp-overlay.dts
29 +++ b/arch/arm/boot/dts/overlays/merus-amp-overlay.dts
30 @@ -57,4 +57,14 @@
31 status = "okay";
32 };
33 };
34 +
35 + fragment@4 {
36 + target = <&spi0>;
37 + frag4: __overlay__ {
38 + };
39 + };
40 +
41 + __overrides__ {
42 + spioff = <&frag4>, "status=disabled";
43 + };
44 };