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

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?
Thanks,
- Kever

Hi Kever,
On 13 April 2017 at 04:11, Kever Yang kever.yang@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
participants (2)
-
Kever Yang
-
Simon Glass