Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp845839ybb; Sat, 28 Mar 2020 11:32:23 -0700 (PDT) X-Google-Smtp-Source: ADFU+vse36HuCJIT2W3s4pWJ0ztwJe+OpRZg2zWsyQY7qVvdTvaPFwJgs+cQ4c8FTXGJ2EzS2TgT X-Received: by 2002:a05:6830:19e2:: with SMTP id t2mr3269183ott.97.1585420342880; Sat, 28 Mar 2020 11:32:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585420342; cv=none; d=google.com; s=arc-20160816; b=ryV5TMEM77tDDVz2I8ZZ85DtdYpCkFN+ABu/ouiQo4FCVMc1asB9NFQ9eE8qztHMR5 f+vi9JX/CRPid+iEaK/8dA2Mp3wWwOS1RsL/xqN+uDzNFui/0r67Qr3MFRuSslOA/xHH msT175MSMJ2oTYnJNHe65pYHKO+ynXro0+WV93HnR4NMYKC2y4B4pMM7krbaC4E9JReN 7/UtKlpXn4EeXu1qQMY5++EKaVDmujK+IYfLI6fdqP8S2Lfbt7vZUzuXQvyVDkSMTg77 aRQk+t9tVwDehcicYRoYxoxtIk6zAPcF4QfQIbeK+InoKKsf8FZH2yZpBFZ67oGgmyYT jB0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=+mVck/pOJv55KYF3ZzMyTGWgs0RFVKHx1LKbGb8RbSs=; b=h3T8x6RN4QrSct8fgw/v+5IV19AQ4SwLFSPjQAdVyGZiBr+j2IjYfmKbPt9H+Bnw/4 96P9WbGLzWXBPXR8GGsn/YHXFzzddPE2ErOEbj8tIN3qfK731t8qNhypglOCMCyHH7q8 wb5p2Fcir9oXqBB9uflgON0SfSjV5P0+CpXhAMy6OaV83/VKnoTffWD9aEWkC90X4LXj kcPOSvf4gmm56Hw1XD0vFGQMz4OHru6cETN9EJ2jnenOu0w5yHZEhes6cshz/RtAHdXS rDlH17SAo/h6Qpi0xpG5KxmAG8mmLHCn9pf370+De7r55lb0hgqTj2fo/QVexntQGVEI w8eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bj4M59RK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g9si4433002otn.100.2020.03.28.11.32.09; Sat, 28 Mar 2020 11:32:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bj4M59RK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727386AbgC1SbB (ORCPT + 99 others); Sat, 28 Mar 2020 14:31:01 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:44206 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727176AbgC1SbB (ORCPT ); Sat, 28 Mar 2020 14:31:01 -0400 Received: by mail-pf1-f195.google.com with SMTP id b72so6279556pfb.11 for ; Sat, 28 Mar 2020 11:30:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=+mVck/pOJv55KYF3ZzMyTGWgs0RFVKHx1LKbGb8RbSs=; b=bj4M59RKtnKKUaVQsWvI4u4nhhvyXqBegUEMmfvGKXIBT/mika1RpNwaWwGdABjLzu PeSQC2Yl7lqu+IJJl8x6vzppsEG8QEMztXC0LIAjp1v9FU2NPx+XdMCJw+jmd61ds2Nl iqzOUHjLA2yTibgvFUBRLUYtzTKkbmCHs/u57EqL332uswGIi+iTTmNCOAotm68VVlbd VfRuNm949tV4tyVoq+ouNy1HbzLKzDE4rM6qHY5mS7PKnK64W3GrNA8geQzMiOk/BupI aUBhsFQsxGhS7vjn9/PCWhe1j2VzrBOCgHUk1bGK9XJgJGBK9TyvwyNN31JojGWzluUB YKEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=+mVck/pOJv55KYF3ZzMyTGWgs0RFVKHx1LKbGb8RbSs=; b=JSnXsp2Tqj94mhtlBFdLAywnBWF52qKfnEt7FwDTrkDIR8UKsnPaT1PG0RaRvm6FRa 1JTV6tpEuYvvqbqxSbhUY85RiXVeQoAjh8ke0N4eVpE7XVhuliu6nA3UWRnK73XBjgld q4jLVFCddTDwEHtCoLagMkfGZRBPktW2SZr+iPM0Y4E8ABPMzowmgZuJjSEVYnJCyVau G5Erv9eRamUo2g5dPWw0EHGpXz/Q3pcO8oB4eNOU/treEQigRJWQqwIX6Ei7tRERUyI0 1pXDdZZ3DTDTj7oKfRWz74PU5Sx/JKLhzyT1PPAtKxHFJq6yafvsavyCmh8omtvGmbc7 szKw== X-Gm-Message-State: ANhLgQ2O5Zu1c35pG9f4VNcwdHR+A7ITfHFmh29sPxW5XKCR48eBEMBB 7tvr65Lal6xXo/l/iUZBKLQmSw== X-Received: by 2002:a63:7f05:: with SMTP id a5mr5336763pgd.327.1585420258811; Sat, 28 Mar 2020 11:30:58 -0700 (PDT) Received: from yoga (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id 79sm6691688pfz.23.2020.03.28.11.30.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Mar 2020 11:30:58 -0700 (PDT) Date: Sat, 28 Mar 2020 11:30:55 -0700 From: Bjorn Andersson To: pillair@codeaurora.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH v7] arm64: dts: qcom: sc7180: Add WCN3990 WLAN module device node Message-ID: <20200328183055.GA663905@yoga> References: <1585219723-28323-1-git-send-email-pillair@codeaurora.org> <20200327230025.GJ5063@builder> <000101d604f8$afc48220$0f4d8660$@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000101d604f8$afc48220$0f4d8660$@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat 28 Mar 05:01 PDT 2020, pillair@codeaurora.org wrote: > Hi Bjorn, > Comments inline. > > > > -----Original Message----- > > From: Bjorn Andersson > > Sent: Saturday, March 28, 2020 4:30 AM > > To: Rakesh Pillai > > Cc: devicetree@vger.kernel.org; linux-arm-kernel@lists.infradead.org; > linux- > > kernel@vger.kernel.org; linux-arm-msm@vger.kernel.org > > Subject: Re: [PATCH v7] arm64: dts: qcom: sc7180: Add WCN3990 WLAN > > module device node > > > > On Thu 26 Mar 03:48 PDT 2020, Rakesh Pillai wrote: > > > > > Add device node for the ath10k SNOC platform driver probe > > > and add resources required for WCN3990 on sc7180 soc. > > > > > > Signed-off-by: Rakesh Pillai > > > --- > > > > > > Depends on https://patchwork.kernel.org/patch/11455345/ > > > The above patch adds the dt-bindings for wifi-firmware > > > subnode > > > --- > > > arch/arm64/boot/dts/qcom/sc7180-idp.dts | 8 ++++++++ > > > arch/arm64/boot/dts/qcom/sc7180.dtsi | 27 > > +++++++++++++++++++++++++++ > > > 2 files changed, 35 insertions(+) > > > > > > diff --git a/arch/arm64/boot/dts/qcom/sc7180-idp.dts > > b/arch/arm64/boot/dts/qcom/sc7180-idp.dts > > > index 043c9b9..a6168a4 100644 > > > --- a/arch/arm64/boot/dts/qcom/sc7180-idp.dts > > > +++ b/arch/arm64/boot/dts/qcom/sc7180-idp.dts > > > @@ -327,6 +327,14 @@ > > > }; > > > }; > > > > > > +&wifi { > > > + status = "okay"; > > > + qcom,msa-fixed-perm; > > > + wifi-firmware { > > > + iommus = <&apps_smmu 0xc2 0x1>; > > > > How is sc7180 different from sdm845, where the iommus property goes > > directly in the &wifi node? > > Sc7180 IDP is a target without TrustZone support and also with S2 IOMMU > enabled. > Since in Trustzone based targets, the iommu SID configuration was done by > TZ, there was nothing required to be done by driver. > But in non-TZ based targets, the IOMMU mappings need to be done by the > driver. > Since this is the mapping of the firmware memory and to keep it different > from the driver memory access, a different device has been created for > firmware and these SIDs are configured. > I see, I missed the fact that 0xc0:1 is used in the &wifi node itself. So to confirm, we have streams 0xc0 and 0xc1 for data pipes and 0xc2 and 0xc3 for some form of firmware access? And in the normal Qualcomm design implementation the 0c2/0xc3 stream mapping is setup by TZ, and hidden from Linux using the SMMU virtualisation? Would have been nice to have some better mechanism for describing multi-connected hardware block, than to sprinkle dummy nodes all over the DT... Regards, Bjorn > The below ath10k series brings-in this support. > https://patchwork.kernel.org/project/linux-wireless/list/?series=261367&stat > e=* > > Thanks, > Rakesh Pillai. > > > > > Regards, > > Bjorn > > > > > + }; > > > +}; > > > + > > > /* PINCTRL - additions to nodes defined in sc7180.dtsi */ > > > > > > &qspi_clk { > > > diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi > > b/arch/arm64/boot/dts/qcom/sc7180.dtsi > > > index 998f101..2745128 100644 > > > --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi > > > +++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi > > > @@ -83,6 +83,11 @@ > > > reg = <0 0x8f600000 0 0x500000>; > > > no-map; > > > }; > > > + > > > + wlan_fw_mem: memory@94104000 { > > > + reg = <0 0x94104000 0 0x200000>; > > > + no-map; > > > + }; > > > }; > > > > > > cpus { > > > @@ -835,6 +840,28 @@ > > > }; > > > }; > > > > > > + wifi: wifi@18800000 { > > > + compatible = "qcom,wcn3990-wifi"; > > > + reg = <0 0x18800000 0 0x800000>; > > > + reg-names = "membase"; > > > + iommus = <&apps_smmu 0xc0 0x1>; > > > + interrupts = > > > + > */ >, > > > + > */ >, > > > + > */ >, > > > + > */ >, > > > + > */ >, > > > + > */ >, > > > + > */ >, > > > + > */ >, > > > + > */ >, > > > + > */ >, > > > + > */>, > > > + > */>; > > > + memory-region = <&wlan_fw_mem>; > > > + status = "disabled"; > > > + }; > > > + > > > config_noc: interconnect@1500000 { > > > compatible = "qcom,sc7180-config-noc"; > > > reg = <0 0x01500000 0 0x28000>; > > > -- > > > 2.7.4