[U-Boot] [bug report]dtoc output order for spl dts nodes

Simon Glass sjg at chromium.org
Sun Apr 23 00:44:49 UTC 2017


Hi Kever,

On 13 April 2017 at 04:11, Kever Yang <kever.yang at rock-chips.com> wrote:
> Hi Simon,
>
> When I try to update
> rk3399.dtsi(https://patchwork.ozlabs.org/patch/749901/), I get error report
> like this:
>
> spl/dts/dt-platdata.c:10:17: error: ‘dtv_clock_controller_at_ff760000’
> undeclared here (not in a function)
>    .clocks   = {{&dtv_clock_controller_at_ff760000, 78},
> {&dtv_clock_controller_at_ff760000, 240}},
>
> I believe this is caused by the order change of the sdhci node and
> dtv_clock_controller_at_ff760000 node, but I don't know why.
>
>
>
> Could you help to look at this issue and check if we can fix it with update
> at tools/dtoc/dtoc.py?

I found the problem - there was an assumption that a phandle node
referenced by another node would not itself have a phandle. I've sent
a few patches and copied you.

Regards,
Simon


More information about the U-Boot mailing list