Skip to content

Commit

Permalink
overlays: goodix: Allow override i2c address
Browse files Browse the repository at this point in the history
Some Goodix devices e.g. gt911 use address 0x5d instead of 0x14.
So, make the address overridable.

Signed-off-by: Renjaya Raga Zenta <[email protected]>
  • Loading branch information
ragazenta authored and pelwell committed Dec 19, 2024
1 parent 86d25fd commit 2accb17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/arm/boot/dts/overlays/README
Original file line number Diff line number Diff line change
Expand Up @@ -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,<param>=<val>
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

Expand Down
1 change: 1 addition & 0 deletions arch/arm/boot/dts/overlays/goodix-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
};

__overrides__ {
addr = <&gt9271>,"reg:0";
interrupt = <&goodix_pins>,"brcm,pins:0",
<&gt9271>,"interrupts:0",
<&gt9271>,"irq-gpios:4";
Expand Down

0 comments on commit 2accb17

Please sign in to comment.