From nobody Wed Sep 17 15:50:50 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9A056C46467 for ; Fri, 16 Dec 2022 23:16:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229735AbiLPXQC (ORCPT ); Fri, 16 Dec 2022 18:16:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229928AbiLPXPz (ORCPT ); Fri, 16 Dec 2022 18:15:55 -0500 Received: from relay07.th.seeweb.it (relay07.th.seeweb.it [5.144.164.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E02D75FC7; Fri, 16 Dec 2022 15:15:43 -0800 (PST) Received: from localhost.localdomain (94-209-172-39.cable.dynamic.v4.ziggo.nl [94.209.172.39]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 898DC3EFD3; Sat, 17 Dec 2022 00:15:41 +0100 (CET) From: Marijn Suijten To: phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Vinod Koul , Rob Herring , Krzysztof Kozlowski Cc: ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , Marijn Suijten , Lux Aliaga , Konrad Dybcio , Richard Acayan , linux-arm-msm@vger.kernel.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] dt-bindings: dma: gpi: Document SM6125 compatible Date: Sat, 17 Dec 2022 00:15:27 +0100 Message-Id: <20221216231528.1268447-2-marijn.suijten@somainline.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221216231528.1268447-1-marijn.suijten@somainline.org> References: <20221216231528.1268447-1-marijn.suijten@somainline.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Martin Botka Document compatibility for this GPI DMA controller on SM6125. Signed-off-by: Martin Botka [Marijn: Move compatible to the list with qcom,sdm845-gpi-dma] Signed-off-by: Marijn Suijten Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/dma/qcom,gpi.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/dma/qcom,gpi.yaml b/Document= ation/devicetree/bindings/dma/qcom,gpi.yaml index e7ba1c47a88e..6132f4661a29 100644 --- a/Documentation/devicetree/bindings/dma/qcom,gpi.yaml +++ b/Documentation/devicetree/bindings/dma/qcom,gpi.yaml @@ -33,6 +33,7 @@ properties: - items: - enum: - qcom,sdm670-gpi-dma + - qcom,sm6125-gpi-dma - qcom,sm8150-gpi-dma - qcom,sm8250-gpi-dma - const: qcom,sdm845-gpi-dma --=20 2.39.0 From nobody Wed Sep 17 15:50:50 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 88036C4332F for ; Fri, 16 Dec 2022 23:16:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229937AbiLPXQI (ORCPT ); Fri, 16 Dec 2022 18:16:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230012AbiLPXP4 (ORCPT ); Fri, 16 Dec 2022 18:15:56 -0500 Received: from relay08.th.seeweb.it (relay08.th.seeweb.it [IPv6:2001:4b7a:2000:18::169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE12CC76F for ; Fri, 16 Dec 2022 15:15:44 -0800 (PST) Received: from localhost.localdomain (94-209-172-39.cable.dynamic.v4.ziggo.nl [94.209.172.39]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 5FD0A3EEFB; Sat, 17 Dec 2022 00:15:42 +0100 (CET) From: Marijn Suijten To: phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Vinod Koul , Rob Herring , Krzysztof Kozlowski Cc: ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , Marijn Suijten , Lux Aliaga , Konrad Dybcio , Richard Acayan , linux-arm-msm@vger.kernel.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] arm64: dts: qcom: sm6125: Add GPI DMA nodes Date: Sat, 17 Dec 2022 00:15:28 +0100 Message-Id: <20221216231528.1268447-3-marijn.suijten@somainline.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221216231528.1268447-1-marijn.suijten@somainline.org> References: <20221216231528.1268447-1-marijn.suijten@somainline.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Martin Botka Add nodes for GPI DMA hosts on SM6125. Signed-off-by: Martin Botka [Marijn: reorder properties, use sdm845 fallback compatible, disable by default, use 3 instead of 5 dma cells] Signed-off-by: Marijn Suijten --- arch/arm64/boot/dts/qcom/sm6125.dtsi | 37 ++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6125.dtsi b/arch/arm64/boot/dts/qco= m/sm6125.dtsi index a205121ab4a7..abcd634c4f6d 100644 --- a/arch/arm64/boot/dts/qcom/sm6125.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6125.dtsi @@ -5,6 +5,7 @@ =20 #include #include +#include #include #include #include @@ -510,6 +511,42 @@ sdhc_2: mmc@4784000 { status =3D "disabled"; }; =20 + gpi_dma0: dma-controller@4a00000 { + compatible =3D "qcom,sm6125-gpi-dma", "qcom,sdm845-gpi-dma"; + reg =3D <0x04a00000 0x60000>; + interrupts =3D , + , + , + , + , + , + , + ; + dma-channels =3D <8>; + dma-channel-mask =3D <0x1f>; + iommus =3D <&apps_smmu 0x0136 0x0>; + #dma-cells =3D <3>; + status =3D "disabled"; + }; + + gpi_dma1: dma-controller@4c00000 { + compatible =3D "qcom,sm6125-gpi-dma", "qcom,sdm845-gpi-dma"; + reg =3D <0x04c00000 0x60000>; + interrupts =3D , + , + , + , + , + , + , + ; + dma-channels =3D <8>; + dma-channel-mask =3D <0x0f>; + iommus =3D <&apps_smmu 0x0156 0x0>; + #dma-cells =3D <3>; + status =3D "disabled"; + }; + usb3: usb@4ef8800 { compatible =3D "qcom,sm6125-dwc3", "qcom,dwc3"; reg =3D <0x04ef8800 0x400>; --=20 2.39.0