bcm27xx: switch to kernel v6.1
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.15 / 950-0784-overlays-iqs550-Enable-interrupt-pull-down.patch
1 From 14ea778d2a5281a0f4c94230abccf30bc72c2bdd Mon Sep 17 00:00:00 2001
2 From: Jeff LaBundy <jeff@labundy.com>
3 Date: Sat, 19 Mar 2022 20:31:30 -0500
4 Subject: [PATCH] overlays: iqs550: Enable interrupt pull-down
5
6 The device's active-high interrupt normally serves as a push-pull
7 output, but becomes high-impedance during bootloader mode. Enable
8 a pull-down to hold the pin in the inactive state.
9
10 Signed-off-by: Jeff LaBundy <jeff@labundy.com>
11 ---
12 arch/arm/boot/dts/overlays/iqs550-overlay.dts | 15 ++++++++++++++-
13 1 file changed, 14 insertions(+), 1 deletion(-)
14
15 --- a/arch/arm/boot/dts/overlays/iqs550-overlay.dts
16 +++ b/arch/arm/boot/dts/overlays/iqs550-overlay.dts
17 @@ -20,6 +20,8 @@
18 reg = <0x74>;
19 interrupt-parent = <&gpio>;
20 interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
21 + pinctrl-names = "default";
22 + pinctrl-0 = <&iqs550_pins>;
23 touchscreen-size-x = <800>;
24 touchscreen-size-y = <480>;
25 };
26 @@ -34,8 +36,19 @@
27 };
28 };
29
30 + fragment@2 {
31 + target = <&gpio>;
32 + __overlay__ {
33 + iqs550_pins: iqs550_pins {
34 + brcm,pins = <4>;
35 + brcm,pull = <1>;
36 + };
37 + };
38 + };
39 +
40 __overrides__ {
41 - interrupt = <&iqs550>,"interrupts:0";
42 + interrupt = <&iqs550>,"interrupts:0",
43 + <&iqs550_pins>,"brcm,pins:0";
44 reset = <0>,"+1", <&iqs550_reset>,"reset-gpios:4";
45 sizex = <&iqs550>,"touchscreen-size-x:0";
46 sizey = <&iqs550>,"touchscreen-size-y:0";