Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Goodix GT917D touchscreen support for Xiaomi Daisy #128

Merged
merged 3 commits into from
Dec 30, 2023

Conversation

ntonnaett
Copy link

@ntonnaett ntonnaett commented Aug 19, 2023

Depends on msm8953-mainline/lk2nd#57 for enabling the correct touchscreen according to the display.

Fixes #33

@barni2000
Copy link
Member

barni2000 commented Aug 19, 2023

@ntonnaett I think you don't need to overwrite the ft5406_ts node you can enable both because they are using different i2c id 0x5d and 0x30. There are devices with two touchscreen node enabled check msm8953-xiaomi-vince.dts

@ntonnaett ntonnaett force-pushed the goodix_gt917d branch 2 times, most recently from fc5da81 to 83e1d54 Compare August 20, 2023 05:54
@ntonnaett
Copy link
Author

@ntonnaett I think you don't need to overwrite the ft5406_ts node you can enable both because they are using different i2c id 0x5d and 0x30. There are devices with two touchscreen node enabled check msm8953-xiaomi-vince.dts

Added it as a separate node, but I only saw one _ts for vince. Should I do this differently?

The error might be a connection problem with i2c.

@barni2000
Copy link
Member

barni2000 commented Aug 20, 2023

@ntonnaett I think you don't need to overwrite the ft5406_ts node you can enable both because they are using different i2c id 0x5d and 0x30. There are devices with two touchscreen node enabled check msm8953-xiaomi-vince.dts

Added it as a separate node, but I only saw one _ts for vince. Should I do this differently?

My fault, but there are i2c nodes at the sensors for same stuff accelerometer bmi120 and lsm6dsl, and it is handling multiple variants of the device, so two node should be fine. They has different i2c address.

The error might be a connection problem with i2c.

Idk

@ntonnaett
Copy link
Author

ntonnaett commented Aug 20, 2023

It seems I can't do this, because both use gpio pin-64...

[    7.790776] msm8953-pinctrl 1000000.pinctrl: pin GPIO_64 already requested by 2-0038; cannot claim for 2-005d
[    7.790786] msm8953-pinctrl 1000000.pinctrl: pin-64 (2-005d) status -22
[    7.790791] msm8953-pinctrl 1000000.pinctrl: could not request pin 64 (GPIO_64) from group gpio64  on device 1000000.pinctrl
[    7.790795] Goodix-TS 2-005d: Error applying setting, reverse things back

@alikates
Copy link
Member

IIRC you can set a gpio flag to allow it to be shared between multiple nodes

@alikates
Copy link
Member

alikates commented Aug 20, 2023

Indeed https://elixir.bootlin.com/linux/latest/source/include/linux/interrupt.h#L71

I think IRQF_PROBE_SHARED is more appropriate though.

@ntonnaett ntonnaett force-pushed the goodix_gt917d branch 2 times, most recently from eb63d76 to dcb2bc5 Compare October 21, 2023 22:01
@ntonnaett ntonnaett marked this pull request as ready for review October 21, 2023 22:02
@ntonnaett
Copy link
Author

Be aware that this depends on the lk2nd patch. We should merge this PR afterwards.

@barni2000
Copy link
Member

@ntonnaett Are you going to send the driver change to upstream?

@ntonnaett
Copy link
Author

Eventually I wanted to send this to upstream. But as this depends on the lk2nd patch, I thought I should wait until that one is merged.

@barni2000
Copy link
Member

Eventually I wanted to send this to upstream. But as this depends on the lk2nd patch, I thought I should wait until that one is merged.

I mean changes in goodix.c not chnages in the dts.

@faveoled
Copy link

But as this depends on the lk2nd patch, I thought I should wait until that one is merged.

It seems to be merged now? Any updates?

@ntonnaett ntonnaett changed the base branch from 6.4.7/main to 6.6.0/main December 23, 2023 20:42
@M0Rf30 M0Rf30 merged commit 7d22f71 into msm8953-mainline:6.6.0/main Dec 30, 2023
@umeiko
Copy link

umeiko commented Jan 2, 2024

Xiaomi mido also have the gt917d touchscreen , maybe should be fixed together !

@barni2000
Copy link
Member

Xiaomi mido also have the gt917d touchscreen , maybe should be fixed together !

are you sure?

@umeiko
Copy link

umeiko commented Jan 2, 2024

P8RQ9{35(RNX( X18LZ(J81
Yep, mine mido's touchpanel can't word on kernel 6.5.3, then I took my phone apart and saw this.

@barni2000
Copy link
Member

Which panel do you have?

@umeiko
Copy link

umeiko commented Jan 2, 2024

WSCQX@BEIH5R`DF9P@U0T81
This is my mido.

@barni2000
Copy link
Member

I can add support for it but first we need to find out is it related to panel or there is and ebbg panel which comes with focaltech, eg.: markw could use different touch for same display panel.

@umeiko
Copy link

umeiko commented Jan 2, 2024

My machine is original and has not been disassembled, but there is someone in our community who has the same model of screen, and his touch is available. It looks like there is a mix between the touch-IC and the screen panel.

@barni2000
Copy link
Member

My machine is original and has not been disassembled, but there is someone in our community who has the same model of screen, and his touch is available. It looks like there is a mix between the touch-IC and the screen panel.

than the only solution at the moment split the device tree or implement i2c probing in lk2nd, or i can add the touch screen node as disabled in dts and you need to enable manually.

@umeiko
Copy link

umeiko commented Jan 2, 2024

okey, I'll try it. is that means *mido*.dtb for gt917d and others will be different? Like a special *mido_gt917d*.dtb ?

@barni2000
Copy link
Member

okey, I'll try it. is that means *mido*.dtb for gt917d and others will be different? Like a special *mido_gt917d*.dtb ?

spliting dt means like this, yes.

@umeiko
Copy link

umeiko commented Jan 2, 2024

Add gt917d node there as enabled and change the ft5406 to disabled?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Xiaomi MI A2 Lite Daisy - touchpad does not work
7 participants