Re: [PATCH 0/2] fdt: translate address if #size-cells = <0>

From: Rob Herring
Date: Tue Apr 06 2021 - 10:06:47 EST


On Fri, Apr 2, 2021 at 2:21 PM Dario Binacchi <dariobin@xxxxxxxxx> wrote:
>
>
> The series comes from my commit in U-boot
> d64b9cdcd4 ("fdt: translate address if #size-cells = <0>")
> and from the subsequent exchange of emails at the end of which I was
> suggested to send the patch to the linux kernel
> (https://patchwork.ozlabs.org/project/uboot/patch/1614324949-61314-1-git-send-email-bmeng.cn@xxxxxxxxx/).

It's 'ranges' that determines translatable which is missing from the
DT. This should have not had a 0 size either though maybe we could
support that.

Does the DT have to be updated anyways for your spread spectrum support?

> The second patch of the series aims to demonstrate that the first one, which
> enables the translation of addresses also for crossings of DT nodes
> with #size-cells = <0>, it really works.

I don't seem to have the 2nd patch... In any case, you should handle
the special case for this platform in code for the platform.

Rob