-
Notifications
You must be signed in to change notification settings - Fork 8.3k
drivers: display: ssd16xx: implement display_set_orientation #73360
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,10 +10,6 @@ properties: | |
| type: uint8-array | ||
| description: Booster soft start values | ||
|
|
||
| orientation-flipped: | ||
| type: boolean | ||
| description: Last column address is mapped to first segment | ||
|
|
||
| reset-gpios: | ||
| type: phandle-array | ||
| required: true | ||
|
|
@@ -49,6 +45,18 @@ properties: | |
| an external temperature sensor is connected to the controller. | ||
| The value selects which sensor should be used. | ||
|
|
||
| rotation: | ||
| type: int | ||
| default: 0 | ||
|
||
| enum: | ||
| - 0 | ||
| - 90 | ||
| - 180 | ||
| - 270 | ||
| description: | ||
| Display rotation (CW) in degrees. | ||
| If not defined, rotation is off by default. | ||
|
|
||
| child-binding: | ||
| description: | | ||
| Child nodes describe refresh profiles. Each refresh profile | ||
|
|
||
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.
Do we still need to write the
scan_modehere, since we do it within theset_orientationfunction? IE will the scan mode setting persist between display frames, or does it need to be set every time?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.
Thanks for reviewing @danieldegrasse!
In the second commit I removed writing the
scan_modeon eachset_windowcall because I didn't find any indication in the datasheet that this should not persist between resets. So I tested it with the two mentioned display controllers and it worked so that seems to prove that thescan_modeindeed persists between display frames.Because there is a software reset in the
set_profilefunction I also added writing thescan_modeover there.I do wonder why it was added to the
set_windowfunction in the first place instead of in thecontroller_initso I completely understand your doubts.If anyone with a ssd16xx laying around could double check this, that would be great.
@andysan, I see you have made some amazing improvements to this driver in the past, would you mind checking this as well?