All of lore.kernel.org
 help / color / mirror / Atom feed
From: "André Przywara" <andre.przywara@arm.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] ARM: SPL: FIT: fix DTC warnings on FIT generation
Date: Tue, 24 Oct 2017 23:04:14 +0100	[thread overview]
Message-ID: <ee946622-a459-380c-bbfe-c4469d7015f8@arm.com> (raw)
In-Reply-To: <CAK7LNARaG26qpD=kJJdYbA5846FVp_L5Ov4=60yBzhj_x812-Q@mail.gmail.com>

On 24/10/17 03:31, Masahiro Yamada wrote:

Hi,

> 2017-10-24 11:03 GMT+09:00 Lokesh Vutla <lokeshvutla@ti.com>:
>>
>>
>> On Tuesday 24 October 2017 02:04 AM, Tom Rini wrote:
>>> On Mon, Oct 23, 2017 at 11:08:57AM +0530, Lokesh Vutla wrote:
>>>>
>>>>
>>>> On Tuesday 17 October 2017 02:43 AM, Tom Rini wrote:
>>>>> On Tue, Oct 17, 2017 at 02:29:14AM +0530, Jagan Teki wrote:
>>>>>> On Mon, Oct 9, 2017 at 10:15 AM, Simon Glass <sjg@chromium.org> wrote:
>>>>>>> Hi Andre,
>>>>>>>
>>>>>>> On 4 October 2017 at 17:24, Andre Przywara <andre.przywara@arm.com> wrote:
>>>>>>>> Newer versions of the device tree compiler (rightfully) complain about
>>>>>>>> mismatches between attributed node names (name@<addr>) and a missing
>>>>>>>> reg property in that node.
>>>>>>>> Adjust the FIT build script for 64-bit Allwinner boards to remove the
>>>>>>>> bogus addresses from the node names and avoid the warnings.
>>>>>>>>
>>>>>>>> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
>>>>>>>> ---
>>>>>>>>  board/sunxi/mksunxi_fit_atf.sh | 16 ++++++++--------
>>>>>>>>  1 file changed, 8 insertions(+), 8 deletions(-)
>>>>>>>
>>>>>>> It looks like we have this problem all over the place. The
>>>>>>> documentation in doc/uImage now seems to have this problem too.
>>>>>>>
>>>>>>> I wonder if instead we should add reg / #address-cells / #size-cells properties?
>>>>>>
>>>>>> If the update on dts, might be an another-overhead to maintain u-boot
>>>>>> dts wrt Linux dts sync.
>>>>>
>>>>> Anything that DTC is warning about in a dts that we get from the kernel,
>>>>> should be fixed in the kernel.  The kernel dtc is what we're using, and
>>>>> is/will/can also complain about it.
>>>>
>>>> Kernel suppress these warning by default[1] and enables these warnings
>>>> with W= compiler option. May be this should be included in u-boot as well?
>>>>
>>>> [1]
>>>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/scripts/Makefile.lib#n272
>>>
>>> We have slightly different logic for that today in
>>> scripts/Makefile.extrawarn, perhaps we need to re-sync?
>>>
>>
>> ahh you are right. I do not see these warning with the latest U-Boot.
>> But I still agree with the $patch as these warnings are meant to be
>> fixed at some point.
> 
> 
> Please use "-" instead of "@".
> 
> Update all the FIT examples.
> You may need to update some C files.

Yeah! "find ./ -type f | xargs -1 sed -i -e s/@/-/g" didn't give the
expected results, though :-D
But I bit the bullet and fixed every @1 sucker I could find, just need
some more time to make proper patches.

Cheers,
Andre.

> 
> 
> This is the conclusion of Device Tree community.
> See the following commit of Linux.
> 
> 
> 
> commit b21569cf1de925e0a42c9964bd7f520cb4a4d875
> Author: Viresh Kumar <viresh.kumar@linaro.org>
> Date:   Thu Jun 22 09:15:11 2017 +0530
> 
>     PM / OPP: Use - instead of @ for DT entries
> 
>     Compiling the DT file with W=1, DTC warns like follows:
> 
>     Warning (unit_address_vs_reg): Node /opp_table0/opp at 1000000000 has a
>     unit name, but no reg property
> 
>     Fix this by replacing '@' with '-' as the OPP nodes will never have a
>     "reg" property.
> 
>     Reported-by: Krzysztof Kozlowski <krzk@kernel.org>
>     Reported-by: Masahiro Yamada <yamada.masahiro@socionext.com>
>     Suggested-by: Mark Rutland <mark.rutland@arm.com>
>     Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
>     Acked-by: Rob Herring <robh@kernel.org>
>     Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
>     Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> 
> 
> 

  reply	other threads:[~2017-10-24 22:04 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-04 23:24 [U-Boot] [PATCH] ARM: SPL: FIT: fix DTC warnings on FIT generation Andre Przywara
2017-10-09  4:45 ` Simon Glass
2017-10-16 20:59   ` Jagan Teki
2017-10-16 21:13     ` Tom Rini
2017-10-16 21:20       ` Jagan Teki
2017-10-23  5:38       ` Lokesh Vutla
2017-10-23 20:34         ` Tom Rini
2017-10-24  2:03           ` Lokesh Vutla
2017-10-24  2:31             ` Masahiro Yamada
2017-10-24 22:04               ` André Przywara [this message]
2017-10-16 21:30     ` André Przywara
2017-10-22 14:34       ` Simon Glass

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=ee946622-a459-380c-bbfe-c4469d7015f8@arm.com \
    --to=andre.przywara@arm.com \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.