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=1795955563; b=exC47y+lY0+pO3YxOOF0pOmuEn3iSqyraAygK77sYgpfQNm0EenhFR16gRw+Xbmu+Dlz BqBkesKYMhxC9+osc2OLeCrI8bPd9arpw1I20KO203hrlx+FCssxV9dNVB7vG4LWzGgUl Vid1Sbu+fG3EjDnSSW2eNNHEF7MerUeAL2QFVrb7AHv0IfLq0iXyVmsd/ge+WQcw8KmcH 4GeFR/OOkniCSu6g3Qu1ybrlrPwa/wHHPBT26YpglewahvLWUn5KXh052/QR39W/FRfM4 xLYQYe2tn0w3KCkRmic55r9oWCONxoeDayhHS65bDFo4ndiBLeyVyNPn4l62FGzDO+A== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795955563; 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=3Y081G2qZrUOGYVVMISZBsE25+khFdfYWwh3Jkfyglo=; b=Ss4jxUymAb8y19ZtjxyX0E9WT7qi5yn+HllV2KS0bDdgkRgn8LRycIVi6w8s/Mwy89Ib 88+YW6PJgj0MVuHP8ecwDea/1HweEUcmKVraulekUMt+OS9WkHRN2Wwsw0plPO7C1WF4x lqe0Kca9nTVizan8nbim7Ol5NIXoJnaI1/ftDNKVSdJ3HKuPVWMw+dpymnDOFgx5VyA3u CaQChZzNXhm4fCrNZMdN/33VfyMY1vOnvJtnXcAdMlqnImeY5ACIK8ytKEur7bCe1NdzI aJi5PMYOnt0jWUq3gptseR3pxFCdWfwkkZVooycpDV5OWhoXcdwc++xKHGPz68cDdTw== 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=k4yeQzOw; 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 BE99A606A329; Sun, 29 Nov 2026 12:32:43 +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=k4yeQzOw 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=1795955563; b=QMfTd8nhM69Y4TdD0PoNg9vqYdPztPn+J7qMVyHeOXLsNTTETRpQDwrePGROKR8+uK3n 9JRyaWS7r5CxzMwba4igYT8AMe5RfUvTY2piOEdjBvQ1lNsy0NgHwdMafJNmSoiMbPZcC QEct2kE/z1+9iiHyTDsqvgeTOP3mtPK5cm5wvKxEemK022On9tjMxahdnyGtuTrHycDIu KfEPhf5LLq08eJZKZ+KEwbfa9PAXuQeF64G2asIOFz2ndm8QzX2hSzbZXEhaKGYUArQ3T gG97jy4dBh9gQiB7MInNkMD8LMRWxo6x3gloAWieI2sM+/7CCy282BBHvF5xGoua6/A== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795955563; 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=3Y081G2qZrUOGYVVMISZBsE25+khFdfYWwh3Jkfyglo=; b=0TX+bn8kSL3r+dwGpAffssKEwW7xAcKYjPQ38LsNywMAXsMdi/JQ2K2pjtprFNMh+HeC dkfHTsw16OkWUia1cjsWJbp4/1EFFeGiq+Kwy1/9E33d/fgPl8Cf+z4emxTR8aAvRlSLZ 7bkU5s6tG1Ei8IKvtnKbpxk9iGTRq2Yea6BrSGnVqRc2UtqdyOCAVcbvwfpjBvKN73z9n fvy5e/0KJH8FTf82y1lW/3ztD+E2W+PE/T5dqmsr4qSEAsoFIDFMPsg2xqYN5EgvsEcvT 3l2gjrJ1qT05h9QK9wUS7gilUJwXkVfkkLRUWbOnGMmVkVpn1FBvB6gips61tyOglaQ== 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 40C7E1F00899; 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=1795955563; bh=3Y081G2qZrUOGYVVMISZBsE25+khFdfYWwh3Jkfyglo=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=k4yeQzOwX4HLs5FoBcTEIwUGhhFeCXe+uZvC0gaHLJBkXcYPTffiATYPpDoB36fmu iSluAVI7o19nQIC0cgIQz5Bsj6NVY6HWfGGXz2HBa5fCNCa04aGgKWS18K6XDsSt0O 6X6siQG4BP7AQcq81tHUuuARr7iSiTu2fEwe7o6h8ZwbzjLO1KkkW3PJB6Rj6mbNmX q11uFMutB+FAcNW/s9ndPW8EBeFZ7Jqx9DxycFOFFIjazBlf42sysERMAQ1eGqrsOw czHMKy/270NuPNhv9Y+Jq1mwRVxAxOanHNbNfNgfHE7DDHuKcho+2hJ0GEbVa+CiXs +o+2Oew6DfCvQ== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id BCB224E48D; Sun, 29 Nov 2026 12:32:29 +0000 (UTC) From: Cody Kang via B4 Relay Date: Sun, 29 Nov 2026 20:32:15 +0800 Subject: [PATCH v4 03/16] dt-bindings: display: spacemit: add K3 Innosilicon DP/eDP controller X-Mailing-List: linux-kernel@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-3-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=4906; i=codykang.hk@gmail.com; s=codykang; h=from:subject:message-id; bh=ZGJEHjJAS5sFl4L7q/pAsSN/NfALyn4A2bS1ya/2AhU=; b=Rz56kuqSJdjG5JvBFJxwXKeZ2fFuSsyyxWWbZv1aA/h2utoS2le+TzhDz1WezimSVdAYcOx2T T2VMvLftu9KDcJKNSfDVIFtXYDtd2mhVcwvjO0UkiBWG4sBwwmCcGSe 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 Both K3 instances are the same IP and share one compatible; which one behaves as eDP is decided by what its downstream port is wired to, not by which register window it sits in, so the binding does not distinguish them. Reviewed-by: Rob Herring (Arm) Signed-off-by: Cody Kang --- v4: - give the example PHY its reference clock v3: - no change v2: - make port@1 required (Rob Herring) - add Reviewed-by: Rob Herring (Arm) --- .../display/spacemit/spacemit,k3-inno-dp.yaml | 142 +++++++++++++++++++++ 1 file changed, 142 insertions(+) diff --git a/Documentation/devicetree/bindings/display/spacemit/spacemit,k3-inno-dp.yaml b/Documentation/devicetree/bindings/display/spacemit/spacemit,k3-inno-dp.yaml new file mode 100644 index 0000000000000..8a734c48748a9 --- /dev/null +++ b/Documentation/devicetree/bindings/display/spacemit/spacemit,k3-inno-dp.yaml @@ -0,0 +1,142 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/spacemit/spacemit,k3-inno-dp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SpacemiT K3 Innosilicon DisplayPort / embedded DisplayPort Controller + +maintainers: + - Cody Kang + +description: + Innosilicon DisplayPort transmit controller integrated in the SpacemiT K3 + SoC. The K3 has two instances of the same block sharing one compatible; + each acts as embedded or external DisplayPort depending on whether its + output port drives a panel or a connector. + +properties: + compatible: + const: spacemit,k3-inno-dp + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + description: Link and hot-plug events. + + clocks: + items: + - description: Pixel clock for the controller. + - description: + Pixel clock generated by the DP PHY PLL; the pixel clock above is + parented onto it in use. + + clock-names: + items: + - const: pxclk + - const: pll + + resets: + maxItems: 1 + description: Controller-wide reset signal. + + phys: + maxItems: 1 + description: Phandle to the K3 Innosilicon DP PHY. + + phy-names: + items: + - const: dp + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: Video input from the DPU. + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: Output to the panel or to the DisplayPort connector. + + required: + - port@0 + - port@1 + + aux-bus: + $ref: /schemas/display/dp-aux-bus.yaml# + description: + The DisplayPort AUX bus. Present when the output drives an embedded + panel, which is described as a child of this node and identifies itself + over AUX. Absent when the output is a connector. + + phy: + $ref: /schemas/phy/spacemit,k3-inno-dp-phy.yaml# + description: + The DisplayPort PHY. Its registers live inside this controller's + register window, so it is described here as a child node. + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - resets + - phys + - phy-names + - ports + +additionalProperties: false + +examples: + - | + #include + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + edp@cac84000 { + compatible = "spacemit,k3-inno-dp"; + reg = <0x0 0xcac84000 0x0 0x4000>; + interrupts = <132 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&syscon_apmu CLK_APMU_EDP0_PXCLK>, <&edp0_phy>; + clock-names = "pxclk", "pll"; + resets = <&syscon_apmu RESET_APMU_EDP0>; + phys = <&edp0_phy>; + phy-names = "dp"; + + edp0_phy: phy { + compatible = "spacemit,k3-inno-dp-phy"; + clocks = <&vctcxo_24m>; + #phy-cells = <0>; + #clock-cells = <0>; + clock-output-names = "edp0_pll_pxclk"; + }; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + endpoint { + remote-endpoint = <&dpu0_out>; + }; + }; + + port@1 { + reg = <1>; + endpoint { + remote-endpoint = <&panel_in>; + }; + }; + }; + }; + }; -- 2.43.0