Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

phy: hdmi: Add color depth configuration

Extend the HDMI configuration options to allow managing bits per color
channel. This is required by some PHY drivers such as
rockchip-samsung-hdptx.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Link: https://lore.kernel.org/r/20250318-phy-sam-hdptx-bpc-v6-2-8cb1678e7663@collabora.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Cristian Ciocaltea and committed by
Vinod Koul
3bb9286f 10ed34d6

+2
+2
include/linux/phy/phy-hdmi.h
··· 9 9 /** 10 10 * struct phy_configure_opts_hdmi - HDMI configuration set 11 11 * @tmds_char_rate: HDMI TMDS Character Rate in Hertz. 12 + * @bpc: Bits per color channel. 12 13 * 13 14 * This structure is used to represent the configuration state of a HDMI phy. 14 15 */ 15 16 struct phy_configure_opts_hdmi { 16 17 unsigned long long tmds_char_rate; 18 + unsigned int bpc; 17 19 }; 18 20 19 21 #endif /* __PHY_HDMI_H_ */