bcm27xx: switch to 5.15
[openwrt/staging/chunkeey.git] / target / linux / bcm27xx / patches-5.10 / 950-0629-overlays-ghost-amp-Change-early-disable-sequence.patch
1 From c6ae428b0fa43bee35aa6de4fb2f5d5cc81460a4 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Mon, 14 Jun 2021 15:07:38 +0100
4 Subject: [PATCH] overlays: ghost-amp: Change early-disable sequence
5
6 In the event that the ENABLE signal from the codec goes low before
7 RELAY2 has been enabled, wait until the full 1000ms has elapsed then
8 enable RELAY2 and jump to amp_on_wait, i.e. as if output had been
9 fully enabled then disabled, rather than returning to the amp_off
10 idle state.
11
12 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
13 ---
14 arch/arm/boot/dts/overlays/ghost-amp-overlay.dts | 14 ++++++++++----
15 1 file changed, 10 insertions(+), 4 deletions(-)
16
17 --- a/arch/arm/boot/dts/overlays/ghost-amp-overlay.dts
18 +++ b/arch/arm/boot/dts/overlays/ghost-amp-overlay.dts
19 @@ -82,14 +82,20 @@
20
21 amp_on_1 {
22 set = <RELAY1 1>;
23 - amp_on = <GF_DELAY 1000>;
24 - amp_off = <ENABLE 0>;
25 + amp_on_2 = <GF_DELAY 1000>;
26 + amp_off = <GF_SHUTDOWN 0>;
27 + fault = <FAULT 1>;
28 + };
29 +
30 + amp_on_2 {
31 + set = <RELAY2 1>;
32 + amp_on_wait = <ENABLE 0>;
33 + amp_on = <GF_DELAY 1>;
34 fault = <FAULT 1>;
35 };
36
37 amp_on {
38 - set = <RELAY2 1>,
39 - <RELAYSSR 1>;
40 + set = <RELAYSSR 1>;
41 amp_on_wait = <ENABLE 0>;
42 fault = <FAULT 1>;
43 };