From 14ea778d2a5281a0f4c94230abccf30bc72c2bdd Mon Sep 17 00:00:00 2001 From: Jeff LaBundy Date: Sat, 19 Mar 2022 20:31:30 -0500 Subject: [PATCH] overlays: iqs550: Enable interrupt pull-down The device's active-high interrupt normally serves as a push-pull output, but becomes high-impedance during bootloader mode. Enable a pull-down to hold the pin in the inactive state. Signed-off-by: Jeff LaBundy --- arch/arm/boot/dts/overlays/iqs550-overlay.dts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) --- a/arch/arm/boot/dts/overlays/iqs550-overlay.dts +++ b/arch/arm/boot/dts/overlays/iqs550-overlay.dts @@ -20,6 +20,8 @@ reg = <0x74>; interrupt-parent = <&gpio>; interrupts = <4 IRQ_TYPE_LEVEL_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&iqs550_pins>; touchscreen-size-x = <800>; touchscreen-size-y = <480>; }; @@ -34,8 +36,19 @@ }; }; + fragment@2 { + target = <&gpio>; + __overlay__ { + iqs550_pins: iqs550_pins { + brcm,pins = <4>; + brcm,pull = <1>; + }; + }; + }; + __overrides__ { - interrupt = <&iqs550>,"interrupts:0"; + interrupt = <&iqs550>,"interrupts:0", + <&iqs550_pins>,"brcm,pins:0"; reset = <0>,"+1", <&iqs550_reset>,"reset-gpios:4"; sizex = <&iqs550>,"touchscreen-size-x:0"; sizey = <&iqs550>,"touchscreen-size-y:0";