From e56470876bda3751a1926aa5876495e3678e363f Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 16 Apr 2021 09:31:17 +0100 Subject: [PATCH] overlays: ghost-amp: Add DAC mute control Signed-off-by: Phil Elwell --- .../boot/dts/overlays/ghost-amp-overlay.dts | 28 +++++++++++-------- 1 file changed, 17 insertions(+), 11 deletions(-) --- a/arch/arm/boot/dts/overlays/ghost-amp-overlay.dts +++ b/arch/arm/boot/dts/overlays/ghost-amp-overlay.dts @@ -4,10 +4,11 @@ #include -#define ENABLE GF_SW(0) -#define FAULT GF_IP(0) // GPIO5 -#define RELAY1 GF_OP(0) // GPIO22 -#define RELAY2 GF_OP(1) // GPIO23 +#define ENABLE GF_SW(0) +#define FAULT GF_IP(0) // GPIO5 +#define RELAY1 GF_OP(0) // GPIO22 +#define RELAY2 GF_OP(1) // GPIO23 +#define RELAYSSR GF_OP(2) // GPIO24 / { compatible = "brcm,bcm2835"; @@ -64,14 +65,16 @@ gpio-line-names = "enable"; input-gpios = <&gpio 5 1>; // FAULT (active low) output-gpios = <&gpio 22 0>, // RELAY1 - <&gpio 23 0>; // RELAY2 + <&gpio 23 0>, // RELAY2 + <&gpio 24 0>; // RELAYSSR shutdown-timeout-ms = <1000>; amp_off { start_state; shutdown_state; - set = , + set = , + , ; amp_on_1 = ; fault = ; @@ -85,12 +88,14 @@ }; amp_on { - set = ; + set = , + ; amp_on_wait = ; fault = ; }; amp_on_wait { + set = ; amp_off_1 = , ; amp_on = ; @@ -107,7 +112,8 @@ // Keep this a distinct state to prevent // changes and for the diagnostic output fault { - set = , + set = , + , ; amp_off = ; shutdown_state; @@ -120,9 +126,9 @@ target = <&gpio>; __overlay__ { ghost_amp_pins: ghost_amp_pins { - brcm,pins = <5 22 23>; - brcm,function = <0 1 1>; /* in out out */ - brcm,pull = <2 0 0>; /* up none none */ + brcm,pins = <5 22 23 24>; + brcm,function = <0 1 1 1>; /* in out out out */ + brcm,pull = <2 0 0 0>; /* up none none none */ }; }; };