All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dmitry Osipenko <digetx@gmail.com>
To: Thierry Reding <thierry.reding@gmail.com>,
	Rob Herring <robh+dt@kernel.org>
Cc: Thierry Reding <treding@nvidia.com>,
	Jonathan Hunter <jonathanh@nvidia.com>,
	David Heidelberg <david@ixit.cz>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-tegra@vger.kernel.org
Subject: Re: [PATCH v1 2/3] ARM: tegra: Name clock and regulator nodes according to DT-schema
Date: Sun, 24 Oct 2021 22:08:31 +0300	[thread overview]
Message-ID: <9e42d42c-2fe0-3d74-3cd8-2d9e0a1356b2@gmail.com> (raw)
In-Reply-To: <YVtqlt4m63WuBHGM@orome.fritz.box>

04.10.2021 23:56, Thierry Reding пишет:
>> From: David Heidelberg <david@ixit.cz>
>>
>> Name clocks and regulators according to DT-schema to fix warnings such as:
>>
>> arch/arm/boot/dts/tegra20-acer-a500-picasso.dt.yaml: /: clock@0: 'anyOf' conditional failed, one must be fixed:
>>  	'reg' is a required property
>>  	'ranges' is a required property
>>  	From schema: /home/runner/.local/lib/python3.8/site-packages/dtschema/schemas/root-node.yaml
>>
>> Signed-off-by: David Heidelberg <david@ixit.cz>
>> ---
>>  arch/arm/boot/dts/tegra114-dalmore.dts        | 16 +++++------
>>  arch/arm/boot/dts/tegra114-roth.dts           | 14 +++++-----
>>  arch/arm/boot/dts/tegra114-tn7.dts            |  8 +++---
>>  arch/arm/boot/dts/tegra124-jetson-tk1.dts     | 26 ++++++++---------
>>  arch/arm/boot/dts/tegra124-nyan.dtsi          | 28 +++++++++----------
>>  arch/arm/boot/dts/tegra124-venice2.dts        | 28 +++++++++----------
>>  .../boot/dts/tegra20-acer-a500-picasso.dts    | 12 ++++----
>>  arch/arm/boot/dts/tegra20-harmony.dts         | 16 +++++------
>>  arch/arm/boot/dts/tegra20-medcom-wide.dts     |  8 +++---
>>  arch/arm/boot/dts/tegra20-paz00.dts           |  6 ++--
>>  arch/arm/boot/dts/tegra20-plutux.dts          |  8 +++---
>>  arch/arm/boot/dts/tegra20-seaboard.dts        | 16 +++++------
>>  arch/arm/boot/dts/tegra20-tamonten.dtsi       |  4 +--
>>  arch/arm/boot/dts/tegra20-tec.dts             |  8 +++---
>>  arch/arm/boot/dts/tegra20-trimslice.dts       | 12 ++++----
>>  arch/arm/boot/dts/tegra20-ventana.dts         | 12 ++++----
>>  .../tegra30-asus-nexus7-grouper-common.dtsi   | 10 +++----
>>  ...egra30-asus-nexus7-grouper-maxim-pmic.dtsi |  4 +--
>>  .../tegra30-asus-nexus7-grouper-ti-pmic.dtsi  |  2 +-
>>  arch/arm/boot/dts/tegra30-beaver.dts          | 20 ++++++-------
>>  arch/arm/boot/dts/tegra30-cardhu-a02.dts      | 12 ++++----
>>  arch/arm/boot/dts/tegra30-cardhu-a04.dts      | 14 +++++-----
>>  arch/arm/boot/dts/tegra30-cardhu.dtsi         | 28 +++++++++----------
>>  23 files changed, 156 insertions(+), 156 deletions(-)
> I'm not sure about this one. Last time I talked to Rob about this, he
> seemed to suggest that reintroducing the top-level clocks and regulators
> nodes was preferable to doing these renamed.
> 
> Rob, which way do we want to decide this? If we do want to reintroduce
> the clocks and regulators top-level "bus" nodes, we probably need the
> tooling to learn to accept that, because I /think/ the reason why they
> were originally dropped a while ago was because the tooling complained
> about the "bus" nodes not being named "bus" (I think that was because
> they traditionally have had "simple-bus" in their compatible and hence
> the "simple-bus" schema was applied along with the schema for the node
> name.
> 
> So I think we have a couple of options here:
> 
>   * Make it so that these nodes no longer need the "simple-bus"
>     compatible string: this would need new code to parse these nodes
>     and instantiate platform device for them like "simple-bus" would
>     do.
> 
>   * Relax the rules for the "simple-bus" compatible string. It looks
>     like this would be the simplest, because we could just extend the
>     pattern in the "simple-bus" schema. There's a slight catch, though,
>     because we'd also need to allow "#size-cells = <0>" for these. And
>     maybe also make "ranges" not required because it doesn't make sense
>     for #size-cells = <0>.
> 
>   * Create a new compatible string specifically for these. That would be
>     similar to the first option, except that it's perhaps a bit more
>     formal. We could basically create a separate schema for this type of
>     bus, so that simple-bus could remain as-is.
> 
> Perhaps there's also yet another option that I haven't thought of that's
> better than the above.
> 
> Quoting in full below for you to get a better picture of what kinds of
> changes we're talking about here.

Could you please explain what's the point in having a top-level node?

It's also not clear how it will help fixing the warning messages since
reg property still should be required.

If there is no good point, then let's rename nodes and move on.

  reply	other threads:[~2021-10-24 19:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-26 23:37 [PATCH v1 0/3] Tegra ARM32 device-tree improvements for 5.16 Dmitry Osipenko
2021-09-26 23:37 ` [PATCH v1 1/3] ARM: tegra: acer-a500: Correct compatible of ak8975 magnetometer Dmitry Osipenko
2021-10-04 20:40   ` Thierry Reding
2021-09-26 23:37 ` [PATCH v1 2/3] ARM: tegra: Name clock and regulator nodes according to DT-schema Dmitry Osipenko
2021-10-04 20:56   ` Thierry Reding
2021-10-24 19:08     ` Dmitry Osipenko [this message]
2021-09-26 23:37 ` [PATCH v1 3/3] ARM: tegra: Update Broadcom Bluetooth device-tree nodes Dmitry Osipenko
2021-10-04 20:41   ` Thierry Reding

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=9e42d42c-2fe0-3d74-3cd8-2d9e0a1356b2@gmail.com \
    --to=digetx@gmail.com \
    --cc=david@ixit.cz \
    --cc=devicetree@vger.kernel.org \
    --cc=jonathanh@nvidia.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=thierry.reding@gmail.com \
    --cc=treding@nvidia.com \
    /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.