Skip to content

Commit 4bdb6aa

Browse files
committed
overlays: ghost-amp: Change early-disable sequence
In the event that the ENABLE signal from the codec goes low before RELAY2 has been enabled, wait until the full 1000ms has elapsed then enable RELAY2 and jump to amp_on_wait, i.e. as if output had been fully enabled then disabled, rather than returning to the amp_off idle state. Signed-off-by: Phil Elwell <phil@raspberrypi.com>
1 parent 86b1bed commit 4bdb6aa

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

‎arch/arm/boot/dts/overlays/ghost-amp-overlay.dts‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,20 @@
8282

8383
amp_on_1 {
8484
set = <RELAY1 1>;
85-
amp_on = <GF_DELAY 1000>;
86-
amp_off = <ENABLE 0>;
85+
amp_on_2 = <GF_DELAY 1000>;
86+
amp_off = <GF_SHUTDOWN 0>;
87+
fault = <FAULT 1>;
88+
};
89+
90+
amp_on_2 {
91+
set = <RELAY2 1>;
92+
amp_on_wait = <ENABLE 0>;
93+
amp_on = <GF_DELAY 1>;
8794
fault = <FAULT 1>;
8895
};
8996

9097
amp_on {
91-
set = <RELAY2 1>,
92-
<RELAYSSR 1>;
98+
set = <RELAYSSR 1>;
9399
amp_on_wait = <ENABLE 0>;
94100
fault = <FAULT 1>;
95101
};

0 commit comments

Comments
 (0)