Skip to content

Commit 1d0cf3e

Browse files
committed
overlays: ghost-amp: Add DAC mute control
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
1 parent 6974247 commit 1d0cf3e

1 file changed

Lines changed: 17 additions & 11 deletions

File tree

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

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44

55
#include <dt-bindings/gpio/gpio-fsm.h>
66

7-
#define ENABLE GF_SW(0)
8-
#define FAULT GF_IP(0) // GPIO5
9-
#define RELAY1 GF_OP(0) // GPIO22
10-
#define RELAY2 GF_OP(1) // GPIO23
7+
#define ENABLE GF_SW(0)
8+
#define FAULT GF_IP(0) // GPIO5
9+
#define RELAY1 GF_OP(0) // GPIO22
10+
#define RELAY2 GF_OP(1) // GPIO23
11+
#define RELAYSSR GF_OP(2) // GPIO24
1112

1213
/ {
1314
compatible = "brcm,bcm2835";
@@ -64,14 +65,16 @@
6465
gpio-line-names = "enable";
6566
input-gpios = <&gpio 5 1>; // FAULT (active low)
6667
output-gpios = <&gpio 22 0>, // RELAY1
67-
<&gpio 23 0>; // RELAY2
68+
<&gpio 23 0>, // RELAY2
69+
<&gpio 24 0>; // RELAYSSR
6870
shutdown-timeout-ms = <1000>;
6971

7072
amp_off {
7173
start_state;
7274
shutdown_state;
7375

74-
set = <RELAY2 0>,
76+
set = <RELAYSSR 0>,
77+
<RELAY2 0>,
7578
<RELAY1 0>;
7679
amp_on_1 = <ENABLE 1>;
7780
fault = <FAULT 1>;
@@ -85,12 +88,14 @@
8588
};
8689

8790
amp_on {
88-
set = <RELAY2 1>;
91+
set = <RELAY2 1>,
92+
<RELAYSSR 1>;
8993
amp_on_wait = <ENABLE 0>;
9094
fault = <FAULT 1>;
9195
};
9296

9397
amp_on_wait {
98+
set = <RELAYSSR 0>;
9499
amp_off_1 = <GF_DELAY (30*60*1000)>,
95100
<GF_SHUTDOWN 0>;
96101
amp_on = <ENABLE 1>;
@@ -107,7 +112,8 @@
107112
// Keep this a distinct state to prevent
108113
// changes and for the diagnostic output
109114
fault {
110-
set = <RELAY2 0>,
115+
set = <RELAYSSR 0>,
116+
<RELAY2 0>,
111117
<RELAY1 0>;
112118
amp_off = <FAULT 0>;
113119
shutdown_state;
@@ -120,9 +126,9 @@
120126
target = <&gpio>;
121127
__overlay__ {
122128
ghost_amp_pins: ghost_amp_pins {
123-
brcm,pins = <5 22 23>;
124-
brcm,function = <0 1 1>; /* in out out */
125-
brcm,pull = <2 0 0>; /* up none none */
129+
brcm,pins = <5 22 23 24>;
130+
brcm,function = <0 1 1 1>; /* in out out out */
131+
brcm,pull = <2 0 0 0>; /* up none none none */
126132
};
127133
};
128134
};

0 commit comments

Comments
 (0)