mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-02-15 04:42:02 +00:00
46 lines
1.4 KiB
Diff
46 lines
1.4 KiB
Diff
From 04fc9de9b8ed528a039f53412166c86bcc7feda7 Mon Sep 17 00:00:00 2001
|
|
From: Jeff LaBundy <jeff@labundy.com>
|
|
Date: Sat, 19 Mar 2022 20:31:30 -0500
|
|
Subject: [PATCH 802/828] 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 <jeff@labundy.com>
|
|
---
|
|
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";
|