Skip to content

Commit 2accb17

Browse files
ragazentapelwell
authored andcommitted
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 <[email protected]>
1 parent 86d25fd commit 2accb17

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

arch/arm/boot/dts/overlays/README

+2-1
Original file line numberDiff line numberDiff line change
@@ -1454,7 +1454,8 @@ Name: goodix
14541454
Info: Enables I2C connected Goodix gt9271 multiple touch controller using
14551455
GPIOs 4 and 17 (pins 7 and 11 on GPIO header) for interrupt and reset.
14561456
Load: dtoverlay=goodix,<param>=<val>
1457-
Params: interrupt GPIO used for interrupt (default 4)
1457+
Params: addr I2C address (default 0x14)
1458+
interrupt GPIO used for interrupt (default 4)
14581459
reset GPIO used for reset (default 17)
14591460
i2c-path Override I2C path to allow for i2c-gpio buses
14601461

arch/arm/boot/dts/overlays/goodix-overlay.dts

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
};
3838

3939
__overrides__ {
40+
addr = <&gt9271>,"reg:0";
4041
interrupt = <&goodix_pins>,"brcm,pins:0",
4142
<&gt9271>,"interrupts:0",
4243
<&gt9271>,"irq-gpios:4";

0 commit comments

Comments
 (0)