Skip to content

Commit 6208552

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 a4a4d7f commit 6208552

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1439,7 +1439,8 @@ Name: goodix
14391439
Info: Enables I2C connected Goodix gt9271 multiple touch controller using
14401440
GPIOs 4 and 17 (pins 7 and 11 on GPIO header) for interrupt and reset.
14411441
Load: dtoverlay=goodix,<param>=<val>
1442-
Params: interrupt GPIO used for interrupt (default 4)
1442+
Params: addr I2C address (default 0x14)
1443+
interrupt GPIO used for interrupt (default 4)
14431444
reset GPIO used for reset (default 17)
14441445
i2c-path Override I2C path to allow for i2c-gpio buses
14451446

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

Lines changed: 1 addition & 0 deletions
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)