From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
To: Luca Weiss <luca@lucaweiss.eu>,
cristian_ci <cristian_ci@protonmail.com>,
"robh@kernel.org" <robh@kernel.org>,
"krzk+dt@kernel.org" <krzk+dt@kernel.org>,
"conor+dt@kernel.org" <conor+dt@kernel.org>,
"andersson@kernel.org" <andersson@kernel.org>,
"konradybcio@kernel.org" <konradybcio@kernel.org>
Cc: "devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-arm-msm@vger.kernel.org" <linux-arm-msm@vger.kernel.org>,
"~postmarketos/upstreaming@lists.sr.ht"
<~postmarketos/upstreaming@lists.sr.ht>,
"phone-devel@vger.kernel.org" <phone-devel@vger.kernel.org>
Subject: Re: [PATCH 3/3] arm64: dts: qcom: msm8953: Add device tree for Billion Capture+
Date: Sat, 21 Jun 2025 12:11:00 +0200 [thread overview]
Message-ID: <f83cc435-7736-4003-b5b2-a84e2fe725c6@oss.qualcomm.com> (raw)
In-Reply-To: <ff29229c-5458-4500-9b11-8044a461cd36@lucaweiss.eu>
On 6/21/25 11:27 AM, Luca Weiss wrote:
> On 21-06-2025 9:07 a.m., cristian_ci wrote:
>> On Saturday, June 21st, 2025 at 00:20, Luca Weiss <luca@lucaweiss.eu> wrote:
>>
>>>> +
>>>> + reserved-memory {
>>>> + qseecom@0 {
>>>
>>>
>>> qseecom@84a00000 ?
>>>
>>>> + reg = <0x00 0x84a00000 0x00 0x1900000>;
>>>> + no-map;
>>>> + };
>>
>> Looking at downstream devicetree, every reserved-memory nodes with "removed-dma-pool" compatible has unit address 0. OTOH, kernel documentation [1] says:
>> " Following the generic-names recommended practice, node names should
>> reflect the purpose of the node (ie. "framebuffer" or "dma-pool").
>> Unit address (@<address>) should be appended to the name if the node
>> is a static allocation."
>>
>> In my case, downstream devicetree shows:
>>
>> other_ext_region@0 {
>> compatible = "removed-dma-pool";
>> no-map;
>> reg = <0x00 0x84a00000 0x00 0x1e00000>;
>> };
>>
>> which will be 'qseecom' reserved-memory node in mainline devicetree.
>>
>> OTOH, 'qseecom' node in downstream devicetree also shows:
>>
>> qseecom@84a00000 {
>> compatible = "qcom,qseecom";
>> reg = <0x84a00000 0x1900000>;
>> ...
>>
>> If you confirm what you suggest, 'qseecom' reserved-memory node will look like the following:
>>
>> qseecom_mem: qseecom@84a00000 {
>> reg = <0x0 0x84a00000 0x0 0x1900000>;
>> no-map;
>> };
>>
>> [1] https://www.kernel.org/doc/Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml
>
> The name (qseecom@84a00000) mostly does not matter at runtime, it's just a nice label we give it. The reg is the important bit that gets used in reserved-memory.
>
> But actually re-checking, I don't think your reserved-memory works right now, msm8953.dtsi has
>
> soc: soc@0 {
> #address-cells = <1>;
> #size-cells = <1>;
>
> which means that you should only have one value for address, and one for size, so "reg = <0x84a00000 0x1900000>;". This is different to most other Qualcomm arm64 SoCs.
reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;
Konrad
next prev parent reply other threads:[~2025-06-21 10:11 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-20 21:51 [PATCH 0/3] Add initial " Cristian Cozzolino via B4 Relay
2025-06-20 21:51 ` [PATCH 1/3] dt-bindings: vendor-prefixes: Add Flipkart Cristian Cozzolino via B4 Relay
2025-06-20 21:51 ` [PATCH 2/3] dt-bindings: arm: qcom: Add Billion Capture+ Cristian Cozzolino via B4 Relay
2025-06-20 21:51 ` [PATCH 3/3] arm64: dts: qcom: msm8953: Add device tree for " Cristian Cozzolino via B4 Relay
2025-06-20 22:20 ` Luca Weiss
2025-06-21 7:07 ` cristian_ci
2025-06-21 9:27 ` Luca Weiss
2025-06-21 10:11 ` Konrad Dybcio [this message]
2025-06-21 10:53 ` Luca Weiss
2025-06-21 11:34 ` Konrad Dybcio
2025-06-21 10:16 ` Konrad Dybcio
2025-06-21 19:31 ` cristian_ci
2025-06-23 10:11 ` Konrad Dybcio
2025-06-23 14:49 ` cristian_ci
2025-06-23 14:51 ` Konrad Dybcio
2025-06-23 2:39 ` [PATCH 0/3] Add initial " Rob Herring (Arm)
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=f83cc435-7736-4003-b5b2-a84e2fe725c6@oss.qualcomm.com \
--to=konrad.dybcio@oss.qualcomm.com \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=cristian_ci@protonmail.com \
--cc=devicetree@vger.kernel.org \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luca@lucaweiss.eu \
--cc=phone-devel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=~postmarketos/upstreaming@lists.sr.ht \
/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
all inboxes | Powered by JetHome®