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 E1F3E606A687 for ; Sun, 29 Nov 2026 12:32:47 +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=WfYRra+D; 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=k4yeQzOw 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:In-Reply-To:References: Message-Id:MIME-Version:Subject:Date:From:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=xCoS2TK8aM9OsTERMFASinB55qTW2jx4zNM0LE/nPpA=; b=WfYRra+DDVq96DizoZJ14bkGMf +X2vq2excwHpSCCEBOlBeJl3N4NnJeGdPoiZZVQ4gwgjrbQ2O2RxmtBRTRcaOcRbh5ggrVhrJumYo VbsNbrINsEw2Ut653/nR/EkRLs5FA3eO/T+KC6iL4tpCP3GSPM7boI+jfitIY4NV1IHft9F4F+fYD U3r9w/EXqE5XjJBPuoQ/90mwV6BuQOWG+yjCdlTT+4UpKHuv4QjfzOHHAuxsGPUdTWftfM07hImIP 43qIEYPk1AxuyPc+92FpPZT2IHGnA9ohFIVtD0ooQ2by0GWGZfUMb118Ru2sWggDp9u1QyNHpUE9I bKedoEvQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXe5H-00000001xS6-2Xih; Sun, 29 Nov 2026 12:32:47 +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 1xXe5E-00000001xPp-1yvp; Sun, 29 Nov 2026 12:32:44 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id D2DDA44924; Sun, 29 Nov 2026 12:32:43 +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=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-Archived-By: MIME-Version: 1.0 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 X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: codykang.hk@gmail.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" 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 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 -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy