From 49679ed862ff4c05a3710882936182aa86354c13 Mon Sep 17 00:00:00 2001 From: Renjaya Raga Zenta Date: Wed, 18 Dec 2024 16:44:32 +0700 Subject: [PATCH] overlays: goodix: Allow override i2c address Some Goodix devices e.g. gt911 use address 0x5d instead of 0x14. So, make the address overridable. Signed-off-by: Renjaya Raga Zenta --- arch/arm/boot/dts/overlays/README | 3 ++- arch/arm/boot/dts/overlays/goodix-overlay.dts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/overlays/README b/arch/arm/boot/dts/overlays/README index a162cad147ffea..dee170f0d8e459 100644 --- a/arch/arm/boot/dts/overlays/README +++ b/arch/arm/boot/dts/overlays/README @@ -1454,7 +1454,8 @@ Name: goodix Info: Enables I2C connected Goodix gt9271 multiple touch controller using GPIOs 4 and 17 (pins 7 and 11 on GPIO header) for interrupt and reset. Load: dtoverlay=goodix,= -Params: interrupt GPIO used for interrupt (default 4) +Params: addr I2C address (default 0x14) + interrupt GPIO used for interrupt (default 4) reset GPIO used for reset (default 17) i2c-path Override I2C path to allow for i2c-gpio buses diff --git a/arch/arm/boot/dts/overlays/goodix-overlay.dts b/arch/arm/boot/dts/overlays/goodix-overlay.dts index 926f35695c7375..8a5035df9daa6a 100644 --- a/arch/arm/boot/dts/overlays/goodix-overlay.dts +++ b/arch/arm/boot/dts/overlays/goodix-overlay.dts @@ -37,6 +37,7 @@ }; __overrides__ { + addr = <>9271>,"reg:0"; interrupt = <&goodix_pins>,"brcm,pins:0", <>9271>,"interrupts:0", <>9271>,"irq-gpios:4";