From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795955564; b=Lcx+FUu3jXFY/paY5t9ggl6QIwsw+iHwJW3OsVHSIligxFL/Z/9ctn1X1BwLhHDLpH0P F9Pmttswzd1Eior0Fr8FC2tR2z5e36Jyw39jjvqxHIwnPQ7L1c5Hq3jDxPy0p+Y1Vop25 8AUp5qxKLS7RrJ9ML2oxVbM1Wg/nUiWHVb4HwF2CvXwnz2H70uUZui1cA64ehXqlwAny3 U1DR3vJj8z6TWhxwwEyYXrF5Jmtwj9How4iIa+kBHuCeFN9hyPJA9RiYIHnyzFboxhJLd QrLyXjacR2EKEc8uWoHw29+a3ddwSlScb/pSK8z0oOaQqmZC8/MZnqPQuXZAtEm0JWQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795955564; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Content-Transfer-Encoding:Message-Id:References: In-Reply-To:To:Cc:X-Mailer:X-Developer-Signature:X-Developer-Key: X-Endpoint-Received:X-Original-From:Reply-To; bh=Fq7tujyuWE094N7JP8igT3LM+X8xVhYlxMTfkoMW/9w=; b=hHAsIjZG7/heTIxzAtEpyJShnxzG0nUMNvieOM+Z4z62Z7dAJzpTPvgG6vB/AMwLw5eD S06EkPm8bVSF2gkgODuWRBwxNpHrmcKxDVcObsItZvRNv+zFVWJnGDnONqfAXIGwKHafA IieI376e9p1AS99fP5byvJT8mtj69ERFZobG8TGNUnDchl13u0oLAYwZ0dDOFgPDQgeLq Rvx2ki6gfEbvquRXXyUM3Ae8YmAqv5kFp9yvgTtL6jXjNC9W5ibNd/N4rVmcjnBLH55RT vTNI+phLdgeFxKqGF+BpYbcwCY3GoLESo0rChcNiQsZHmYaZ0GU3fBBXOeV5zYFFowQ== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=dOVOz8Ou; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D49D3606A685; Sun, 29 Nov 2026 12:32:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=dOVOz8Ou 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=1795955564; b=tfD9sjoUJk8AeixCAnOFH7OBxNWbItCfqHV7knW3jUIgJXDpnNAAoM+w2gNJL3+GYVML nKXXifgsc2yBgtDH2xVDyHqyl9qkpJO+zxjFbsYmbzrUAcrQuB4A0vkUAMikZ5206JIXI iiST3AVp77EtPLE6yywlopb4KIzZaC+6NrFbXrq47eIoQV7fyRYTibK3HpKoe9tSmuCll VUj7HFezJXIflcuJ6EXyweenQbfZlwHAVPBJThScwovUmozN6b8LsM+JdgV50Tyx2fDK/ k15XLJleDQiJ2bE7Fi2tFSLLQ/Ta/0IqET0Rk1v6+9LgS1+wavN8YWqK76+ncNEPNAQ== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795955564; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id:References:In-Reply-To:To:Cc: X-Mailer:X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To; bh=Fq7tujyuWE094N7JP8igT3LM+X8xVhYlxMTfkoMW/9w=; b=SW+dFSy5to4upSje/RJYgs62dIwAAch/FBNccpqmCA6y0xoUB9xzLK/VUcpqUvekTpDT FZoChL2QVd7JjGu7phwdGj09YAwd1uIuOS2GuZSjzJVsrk0lsBIBp0xS2BXeZSLuzP3uo lZTw+L/91QSxTiVn/MQnLLaAmkWRQn8esjFNzIzuuZFSkZrz+J7tx8C1HZeqzkkhInEaG T+nJXlIsTtTrNwJCp/vzgfyMvPsc+xosSKcyhqdu3hKxnZBKiqjMvHNYUHrWGh7pu6r6O ku0crotDL+GGv6g0HqsTMlTJt5KQ1YVF3s9yoN2yC8yv4xEs7tTa9zDgm9dbE78qk/w== 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 1C3891F00897; Sun, 29 Nov 2026 12:32:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795955564; bh=Fq7tujyuWE094N7JP8igT3LM+X8xVhYlxMTfkoMW/9w=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=dOVOz8OuHgVrGKYZgQQSU8RIWEURSyU8iRPAt29xw5/aViDK3iqxV/sP6LcBQGJpx GibKfHstIfdBplUKzgzOYFyFiXkWtlWGH8FWgfxWCJgiOZyYb0MHsOJw6MyJy8xGnE X0rs2YgHMLoAywRVkjA9wfb8O3T1/KvDCzDxo6pMqWotUa6Lf/V/QjrBP1c+3GNPzg eclJn8e91GQzDQWlD+MzhjPF7+Z1eZOx/Cj6/JUPdwM99qA2hTvbdDC2z6PMs8Sczm xC4cc5PbWRvx72pFT/i5Gvnvr6bfGjpKPs6OvNC15rEta+5bSalnTgizm6M9nKkZOs /V1uCrNg1I5dg== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 979264E489; Sun, 29 Nov 2026 12:32:29 +0000 (UTC) From: Cody Kang via B4 Relay Date: Sun, 29 Nov 2026 20:32:14 +0800 Subject: [PATCH v4 02/16] dt-bindings: phy: add SpacemiT K3 Innosilicon DP PHY X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261129-k3-display-v4-2-ce6cf7988202@gmail.com> References: <20261129-k3-display-v4-0-ce6cf7988202@gmail.com> In-Reply-To: <20261129-k3-display-v4-0-ce6cf7988202@gmail.com> To: David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Yixun Lan , Troy Mitchell , Vinod Koul , Neil Armstrong , Manivannan Sadhasivam , Haylen Chu , Michael Turquette , Stephen Boyd , Brian Masney , Philipp Zabel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Yao Zi , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Guodong Xu , Icenowy Zheng , Jerome Brunet , Sarah Emery , Ze Huang , Dmitry Baryshkov Cc: Cody Kang , James Morris , dri-devel@lists.freedesktop.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, spacemit@lists.linux.dev, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-clk@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795955545; l=2696; i=codykang.hk@gmail.com; s=codykang; h=from:subject:message-id; bh=OneVBb1jXRQQD1t08xbP9vC9oUD68lFb6+QJIOIh2cI=; b=z1SdtsikwDZ3Ty7/nQqIC/AcwVMMLFffOdpp2wGq+8gcQHHV/w2/S4u142FkenmA4c1YA4fHg CPOMUgsrp26AzeDtd7af//40fdycc1lSLy4/wwgRaWJrl//mSgNeY7s X-Developer-Key: i=codykang.hk@gmail.com; a=ed25519; pk=Osn6/cs9Su/mHHw4P19cmVc3v2FMQfiWahjsN0vEkuk= X-Endpoint-Received: by B4 Relay for codykang.hk@gmail.com/codykang with auth_id=895 X-Original-From: Cody Kang Reply-To: codykang.hk@gmail.com From: Cody Kang The SpacemiT K3 DisplayPort controller drives its four transmit lanes through an integrated Innosilicon DP PHY, one PHY per controller. Add a binding so the controller can reference its transmit PHY and the pixel clock the PHY's PLL sources. The PHY's registers are interleaved with its parent controller's inside one MMIO window, so it owns neither a reg nor a reset and is modelled as a child of the controller. It exposes its PLL-generated pixel clock through #clock-cells, so the APMU pixel-clock mux can select it as a parent through the clock framework. The reference of its two PLLs is a clock input. Reviewed-by: Rob Herring (Arm) Signed-off-by: Cody Kang --- v4: - add the reference clock input and require it v3: - no change v2: - add Reviewed-by: Rob Herring (Arm) --- .../bindings/phy/spacemit,k3-inno-dp-phy.yaml | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/spacemit,k3-inno-dp-phy.yaml b/Documentation/devicetree/bindings/phy/spacemit,k3-inno-dp-phy.yaml new file mode 100644 index 0000000000000..ec3b6378b31bd --- /dev/null +++ b/Documentation/devicetree/bindings/phy/spacemit,k3-inno-dp-phy.yaml @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/spacemit,k3-inno-dp-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SpacemiT K3 Innosilicon DisplayPort PHY + +maintainers: + - Cody Kang + +description: + Innosilicon four-lane DisplayPort transmit PHY integrated in the SpacemiT + K3 SoC, one per DisplayPort controller. Its registers are interleaved with + the controller's own inside a single register window, so it is described as + a child of the controller and owns neither a reg nor a reset. + + The PHY provides the pixel clock its PLL generates, which the APMU + pixel-clock mux takes as one of its inputs. + +properties: + compatible: + const: spacemit,k3-inno-dp-phy + + clocks: + items: + - description: 24 MHz reference clock of the link and pixel PLLs. + + "#phy-cells": + const: 0 + + "#clock-cells": + const: 0 + + clock-output-names: + maxItems: 1 + +required: + - compatible + - clocks + - "#phy-cells" + - "#clock-cells" + +additionalProperties: false + +examples: + - | + phy { + compatible = "spacemit,k3-inno-dp-phy"; + clocks = <&vctcxo_24m>; + #phy-cells = <0>; + #clock-cells = <0>; + clock-output-names = "edp0_pll_pxclk"; + }; -- 2.43.0