Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2457649pxb; Mon, 20 Sep 2021 23:26:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjT3BH1Rf/9rWyl1Lc57+/QSD9m7bgSnVdUhZGdjo/4k4phf8HTDfV0vYr93cJfvktAzSc X-Received: by 2002:a05:6638:2189:: with SMTP id s9mr4482220jaj.73.1632205599527; Mon, 20 Sep 2021 23:26:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632205599; cv=none; d=google.com; s=arc-20160816; b=WgUcuyTT3uWnpMbOHyDXntzkWHbXynyJo1rNOtTmETtbHcrDkGvsKgXTiCdi3AzQv4 +LFcKQZdNWaPzI6MohdU0nroDNL18mUYFBqEghfaRWxGUHuQaRXAsjrUrBaZoijQIxKi G+yqOezasRz3ojJnFl7r34lpii6P+1khUJueCdA6VG7IKBjSoOhig3SAIlmp9j9iNYPx KcmYEiji+oGbPiuUjwX7AmHkJO7m8aeukbCIelAIGPLUdz0sX6BfMOyNkfWVs9TQk3Gz 4ciSNLmp1To+/Sef1ukmsUs463EgEzmWupfkp4TfftN1RXZbZPc20RlwUX4Rmm7hZ5qG M07Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=r1MIh/PkldH2U+1tjZkQG+gLUFnytt67vnrcPlCRQvw=; b=0omq9beybfpqQuPaPWEJ4c6B7KB7LQxYUohQS5039b1Ih0F4Y6iD0+Zz7hwfMAbc0T 1p51kntDlsG3tkm4oSxZS0br19Tuy/oNwVBvrMWkrZNhkvJqMOSoXJEPHshiuKiCydUa UE2dYP6DfsVtL3jbP3Bl33s4+0vhhLBoo5DJN+xicHPI0RsxmIEL/HLfs0ssxBFSq3qU cI36nfyDmK2hM1Ms1rktTG6IsbGg2Q0a7haKhGDN63DfDNRiy9W7xxQ0orUdoTRAJt6D la90w9dEn+MBubgOmXpgne4CjKM6k82A3HB1GP+b6EbeyWV0QKaZA8Ird9zgP6GR6COg /cow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=Bqx1dfJ6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q25si9167484ios.80.2021.09.20.23.26.24; Mon, 20 Sep 2021 23:26:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@mg.codeaurora.org header.s=smtp header.b=Bqx1dfJ6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229788AbhIUG0M (ORCPT + 99 others); Tue, 21 Sep 2021 02:26:12 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:45573 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229823AbhIUG0L (ORCPT ); Tue, 21 Sep 2021 02:26:11 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1632205483; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=r1MIh/PkldH2U+1tjZkQG+gLUFnytt67vnrcPlCRQvw=; b=Bqx1dfJ64j6ICx/M2Xnb4fBqYUV4J2WTy+pxf53BUph0hxCeq0SrL0o0NhOuefSvjR2f+Ecs Nzw8axMlvlcMoSz21ERn0jpmfr2KGEr4Vm5Ywa0XN0uGRsF0uDAUl4BUqykWlNM3cfoAU/iM NoaFqbkBrQ86t934/tB7Iae20s4= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n03.prod.us-west-2.postgun.com with SMTP id 61497aa2b585cc7d2498a9fa (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 21 Sep 2021 06:24:33 GMT Sender: kathirav=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id CBA2AC4360D; Tue, 21 Sep 2021 06:24:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: kathirav) by smtp.codeaurora.org (Postfix) with ESMTPSA id D3792C4338F; Tue, 21 Sep 2021 06:24:32 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 21 Sep 2021 11:54:32 +0530 From: Kathiravan T To: Robert Marko Cc: Bjorn Andersson , agross@kernel.org, robh+dt@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, open list Subject: Re: [PATCH] arm64: dts: qcom: ipq8074: add SMEM support In-Reply-To: References: <20210902214708.1776690-1-robimarko@gmail.com> Message-ID: <632a7d28c23a8497d35ea009bfe89883@codeaurora.org> X-Sender: kathirav@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-09-20 14:55, Robert Marko wrote: > On Mon, 20 Sept 2021 at 04:52, Bjorn Andersson > wrote: >> >> On Thu 02 Sep 16:47 CDT 2021, Robert Marko wrote: >> >> > IPQ8074 uses SMEM like other modern QCA SoC-s, so since its already >> > supported by the kernel add the required DT nodes. >> > >> > Signed-off-by: Robert Marko >> >> Thanks for your patch Robert. >> >> > --- >> > arch/arm64/boot/dts/qcom/ipq8074.dtsi | 28 +++++++++++++++++++++++++++ >> > 1 file changed, 28 insertions(+) >> > >> > diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi >> > index a620ac0d0b19..83e9243046aa 100644 >> > --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi >> > +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi >> > @@ -82,6 +82,29 @@ scm { >> > }; >> > }; >> > >> > + reserved-memory { >> > + #address-cells = <2>; >> > + #size-cells = <2>; >> > + ranges; >> > + >> > + smem_region: memory@4ab00000 { >> > + no-map; >> > + reg = <0x0 0x4ab00000 0x0 0x00100000>; >> > + }; >> > + }; >> > + >> > + tcsr_mutex: hwlock { >> > + compatible = "qcom,tcsr-mutex"; >> > + syscon = <&tcsr_mutex_regs 0 0x80>; >> >> Since it's not okay to have a lone "syscon" and I didn't think it was >> worth coming up with a binding for the TCSR mutex "syscon" I rewrote >> the >> binding a while back. As such qcom,tcsr-mutex should now live in /soc >> directly. >> >> So can you please respin accordingly? > > Sure, can you just confirm that the: > reg = <0x01905000 0x8000>; > > Is the whole TCSR range as I don't have docs? Robert, TCSR_MUTEX block starts from 0x01905000 and has size 0x20000 (128KB) Thanks, Kathiravan T. > > Regards, > Robert >> >> Thanks, >> Bjorn >> >> > + #hwlock-cells = <1>; >> > + }; >> > + >> > + smem { >> > + compatible = "qcom,smem"; >> > + memory-region = <&smem_region>; >> > + hwlocks = <&tcsr_mutex 0>; >> > + }; >> > + >> > soc: soc { >> > #address-cells = <0x1>; >> > #size-cells = <0x1>; >> > @@ -293,6 +316,11 @@ gcc: gcc@1800000 { >> > #reset-cells = <0x1>; >> > }; >> > >> > + tcsr_mutex_regs: syscon@1905000 { >> > + compatible = "syscon"; >> > + reg = <0x01905000 0x8000>; >> > + }; >> > + >> > sdhc_1: sdhci@7824900 { >> > compatible = "qcom,sdhci-msm-v4"; >> > reg = <0x7824900 0x500>, <0x7824000 0x800>; >> > -- >> > 2.31.1 >> > -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation