forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 20
Update k6-38-0e-0b-dsc panel and fix touchscreen for sweet_k6a aka Redmi Note 12 Pro 4G #28
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
Closed
Closed
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,7 +105,7 @@ | |
reg = <0x5d>; | ||
interrupt-parent = <&tlmm>; | ||
interrupts = <9 IRQ_TYPE_NONE>; | ||
pinctrl-0 = <&ts_int_active &ts_reset_active>; | ||
pinctrl-0 = <&ts_int_active>; | ||
pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; | ||
pinctrl-names = "default", "sleep"; | ||
vtouch-supply = <&vreg_l7c_3p0>; | ||
|
@@ -115,9 +115,10 @@ | |
goodix,reset-gpio = <&tlmm 8 GPIO_ACTIVE_HIGH>; | ||
goodix,irq-gpio = <&tlmm 9 IRQ_TYPE_NONE>; | ||
goodix,irq-flags = <2>; /* trigger falling;*/ | ||
goodix,panel-max-x = <1079>; | ||
goodix,panel-max-y = <2399>; | ||
goodix,panel-max-x = <8639>; | ||
goodix,panel-max-y = <19199>; | ||
goodix,panel-max-w = <256>; | ||
goodix,panel-max-p = <256>; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. afaik the driver doesnt wait for goodix,panel-max-p values There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
goodix,power-on-delay-us = <100>; /* 0.1ms */ | ||
goodix,power-off-delay-us = <5000>; /* 50ms */ | ||
}; | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This reset is required. Give me at least one reason why this should be dropped
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
U remember the irq head checksum error in dmesg, this reset cause it
And downstream dtb doesn't have reset
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I don't remember. Downstream uses this anyway. Downstream has in one pinctrl node both pins at once. This is fundamentally wrong, so it is corrected here. In fact, the irg pin should have an input only configuration, and the reset pin should have an output configuration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As you can see gpio8 and gpio9. In mainline these are irq and reset which have been splitted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually don't believe such a high current is needed, perhaps we could test all devices at 8mA instead of 16mA. I'm almost 99% sure that this will work, tests are just always needed. @Gelbpunkt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Xiaomi didnt want to bother. But this causes high load on gpio
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah 16 is a lot. I'll try 8 when I have some time, it will probably work fine