[PATCH v6 00/14] phy: rockchip: samsung-hdptx: Support high color depth management

Cristian Ciocaltea posted 14 patches 9 months ago
drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c | 292 +++++++++++++---------
include/linux/phy/phy-hdmi.h                      |  21 ++
include/linux/phy/phy.h                           |   7 +-
3 files changed, 202 insertions(+), 118 deletions(-)
[PATCH v6 00/14] phy: rockchip: samsung-hdptx: Support high color depth management
Posted by Cristian Ciocaltea 9 months ago
This series relies on the new HDMI PHY configuration options [1] (patch
included here for convenience) to provide high color depth management
for rockchip-samsung-hdptx, and to introduce a proper solution to setup
the TMDS character rate on this PHY.

[1] https://lore.kernel.org/lkml/d1cff6c03ec3732d2244022029245ab2d954d997.1734340233.git.Sandor.yu@nxp.com/

Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
---
Changes in v6:
- Collected R-b tags from Dmitry
- Updated commit description for "phy: rockchip: samsung-hdptx: Fix
  clock ratio setup"
- Added new patch "phy: rockchip: samsung-hdptx: Do no set
  rk_hdptx_phy->rate in case of errors"
- Replaced some "unsigned long" and "u32" types with "unsigned long
  long" in "phy: rockchip: samsung-hdptx: Avoid Hz<->hHz unit conversion
  overhead" to match the tmds_char_rate type (Dmitry)
- Added new patch "phy: rockchip: samsung-hdptx: Rename ambiguous
  rk_hdptx_phy->rate", originally part of "phy: rockchip: samsung-hdptx:
  Optimize internal rate handling" (Dmitry)
- Rebased series onto next-20250317
- Link to v5: https://lore.kernel.org/r/20250308-phy-sam-hdptx-bpc-v5-0-35087287f9d1@collabora.com

Changes in v5:
- Moved the patch eliminating the unnecessary and rather confusing
  Hz<->hHz unit conversion before all the others adding new content
- Moved the patch adding high color depth management to the last
  position, so that it follows the internal rate handling optimization
- Amended description for a few patches to improve clarity
- Performed some trivial refactoring in some cases while dealing with
  rebase conflicts
- Link to v4: https://lore.kernel.org/r/20250304-phy-sam-hdptx-bpc-v4-0-8657847c13f7@collabora.com

Changes in v4:
- Added patches to drop unnecessary phy_cfg & cfgs driver data
- Embedded struct phy_configure_opts_hdmi in driver data (Dmitry)
- Added new patch to provide config params validation support
- Provided a patch to restrict altering TMDS char rate via CCF (Dmitry)
- Made a bunch of small tweaks here and there
- Link to v3: https://lore.kernel.org/r/20250223-phy-sam-hdptx-bpc-v3-0-66a5c8e68327@collabora.com

Changes in v3:
- Rebased series onto next-20250221 and fixed several conflicts due to
  the recently introduced eDP support
- Link to v2: https://lore.kernel.org/r/20241212-phy-sam-hdptx-bpc-v2-0-57e672c7c7c4@collabora.com

Changes in v2:
- Added new patches providing a bug fix and several driver cleanups and
  improvements
- Link to v1: https://lore.kernel.org/r/20241207-phy-sam-hdptx-bpc-v1-0-03c2e4d6d797@collabora.com

---
Cristian Ciocaltea (13):
      phy: hdmi: Add color depth configuration
      phy: rockchip: samsung-hdptx: Fix clock ratio setup
      phy: rockchip: samsung-hdptx: Do no set rk_hdptx_phy->rate in case of errors
      phy: rockchip: samsung-hdptx: Drop unused struct lcpll_config
      phy: rockchip: samsung-hdptx: Drop unused phy_cfg driver data
      phy: rockchip: samsung-hdptx: Drop superfluous cfgs driver data
      phy: rockchip: samsung-hdptx: Avoid Hz<->hHz unit conversion overhead
      phy: rockchip: samsung-hdptx: Setup TMDS char rate via phy_configure_opts_hdmi
      phy: rockchip: samsung-hdptx: Provide config params validation support
      phy: rockchip: samsung-hdptx: Restrict altering TMDS char rate via CCF
      phy: rockchip: samsung-hdptx: Rename ambiguous rk_hdptx_phy->rate
      phy: rockchip: samsung-hdptx: Optimize internal rate handling
      phy: rockchip: samsung-hdptx: Add high color depth management

Sandor Yu (1):
      phy: Add HDMI configuration options

 drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c | 292 +++++++++++++---------
 include/linux/phy/phy-hdmi.h                      |  21 ++
 include/linux/phy/phy.h                           |   7 +-
 3 files changed, 202 insertions(+), 118 deletions(-)
---
base-commit: e94bd4ec45ac156616da285a0bf03056cd7430fc
change-id: 20241206-phy-sam-hdptx-bpc-3b05c6276fd7
Re: [PATCH v6 00/14] phy: rockchip: samsung-hdptx: Support high color depth management
Posted by Vinod Koul 8 months ago
On Tue, 18 Mar 2025 14:35:34 +0200, Cristian Ciocaltea wrote:
> This series relies on the new HDMI PHY configuration options [1] (patch
> included here for convenience) to provide high color depth management
> for rockchip-samsung-hdptx, and to introduce a proper solution to setup
> the TMDS character rate on this PHY.
> 
> [1] https://lore.kernel.org/lkml/d1cff6c03ec3732d2244022029245ab2d954d997.1734340233.git.Sandor.yu@nxp.com/
> 
> [...]

Applied, thanks!

[01/14] phy: Add HDMI configuration options
        commit: 10ed34d6eaaf86e301a8f2dd190d26dfbc9799bd
[02/14] phy: hdmi: Add color depth configuration
        commit: 3bb9286f4ece6acbc1fbaa9f192a82645d30efbf
[03/14] phy: rockchip: samsung-hdptx: Fix clock ratio setup
        commit: 0422253ac1919fea8292381c85f11a9decff1bb1
[04/14] phy: rockchip: samsung-hdptx: Do no set rk_hdptx_phy->rate in case of errors
        commit: 1f4d382769e3b38dfc498c806811dae856e40f31
[05/14] phy: rockchip: samsung-hdptx: Drop unused struct lcpll_config
        commit: 6218c3fd6702a5bc4ab323fed25714cde127684c
[06/14] phy: rockchip: samsung-hdptx: Drop unused phy_cfg driver data
        commit: bcd61d182618c6a77d0841fcdc3333e125725360
[07/14] phy: rockchip: samsung-hdptx: Drop superfluous cfgs driver data
        commit: bacf2fe750dab6bc7ed50556aaadd3ab107fc643
[08/14] phy: rockchip: samsung-hdptx: Avoid Hz<->hHz unit conversion overhead
        commit: 0edf9d2bb9b4ba7566dfdc7605883e04575129d9
[09/14] phy: rockchip: samsung-hdptx: Setup TMDS char rate via phy_configure_opts_hdmi
        commit: c871a311edf0ebb1b934946a84a6c532cac0c035
[10/14] phy: rockchip: samsung-hdptx: Provide config params validation support
        commit: 2392050a2cb94ff3397949e109e4b9f0285ee085
[11/14] phy: rockchip: samsung-hdptx: Restrict altering TMDS char rate via CCF
        commit: 6efbd0f46dd8ae1d2b91b41d98c2800c60ab1f5e
[12/14] phy: rockchip: samsung-hdptx: Rename ambiguous rk_hdptx_phy->rate
        commit: 37f335dbfd028c008d0a7940ca5a270d1e2f6b81
[13/14] phy: rockchip: samsung-hdptx: Optimize internal rate handling
        commit: 45b14bdcf4acfd483d9890396197c35c23821124
[14/14] phy: rockchip: samsung-hdptx: Add high color depth management
        commit: 9d0ec51d7c227c3ae837e22832eaed219e25f126

Best regards,
-- 
~Vinod