This series adds a mipi-dsi PHY driver MR8183 compatible SoC such as the
Genio-350 EVK.  The driver is ported from the kernel driver.

Patches 1 and 2 are preparatory patches: drivers/phy/ already carries 4
MediaTek PHY drivers and this series adds another one, so collect them
under drivers/phy/mediatek/ like the other vendors do. Kconfig symbol
names are unchanged, so no defconfig is affected. Also sort entries in
Makefiles and Kconfig.

Patch 3 adds the MIPI DSI PHY driver itself, supporting MT8183-compatible
SoCs, based on kernel commit 2ec9c210c1f9 ("phy: mediatek: Add support
for MT8196 MIPI DSI PHY").

Two deliberate deviations from the kernel driver:

- The kernel registers the MIPI TX PLL as a clock provider and hands it
  to the DSI host as its "hs" clock. U-Boot has no consumer for that
  clock, so the PLL clk_ops are folded into the PHY ops:
  determine_rate + set_rate become .configure(), and prepare_enable
  becomes .power_on().

- The kernel reads per-lane impedance trim codes from the
  "calibration-data" nvmem cell. MT8365 doe snot have that cell in DT yet,
  so rt_code[] stays zeroed and the SoC layer falls back to the same
  0x210 mid-scale default the kernel uses when the cell is absent. This
  can be wired up later.

Tested on Genio 350 (MT8365). The DSI host side that consumes this PHY
is sent separately to ease review

Signed-off-by: Julien Stephan <[email protected]>
---
Julien Stephan (3):
      phy: sort vendor subdirectory lists alphabetically
      phy: mediatek: move MediaTek PHY drivers to their own subdirectory
      phy: phy-mtk-mipi-dsi: add new driver

 drivers/phy/Kconfig                              |  50 +------
 drivers/phy/Makefile                             |  15 +-
 drivers/phy/mediatek/Kconfig                     |  57 ++++++++
 drivers/phy/mediatek/Makefile                    |   7 +
 drivers/phy/{ => mediatek}/phy-mtk-hdmi-mt8195.c |   0
 drivers/phy/{ => mediatek}/phy-mtk-hdmi-mt8195.h |   0
 drivers/phy/{ => mediatek}/phy-mtk-hdmi.c        |   0
 drivers/phy/{ => mediatek}/phy-mtk-hdmi.h        |   0
 drivers/phy/{ => mediatek}/phy-mtk-io.h          |   0
 drivers/phy/mediatek/phy-mtk-mipi-dsi-mt8183.c   | 175 +++++++++++++++++++++++
 drivers/phy/mediatek/phy-mtk-mipi-dsi.c          | 144 +++++++++++++++++++
 drivers/phy/mediatek/phy-mtk-mipi-dsi.h          |  45 ++++++
 drivers/phy/{ => mediatek}/phy-mtk-tphy.c        |   0
 drivers/phy/{ => mediatek}/phy-mtk-ufs.c         |   0
 drivers/phy/{ => mediatek}/phy-mtk-xsphy.c       |   0
 15 files changed, 437 insertions(+), 56 deletions(-)
---
base-commit: 5437f0d7943e352ebe126f66275edf4f8206b545
change-id: 20260915-mt8365-add-phy-mtk-mipi-dsi-driver-22d184f03e95

Best regards,
--  
Julien Stephan <[email protected]>

Reply via email to