From: Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
To: Sam Protsenko <semen.protsenko@linaro.org>
Cc: Krzysztof Kozlowski <krzk@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Alim Akhtar <alim.akhtar@samsung.com>,
Rob Herring <robh@kernel.org>, Conor Dooley <conor+dt@kernel.org>,
linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1 1/2] dt-bindings: soc: samsung: usi: allow 64-bit address space
Date: Thu, 24 Jul 2025 10:24:10 +0300 [thread overview]
Message-ID: <f5022fe7-c3f6-4bea-bb0c-98dfe461d555@gmail.com> (raw)
In-Reply-To: <CAPLW+4kPN65uX0tyG_F-4u5FQpPnwX9y6F1zrobq5UyVbks+-w@mail.gmail.com>
On 7/24/25 06:02, Sam Protsenko wrote:
> On Wed, Jul 23, 2025 at 3:21 AM Ivaylo Ivanov
> <ivo.ivanov.ivanov1@gmail.com> wrote:
>> On 7/23/25 11:15, Krzysztof Kozlowski wrote:
>>> On Tue, Jul 22, 2025 at 03:10:36PM +0300, Ivaylo Ivanov wrote:
>>>> Some device trees, like the exynos2200 one, configure the root node
>>>> with #address-cells and #size-cells set to 2. However, the usi binding
>>>> expects 32 bit address space only. Allow these determining properties to
>>> So if USI expects 32 bit, then why do we allow 64?
>>>
>>> Switching this to 2 means you use 64-bit addressing for children
>> I don't, but the main point was to avoid defining ranges for every single usi
>> node, because they are a lot.
>>
> If all MMIO addresses in your SoC are 32-bit (they probably are), I
> think it'd be neater to just make the entire "soc" bus 32-bit (so both
> address and size cells = <1>), and map it to the root node's address
> space with "ranges", like this:
>
> soc: soc@0 {
> compatible = "simple-bus";
> #address-cells = <1>;
> #size-cells = <1>;
> ranges = <0x0 0x0 0x0 0x20000000>;
> ...
>
> That's how it's done in exynos850 and gs101 dts for example. This way
> you could drop all those extra "reg = <0x0 ...>" in the child nodes,
> also avoid declaring "ranges" arrays in each USI node (just "ranges;"
> would be enough), and this patch won't be needed.
Yeah, but then we'll have one more DT patch that is way bigger, changing
every single "reg =" in /soc. And the device tree for the SoC is merged already.
I do think that the neatest option is to avoid that and set an enum in the
binding, as otherwise we'd be making a stylistic change that has no
impact on functionality.
If we want the device tree to model hardware identically to how it is, then
we'd want to define IPs per bus (which I cannot really do on my own, I don't
even have TRMs).
I'll leave it up to Krzysztof to decide what is best.
Best regards,
Ivaylo
> Maybe I'm missing
> some details though?
>
>> Best regards,
>> Ivaylo
>>
>>> and
>>> allowing DMA for >32 bit. This should be the true reason - what is the
>>> address space and DMA range for children?
>>>
>>> Best regards,
>>> Krzysztof
>>>
next prev parent reply other threads:[~2025-07-24 7:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-22 12:10 [PATCH v1 1/2] dt-bindings: soc: samsung: usi: allow 64-bit address space Ivaylo Ivanov
2025-07-22 12:10 ` [PATCH v1 2/2] dt-bindings: soc: samsung: usi: add samsung,exynos2200-usi compatible Ivaylo Ivanov
2025-07-24 2:24 ` Sam Protsenko
2025-07-23 8:15 ` [PATCH v1 1/2] dt-bindings: soc: samsung: usi: allow 64-bit address space Krzysztof Kozlowski
2025-07-23 8:21 ` Ivaylo Ivanov
2025-07-24 3:02 ` Sam Protsenko
2025-07-24 7:24 ` Ivaylo Ivanov [this message]
2025-07-24 6:56 ` Krzysztof Kozlowski
2025-07-24 7:02 ` Ivaylo Ivanov
2025-07-25 7:37 ` Krzysztof Kozlowski
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=f5022fe7-c3f6-4bea-bb0c-98dfe461d555@gmail.com \
--to=ivo.ivanov.ivanov1@gmail.com \
--cc=alim.akhtar@samsung.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=robh@kernel.org \
--cc=semen.protsenko@linaro.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).