* [PATCH v1 0/1] dt-bindings: fix simple-framebuffer warning
@ 2020-07-04 14:35 Sam Ravnborg
2020-07-04 14:35 ` [PATCH v1 1/1] dt-bindings: fix simple-framebuffer example Sam Ravnborg
2020-07-10 19:17 ` [PATCH v1 0/1] dt-bindings: fix simple-framebuffer warning Sam Ravnborg
0 siblings, 2 replies; 6+ messages in thread
From: Sam Ravnborg @ 2020-07-04 14:35 UTC (permalink / raw)
To: dri-devel, devicetree, Rob Herring
Cc: linux-fbdev, Bartlomiej Zolnierkiewicz, David Airlie,
Hans de Goede, Sam Ravnborg
Trivial fix for a long standing warning.
At least not fixed in drm-msc-next for now.
Just in case it was not fixed by someone else (Rob?) already.
Sam
Sam Ravnborg (1):
dt-bindings: fix simple-framebuffer example
.../bindings/display/simple-framebuffer.yaml | 45 +++++++++++-----------
1 file changed, 23 insertions(+), 22 deletions(-)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v1 1/1] dt-bindings: fix simple-framebuffer example
2020-07-04 14:35 [PATCH v1 0/1] dt-bindings: fix simple-framebuffer warning Sam Ravnborg
@ 2020-07-04 14:35 ` Sam Ravnborg
2020-07-04 21:03 ` Geert Uytterhoeven
2020-07-10 19:17 ` [PATCH v1 0/1] dt-bindings: fix simple-framebuffer warning Sam Ravnborg
1 sibling, 1 reply; 6+ messages in thread
From: Sam Ravnborg @ 2020-07-04 14:35 UTC (permalink / raw)
To: dri-devel, devicetree, Rob Herring
Cc: linux-fbdev, Bartlomiej Zolnierkiewicz, David Airlie,
Hans de Goede, Sam Ravnborg
Now that dt-extract-example gained support for using root nodes
in examples, update the example for the simple-frambuffer binding to use it.
This gives us a better example and kill a long standing warning:
simple-framebuffer.example.dts:23.16-39.11:
Warning (chosen_node_is_root): /example-0/chosen: chosen node must be at root node
Note: To get the update dt-extract-example execute:
pip3 install git+https://github.com/devicetree-org/dt-schema.git@master --upgrade
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Cc: linux-fbdev@vger.kernel.org
---
.../bindings/display/simple-framebuffer.yaml | 45 ++++++++++---------
1 file changed, 23 insertions(+), 22 deletions(-)
diff --git a/Documentation/devicetree/bindings/display/simple-framebuffer.yaml b/Documentation/devicetree/bindings/display/simple-framebuffer.yaml
index 1db608c9eef5..6f23ea14132b 100644
--- a/Documentation/devicetree/bindings/display/simple-framebuffer.yaml
+++ b/Documentation/devicetree/bindings/display/simple-framebuffer.yaml
@@ -152,28 +152,29 @@ additionalProperties: false
examples:
- |
- aliases {
- display0 = &lcdc0;
+ / {
+ compatible = "foo";
+ model = "foo";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ chosen {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ stdout-path = "display0";
+ framebuffer0: framebuffer@1d385000 {
+ compatible = "allwinner,simple-framebuffer", "simple-framebuffer";
+ allwinner,pipeline = "de_be0-lcd0";
+ reg = <0x1d385000 3840000>;
+ width = <1600>;
+ height = <1200>;
+ stride = <3200>;
+ format = "r5g6b5";
+ clocks = <&ahb_gates 36>, <&ahb_gates 43>, <&ahb_gates 44>;
+ lcd-supply = <®_dc1sw>;
+ display = <&lcdc0>;
+ };
+ };
};
- chosen {
- #address-cells = <1>;
- #size-cells = <1>;
- stdout-path = "display0";
- framebuffer0: framebuffer@1d385000 {
- compatible = "allwinner,simple-framebuffer", "simple-framebuffer";
- allwinner,pipeline = "de_be0-lcd0";
- reg = <0x1d385000 3840000>;
- width = <1600>;
- height = <1200>;
- stride = <3200>;
- format = "r5g6b5";
- clocks = <&ahb_gates 36>, <&ahb_gates 43>, <&ahb_gates 44>;
- lcd-supply = <®_dc1sw>;
- display = <&lcdc0>;
- };
- };
-
- lcdc0: lcdc { };
-
...
--
2.25.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v1 1/1] dt-bindings: fix simple-framebuffer example
2020-07-04 14:35 ` [PATCH v1 1/1] dt-bindings: fix simple-framebuffer example Sam Ravnborg
@ 2020-07-04 21:03 ` Geert Uytterhoeven
2020-07-04 21:26 ` Sam Ravnborg
0 siblings, 1 reply; 6+ messages in thread
From: Geert Uytterhoeven @ 2020-07-04 21:03 UTC (permalink / raw)
To: Sam Ravnborg
Cc: open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
Linux Fbdev development list, David Airlie,
Bartlomiej Zolnierkiewicz, DRI Development, Hans de Goede
Hi Sam,
Thanks for your patch!
On Sat, Jul 4, 2020 at 4:37 PM Sam Ravnborg <sam@ravnborg.org> wrote:
> Now that dt-extract-example gained support for using root nodes
> in examples, update the example for the simple-frambuffer binding to use it.
simple-framebuffer
> This gives us a better example and kill a long standing warning:
>
> simple-framebuffer.example.dts:23.16-39.11:
> Warning (chosen_node_is_root): /example-0/chosen: chosen node must be at root node
>
> Note: To get the update dt-extract-example execute:
> pip3 install git+https://github.com/devicetree-org/dt-schema.git@master --upgrade
>
> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
> --- a/Documentation/devicetree/bindings/display/simple-framebuffer.yaml
> +++ b/Documentation/devicetree/bindings/display/simple-framebuffer.yaml
> @@ -152,28 +152,29 @@ additionalProperties: false
>
> examples:
> - |
> - aliases {
> - display0 = &lcdc0;
Why drop the aliases example?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v1 1/1] dt-bindings: fix simple-framebuffer example
2020-07-04 21:03 ` Geert Uytterhoeven
@ 2020-07-04 21:26 ` Sam Ravnborg
2020-07-09 16:43 ` Rob Herring
0 siblings, 1 reply; 6+ messages in thread
From: Sam Ravnborg @ 2020-07-04 21:26 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
Linux Fbdev development list, David Airlie,
Bartlomiej Zolnierkiewicz, DRI Development, Hans de Goede
On Sat, Jul 04, 2020 at 11:03:21PM +0200, Geert Uytterhoeven wrote:
> Hi Sam,
>
> Thanks for your patch!
>
> On Sat, Jul 4, 2020 at 4:37 PM Sam Ravnborg <sam@ravnborg.org> wrote:
> > Now that dt-extract-example gained support for using root nodes
> > in examples, update the example for the simple-frambuffer binding to use it.
>
> simple-framebuffer
Thanks, will fix.
>
> > This gives us a better example and kill a long standing warning:
> >
> > simple-framebuffer.example.dts:23.16-39.11:
> > Warning (chosen_node_is_root): /example-0/chosen: chosen node must be at root node
> >
> > Note: To get the update dt-extract-example execute:
> > pip3 install git+https://github.com/devicetree-org/dt-schema.git@master --upgrade
> >
> > Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
>
> > --- a/Documentation/devicetree/bindings/display/simple-framebuffer.yaml
> > +++ b/Documentation/devicetree/bindings/display/simple-framebuffer.yaml
> > @@ -152,28 +152,29 @@ additionalProperties: false
> >
> > examples:
> > - |
> > - aliases {
> > - display0 = &lcdc0;
>
> Why drop the aliases example?
I did not see it had any value for the binding that the example shall
demonstrate. But it was not somthing I have given much thought of.
Sam
>
> Gr{oetje,eeting}s,
>
> Geert
>
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
>
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like that.
> -- Linus Torvalds
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v1 1/1] dt-bindings: fix simple-framebuffer example
2020-07-04 21:26 ` Sam Ravnborg
@ 2020-07-09 16:43 ` Rob Herring
0 siblings, 0 replies; 6+ messages in thread
From: Rob Herring @ 2020-07-09 16:43 UTC (permalink / raw)
To: Sam Ravnborg
Cc: open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
Linux Fbdev development list, Bartlomiej Zolnierkiewicz,
David Airlie, DRI Development, Hans de Goede, Geert Uytterhoeven
On Sat, Jul 4, 2020 at 3:26 PM Sam Ravnborg <sam@ravnborg.org> wrote:
>
> On Sat, Jul 04, 2020 at 11:03:21PM +0200, Geert Uytterhoeven wrote:
> > Hi Sam,
> >
> > Thanks for your patch!
> >
> > On Sat, Jul 4, 2020 at 4:37 PM Sam Ravnborg <sam@ravnborg.org> wrote:
> > > Now that dt-extract-example gained support for using root nodes
> > > in examples, update the example for the simple-frambuffer binding to use it.
> >
> > simple-framebuffer
> Thanks, will fix.
>
> >
> > > This gives us a better example and kill a long standing warning:
> > >
> > > simple-framebuffer.example.dts:23.16-39.11:
> > > Warning (chosen_node_is_root): /example-0/chosen: chosen node must be at root node
> > >
> > > Note: To get the update dt-extract-example execute:
> > > pip3 install git+https://github.com/devicetree-org/dt-schema.git@master --upgrade
> > >
> > > Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
> >
> > > --- a/Documentation/devicetree/bindings/display/simple-framebuffer.yaml
> > > +++ b/Documentation/devicetree/bindings/display/simple-framebuffer.yaml
> > > @@ -152,28 +152,29 @@ additionalProperties: false
> > >
> > > examples:
> > > - |
> > > - aliases {
> > > - display0 = &lcdc0;
> >
> > Why drop the aliases example?
> I did not see it had any value for the binding that the example shall
> demonstrate. But it was not somthing I have given much thought of.
I don't think anything actually supports 'display' aliases and it is
beyond the scope of this binding, so I'd drop.
stdout-path should be dropped too as it points to this.
Rob
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v1 0/1] dt-bindings: fix simple-framebuffer warning
2020-07-04 14:35 [PATCH v1 0/1] dt-bindings: fix simple-framebuffer warning Sam Ravnborg
2020-07-04 14:35 ` [PATCH v1 1/1] dt-bindings: fix simple-framebuffer example Sam Ravnborg
@ 2020-07-10 19:17 ` Sam Ravnborg
1 sibling, 0 replies; 6+ messages in thread
From: Sam Ravnborg @ 2020-07-10 19:17 UTC (permalink / raw)
To: dri-devel, devicetree, Rob Herring
Cc: David Airlie, Hans de Goede, linux-fbdev,
Bartlomiej Zolnierkiewicz
On Sat, Jul 04, 2020 at 04:35:43PM +0200, Sam Ravnborg wrote:
> Trivial fix for a long standing warning.
> At least not fixed in drm-msc-next for now.
> Just in case it was not fixed by someone else (Rob?) already.
>
> Sam
>
> Sam Ravnborg (1):
> dt-bindings: fix simple-framebuffer example
Applied to drm-misc-next.
Sam
>
> .../bindings/display/simple-framebuffer.yaml | 45 +++++++++++-----------
> 1 file changed, 23 insertions(+), 22 deletions(-)
>
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-07-10 19:17 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-04 14:35 [PATCH v1 0/1] dt-bindings: fix simple-framebuffer warning Sam Ravnborg
2020-07-04 14:35 ` [PATCH v1 1/1] dt-bindings: fix simple-framebuffer example Sam Ravnborg
2020-07-04 21:03 ` Geert Uytterhoeven
2020-07-04 21:26 ` Sam Ravnborg
2020-07-09 16:43 ` Rob Herring
2020-07-10 19:17 ` [PATCH v1 0/1] dt-bindings: fix simple-framebuffer warning Sam Ravnborg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).