From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751277AbdJBHgQ (ORCPT ); Mon, 2 Oct 2017 03:36:16 -0400 Received: from mail-wm0-f46.google.com ([74.125.82.46]:47414 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750806AbdJBHgN (ORCPT ); Mon, 2 Oct 2017 03:36:13 -0400 X-Google-Smtp-Source: AOwi7QCSRCZge9DyKoAswYerds7cALmVA209nnXm2lh5+UrPsdTvnATgZ6sZ/v9qLxA0u+WVMBpWWg== Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [RFC] yamldt v0.5, now a DTS compiler too From: Pantelis Antoniou In-Reply-To: Date: Mon, 2 Oct 2017 10:36:09 +0300 Cc: Frank Rowand , Grant Likely , David Gibson , Tom Rini , Franklin S Cooper Jr , Matt Porter , Simon Glass , Phil Elwell , Geert Uytterhoeven , Marek Vasut , Devicetree Compiler , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Message-Id: <9E7F3A15-C60F-4CC9-9063-9DDAB0FCD451@konsulko.com> References: <1506628736.28192.9.camel@hp800z> To: Rob Herring X-Mailer: Apple Mail (2.3273) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by nfs id v927aK3N025033 > On Oct 2, 2017, at 01:00 , Rob Herring wrote: > > On Thu, Sep 28, 2017 at 2:58 PM, Pantelis Antoniou > wrote: >> Hello again, >> >> Significant progress has been made on yamldt and is now capable of >> not only generating yaml from DTS source but also compiling DTS sources >> and being almost fully compatible with DTC. > > Can you quantify "almost”? The —sort option and /include-bin/ doesn’t work yet. It’s a day or so to add them but there are no kernel dtb files that rely on them. > >> Compiling the kernel's DTBs using yamldt is as simple as using a >> DTC=yamldt. > > Good. > >> >> Error reporting is accurate and validation against a YAML based schema >> works as well. In a short while I will begin posting patches with >> fixes on bindings and DTS files in the kernel. > > What I would like to see is the schema format posted for review. > It is based on your binding schema you’ve posted but tweaked slightly to be parseable by the YAML subset that matches the DTS style. In particular bare sequences do not map to DT at all, so: - name: foo is changed to name: foo And so on. > I would also like to see the bindings for top-level compatible strings > (aka boards) as an example. That's something that's simple enough that > I'd think we could agree on a format and start moving towards defining > board bindings that way. > I’ll see what I can do. > Rob Regards — Pantelis