diff options
author | Chris Morgan <[email protected]> | 2023-12-08 09:48:45 -0600 |
---|---|---|
committer | Neil Armstrong <[email protected]> | 2023-12-11 10:12:59 +0100 |
commit | 799825aa87200ade1ba21db853d1c2ff720dcfe0 (patch) | |
tree | b9141f436e1b9b3637a4c683eebeea7c0d65106d /tools/perf/scripts/python/stat-cpi.py | |
parent | 267624378ed6bebd733b4917452d78780db032dc (diff) |
drm/panel: st7701: Fix AVCL calculation
The AVCL register, according to the datasheet, comes in increments
of -0.2v between -4.4v (represented by 0x0) to -5.0v (represented
by 0x3). The current calculation is done by adding the defined
AVCL value in mV to -4400 and then dividing by 200 to get the register
value. Unfortunately if I subtract -4400 from -4400 I get -8800, which
divided by 200 gives me -44. If I instead subtract -4400 from -4400
I get 0, which divided by 200 gives me 0. Based on the datasheet this
is the expected register value.
Fixes: 83b7a8e7e88e ("drm/panel/panel-sitronix-st7701: Parametrize voltage and timing")
Signed-off-by: Chris Morgan <[email protected]>
Reviewed-by: Neil Armstrong <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Neil Armstrong <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions