Skip to content

RFC Add DRM Exynos HDMI on SoCs from Exynos4 family

Tomasz Stanislawski dri-devel linux-devicetree linux-samsung-soc lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest12 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12clk: propagate parent change up one leveldrivers/clk/clk.c include/linux/clk-provider.h+7 -00 replies
2/12clk: exynos4: export sclk_hdmiphy clockDocumentation/devicetree/bindings/clock/exynos4-clock.txt drivers/clk/samsung/clk-exynos4.c+3 -20 replies
3/12clk: exynos4: enable clk_set_parent() propagation for sclk_hdmi and sclk_mixer clocksdrivers/clk/samsung/clk-exynos4.c+4 -20 replies
4/12phy: Add simple-phy driverdrivers/phy/Kconfig drivers/phy/Makefile drivers/phy/phy-simple.c+134 -03 replies
5/12phy: use of_phy_simple_xlate for NULL xlate functiondrivers/phy/phy-core.c+1 -11 reply
6/12Revert "drm/exynos: add mout_hdmi clock in hdmi driver to change parent"drivers/gpu/drm/exynos/exynos_hdmi.c+4 -100 replies
7/12drm: exynos: hdmi: use hdmiphy as PHYdrivers/gpu/drm/exynos/exynos_hdmi.c+6 -50 replies
8/12drm: exynos: hdmi: simplify extracting hpd-gpio from DTdrivers/gpu/drm/exynos/exynos_hdmi.c+4 -90 replies
9/12drm: exynos: add compatibles for HDMI and Mixer chips and exynos4210 SoCdrivers/gpu/drm/exynos/exynos_hdmi.c drivers/gpu/drm/exynos/exynos_mixer.c+6 -00 replies
10/12arm: dts: exynos4: add i2c controller for HDMIPHYarch/arm/boot/dts/exynos4.dtsi+16 -00 replies
11/12arm: dts: exynos4: add HDMI devicesarch/arm/boot/dts/exynos4.dtsi arch/arm/boot/dts/exynos4210.dtsi+31 -00 replies
12/12arm: dts: universal_c210: add HDMI devicesarch/arm/boot/dts/exynos4210-universal_c210.dts+53 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 00/12] Add DRM Exynos HDMI on SoCs from Exynos4 family

This patchset adds support for HDMI at SoCs from Exynos4 family. The patches are rebased on kishon/next. Additionally, The patchset contains small fixes to PHY and CLK frameworks. I preferred to keep all the patches together for the first version of the RFC.

The interesting part might be 'propagation of clk_set_parent()'. This feature allows to remove the usage of artificial clocks in drivers. Such a situation happens for Exynos HDMI and 'mout_hdmi' where the clock is not even mentioned in some versions of SoC's documentation. Since enabling and setting rate can be propagated I think that clk_set_parent() should also be propagated. This would simplify driver's code and make it less dependant on SoC's version.

Another interesting feature refers to simple PHY driver. This driver register a PHY interface that operates by setting a special bit in platform register. This situation is very common in Exynos SoCs. The current version supports only one phy per node. The code might be modified to support multiple phys from single simple-phy provider to avoid creation of multiple nodes in DT.

All comments are welcome.

Regards,
Tomasz Stanislawski

Tomasz Stanislawski (12):
clk: propagate parent change up one level
clk: exynos4: export sclk_hdmiphy clock
clk: exynos4: enable clk_set_parent() propagation for sclk_hdmi and
sclk_mixer clocks
phy: Add simple-phy driver
phy: use of_phy_simple_xlate for NULL xlate function Revert "drm/exynos: add mout_hdmi clock in hdmi driver to change
parent"
drm: exynos: hdmi: use hdmiphy as PHY
drm: exynos: hdmi: simplify extracting hpd-gpio from DT
drm: exynos: add compatibles for HDMI and Mixer chips and exynos4210
SoC
arm: dts: exynos4: add i2c controller for HDMIPHY
arm: dts: exynos4: add HDMI devices
arm: dts: universal_c210: add HDMI devices

 .../devicetree/bindings/clock/exynos4-clock.txt    |    1 +
 arch/arm/boot/dts/exynos4.dtsi                     |   43 +++++++
 arch/arm/boot/dts/exynos4210-universal_c210.dts    |   53 ++++++++
 arch/arm/boot/dts/exynos4210.dtsi                  |    4 +
 drivers/clk/clk.c                                  |    6 +
 drivers/clk/samsung/clk-exynos4.c                  |   10 +-
 drivers/gpu/drm/exynos/exynos_hdmi.c               |   41 +++----
 drivers/gpu/drm/exynos/exynos_mixer.c              |    3 +
 drivers/phy/Kconfig                                |    5 +
 drivers/phy/Makefile                               |    1 +
 drivers/phy/phy-core.c                             |    2 +-
 drivers/phy/phy-simple.c                           |  128 ++++++++++++++++++++
 include/linux/clk-provider.h                       |    1 +
 13 files changed, 269 insertions(+), 29 deletions(-)
 create mode 100644 drivers/phy/phy-simple.c
Signature · 1 line
1.7.9.5