Replies: 1 comment 2 replies
-
|
Two kernel drivers can't share one SPI slave device directly. This situation is solved in the kernel using mfd or aux drivers to control the hw and then there are slave devices on this that have their own drivers. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been working on getting a board which includes a display driven by a ili9488 working, and have had pretty good success with Linux 6.11 and the panel_mipi_dbi driver (thanks for your work on this!). One thing I've not been able to figure out properly is "integrated" backlight control.
The board has the PWM pin of the ili9488 driving its backlight. With the correct initialization commands1, I'm able to set the backlight using the debug command file, eg:
However, it seems that with a proper kernel backlight driver, I'd get features further up the stack, such as having DPMS be able to turn the display off. Is that correct?
Is there an existing driver or way to have X/Wayland control the backlight of this board?
I've seen the ili922x and ili9320 drivers in the backlight directory of the kernel tree, but a quick read suggests they're pretty different devices. It's not super clear to me whether they share the use of an SPI device with their related video driver. If I wanted to tackle writing a backlight driver for this chip (looks like it's not a standard MIPI command, please correct me if I'm wrong), might it look something like those?
Footnotes
Initialization:
↩Beta Was this translation helpful? Give feedback.
All reactions