From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pz2-f1.google.com (mail-pz2-f1.google.com [74.125.228.1]) (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 83764317155 for ; Sat, 25 Jul 2026 05:12:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.228.1 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784956366; cv=none; b=TInI4Z9KgRKxu5/qk0CnJWvzoGEoOwAAegK0E9rcCfc66o9BNLt7cY4ULoUk2Q/YXn2v3QisKKd+ZOTSsiNKCldjNhvfu9/oiSqDrdP3nRxpmg/6BVC1TZnJ0mb5RuV/k1bMvA35hCUgFmDGLS32Z+QhnycidIMvdLWQaQQKPCc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784956366; c=relaxed/simple; bh=e2HtZIpFAeEzBhd8fEr6izzVbI4e6Mu4fEJXjQ+ijhI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=p7qm78Ot6iFv5Eh3BE8eTrD7Yg2hHFqdCcdp41Kur+rTuFkpW+m4TQUrX43sT97zXjPfPcrz4Q1xMShfNR/T7sNtfmGvMeyMk6H+JfIfhbCZvAyf4kOw74ncx7aERs99t3y2gO1F5FxII+MUIB9Ebs1S1ydU5Ua2T2Z1ISnyUDE= 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=RUCAAXxk; arc=none smtp.client-ip=74.125.228.1 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="RUCAAXxk" Received: by mail-pz2-f1.google.com with SMTP id 41be03b00d2f7-cbb818e57c9so579242a12.0 for ; Fri, 24 Jul 2026 22:12:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784956365; x=1785561165; 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=Ycy+Qjco0x+8uNmV749kGmpBtIQZVaDIzcG2OSIxUnc=; b=RUCAAXxkGAiXrT0gC29dDfMprb3kRgddLOkVt2PH4P3/wmcS/PeFr4FoL8+uAmjr4b WFzIjE4JHB27KT00T4AUkrIH63Y2nR5sa74UT74K7ERRB6gRcNB0gtjyCfeFglOquQix cZoWJR/rrOu6meMVSrgYeZ944ZuwvlOXe8hSRSoiyUD4pkaoZBA9fhq/2uepF6G+0WIt ZF/tY4e7HgY7aKyttszNAXcK3PLEWea0Ge0OUAs97qmxUvprHIZr67adCy24wqqEI4tz ES7sRmh2mj5lk+Os9mZOC6yyJmfzACe/GnfxQIfAGrGXg7a9QHKCWqkLJgzwDPwOoyAq 2N3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784956365; x=1785561165; 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=Ycy+Qjco0x+8uNmV749kGmpBtIQZVaDIzcG2OSIxUnc=; b=c9LDWiv/w/SNiOvMxqqOv/UltCkp77qXhbntPL5eGY2kVJ6rkiCIaq6Z/OLZiRBNX4 +m5LnkAj0MqGChLgUqJAJTWQIyVwRmQHOkd6ZyqsbgTyzofuWyRavaNNNM5FzCnXClhI pafh/VXBPVpGETJizn/0Tf6FAgBIzVH6Dgr0Nzpe4EDOrtIhFdGy3zKSBkfb6Kj5ktso 8/vA5Ja8CpSWUT9erR8dyTc+T/4fgXYuCH9HH8CzxKCH6SFcv21rXky2V9if07efmvY8 P0lo+MJE8uJUp4TyCauuan99ft3xRhneG665qCpG0Ae+6X/uw9Ga1dK6wyXfsjVWroXo F3VQ== X-Forwarded-Encrypted: i=1; AHgh+RpNIGAwazrDKg0SPjDqvKE2DvJZ07EpQCFKkeof6e5R0M9xrZdw3xA2iZwaGQHqOzD+Lbj7Hb2B1L7CyDE=@vger.kernel.org X-Gm-Message-State: AOJu0YybgXXdjETaLcfwhjCyXUbz9uqMSD2RgAUv+YFz+Qgyoc8vusWc ogm4nkZj7pc4QyLflb57j7Fw7LCeDZopcx3ify9B3cMwxu2smATelXtrhuSLTSQWHMN31w== X-Gm-Gg: AR+sD122zXzUgZx77FJQQm5SgYFqP3EmQnglQHXRvn7z1H3OPSj9NrG/8fgMZ3SsgDa ALo8XxnxdfXl1VBOoAcU9JfEsupwU1DvNcelhXHdhd9c75M/Z+DHgcGjbHHC/43H7QuH7Lbtc5P Vlq6VzFq+ol2Z7u/TkGQW8QH75I1JKzwM4f38L8URTdYIwdp0uRLQSlgFsIuBe0uEPPenTqXbko xsjLTyPMeqy/mfAm2Tc9MPDGW+AtmNVSi5ySuAtbsBVm/ajWPbVTl+tyyZWxSjPg0run7jDu69Z M3CKrXcYmNu3TUWZ4MzaAu1DlENbzQD7RBdu+U80ezt56x9Wd3/cy+eC6CmDOGN3OiFPdt6i86r 1HEYUXpVrmzllPG4BtQl663Ur8h74dfFrCmPATLeVmXu3eOrshFS5mBw= X-Received: by 2002:a05:6a00:2d9b:b0:848:2a71:a48a with SMTP id d2e1a72fcca58-84e593ff0ccmr644911b3a.13.1784949438724; Fri, 24 Jul 2026 20:17:18 -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.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jul 2026 20:17:18 -0700 (PDT) From: Cody Kang Date: Fri, 24 Jul 2026 23:16:33 -0400 Subject: [PATCH 01/17] dt-bindings: display: spacemit: add K3 Saturn DPU 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-1-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 Document the Saturn display processing unit found on the SpacemiT K3 SoC. The K3 instantiates two of them, one per display path. They share a compatible: an instance differs only in which register window, interrupt, clock and reset lines it takes. Signed-off-by: Cody Kang --- .../display/spacemit/spacemit,k3-saturn-dpu.yaml | 132 +++++++++++++++++++++ 1 file changed, 132 insertions(+) diff --git a/Documentation/devicetree/bindings/display/spacemit/spacemit,k3-saturn-dpu.yaml b/Documentation/devicetree/bindings/display/spacemit/spacemit,k3-saturn-dpu.yaml new file mode 100644 index 000000000000..97ea9da4b68e --- /dev/null +++ b/Documentation/devicetree/bindings/display/spacemit/spacemit,k3-saturn-dpu.yaml @@ -0,0 +1,132 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/spacemit/spacemit,k3-saturn-dpu.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SpacemiT K3 Saturn Display Processing Unit + +maintainers: + - Cody Kang + +description: + The Saturn DPU is the display processing unit of the SpacemiT K3 SoC. It + composes the display planes and drives the timing for one display path. Its + output goes to a DisplayPort or embedded DisplayPort controller. The K3 has + two instances. + +properties: + compatible: + const: spacemit,k3-saturn-dpu + + reg: + maxItems: 1 + + interrupts: + items: + - description: Online (live display) compose path. + - description: Offline (writeback) compose path. + + interrupt-names: + items: + - const: online + - const: offline + + clocks: + items: + - description: Pixel clock. + - description: Memory clock for the compose pipeline. + - description: AXI bus clock. + - description: DSI escape clock. + - description: DSC clock. + + clock-names: + items: + - const: pxclk + - const: mclk + - const: aclk + - const: escclk + - const: dscclk + + resets: + items: + - description: Memory clock domain. + - description: LCD domain, shared with the downstream controller. + - description: DSI escape clock domain. + - description: AXI clock domain. + - description: DSC domain. + + reset-names: + items: + - const: mclk + - const: lcd + - const: esc + - const: aclk + - const: dsc + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: Video output to the DisplayPort or eDP controller. + + required: + - port@0 + +required: + - compatible + - reg + - interrupts + - interrupt-names + - clocks + - clock-names + - resets + - reset-names + - ports + +additionalProperties: false + +examples: + - | + #include + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + dpu@c0340000 { + compatible = "spacemit,k3-saturn-dpu"; + reg = <0x0 0xc0340000 0x0 0x54000>; + interrupts = <90 IRQ_TYPE_LEVEL_HIGH>, + <89 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "online", "offline"; + clocks = <&syscon_apmu CLK_APMU_LCD_PXCLK>, + <&syscon_apmu CLK_APMU_LCD_MCLK>, + <&syscon_apmu CLK_APMU_DPU_ACLK>, + <&syscon_apmu CLK_APMU_DSI_ESC>, + <&syscon_apmu CLK_APMU_LCD_DSC>; + clock-names = "pxclk", "mclk", "aclk", "escclk", "dscclk"; + resets = <&syscon_apmu RESET_APMU_LCD_MCLK>, + <&syscon_apmu RESET_APMU_LCD>, + <&syscon_apmu RESET_APMU_DSI_ESC>, + <&syscon_apmu RESET_APMU_DPU_ACLK>, + <&syscon_apmu RESET_APMU_LCD_DSCCLK>; + reset-names = "mclk", "lcd", "esc", "aclk", "dsc"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + endpoint { + remote-endpoint = <&edp0_in>; + }; + }; + }; + }; + }; -- 2.43.0