public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: "Heiko Stübner" <heiko@sntech.de>
Cc: "devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	Rob Herring <robh+dt@kernel.org>,
	linux-rockchip@lists.infradead.org
Subject: Re: arm/rockchip.yaml - many separate entries instead of enums
Date: Wed, 30 Mar 2022 09:16:50 +0200	[thread overview]
Message-ID: <97582126-1469-ce14-d552-5e2999472c5c@kernel.org> (raw)
In-Reply-To: <1681233.QkHrqEjB74@diego>

On 29/03/2022 22:54, Heiko Stübner wrote:
> Hey :-) ,
> 
> Am Dienstag, 29. März 2022, 19:05:24 CEST schrieb Krzysztof Kozlowski:
>> Hi Heiko,
>>
>> I found that Documentation/devicetree/bindings/arm/rockchip.yaml uses
>> pattern of one board per item in oneOf.
>>
>> This leads to quite big file, with many entries, although gives nice
>> description for each board.
> 
> that was the original intention in doing it this way, preserving the
> normal readability while adding machine readability to it :-)
> 
>> I find enum-based pattern, like FSL [1], much more readable and compact.
>> What do you think? I could re-organize the arm/rockchip.yaml, but I
>> don't want to mess with your preference.
> 
> I do like the current way as it does only contains one way of doing it.
> 
> As far as I can see, the fsl one has multiple types, like the one you
> pointed at, for a list of boards + one soc that works for the simple
> plethora of regular boards.
> 
> But also additional types that do it similarly to Rockchip like the 
> 	"i.MX6Q Advantech DMS-BA16 boards"
> directly below it.
> 
> 
> As we have both cases here as well, I really don't like this mix
> but instead really like to have only one approach, hence the
> one-entry-per-board-family we do in rockchip.yaml [2]
> 
> For human readability I really do consider having _one_ way
> of describing boards superior to mixing approaches and the
> automated parsing doesn't care, as long as the syntax is correct ;-)

OK, thanks for clarifying. I won't touch the order then. :)


Best regards,
Krzysztof

      reply	other threads:[~2022-03-30  7:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-29 17:05 arm/rockchip.yaml - many separate entries instead of enums Krzysztof Kozlowski
2022-03-29 20:54 ` Heiko Stübner
2022-03-30  7:16   ` Krzysztof Kozlowski [this message]

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=97582126-1469-ce14-d552-5e2999472c5c@kernel.org \
    --to=krzk@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=heiko@sntech.de \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=robh+dt@kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox