mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 1/3] video: add simple, transparent, bridge implementation
Date: Thu, 20 Aug 2020 15:33:57 +0200	[thread overview]
Message-ID: <20200820133357.GA180086@ravnborg.org> (raw)
In-Reply-To: <514ba35c-a685-8cac-0472-5353415539de@pengutronix.de>

Hi Ahmad.

On Thu, Aug 20, 2020 at 02:24:56PM +0200, Ahmad Fatoum wrote:
> Hi Sam,
> 
> On 8/17/20 8:38 AM, Sam Ravnborg wrote:
> > Hi Ahmad.
> > 
> > On Mon, Aug 17, 2020 at 06:53:30AM +0200, Ahmad Fatoum wrote:
> >> This enables support for simple bridges, i.e. bridges that can be
> >> used without initialization.
> >>
> >> This is e.g. the case with bridges that have persistent configuration,
> >> the kernel has a full-fledged driver to configure the bridge and persist it.
> >>
> >> The bootloader then needs to do nothing more. Having such a transparent
> >> bridge allows reusing the kernel device tree without changing the graph
> >> specification.
> >>
> >> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> > 
> > Looking at this with my kernel hat on.
> > 
> > The kernel already have a simple-bridge.yaml binding, so another name
> > for the binding would be preferred - to avoid the name clash.
> > Naming it barebox,simple-bridge would be fine IMO.
> 
> Oh, didn't notice the rename. It looks like the kernel simple bridge
> does everything I want. When I work on this again, I'll look into
> using that binding instead. Thanks!
> 
> > And in the kernel we today only accept bindings in DT schema format
> > (.yaml). Maybe do the same in the barebox and convert this binding to DT
> > Schema format while at it.
> 
> having make dtbs and dtbs_check as barebox make targets is on my todo list.
> For now, I don't see the utility in having yaml bindings when they aren't
> easily tested.
You are coloring me confused here.

.txt based bindings are not testable and syntax errros needs to be
spotted manually. Futrthermore there is very little in description of
the syntax.

.yaml bindings are very simple to test - there is full infrastructure in
the kernel. And there is semi formal specification of the syntax. And
this is the syntax to be used for all new bindings.

Tooling is simple - barebox tooling is not needed:

cp foobar.yaml ${kernel}/Documentation/bindings/
make dt_binding_check DT_SCHEMA_FILES=foobar.yaml

I do not know what is the right approach in barebox, but as I wrote
above the arguments confused me.

	Sam

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2020-08-20 13:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-17  4:53 Ahmad Fatoum
2020-08-17  4:53 ` [PATCH 2/3] video: ipuv3: parallel-display: support of_graph binding Ahmad Fatoum
2020-08-20 12:47   ` Sascha Hauer
2020-08-17  4:53 ` [PATCH 3/3] video: simple-panel: don't error out on unhandled ioctl command Ahmad Fatoum
2020-08-17  6:38 ` [PATCH 1/3] video: add simple, transparent, bridge implementation Sam Ravnborg
2020-08-20 12:24   ` Ahmad Fatoum
2020-08-20 13:33     ` Sam Ravnborg [this message]
2020-08-21  8:14       ` Ahmad Fatoum

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=20200820133357.GA180086@ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.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