From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 8CEF0ACC for ; Wed, 18 Oct 2017 13:21:43 +0000 (UTC) Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 8E200496 for ; Wed, 18 Oct 2017 13:21:42 +0000 (UTC) Received: by mail-wr0-f194.google.com with SMTP id j14so5004726wre.8 for ; Wed, 18 Oct 2017 06:21:42 -0700 (PDT) MIME-Version: 1.0 Sender: geert.uytterhoeven@gmail.com In-Reply-To: <20171018131809.q5nccysb2j7lu4bn@piout.net> References: <20171017114823.58476908@bbrezillon> <1508257276.74236.38.camel@freebsd.org> <2D4E6B6D-8F07-46D0-BB36-D97916802893@linaro.org> <20171018131809.q5nccysb2j7lu4bn@piout.net> From: Geert Uytterhoeven Date: Wed, 18 Oct 2017 15:21:40 +0200 Message-ID: To: Alexandre Belloni Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Cc: "devicetree@vger.kernel.org" , Kumar Gala , "ksummit-discuss@lists.linuxfoundation.org" , Ian Lepore , "devicetree-spec@vger.kernel.org" , "Bird, Timothy" , Pantelis Antoniou Subject: Re: [Ksummit-discuss] Devicetree Workshop at Kernel Summit Prague (26 Oct 2017) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi Alexandre, On Wed, Oct 18, 2017 at 3:18 PM, Alexandre Belloni wrote: > On 18/10/2017 at 15:59:00 +0300, Pantelis Antoniou wrote: >> > On Oct 18, 2017, at 15:14 , Grant Likely w= rote: >> > On Tue, Oct 17, 2017 at 8:03 PM, Bird, Timothy wro= te: >> >>> -----Original Message----- >> >>> From Geert Uytterhoeven on Tuesday, October 17, 2017 10:24 AM >> >>> On Tue, Oct 17, 2017 at 7:02 PM, Kumar Gala = wrote: >> >>>> I think this also gets to having bindings described in a structured= way so >> >>> they can be utilized for validation of dts files. We are doing a li= ttle of this in >> >>> Zephyr since we are using a structured binding spec to generate code= from >> >>> .dts (since we don=E2=80=99t utilize a runtime dtb). >> >>> >> >>> So you are basically generating board files from .dts? >> >>> (closing the loop ;-) >> >> >> >> I think we ought to do this on Linux, as a size optimization. >> >> -- Tim >> >> >> >> P.S. I think I'll leave it ambiguous whether this was meant as a jok= e or not. :-) >> >> As crazy that sounds it is possible using the YAML bindings, i.e. C stru= cture definitions >> and fill-up from DT automatically. Whether this is a good idea it=E2=80= =99s another question :) > > But that doesn't work with any driver parsing custom properties (using > of_property_read_* and the likes). I would very much like to see what > are the boot time improvements when doing that ;) Unless you override of_property_read_*() to work on the dense C structures instead? 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. Bu= t when I'm talking to journalists I just say "programmer" or something like t= hat. -- Linus Torvalds From mboxrd@z Thu Jan 1 00:00:00 1970 From: Geert Uytterhoeven Subject: Re: [Ksummit-discuss] Devicetree Workshop at Kernel Summit Prague (26 Oct 2017) Date: Wed, 18 Oct 2017 15:21:40 +0200 Message-ID: References: <20171017114823.58476908@bbrezillon> <1508257276.74236.38.camel@freebsd.org> <2D4E6B6D-8F07-46D0-BB36-D97916802893@linaro.org> <20171018131809.q5nccysb2j7lu4bn@piout.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20171018131809.q5nccysb2j7lu4bn-m++hUPXGwpdeoWH0uzbU5w@public.gmane.org> Sender: devicetree-spec-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Alexandre Belloni Cc: Pantelis Antoniou , "devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Kumar Gala , "ksummit-discuss-cunTk1MwBs98uUxBSJOaYoYkZiVZrdSR2LY78lusg7I@public.gmane.org" , Ian Lepore , "devicetree-spec-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "Bird, Timothy" List-Id: devicetree@vger.kernel.org Hi Alexandre, On Wed, Oct 18, 2017 at 3:18 PM, Alexandre Belloni wrote: > On 18/10/2017 at 15:59:00 +0300, Pantelis Antoniou wrote: >> > On Oct 18, 2017, at 15:14 , Grant Likely w= rote: >> > On Tue, Oct 17, 2017 at 8:03 PM, Bird, Timothy wro= te: >> >>> -----Original Message----- >> >>> From Geert Uytterhoeven on Tuesday, October 17, 2017 10:24 AM >> >>> On Tue, Oct 17, 2017 at 7:02 PM, Kumar Gala = wrote: >> >>>> I think this also gets to having bindings described in a structured= way so >> >>> they can be utilized for validation of dts files. We are doing a li= ttle of this in >> >>> Zephyr since we are using a structured binding spec to generate code= from >> >>> .dts (since we don=E2=80=99t utilize a runtime dtb). >> >>> >> >>> So you are basically generating board files from .dts? >> >>> (closing the loop ;-) >> >> >> >> I think we ought to do this on Linux, as a size optimization. >> >> -- Tim >> >> >> >> P.S. I think I'll leave it ambiguous whether this was meant as a jok= e or not. :-) >> >> As crazy that sounds it is possible using the YAML bindings, i.e. C stru= cture definitions >> and fill-up from DT automatically. Whether this is a good idea it=E2=80= =99s another question :) > > But that doesn't work with any driver parsing custom properties (using > of_property_read_* and the likes). I would very much like to see what > are the boot time improvements when doing that ;) Unless you override of_property_read_*() to work on the dense C structures instead? 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. Bu= t when I'm talking to journalists I just say "programmer" or something like t= hat. -- Linus Torvalds