[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <632a7d28c23a8497d35ea009bfe89883@codeaurora.org>
Date: Tue, 21 Sep 2021 11:54:32 +0530
From: Kathiravan T <kathirav@...eaurora.org>
To: Robert Marko <robimarko@...il.com>
Cc: Bjorn Andersson <bjorn.andersson@...aro.org>, agross@...nel.org,
robh+dt@...nel.org, linux-arm-msm@...r.kernel.org,
devicetree@...r.kernel.org,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] arm64: dts: qcom: ipq8074: add SMEM support
On 2021-09-20 14:55, Robert Marko wrote:
> On Mon, 20 Sept 2021 at 04:52, Bjorn Andersson
> <bjorn.andersson@...aro.org> 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 <robimarko@...il.com>
>>
>> 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@...00000 {
>> > + 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@...0000 {
>> > #reset-cells = <0x1>;
>> > };
>> >
>> > + tcsr_mutex_regs: syscon@...5000 {
>> > + compatible = "syscon";
>> > + reg = <0x01905000 0x8000>;
>> > + };
>> > +
>> > sdhc_1: sdhci@...4900 {
>> > 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
Powered by blists - more mailing lists