]> git.baikalelectronics.ru Git - kernel.git/commit
drm/bridge: tfp410: fix de-skew value retrieval from DT
authorRicardo Cañuelo <ricardo.canuelo@collabora.com>
Wed, 17 Jun 2020 09:46:32 +0000 (11:46 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Sat, 20 Jun 2020 18:43:33 +0000 (20:43 +0200)
commitc4c0598569d4f138325096da2f8ca1b6b5dfc927
tree0ed872de187de464685d7286d11cbc2f1826280d
parente0773f48667a239ef5a4e7ce56d0ca2c1523d4d9
drm/bridge: tfp410: fix de-skew value retrieval from DT

The tfp410 has a data de-skew feature that allows the user to compensate
the skew between IDCK and the pixel data and control signals.

In the driver, the setup and hold times are calculated from the de-skew
value. This retrieves the deskew value from the DT using the proper
datatype and range check as described by the binding (u32 from 0 to 7).

This fix results from a change in the ti,tfp410 DT binding.

Signed-off-by: Ricardo Cañuelo <ricardo.canuelo@collabora.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200617094633.19663-4-ricardo.canuelo@collabora.com
drivers/gpu/drm/bridge/ti-tfp410.c