|
|
Log in / Subscribe / Register

phy: Add support for the HDMI TX PHY on Meson8/8b/8m2

From:  Martin Blumenstingl <martin.blumenstingl-AT-googlemail.com>
To:  robh+dt-AT-kernel.org, linux-phy-AT-lists.infradead.org, devicetree-AT-vger.kernel.org, linux-amlogic-AT-lists.infradead.org
Subject:  [PATCH v2 0/2] phy: Add support for the HDMI TX PHY on Meson8/8b/8m2
Date:  Tue, 29 Jun 2021 20:20:45 +0200
Message-ID:  <20210629182047.893415-1-martin.blumenstingl@googlemail.com>
Cc:  kishon-AT-ti.com, vkoul-AT-kernel.org, linux-arm-kernel-AT-lists.infradead.org, linux-kernel-AT-vger.kernel.org, Martin Blumenstingl <martin.blumenstingl-AT-googlemail.com>
Archive-link:  Article

Amlogic Meson8/8b/8m2 SoCs embed a HDMI TX PHY. Unfortunately there is
no (public) documentation for this hardware. The best thing we have is
the 3.10 vendor kernel, which unfortunately doesn't document most
register bits (only a few are named there, the rest is all magic
numbers).
It is possible that this is a TranSwitch HDMI TX PHY based core, but
this is pure speculation.

Adding a driver for the HDMI TX PHY gets us one step closer to video
output on these older SoCs.


Changes since v1 at [0]:
- add a reg property to the dt-bindings
- parse the reg property (register offset) in the driver
- update copyright year to 2021 (spotted by Vinod, thanks!)
- drop "default ARCH_MESON" from the Kconfig entry


[0] https://patchwork.kernel.org/project/linux-amlogic/cover/...


Martin Blumenstingl (2):
  dt-bindings: phy: Add the Amlogic Meson8 HDMI TX PHY bindings
  phy: amlogic: Add a new driver for the HDMI TX PHY on Meson8/8b/8m2

 .../phy/amlogic,meson8-hdmi-tx-phy.yaml       |  55 ++++++
 drivers/phy/amlogic/Kconfig                   |  10 ++
 drivers/phy/amlogic/Makefile                  |   1 +
 drivers/phy/amlogic/phy-meson8-hdmi-tx.c      | 162 ++++++++++++++++++
 4 files changed, 228 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/phy/amlogic,meson8-hdmi-tx-phy.yaml
 create mode 100644 drivers/phy/amlogic/phy-meson8-hdmi-tx.c

-- 
2.32.0



Copyright © 2021, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds