-
Notifications
You must be signed in to change notification settings - Fork 8.2k
drivers: display: ili9xxx: Add support for ili9342c display controller #51988
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
drivers: display: ili9xxx: Add support for ili9342c display controller #51988
Conversation
8de80c4 to
1ae644d
Compare
1ae644d to
5a5aaaf
Compare
5a5aaaf to
32a2d2d
Compare
|
I was about to submit a nearly identical pull request. I'll try to review yours and provide comments. |
diegoherranz
left a comment
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've had a look and provided some comments. Let me know if you have any questions.
Thanks!
32a2d2d to
165faab
Compare
165faab to
ef4814b
Compare
|
@diegoherranz Thank you for the review comments 👍, I have fixed all of them, and also retested orientation modes. |
Thanks for making these changes. I haven't forgotten about this one, simply I haven't had time to re-review it lately. I will as soon as possible. |
bbbe291 to
14407ac
Compare
|
@galak @jfischer-no since there is always a time difference between me and you, could you please Approve and merge? |
14407ac to
70f1699
Compare
|
@carlescufi @jfischer-no @MaureenHelm what is the way forward ? |
|
Just one comment. I tested this again today after the rebase and there are fewer warnings than last time I tested it, but it's still complaining about the unused quirks (those for the display controller models not in use). In my case, I'm using ili9342c, so it complains about the others: The code in Should we do something like? Or even create one single structure and assign the Really keen on seeing this merged :) Thanks! |
MaureenHelm
left a comment
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.
Just one comment. I tested this again today after the rebase and there are fewer warnings than last time I tested it, but it's still complaining about the unused quirks (those for the display controller models not in use)
Build warnings need to be addressed. Is there anything in-tree (i.e., sample or test) that builds this driver?
drivers/display/display_ili9342c.h
Outdated
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.
you can simplify with DT_INST_PROP
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.
ili9xxx drivers doesn't include DT_DRV_COMPAT value. so I chose to follow the other variants.
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.
Defaults need justification in the description
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.
Defaults are the manufacturer defaults as mentioned in datasheet.
70f1699 to
a1509f2
Compare
This driver implement basic functions of ili9342c controller which comes mostly with IPS displays. Signed-off-by: Mohamed ElShahawi <[email protected]>
a1509f2 to
b6a253d
Compare
|
@diegoherranz @MaureenHelm asking for including this driver in (sample/test) or maybe a board like other ili9xxx drivers. |
Cool. It builds without warning to me now (and it works), using a ili9342c screen.
I do but it is a proprietary/personal board. I don't mind sharing its board folder (DTS, defconfig, etc.), but not sure if that's OK to include in zephyr, not being a publicly available board. Just let me know. Thanks! |
|
Another alternative would be to add display to |
585e77d to
f52ee8f
Compare
Add a blank test to cover building drivers that are in drivers/display/ Signed-off-by: Mohamed ElShahawi <[email protected]>
f52ee8f to
c9a5999
Compare
Driver for ili9342c display controller
Tested on m5stack Core Basic using
sample/subsys/display/lvgl