From patchwork Tue Feb 22 04:19:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 12754517 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 AB368C433F5 for ; Tue, 22 Feb 2022 04:29:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229527AbiBVE3u (ORCPT ); Mon, 21 Feb 2022 23:29:50 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:60456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229669AbiBVE3s (ORCPT ); Mon, 21 Feb 2022 23:29:48 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A014595492; Mon, 21 Feb 2022 20:20:04 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 53331B81851; Tue, 22 Feb 2022 04:20:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BBF80C340E8; Tue, 22 Feb 2022 04:19:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645503602; bh=CcvsZzlYfjAVdZgQjSfceVXIzejH1aj6bfd/KlxTSpQ=; h=From:To:Cc:Subject:Date:From; b=cEEF6DN88a6250HKBEc2KwcmG/nJLKvbECiAFww9DL559bXorupF75/PfNKKelsH+ 6ImWofK2/rEFuh3kBe45S4axiyhVehODoOUM9EALBnEBeutUKLN6kHSOltybe8s+FR lYSznhZSdN4eOonXWkAtAkHYwBTSCixg/C378pN4pn0dzddOnuzF68tID7DpqfS+5B Tqm69DHfYvCV+EvWnkX3sJP4LpA0TqQFs4uprOZJtpHD1dPXEqB5U+xlA0/RgSVENX yAvolfP4mfOGOGRZJdL159gHHNVra/24txE3SSCvZiyUIVPpbjsaYSfBqlgW5FyjLO TcSDYjQGlhrfQ== From: Vinod Koul To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Vinod Koul , Andy Gross , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] arm64: dts: qcom: sdm845: Add gsi dma node Date: Tue, 22 Feb 2022 09:49:50 +0530 Message-Id: <20220222041951.1185186-1-vkoul@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This add the device node for gsi dma0 instances found in sdm845. Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 46 ++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index cfdeaa81f1bb..e8b50f3bf1bf 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -1125,6 +1125,29 @@ opp-128000000 { }; }; + gpi_dma0: dma-controller@800000 { + #dma-cells = <3>; + compatible = "qcom,sdm845-gpi-dma"; + reg = <0 0x00800000 0 0x60000>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + ; + dma-channels = <13>; + dma-channel-mask = <0xfa>; + iommus = <&apps_smmu 0x0016 0x0>; + status = "disabled"; + }; + qupv3_id_0: geniqup@8c0000 { compatible = "qcom,geni-se-qup"; reg = <0 0x008c0000 0 0x6000>; @@ -1544,6 +1567,29 @@ uart7: serial@89c000 { }; }; + gpi_dma1: dma-controller@0xa00000 { + #dma-cells = <3>; + compatible = "qcom,sdm845-gpi-dma"; + reg = <0 0x00a00000 0 0x60000>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + ; + dma-channels = <13>; + dma-channel-mask = <0xfa>; + iommus = <&apps_smmu 0x06d6 0x0>; + status = "disabled"; + }; + qupv3_id_1: geniqup@ac0000 { compatible = "qcom,geni-se-qup"; reg = <0 0x00ac0000 0 0x6000>; From patchwork Tue Feb 22 04:19:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 12754510 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 69D33C433F5 for ; Tue, 22 Feb 2022 04:27:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229647AbiBVE2I (ORCPT ); Mon, 21 Feb 2022 23:28:08 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:51696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229677AbiBVE2H (ORCPT ); Mon, 21 Feb 2022 23:28:07 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66FC0954A1; Mon, 21 Feb 2022 20:20:07 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 237D3B81857; Tue, 22 Feb 2022 04:20:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91B0DC340F1; Tue, 22 Feb 2022 04:20:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645503604; bh=Yk3t15d7qB57d1CQTA5Y98JTp4J0YhpdYKmqHnEHCVk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f5UWaTWsoY9/XBZ6tnCoHWexOLqcHHZGTVN5Q4ByX9ajLkoAhTPQTZawcwSOL5YTH njHEJhLK4dM7g5QsMWnXTSw5txmu7Q4rg9Fyu1i5QDFfM1mpXRnxxmVG13D7AMO1oz qrhEuQucspt6hAHIwiIo8lVNIARAszcXjgE83psiNxa/hDJFQegAYhPt47gQUHvEkI 7iCFU9jGqJEb6f8Q+7FTsfd6b7JiRZWbd2bV3zBO2NCD0OA95KxroB/0Qy41T/NZEA pTz91v0JFjygEG4nH6vjzapR+fQo3EcDeeXyq7mHLaUdEU/SOX96gYK1WsACahU/nB T5xWTQHlIHWuw== From: Vinod Koul To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Vinod Koul , Andy Gross , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] arm64: dts: qcom: sdm845: enable dma for spi Date: Tue, 22 Feb 2022 09:49:51 +0530 Message-Id: <20220222041951.1185186-2-vkoul@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220222041951.1185186-1-vkoul@kernel.org> References: <20220222041951.1185186-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add dmas property for spi@880000 and pinconf setting so that we can use dma for this spi device. Also, add iommu properties for qup and spi. Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 4 ++++ arch/arm64/boot/dts/qcom/sdm845.dtsi | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts index 13f80a0b6faa..119b15476a71 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts @@ -425,6 +425,10 @@ &gmu { status = "okay"; }; +&gpi_dma0 { + status = "okay"; +}; + &gpu { status = "okay"; zap-shader { diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index e8b50f3bf1bf..231f3020123b 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -1194,6 +1195,9 @@ spi0: spi@880000 { interconnects = <&aggre1_noc MASTER_QUP_1 0 &config_noc SLAVE_BLSP_1 0>, <&gladiator_noc MASTER_APPSS_PROC 0 &config_noc SLAVE_BLSP_1 0>; interconnect-names = "qup-core", "qup-config"; + dmas = <&gpi_dma0 0 0 QCOM_GPI_SPI>, + <&gpi_dma0 1 0 QCOM_GPI_SPI>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -2633,6 +2637,13 @@ pinmux { "gpio2", "gpio3"; function = "qup0"; }; + + config { + pins = "gpio0", "gpio1", + "gpio2", "gpio3"; + drive-strength = <6>; + bias-disable; + }; }; qup_spi1_default: qup-spi1-default {