Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp57802pxb; Tue, 12 Apr 2022 16:43:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhpqjKiLqyuJrtPvynQqpsUm24gxvuCH1s4BdqgFmZFKfdPCve9TLshFV8nZjDVZajvDuv X-Received: by 2002:a17:907:1b1d:b0:6e4:b5fc:e8e6 with SMTP id mp29-20020a1709071b1d00b006e4b5fce8e6mr35786834ejc.215.1649807039604; Tue, 12 Apr 2022 16:43:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649807039; cv=none; d=google.com; s=arc-20160816; b=Ab54qKxlQIZqmkUhULG9sLMky/tcBd/+VpzMfMBopomMe1eMIFxiJZCYHTHjNVQV2P sJmjwgH7ircxK+PTDmQfUcAYRQ2S4A2voSY0f948IpUgRWRn7kdFLzBlSSqUrtBqhcxt TR9NADhWOKcUCZvnAUpPKXaXAMuJB+W+aCXb5CaMYWLDl5CJkOyFUWL/8XnBItc2UpHS kx7pGDctOOmEkvcaDJTpVpID+oWseS4jvxXSKG91ttrJX3OgKzYr8M6lMoCuXnsExKvo iQD37QTZ2Vl4BoclK+ginHpCBTGdxaHUcNZJagOIVMddlVRDKeHgCuQ1fanXp5tMyPpe Z9Qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=3XOuGcH/wzb0FYgSoZ3ZLszM8ApqvXfZibiV9sZrmLo=; b=MpGbEafDzJ1BQsNL7g/QBdiymFcoJdGGIIsLqoSS37bpFjgCjAR9meCByWL1fawqzW fhIHavjUfVCGaNhJQbYGlQCzlRwDsQeNWbKXqzBOszXFyJrsHElSa569/Vv/VFIKZSYf AgkhkeURWP8egS1iQiMAjABE03pk0AVZhK0AzuS9PUXnnRf9p0A4wpZenYZyLyXRRh7d xTOJjUiISt3Jz70TfYHtH0itBAsoaWaeHtW4kbtlPfFcw0oNWGO2nfU8eTeeEgcqHXR4 xZuTuYuQ4mbSE5weOqbx8kq/CdHKXMhj6OnzTk1g64qX0hXmNVh27zkdSIrvDMraCE7b D35g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BrZWrhT7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t1-20020aa7db01000000b0041d87f10a79si432714eds.416.2022.04.12.16.43.35; Tue, 12 Apr 2022 16:43:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BrZWrhT7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230474AbiDLXcH (ORCPT + 99 others); Tue, 12 Apr 2022 19:32:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230301AbiDLXbx (ORCPT ); Tue, 12 Apr 2022 19:31:53 -0400 Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com [IPv6:2607:f8b0:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3DFE8F98C for ; Tue, 12 Apr 2022 15:17:28 -0700 (PDT) Received: by mail-ot1-x32a.google.com with SMTP id y3-20020a056830070300b005cd9c4d03feso14302435ots.3 for ; Tue, 12 Apr 2022 15:17:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3XOuGcH/wzb0FYgSoZ3ZLszM8ApqvXfZibiV9sZrmLo=; b=BrZWrhT7dRr+kE0t7Xi6nrxSpqH0LQmZdssV43z4SicclN8Tn3VifKSVry7NmQ2EJ3 okiLxssg4prKI4KsFj+QRm3s30JBs1Jv6GS9t3CiXsdBAXQu2pakxq2SF8Viyatsdg5R hMQu5Ncy4zmG1rhEMyPLkUZk1NLX0w0s3zyh1t6pXBjw9OB7qg5EJhXTr72bXwOvNOF/ xSMB+iJS4dDoP/ID8V/rCNt1TRuCngozIwyoPaBralj/QsWvex4U2smIyrvgsvfTh+bS liBk3feRPaxU66p3pND9Akue7OjhgdL51f6JFFk1PtB//c2yfdzffk8u0fd5rORWxR95 KafA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3XOuGcH/wzb0FYgSoZ3ZLszM8ApqvXfZibiV9sZrmLo=; b=Ia0kFnXWe/xtQfgKJpwKyOQKU/vi0cMtdIsIqv8Ytfpct36Nm5JKb823n29Wmv1gX9 G5O6DLRdL5XYgFqmySgL1C6GH8HygUyBcF8f1zoyrGKendLTi6XeYgb7tF2ypKcj1yoq juqeEcssWjwpM+kuhGJKTSIXfJe9LZQmrgSC98DT+bjiKY/q+Dogfl3bF2HXRHVo0AC5 3/ok73m/YkuOGnpfZPX1UlVc/CcXHL2bzQXOc9B3nl2TyoqkkEKLD/6biWlAcm8tkIY8 HxBeJ2WXKx2jDTiVYZ44yjy77K89iDEmTh24zVvRW3FXhtVibbbWZSzlZnni8P9N7ZgC +1aA== X-Gm-Message-State: AOAM531DmFgKibTGShauqDUhCLV/NaD7kZ4PuNAtZOyd05Lu9cLyNiDy jzezN/t7k41HtDVFpBijYxV+y8kbqhATgE49 X-Received: by 2002:a05:6830:1605:b0:5c9:4fde:ba63 with SMTP id g5-20020a056830160500b005c94fdeba63mr13729362otr.84.1649800163433; Tue, 12 Apr 2022 14:49:23 -0700 (PDT) Received: from ripper.. ([2600:1700:a0:3dc8:205:1bff:fec0:b9b3]) by smtp.gmail.com with ESMTPSA id k10-20020a4abd8a000000b00324907b406fsm12809059oop.21.2022.04.12.14.49.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 14:49:22 -0700 (PDT) From: Bjorn Andersson To: Bjorn Andersson , Vinod Koul Cc: Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] arm64: dts: qcom: sm8350: Define GPI DMA engines Date: Tue, 12 Apr 2022 14:51:35 -0700 Message-Id: <20220412215137.2385831-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Qualcomm SM8350 has three GPI DMA engines, add definitions for these. Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 73 ++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index a68231634da2..7e585d9e4c68 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -3,6 +3,7 @@ * Copyright (c) 2020, Linaro Limited */ +#include #include #include #include @@ -678,6 +679,28 @@ opp-120000000 { }; }; + gpi_dma2: dma-controller@800000 { + compatible = "qcom,sm8350-gpi-dma"; + reg = <0 0x00800000 0 0x60000>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + ; + dma-channels = <12>; + dma-channel-mask = <0xff>; + iommus = <&apps_smmu 0x5f6 0x0>; + #dma-cells = <3>; + status = "disabled"; + }; + qupv3_id_2: geniqup@8c0000 { compatible = "qcom,geni-se-qup"; reg = <0x0 0x008c0000 0x0 0x6000>; @@ -843,12 +866,37 @@ spi19: spi@894000 { interrupts = ; power-domains = <&rpmhpd SM8350_CX>; operating-points-v2 = <&qup_opp_table_100mhz>; + dmas = <&gpi_dma2 0 5 QCOM_GPI_SPI>, + <&gpi_dma2 1 5 QCOM_GPI_SPI>; + dma-names = "tx", "rx"; #address-cells = <1>; #size-cells = <0>; status = "disabled"; }; }; + gpi_dma0: dma-controller@900000 { + compatible = "qcom,sm8350-gpi-dma"; + reg = <0 0x09800000 0 0x60000>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + ; + dma-channels = <12>; + dma-channel-mask = <0x7e>; + iommus = <&apps_smmu 0x5b6 0x0>; + #dma-cells = <3>; + status = "disabled"; + }; + qupv3_id_0: geniqup@9c0000 { compatible = "qcom,geni-se-qup"; reg = <0x0 0x009c0000 0x0 0x6000>; @@ -1081,12 +1129,37 @@ spi7: spi@99c000 { interrupts = ; power-domains = <&rpmhpd SM8350_CX>; operating-points-v2 = <&qup_opp_table_100mhz>; + dmas = <&gpi_dma0 0 7 QCOM_GPI_SPI>, + <&gpi_dma0 1 7 QCOM_GPI_SPI>; + dma-names = "tx", "rx"; #address-cells = <1>; #size-cells = <0>; status = "disabled"; }; }; + gpi_dma1: dma-controller@a00000 { + compatible = "qcom,sm8350-gpi-dma"; + reg = <0 0x00a00000 0 0x60000>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + ; + dma-channels = <12>; + dma-channel-mask = <0xff>; + iommus = <&apps_smmu 0x56 0x0>; + #dma-cells = <3>; + status = "disabled"; + }; + qupv3_id_1: geniqup@ac0000 { compatible = "qcom,geni-se-qup"; reg = <0x0 0x00ac0000 0x0 0x6000>; -- 2.35.1