From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3811A606A691 for ; Tue, 1 Dec 2026 20:13:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=Oleq6NJK; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=cYmDHWI5 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:MIME-Version:Message-Id :Date:Subject:From:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Unsubscribe-Post:List-Owner; bh=IVB6X0Bq6kKxBzzlVEJ4PGgwkrG2ipRPPl+MgK7pB+8=; b=Oleq6NJKkwlxqJ2vzCwyGkb7+I 34RvrTNxb0K05+Oh6FQfZGUV2Z1D9CmZOBQlsJcqsUJeFEjjF/LgWKDnRtiiecZyzolZJdDzVeaJO rTve5h90paiKTKZZjjWlqG7ctTKaT26SjSYUlHC+iWGaulVydwQY7Y3xbRCbXHjAsk2V/JJG3VE0V gFYS5dweBvkGOCqmFKhV/MEZuhOK9gF3NfvsDhzvRnkhUtENn4B/SSYWTg+RB013XtlgjGw+NE6Vl IIvtTKuA00P6CN2ZVcc7qXAdgVQbitpUpZoSJ8WZeq1qm6XjDJOqYfI8SnFnnztR9ayK/WCOvWuDe Hqed6oqQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYUEX-00000009Jix-25vs; Tue, 01 Dec 2026 20:13:49 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYUEV-00000009Ji2-3YYl; Tue, 01 Dec 2026 20:13:47 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 6746541345; Tue, 1 Dec 2026 20:13:47 +0000 (UTC) Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1796156027; b=x+eif4+9zL0gwzbPWAOOSmtHPRrTH6C7yw7EZY+hb/tKgT+XcN0a3cqluqpjQA5ZMUVe lUNOyxbe338PDcYjtaAPjWqXhw1ARVvmhVidep+dERHgeKMxxtHKwDqi4BLkZbk/wPcIb 4aBSmArpFHjXY5wNoQ5s+dI1NY76paVYL2dAeG+wvQfGTPTQoxVwcti9i8LZvWwSiPYT6 I83ph3rCj/PR/HhzryLz3jvoDv9UxjEoWAyvpVjLOKMDNHiAt4YzYX1o6K/E9iptAUGxU Hv9SQNhpmikYpsqecPpOyeUh846CukcrS8Wgj8Hj2QCwqR7v3jdC6Chw91QWi4/PWxg== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1796156027; h=DKIM-Signature:Received:From:Subject:Date:Message-Id:MIME-Version: Content-Type:Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To: Cc:X-Mailer:X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To; bh=ntey1UcJc+i9xGTTHxjIk/ma5cVkGkfGMM/oEb0UKns=; b=kFOhsqSY12QmATqUB98ItEzafXcV5QdPfK3Vyqjt8KmQW06FJOPxu9cgLqugaAdSkJFq ho2EqOdCEYtxpx+4uwHyUQ/n0ZbUM/A36MHLPetUCviUS6Z+qU98OAsf/PUx8dWCjZw6G k76ljwxcy59mZTS/sB+T4/8IDU9nkexvnrhm2sz7tticUZ5RuMaUeJFxQ/Iq7heR8doJk GOhwuB/VP0JwElr6jrum2kPJTpGq9uyDv1X9/kXsTS/7Y1h8lcY266d4bM0uCdSD8dyf9 yJ9uwF1g2QC503hIfWRv9YGG0edxoz/GRZZJz/bHellhnViWKI9K7LZYLDvMhM4XD9A== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 5B7E21F00893; Tue, 1 Dec 2026 20:13:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796156027; bh=ntey1UcJc+i9xGTTHxjIk/ma5cVkGkfGMM/oEb0UKns=; h=From:Subject:Date:To:Cc:Reply-To; b=cYmDHWI5J6puv4cxHf4oK8yP3d69M4DqnClLvMx6EmwXtK1FyWSj/BDlUlZbBquep QOIVrPWxXsaphHFiKyXgPmNLInoXWASqRG5Rf5T4TMokyGa/Q1zXl3DxaJbc8xUIhn 1c10UoFlBS4l2+pg9Rqvm9+EdV+OsAZarHuT4dJZ044MnAVDHAVR8fP7fWpt5yfzUa kvYLyEo9lKy7769C2bJR4fIiUpYsijb0UytywAKed2twDXQfvvgvaQGFfJtCbwPHai nnV7NsEdPUmnqaXZsKYPSVJRxeTHCH36EC071R1DXgc68Pd/gm+5vwSr7IePtbVKLb iaapd0rOhhWrA== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id A79104F06C; Tue, 1 Dec 2026 20:13:40 +0000 (UTC) From: Ronald Claveau via B4 Relay Subject: [PATCH v6 00/13] phy/drm: amlogic: Extract Meson HDMI TX PHY into a dedicated driver Date: Tue, 01 Dec 2026 21:12:48 +0100 Message-Id: <20261201-meson-drm-create-hdmitx-phy-v6-0-5ccdf57a6cf5@aliel.fr> X-Archived-By: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAEAqD2sC/4XQy2rDMBCF4VcJWldFd0tZ9T1KF7qMapXYDpJrE oLfvXJKQXjhLg8M3w/zQAVygoLOpwfKsKSSprEO9XJCvrfjJ+AU6kaMMEUplXiAMo045AH7DHY G3IchzTd87e9YWC+IVVIEYlAVrhliuj3194/fXb7dF/h5I7eLPpV5yvdnfqHb3V+pOywtFBNsg FhvOOWa+jd7SXB5jRltoYU1FCPHFNsoHhRjwThHuh3FW4oeU7xSUUfR0U5r0qkdJVqKH1OiUjw 6I6KUXHi7o2RL/fMrWSmtveDgjBRKN9S6rj8bs0wvAwIAAA== X-Change-ID: 20261115-meson-drm-create-hdmitx-phy-4ac40a654d09 To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Vinod Koul , Manivannan Sadhasivam , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Ulf Hansson Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, dri-devel@lists.freedesktop.org, Ronald Claveau , linux-pm@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=7961; i=linux-kernel-dev@aliel.fr; h=from:subject:message-id; bh=MBSeT41XEYOdsfcRgY8Mn4NgXpUP5B2na/GikIP6az8=; b=owGbwMvMwCWm1SvKXP3cUInxtFoSQza/VoSY1adYgbV9a17Le000+P1dTExlT6rfb9nl6asuv Wnju17UUcrCIMbFICumyNI/1/LEu8tHz3zdo54CM4eVCWQIAxenANzkFEaGLeGpf6pbls3j4Zjf 6qSx42XjK529tVrFsS6iT/9bRRypYvgfYrRu1/4JDSWThZTCGLg2hRls2ZpRv+TgH9vIfW1ebhM YAA== X-Developer-Key: i=linux-kernel-dev@aliel.fr; a=openpgp; fpr=DFD863F61375BF917F0012173953305EF1D0EC3E X-Endpoint-Received: by B4 Relay for linux-kernel-dev@aliel.fr/default with auth_id=744 X-Original-From: Ronald Claveau X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: linux-kernel-dev@aliel.fr Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" X-Spam-Status: No, score=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 This series moves the Amlogic Meson HDMI TX PHY handling (covering GXBB, GXL, GXM, and G12A SoCs) out of the meson_dw_hdmi DRM driver and into a dedicated generic PHY driver. Until now, meson_dw_hdmi directly manipulated the HHI system controller registers (HHI_HDMI_PHY_CNTL0..5) to configure analog parameters, toggle resets, and manage power states, as well as manually ungating HDMI clocks and power domains already described in the DT. By extracting this logic into a standalone PHY driver under drivers/phy/amlogic/: - Hardware representation in the DT is cleaner, modeling the HDMI TX PHY as a child node of the HHI syscon referenced via standard "phys" properties. - The DRM bridge driver relies on the standard generic PHY API (phy_init, phy_configure, phy_power_on/off, phy_exit) rather than touching syscon registers directly. - Legacy DTs lacking the "phys" property remain supported via a temporary fallback helper (meson_hdmi_phy_create_legacy) to preserve backward compatibility to be removed on next phase of component removal. Overview of the series: - Patches 1-2: Fix compatible matching in meson-gx-hhi-sysctrl bindings, add SoC-specific compatibles in the DT schema, and allow the "#phy-cells" property under the HHI syscon. - Patch 3: Add a driver matching SoC-specific HHI system controller, make it the phy provider, and creating auxiliary device for the phy driver to register. - Patch 4: Rename the Meson8 HDMI TX PHY driver to be more SoC generic. - Patch 5: Add GXBB, GXL, GXM and G12A SoCs to the Meson HDMI TX PHY driver, implementing the HDMI PHY configuration ops, along with the temporary legacy creation helper. - Patch 6: Document the optional "phys" and properties in the amlogic,meson-dw-hdmi binding. - Patch 7: Make meson-ee-pwrc power up the domain memories when the domain is already on at probe time, as this is a prerequisite for dropping the explicit write from meson_dw_hdmi. - Patches 8-9: Clean up manual HHI clock/power-domain writes in meson_dw_hdmi (relying on runtime PM instead) and convert the driver to use the generic PHY framework. - Patches 10-13: Add the "#phy-cells" property to the sysctrl node and wire up the "phys" phandle for G12, GXBB, and GXL Device Trees. Tested on: - Khadas VIM1 (GXL) - dtbs_check and dt_binding_check run cleanly with no new warnings. Signed-off-by: Ronald Claveau --- Changes in v6: After Rob's feedback: - Remove Patch 2: Meson gx phy now exposed from hhi sysctrl. - Patch 2: Add phy-cells to the DT binding. - Add Patch 3: Add a driver for the hhi sysctrl as phy provider. - Patch 5: Add a path to register the driver as auxiliary device. - Patch 10-13: Add phy-cells as SoC-specific hhi sysctrl. - Link to v5: https://patch.msgid.link/20261127-meson-drm-create-hdmitx-phy-v5-0-88c43eb95468@aliel.fr Changes in v5: - Add Patch 4: Rename Meson8 HDMI TX driver to prepare other SoCs integration. Martin's review. - Patch 5: Adapt the GXBB, GXL, GXM and G12A SoCs code to Patch 4. - Link to v4: https://patch.msgid.link/20261123-meson-drm-create-hdmitx-phy-v4-0-3fb94f5534ca@aliel.fr Changes in v4: - Patch 2: Change commit title. Sashiko and Neil review. - Patch 4: Change the phy min_rate to 15.9 MHz mathematical limit. Thanks to Sashiko's review. - Patch 8: Drop introduced double free with phy_destroy. Add missing device_link_remove() Change the device_link order and use prepare/complete in the VPU drv for drm_mode_config_helper. Sashiko's review. - Link to v3: https://patch.msgid.link/20261121-meson-drm-create-hdmitx-phy-v3-0-f8f471788076@aliel.fr Changes in v3: - Patch 6: reuse meson_ee_pwrc_mem_power_up() in meson_ee_pwrc_on() function. - Patch 8: revert the code to v1 and add a device link to solve suspend/resume order in dpm_list. - Link to v2: https://patch.msgid.link/20261120-meson-drm-create-hdmitx-phy-v2-0-93d622d9bb07@aliel.fr Changes in v2: - Patches 5,9-11: Remove unecessary "phy-names" for uniq phy. Thanks to Neil's feedback. - Add Patch 6: Power up the memories when the domain is already on. From Sashiko's feedback. - Patch 4: Add a 600MHz max_rate and a 25Mhz min_rate check and exclude PHY_HDMI_MODE_FRL for phy_validate. Thx Sashiko. - Patch 8: Move phy_init in dw_hdmi_phy_init and phy_exit in dw_hdmi_phy_disable. From Sashiko review. - Link to v1: https://patch.msgid.link/20261117-meson-drm-create-hdmitx-phy-v1-0-9e0ac931381c@aliel.fr To: Rob Herring To: Krzysztof Kozlowski To: Conor Dooley To: Neil Armstrong To: Kevin Hilman To: Jerome Brunet To: Martin Blumenstingl To: Vinod Koul To: Manivannan Sadhasivam To: Ronald Claveau To: David Airlie To: Simona Vetter To: Maarten Lankhorst To: Maxime Ripard To: Thomas Zimmermann To: Ulf Hansson Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-amlogic@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: linux-phy@lists.infradead.org Cc: dri-devel@lists.freedesktop.org Cc: linux-pm@vger.kernel.org --- Ronald Claveau (13): dt-bindings: soc: amlogic: meson-gx-hhi-sysctrl: Fix compatible matching in conditionals dt-bindings: soc: amlogic: meson-gx-hhi-sysctrl: Add #phy-cells soc: amlogic: Add Meson GX HHI system controller driver phy: amlogic: rename Meson8 HDMI TX PHY driver to be SoC-generic phy: amlogic: meson-hdmi-tx: Add GXBB, GXL, GXM and G12A support dt-bindings: display: amlogic,meson-dw-hdmi: Add phys pmdomain: amlogic: meson-ee-pwrc: power up memories for boot-enabled domains drm/meson: dw-hdmi: Drop manual HHI clock and memory PD setup drm/meson: dw-hdmi: Use the generic PHY framework for the HDMI TX PHY arm64: dts: amlogic: g12: Use the HHI system controller as HDMI PHY provider arm64: dts: amlogic: meson-gx: Add #phy-cells to the HHI system controller arm64: dts: amlogic: Add HDMI TX PHY node for GXBB arm64: dts: amlogic: Add HDMI TX PHY node for GXL .../bindings/display/amlogic,meson-dw-hdmi.yaml | 4 + .../soc/amlogic/amlogic,meson-gx-hhi-sysctrl.yaml | 49 ++- arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | 4 +- arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 1 + arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 3 + arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 3 + drivers/gpu/drm/meson/Kconfig | 2 + drivers/gpu/drm/meson/meson_drv.c | 16 +- drivers/gpu/drm/meson/meson_dw_hdmi.c | 223 +++++----- drivers/phy/amlogic/Kconfig | 13 +- drivers/phy/amlogic/Makefile | 2 +- drivers/phy/amlogic/phy-meson-hdmi-tx.c | 454 +++++++++++++++++++++ drivers/phy/amlogic/phy-meson8-hdmi-tx.c | 160 -------- drivers/pmdomain/amlogic/meson-ee-pwrc.c | 19 +- drivers/soc/amlogic/Kconfig | 13 + drivers/soc/amlogic/Makefile | 1 + drivers/soc/amlogic/meson-gx-hhi-sysctrl.c | 58 +++ include/linux/phy/phy-meson-hdmi-tx.h | 19 + 18 files changed, 730 insertions(+), 314 deletions(-) --- base-commit: 6d582d78fad9d828e575ca0cdcff8ea47a77220b change-id: 20261115-meson-drm-create-hdmitx-phy-4ac40a654d09 Best regards, -- Ronald Claveau _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic