drm/bridge: ti-sn65dsi86: Implement the pwm_chip
authorBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 25 Oct 2021 17:09:25 +0000 (10:09 -0700)
committerRobert Foss <robert.foss@linaro.org>
Wed, 27 Oct 2021 15:02:33 +0000 (17:02 +0200)
commitcea86c5bb4425cbbd0a690d1671b8a7db1cee9fc
tree94dc0210818670c94b6d06368cb513915dc36c72
parent3c7a8600dec9858da9e76adb622d161f27652b00
drm/bridge: ti-sn65dsi86: Implement the pwm_chip

The SN65DSI86 provides the ability to supply a PWM signal on GPIO 4,
with the primary purpose of controlling the backlight of the attached
panel. Add an implementation that exposes this using the standard PWM
framework, to allow e.g. pwm-backlight to expose this to the user.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20211025170925.3096444-3-bjorn.andersson@linaro.org
drivers/gpu/drm/bridge/ti-sn65dsi86.c