1 From e88444a73ef7bc16869e60ad1e392129a07a9f2c Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Wed, 3 Mar 2021 10:31:13 +0000
4 Subject: [PATCH] overlays: ghost-amp: Minor tweaks
6 1. Reduce the delay between RELAY1 and RELAY2 to 1000ms.
7 2. Rename the states to simplify LED control by an external script.
8 3. Claim all the required GPIOs, enabling pull-ups on the input.
10 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
12 .../boot/dts/overlays/ghost-amp-overlay.dts | 20 ++++++++++++++++---
13 1 file changed, 17 insertions(+), 3 deletions(-)
15 --- a/arch/arm/boot/dts/overlays/ghost-amp-overlay.dts
16 +++ b/arch/arm/boot/dts/overlays/ghost-amp-overlay.dts
20 compatible = "rpi,gpio-fsm";
21 + pinctrl-names = "default";
22 + pinctrl-0 = <&ghost_amp_pins>;
30 - amp_on = <GF_DELAY 1500>;
31 + amp_on = <GF_DELAY 1000>;
38 - amp_off_wait = <ENABLE 0>;
39 + amp_on_wait = <ENABLE 0>;
45 amp_off_1 = <GF_DELAY (30*60*1000)>,
52 + amp_off = <FAULT 0>;
62 + ghost_amp_pins: ghost_amp_pins {
63 + brcm,pins = <5 22 23>;
64 + brcm,function = <0 1 1>; /* in out out */
65 + brcm,pull = <2 0 0>; /* up none none */
71 fsm_debug = <&>,"debug:0";