Firefly Open Source Community

   Login   |   Register   |
New_Topic

[Android] GT9271 Interface with AIO3399J

79

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
79
Posted at 8/30/2022 14:22:39     
Hi,
I am using AIO-3399J EVK and want to connect Goodix GT9271sensors to I2C4. I did the below changes in DTS files and build the code but when I checked dmesg
log no entry for gt9721 or goodix is found.
gt9271_ts2: gt9271@5d {
            compatible = "goodix,gt9271";
            reg = <0x5D>;
            interrupt-parent = <&gpio4>;
            interrupts = <27 0>;
            irq-gpios = <&gpio4 27 0>;
            reset-gpios = <&gpio0 12 0>;
            touchscreen-size-x = <1280>;
            touchscreen-size-y = <800>;
    };





Any Suggestions on what extra I need to do to make it work?

NOTE : = >
I am trying to use i2cdetect command to debug I2C issue but it gives an error saying -
i2c detect not found.

I also tried to use sudo also but sudo also not working.
I tried to use su but su also not working.

EVK - AIO-3399J
BSP - Andriod 7.1 from firefly
Command - rk3399_firefly_aio_lvds_box_userdebug

Any suggestion on how I can enable i2c detect in BSP ?


And What changes do I need to make GT9271 work.








Reply

Use props Report

217

Credits

0

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
217
Posted at 8/31/2022 09:23:43     
I guess you probably forgot to turn on the relevant config.
Reply

Use props Report

79

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
79
Posted at 9/1/2022 14:41:46     
895816513 Posted at 8/31/2022 09:23
I guess you probably forgot to turn on the relevant config.

Hi,
Thanks for your response.can you suggest what config I need to do?

I did changes for GT9271 on I2C4 and using i2C detect able to see its device address.
But when I checked -
dmesg | grep i2c
dmesg | grep gt9271
dmesg | grep goodix

But no log is available for my GT9271 or goodix driver and it is not loading.
Any suggestion on what steps I need to do ?

Thanks
Reply

Use props Report

217

Credits

0

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
217
Posted at 10/11/2022 11:55:58     
You can check whether the driver is really compiled and whether there is a corresponding. o file.
Reply

Use props Report

217

Credits

0

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
217
Posted at 10/11/2022 11:57:23     
You can use the i2c tools tool to view the device address, but I see your information that the driver is not compiled or does not match the device tree.
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list