devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mukesh Ojha <quic_mojha@quicinc.com>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
	Komal Bajaj <quic_kbajaj@quicinc.com>,
	Andy Gross <agross@kernel.org>,
	Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konrad.dybcio@linaro.org>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Conor Dooley <conor+dt@kernel.org>,
	<linux-arm-msm@vger.kernel.org>, <devicetree@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>, <quic_nainmeht@quicinc.com>
Subject: Re: [RFC PATCH 2/2] arm64: dts: qcom: qcm6490: Add qcm6490 idp and rb3 board
Date: Mon, 6 Nov 2023 20:15:57 +0530	[thread overview]
Message-ID: <d5492e4d-6c70-7d6c-3f5b-a0b5d9266ab0@quicinc.com> (raw)
In-Reply-To: <CAA8EJpq89g9EeyKcogU+Mt9ie6Bk-rmgi=GqyycYBm_291i1Bw@mail.gmail.com>



On 11/6/2023 5:24 PM, Dmitry Baryshkov wrote:
> On Mon, 6 Nov 2023 at 13:41, Mukesh Ojha <quic_mojha@quicinc.com> wrote:
>>
>>
>> On 11/5/2023 6:38 PM, Krzysztof Kozlowski wrote:
>>> On 03/11/2023 23:22, Dmitry Baryshkov wrote:
>>>> On Fri, 3 Nov 2023 at 20:49, Komal Bajaj <quic_kbajaj@quicinc.com> wrote:
>>>>>
>>>>> Add qcm6490 devicetree file for QCM6490 IDP and QCM6490 RB3
>>>>> platform. QCM6490 is derived from SC7280 meant for various
>>>>> form factor including IoT.
>>>>>
>>>>> Supported features are, as of now:
>>>>> * Debug UART
>>>>> * eMMC (only in IDP)
>>>>> * USB
>>>>>
>>>
>>> ...
>>>
>>>>> +
>>>>> diff --git a/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi b/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi
>>>>> new file mode 100644
>>>>> index 000000000000..01adc97789d0
>>>>> --- /dev/null
>>>>> +++ b/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi
>>>>
>>>> I have mixed feelings towards this file. Usually we add such 'common'
>>>> files only for the phone platforms where most of the devices are
>>>> common.
>>>> Do you expect that IDP and RB3 will have a lot of common code other
>>>> than these regulator settings?
>>>
>>> I agree here. What exactly is common in the real hardware between IDP
>>> and RB3? Commit msg does not explain it, so I do not see enough
>>> justification for common file. Just because some DTS looks similar for
>>> different hardware does not mean you should creat common file.
>>
>> @Dmitry/@Krzysztof,
>>
>> Thank you for reviewing the RFC, we wanted to continue the
>> suggestion/discussion given on [1] , where we discussed that this
>> qcm6490 is going to be targeted for IOT segment and will have different
>> memory map and it is going to use some of co-processors like adsp/cdsp
>> which chrome does not use.
>>
>> So to your question what is common between RB3 and IDP, mostly they will
>> share common memory map(similar to [2]) and regulator settings and both
>> will use adsp/cdsp etc., we will be posting the memory map changes as
>> well in coming weeks once this RFC is acked.
> 
> Is the memory map going to be the same as the one used on Fairphone5?

No, Fairphone5 looks to be using chrome memory map and i suggested
here to move them into sc7280.dtsi

https://lore.kernel.org/lkml/d5d53346-ca3b-986a-e104-d87c37115b62@quicinc.com/

> 
> Are ADSP and CDSP physically present on sc7280?

Yes, they are present but not used.

> 
> I think that your goal should be to:
> - populate missing device in sc7280.dtsi
> - maybe add qcm6490.dtsi which defines SoC-level common data (e.g. memory map)
> - push the rest to board files.

Agree to all of the point.
We started with the same thought at[3] but it got lost in discussion
due to its differentiation with mobile counter part(fairphone) which
follow chrome memory map and hence we came up with qcm6490-iot-common.
Do you think, qcm6490-iot.dtsi should be good ?

[3]
https://lore.kernel.org/linux-arm-msm/20231003175456.14774-3-quic_kbajaj@quicinc.com/

-Mukesh
> 
> I don't think that putting regulators to the common file is a good
> idea. Platforms will further change and limit voltage limits and
> modes, so they usually go to the board file.
> 
>>
>>
>> Thanks,
>> Mukesh
>>
>> [1]
>> https://lore.kernel.org/linux-arm-msm/d97ebf74-ad03-86d6-b826-b57be209b9e2@quicinc.com/
>>
>> [2]
>> commit 90c856602e0346ce9ff234062e86a198d71fa723
>> Author: Douglas Anderson <dianders@chromium.org>
>> Date:   Tue Jan 25 14:44:20 2022 -0800
>>
>>       arm64: dts: qcom: sc7280: Factor out Chrome common fragment
>>
>>       This factors out a device tree fragment from some sc7280 device
>>       trees. It represents the device tree bits that should be included for
>>       "Chrome" based sc7280 boards. On these boards the bootloader (Coreboot
>>       + Depthcharge) configures things slightly different than the
>>       bootloader that Qualcomm provides. The modem firmware on these boards
>>       also works differently than on other Qulacomm products and thus the
>>       reserved memory map needs to be adjusted.
>>
>>       NOTES:
>>       - This is _not_ quite a no-op change. The "herobrine" and "idp"
>>         fragments here were different and it looks like someone simply
>>         forgot to update the herobrine version. This updates a few numbers
>>         to match IDP. This will also cause the `pmk8350_pon` to be disabled
>>         on idp/crd, which I belive is a correct change.
>>       - At the moment this assumes LTE skus. Once it's clearer how WiFi SKUs
>>         will work (how much of the memory map they can reclaim) we may add
>>         an extra fragment that will rejigger one way or the other.
>>
>>       Signed-off-by: Douglas Anderson <dianders@chromium.org>
>>       Reviewed-by: Stephen Boyd <swboyd@chromium.org>
>>       Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
>>       Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
>>       Link:
>> https://lore.kernel.org/r/20220125144316.v2.3.Iac012fa8d727be46448d47027a1813ea716423ce@changeid
>>
>>
>>>
>>> Best regards,
>>> Krzysztof
>>>
> 
> 
> 

  reply	other threads:[~2023-11-06 14:46 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-03 18:46 [RFC PATCH 0/2] Add support for qcm6490 idp and rb3 board Komal Bajaj
2023-11-03 18:46 ` [RFC PATCH 1/2] dt-bindings: arm: qcom: Add QCM6490 IDP and RB3 board Komal Bajaj
2023-11-05 13:06   ` Krzysztof Kozlowski
2023-11-03 18:46 ` [RFC PATCH 2/2] arm64: dts: qcom: qcm6490: Add qcm6490 idp and rb3 board Komal Bajaj
2023-11-03 22:22   ` Dmitry Baryshkov
2023-11-05 13:08     ` Krzysztof Kozlowski
2023-11-06 11:41       ` Mukesh Ojha
2023-11-06 11:54         ` Dmitry Baryshkov
2023-11-06 14:45           ` Mukesh Ojha [this message]
2023-11-06 22:32             ` Dmitry Baryshkov
2023-11-07  8:10               ` Mukesh Ojha
2023-11-13 15:51                 ` Luca Weiss
2023-11-14 12:48                   ` Mukesh Ojha
2023-11-14 12:53                     ` Dmitry Baryshkov
2023-11-06 13:05         ` Krzysztof Kozlowski
2023-11-06 14:51           ` Mukesh Ojha
     [not found]     ` <4d8c094f-07b0-2b38-4680-145eb2d7c4f5@quicinc.com>
2023-11-17  9:33       ` Dmitry Baryshkov
2023-11-17 12:43         ` Komal Bajaj
2023-11-04 12:32   ` Konrad Dybcio
2023-11-17 12:49     ` Komal Bajaj

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d5492e4d-6c70-7d6c-3f5b-a0b5d9266ab0@quicinc.com \
    --to=quic_mojha@quicinc.com \
    --cc=agross@kernel.org \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.baryshkov@linaro.org \
    --cc=konrad.dybcio@linaro.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=krzysztof.kozlowski@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=quic_kbajaj@quicinc.com \
    --cc=quic_nainmeht@quicinc.com \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).