]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/bridge: ti-sn65dsi83: Add ti,lvds-vod-swing optional properties
authorAndrej Picej <andrej.picej@norik.com>
Mon, 16 Dec 2024 08:54:09 +0000 (09:54 +0100)
committerNeil Armstrong <neil.armstrong@linaro.org>
Thu, 19 Dec 2024 10:09:14 +0000 (11:09 +0100)
commitd2b8c6d5495706eee2347483ea89b5c13f256ff2
tree5c5332d6512a1b109b52341c5297b3a6f7e7194e
parent63f4e7dfef8c1162e22cd25c9a23b125ba40dfc4
drm/bridge: ti-sn65dsi83: Add ti,lvds-vod-swing optional properties

Add a optional properties to change LVDS output voltage. This should not
be static as this depends mainly on the connected display voltage
requirement. We have three properties:
- "ti,lvds-termination-ohms", which sets near end termination,
- "ti,lvds-vod-swing-data-microvolt" and
- "ti,lvds-vod-swing-clock-microvolt" which both set LVDS differential
output voltage for data and clock lanes. They are defined as an array
with min and max values. The appropriate bitfield will be set if
selected constraints can be met.

If "ti,lvds-termination-ohms" is not defined the default of 200 Ohm near
end termination will be used. Selecting only one:
"ti,lvds-vod-swing-data-microvolt" or
"ti,lvds-vod-swing-clock-microvolt" can be done, but the output voltage
constraint for only data/clock lanes will be met. Setting both is
recommended.

Signed-off-by: Andrej Picej <andrej.picej@norik.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20241216085410.1968634-3-andrej.picej@norik.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20241216085410.1968634-3-andrej.picej@norik.com
drivers/gpu/drm/bridge/ti-sn65dsi83.c