From patchwork Mon Jan 11 15:16:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 360482 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp2968360jai; Mon, 11 Jan 2021 07:19:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJwYZLp8viRSMyj170Akq+6kPVxvJphXtWKiFGSuQgo9olkzHLvJxcMizbfvb2zKkX7jLdOB X-Received: by 2002:a50:f0dc:: with SMTP id a28mr14625621edm.291.1610378362027; Mon, 11 Jan 2021 07:19:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610378362; cv=none; d=google.com; s=arc-20160816; b=Dxfg+fRqEpgTj3opsKrmGkR98cdCKGv23JkZ0c43bfOFzBhKf0KEXxxl659E2UwhOd wvwU0VHONmdmbnUCV/ccn1stNh8FDZItx+WtoX8tXIeGUGGNh9Ny597Ib3jHV+pTnuFf +OgOpTozB2LpRYa9fjKGm8pv1R/ptxtdYy/xZcxZh6dq4JZawCtvKVzh6AFZfWmarR+s vPuuxmqd63zAwO8RYWJ9CuNdYQ4M+0oscejHeUaPwKfG/q+VUBa9dNYPrZSAmjNHHEBT 00We2nsFeVSjUirOYeioOjlnCRIzsrYcYxFeJjwZQL1yvjBqhuPtSw1OFP3FbYV8rjI5 92og== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=C4dHmtvMOOJuCNDbzHZUYm0M43/n7+NVtEQqUW4T3pM=; b=pvanskTvQ057zHaZouekicbu4OUJMbVE1Y4Lv5wqVq9ChtDR/nDzphh234l9KdqBop Zl2Gouyyptzhn+CR5tPNb03wsM6AgNC5hC0PFk1ZT0sly2arHVwUFZP9CilnfmKpHs5t 8OPRZfVigCWgQWVDlcK8CWtfizo8ahF/SgFcVcAJRsztF94GrwfZQmdjmr6iOV9qNi8d 4KpxwfnD/F4M4Mc8agYMsQtdte517IXKhns/Io2zmMAfGIRA8XDqgLlHjkt/UprOCpaA +zT3Dm4l2AuoV/4uGHOOoTdbThJj6FqHCZJeSY67hygLMxJe9gFGZyxXCLpq02h7QUtP ygiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pJoA99L7; spf=pass (google.com: domain of linux-i2c-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-i2c-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t21si6596995ejf.648.2021.01.11.07.19.21; Mon, 11 Jan 2021 07:19:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-i2c-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pJoA99L7; spf=pass (google.com: domain of linux-i2c-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-i2c-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388123AbhAKPSq (ORCPT + 2 others); Mon, 11 Jan 2021 10:18:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:54238 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387696AbhAKPSp (ORCPT ); Mon, 11 Jan 2021 10:18:45 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id E671B22795; Mon, 11 Jan 2021 15:17:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610378284; bh=1k/dDAFiDUWxTSUPTCRsR3hrQeA+upFSBkz9fiRxVQQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pJoA99L7F+nG63Gzc0eukLFTRCbMhaInrZAtZrdKHoRTuZk016tuk6fOKhl6bKhmR quDgj+P2ql+3OrLljdEUsNLZdxDDhQXY8bCpAptXRRvoIuEqfYTRYbRRWwhBzxcoTd HewvUnmhB5CRzAwsl/7hyqF2fghJn+4uuFWyL0earuxwK33V23l0XHavJdcSsrcrYf lS39IeFA/YfEqKuBLXTwC8JIE6uqv0R55FE6OtL85V7xVM25xOGbzzLXij4Gwzd/y3 wJWvQl3ngiD9zT1vmiGmUMYeloGNwt7OVLFtZHpRE3oNeZ+MtNmBgrOHStN1t7nhnv CpMI0HlSfAiag== From: Vinod Koul To: Bjorn Andersson , Mark Brown , Wolfram Sang Cc: linux-arm-msm@vger.kernel.org, Vinod Koul , Andy Gross , Matthias Kaehlcke , Douglas Anderson , Sumit Semwal , Amit Pundir , linux-spi@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 7/7] arm64: dts: qcom: sdm845: enable dma for spi Date: Mon, 11 Jan 2021 20:46:51 +0530 Message-Id: <20210111151651.1616813-8-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210111151651.1616813-1-vkoul@kernel.org> References: <20210111151651.1616813-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-i2c@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(+) -- 2.26.2 diff --git a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts index 7cc236575ee2..0653468f26ce 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts @@ -418,6 +418,10 @@ &gcc { ; }; +&gpi_dma0 { + status = "okay"; +}; + &gpu { zap-shader { memory-region = <&gpu_mem>; diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index c9a127bbd606..bd9952f54721 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 @@ -1183,6 +1184,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"; }; @@ -2622,6 +2626,13 @@ pinmux { "gpio2", "gpio3"; function = "qup0"; }; + + config { + pins = "gpio0", "gpio1", + "gpio2", "gpio3"; + drive-strength = <6>; + bias-disable; + }; }; qup_spi1_default: qup-spi1-default {