mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 10:08:59 +00:00
20ea6adbf1
Build system: x86_64 Build-tested: bcm2708, bcm2709, bcm2710, bcm2711 Run-tested: bcm2708/RPiB+, bcm2709/RPi3B, bcm2710/RPi3B, bcm2711/RPi4B Signed-off-by: Marty Jones <mj8263788@gmail.com> Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
47 lines
1.3 KiB
Diff
47 lines
1.3 KiB
Diff
From 14ea778d2a5281a0f4c94230abccf30bc72c2bdd Mon Sep 17 00:00:00 2001
|
|
From: Jeff LaBundy <jeff@labundy.com>
|
|
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 <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";
|