From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oa2-f0.google.com (mail-oa2-f0.google.com [74.125.231.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B11A340412 for ; Sat, 25 Jul 2026 05:02:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.231.64 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784955746; cv=none; b=Y/UfUa4LDmapmEbuKyynSoqQx2TXYP4hZ1kH5c9iyozDsI3lQQAzysSvTVWTzo44pLTHkrjmCyMYcn/I1hpO7Reo2xAVt0c7ia1/edGA6OMy8KCtP1kJYvrL95cpBrRctPUYC+IwExbNM3mwLShZFA9DFjMz7GlIZddqiXqRt04= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784955746; c=relaxed/simple; bh=yNWq543Aiagc6RVnpWivC9SHy2Deccat9Kz6CH7b1lM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=iPdSqNxs3Fq4Cj3kZ/dezYVYW8EpHFEsvQ+7xXe9OGq0VnTHCJBNWsf/rptq848J6A72bimqGRrogWHDTHNRI2SXGyI/0EqXYFcH48ggUwPh2GYzj1EbnKg9Cvg5uZki0MNNxq5IZ3yAsbGchHtt6+jvrZE7NXOdi0VUfO+bevs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=YBdnZ+GB; arc=none smtp.client-ip=74.125.231.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YBdnZ+GB" Received: by mail-oa2-f0.google.com with SMTP id 586e51a60fabf-451bde4ab1cso366254fac.1 for ; Fri, 24 Jul 2026 22:02:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784955742; x=1785560542; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=6a/x50Eo6kNHLlYGVZSsuYw6cqPBcO8EXP5O0WJGjSk=; b=YBdnZ+GBnmUElsQdFmAW16D2k9vJ2tPF0yNSrDdjTjwoh2WX0rRxCuDXYAK3SYHnfC tkl2TNlxdsJQRwWCblHz7I9jdGxMOSGd/85HVKraGvPtXaojuuaSq/kOgTMxvQR3QoAs NQPgAAtaYyG45bBlXD1YlNj3/p3TlhUg9EsKDYAkmrW4VwsF9NJ1BO23EiwJOq69pHdF QZ1/csebAiJJ0pHF7GM8mJn1WV4a+t+qywFomwcQuYYbJhv+My5fSMoHj9wzLn6J0Dpx T9OQG+BRggleZdiqGH6BKsIZpQUjoA1ksFG09DUCqybnamDgRyqvQ/t8j4d9duaVPcmd tRVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784955742; x=1785560542; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=6a/x50Eo6kNHLlYGVZSsuYw6cqPBcO8EXP5O0WJGjSk=; b=gdB3HaRFkwReEdtghcK8U7UgLNaJrKdKsUO9P9Ejr5MZp77cQtDbG3ihaji38e02Fk HSahoq20m2xdqjtIaJZ78LFizLq36y9dRofVWnZQJAQB4Bumi51xR5v01JDG5PfYVS6m FY4Qjtqf4IB3kGvPd8sEGPsQx9vV5nuYRRSANmVL2JO1RzrKs4Nz4vHWnHfuoLTqwGcB DsaWG7N0NonlFPlw7YIapIv12MQs1DmxwrkGtMRVMVt7jfBIcfmQ/41XMNswBa/hryQ1 8LHgS9WiaZA9FVZNWH9QRM0GhErd46Rc1fWdiBqlQoMGvM/4vce4LV4Y6zYXPOtSpRZW aRBg== X-Forwarded-Encrypted: i=1; AHgh+RoTWiJifQTGtPVKBLOPbUJmoob9q5JjFkxQosxT2AFa+N/vA83ruoj07mXXJJZFq5AH5bdsTQQKud3d5hA=@vger.kernel.org X-Gm-Message-State: AOJu0Yx8OGKN76/2OarPoNVM2F7JmE7A0jMPLjAcb1jJJ9DCZ+xcJ4yF 8jKyBPee/34sBk/BuWtpOQltxP4JXmdGXLneVSIRIR1tatv77QmQRNuitZpPpOHYNXFubA== X-Gm-Gg: AR+sD1088xKoZ4d0Tb/ZmCbKzG6drn6zsZH+1WeQUdKTr2VvDOuJ3Xqaf4V3dmu7QQ5 dTYlRs+TNg0MBPRwohjIRPDJbDbFOHla3HrRaRyLDoamanFD/tRcSwHSLg71d2R1I6pljjE67S7 pDq4Pt08yHo6lxV3ZRAOrGwAgEtVxy33YyuifMtU77mfQ1/EobcB0RmHx9/DK3PVuxmwII1DADB eLapxLHeWZP/TrqzhIu3bBw97Afg4SdiaTqVqGm8PPM9zzFvH/+g/DYl9WFYg9lgdRudKRu21jm 5fyDsEZ69T97St7oaerYYVNOIwMBVV98bfp8yBoLeQCXdBHJEAWVPW4nBtNuPEJZwAe2qvsYLG4 Do79OkcGpfTKlR9vN62CWuyPV1HUXNi/Wg2nd55fsow9PioKCWUquzKpOqD8Z/FDfCQ== X-Received: by 2002:a05:6a00:a21a:b0:848:727f:2c8b with SMTP id d2e1a72fcca58-84e5959f3c3mr660746b3a.68.1784949456147; Fri, 24 Jul 2026 20:17:36 -0700 (PDT) Received: from [127.0.1.1] ([2a12:a305:4::403c]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-84e53432834sm640542b3a.50.2026.07.24.20.17.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jul 2026 20:17:34 -0700 (PDT) From: Cody Kang Date: Fri, 24 Jul 2026 23:16:35 -0400 Subject: [PATCH 03/17] dt-bindings: display: spacemit: add K3 Innosilicon DP/eDP controller Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260724-k3-display-v1-3-f22a10a52867@gmail.com> References: <20260724-k3-display-v1-0-f22a10a52867@gmail.com> In-Reply-To: <20260724-k3-display-v1-0-f22a10a52867@gmail.com> To: David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Yixun Lan , Vinod Koul , Neil Armstrong , Haylen Chu , Michael Turquette , Stephen Boyd , Brian Masney , Philipp Zabel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti Cc: 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, Cody Kang X-Mailer: b4 0.15.1 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. Signed-off-by: Cody Kang --- .../display/spacemit/spacemit,k3-inno-dp.yaml | 140 +++++++++++++++++++++ 1 file changed, 140 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 000000000000..865ea310daaf --- /dev/null +++ b/Documentation/devicetree/bindings/display/spacemit/spacemit,k3-inno-dp.yaml @@ -0,0 +1,140 @@ +# 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 + + 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"; + #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