linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Add backlight-pwm-passthru in analogix DP driver
@ 2018-03-16  2:56 Alexandru M Stan
  2018-03-16  2:56 ` [PATCH 1/2] dt-bindings: analogix-dp: Add backlight-pwm-passthru Alexandru M Stan
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Alexandru M Stan @ 2018-03-16  2:56 UTC (permalink / raw)
  To: David Airlie, Rob Herring, Mark Rutland, Archit Taneja,
	Andrzej Hajda, Laurent Pinchart, Sean Paul
  Cc: devicetree, Enric Balletbo i Serra, Heiko Stuebner, briannorris,
	linux-kernel, dri-devel, dianders, linux-rockchip, marcheu,
	hoegsberg, Thierry Escande, Jeffy Chen, Alexandru M Stan,
	Yakir Yang, Daniel Vetter, zain wang, Sylwester Nawrocki,
	Marek Szyprowski

I noticed that the backlight on the ASUS Chromebook Flip C101 (bob) is
flickering.

We're sending it a high frequency pwm signal, but the EDP panel decided to
"parse" the signal, read the duty cycle, then make its own signal that
it sends to the LEDs.

So even though we send a nice high refresh rate at 1200Hz, the panel backlight
flickers at 200Hz (which is not even divisible by the 60Hz refresh rate).

The fix for that is to enable the EDP_BACKLIGHT_FREQ_PWM_PIN_PASSTHRU bit from
the DPCD EDP registers. This makes the panel actually follow the signal
we're giving it.

This series includes the optional dt binding to enable this fix
(backlight-pwm-passthru) and the corresponding code in the analogix
drm/bridge driver.


Alexandru M Stan (2):
  dt-bindings: analogix-dp: Add backlight-pwm-passthru
  drm/bridge: analogix: Enable EDP_BACKLIGHT_FREQ_PWM_PIN_PASSTHRU

 .../bindings/display/bridge/analogix_dp.txt        |  4 ++
 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 48 ++++++++++++++++++++++
 drivers/gpu/drm/bridge/analogix/analogix_dp_core.h |  1 +
 3 files changed, 53 insertions(+)

-- 
2.13.5

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-03-20 14:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-16  2:56 [PATCH 0/2] Add backlight-pwm-passthru in analogix DP driver Alexandru M Stan
2018-03-16  2:56 ` [PATCH 1/2] dt-bindings: analogix-dp: Add backlight-pwm-passthru Alexandru M Stan
2018-03-16  9:26   ` Archit Taneja
2018-03-18 12:52     ` Rob Herring
2018-03-20 14:07       ` Laurent Pinchart
2018-03-16  2:56 ` [PATCH 2/2] drm/bridge: analogix: Enable EDP_BACKLIGHT_FREQ_PWM_PIN_PASSTHRU Alexandru M Stan
2018-03-16  8:36   ` Daniel Vetter
2018-03-16 16:50 ` [PATCH 0/2] Add backlight-pwm-passthru in analogix DP driver Sean Paul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).