1 From e56470876bda3751a1926aa5876495e3678e363f Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Fri, 16 Apr 2021 09:31:17 +0100
4 Subject: [PATCH] overlays: ghost-amp: Add DAC mute control
6 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
8 .../boot/dts/overlays/ghost-amp-overlay.dts | 28 +++++++++++--------
9 1 file changed, 17 insertions(+), 11 deletions(-)
11 --- a/arch/arm/boot/dts/overlays/ghost-amp-overlay.dts
12 +++ b/arch/arm/boot/dts/overlays/ghost-amp-overlay.dts
15 #include <dt-bindings/gpio/gpio-fsm.h>
17 -#define ENABLE GF_SW(0)
18 -#define FAULT GF_IP(0) // GPIO5
19 -#define RELAY1 GF_OP(0) // GPIO22
20 -#define RELAY2 GF_OP(1) // GPIO23
21 +#define ENABLE GF_SW(0)
22 +#define FAULT GF_IP(0) // GPIO5
23 +#define RELAY1 GF_OP(0) // GPIO22
24 +#define RELAY2 GF_OP(1) // GPIO23
25 +#define RELAYSSR GF_OP(2) // GPIO24
28 compatible = "brcm,bcm2835";
30 gpio-line-names = "enable";
31 input-gpios = <&gpio 5 1>; // FAULT (active low)
32 output-gpios = <&gpio 22 0>, // RELAY1
33 - <&gpio 23 0>; // RELAY2
34 + <&gpio 23 0>, // RELAY2
35 + <&gpio 24 0>; // RELAYSSR
36 shutdown-timeout-ms = <1000>;
46 amp_on_1 = <ENABLE 1>;
55 amp_on_wait = <ENABLE 0>;
61 amp_off_1 = <GF_DELAY (30*60*1000)>,
65 // Keep this a distinct state to prevent
66 // changes and for the diagnostic output
77 ghost_amp_pins: ghost_amp_pins {
78 - brcm,pins = <5 22 23>;
79 - brcm,function = <0 1 1>; /* in out out */
80 - brcm,pull = <2 0 0>; /* up none none */
81 + brcm,pins = <5 22 23 24>;
82 + brcm,function = <0 1 1 1>; /* in out out out */
83 + brcm,pull = <2 0 0 0>; /* up none none none */