Add Backlight for Kobo Clara 2e. It has two backlights with deferent color temperature. Label them to give userspace a hint what it is and avoid referencing it by magic numbers. It requires shared gpio support to be enabled for both backlights to show up, so if these patches are independently merged, there will be commits with only one backlight, but I do not consider that as a regression harming bisecting.
Signed-off-by: Andreas Kemnade <[email protected]> --- Changes in v2: - fix number of zeros in binding and code - remove fading setting (maybe add bit later with a proper sysfs control) - remove runtime pm and set regulator/pin directly - use generic suspend from backlight class - add some more error checking - fix gpio error handling in probe - use named intializers - remove unused includes - Link to v1: https://patch.msgid.link/[email protected] --- Andreas Kemnade (4): dt-bindings: leds: backlight: Add Awinic AW99703 backlight video: backlight: Add Awinic AW99703 ARM: dts: imx: Add backlight for Kobo Clara 2e arm: mach-imx: enable shared gpios .../bindings/leds/backlight/awinic,aw99703.yaml | 98 +++++ .../dts/nxp/imx/imx6sll-kobo-clara2e-common.dtsi | 34 +- arch/arm/mach-imx/Kconfig | 1 + drivers/video/backlight/Kconfig | 10 + drivers/video/backlight/Makefile | 1 + drivers/video/backlight/aw99703.c | 462 +++++++++++++++++++++ 6 files changed, 604 insertions(+), 2 deletions(-) --- base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f base-tree: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master change-id: 20261130-bl-aw99703-upstr-163cfacab9cb Best regards, -- Andreas Kemnade <[email protected]>
