Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3813428imm; Mon, 8 Oct 2018 09:55:22 -0700 (PDT) X-Google-Smtp-Source: ACcGV60OM7mvsZvOC4KWMp6WAhtzrIYHisEGD8IPo3HJjiaygLFXojxwFh6mdcQRSH3+lmX0Phee X-Received: by 2002:a63:8742:: with SMTP id i63-v6mr21772462pge.27.1539017722518; Mon, 08 Oct 2018 09:55:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539017722; cv=none; d=google.com; s=arc-20160816; b=pJ8sm1BqcxYwS/t/0EpSnaGmH1iTQfggZYjQZaBgpnBh6YI+DFp1Jc4TojDN9H2e8G v4oX60en1gnATTQEFNfFUWliH7ccyMMOWI0kCPlgn2v21KmAU2S6dRgkpnfydmIFX7md Lo7M2B4onPshHjK/Gws25DZ3xjAH2n7Zc71SgdnFyq2i1lqIBSMA2rfQFYKXM+btiiGM 3m8ZY05YmasBMyY2sSUa46yFhCCA81DmnhwxePTd/PEsRYiwBl3+fpdDPJIvZmQqB2F1 azulTmvoqN7U8tQVlJyzF4YZRgJnx7/veTJBHwqerEK9XrJABebX+7h54tMyWxPNhs7e lvqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=u4pIpxdM82qCwCdWj1z0TklFowGQE7n25n+f/8AW1NU=; b=orKyKPrI38i/SisLO9zZNiCamweKUUY2h4+diAAW4EGYNmes3QqF/he/8+kL9zKShG WJxyrPjSRu3323LfbhTd58nycI1NHePg2ZFqd20hLPeKvIgO1LgJrjgzr7K8lJDH9PZ3 WyjBFFrm5EHGwWm5VCd9bbkq4d50WG2iQeqP6onpQwK7ztbkBPaiH310Z55cyQ6qPJ5T l2XQ+mUxPZVSP1m6Nr112EyDjprJSqJ0qzzX9+qk7ezm95vPcZzhfMymmhOHqhf8qSo/ Jb677PoO9llQhFNJc1OWmCWLKyy+PeatSB4Jf6jWPxQn14Rwveq9RTZ6M0NSnlO/j2/0 uNnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Dqmw3cem; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t18-v6si17642043ply.305.2018.10.08.09.55.07; Mon, 08 Oct 2018 09:55:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Dqmw3cem; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726562AbeJIAHb (ORCPT + 99 others); Mon, 8 Oct 2018 20:07:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:45660 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726291AbeJIAHa (ORCPT ); Mon, 8 Oct 2018 20:07:30 -0400 Received: from mail-qk1-f178.google.com (mail-qk1-f178.google.com [209.85.222.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 98F7920858; Mon, 8 Oct 2018 16:54:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539017692; bh=T05h9mmNjIzCxCA8ih41bZoXJcOSt7z8Y0uiPOjn0T4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Dqmw3cemvPVW/3tj2PFDVegszgjHVScyO/LKZg8C9jBCJAVmr52QYBOzuGj72nEJl NL6ILpRm4E7J/jNoab1TiP+KVAy4ybkWO6fUxnMpwNXDv44slUqn+TfY9KKv15kfMf rCZc9BLhgTWOU2JLqyVDTkiJ6utSUDp0/a+ihO1g= Received: by mail-qk1-f178.google.com with SMTP id a13-v6so7834161qkc.7; Mon, 08 Oct 2018 09:54:52 -0700 (PDT) X-Gm-Message-State: ABuFfogLrbqLnYuoe01jszL2SPgI9JPSx2d3kJfDZ2clVonyfIyctUH6 sESvzs4/azV67ZWum3ifTeJ40Ah0v9rKZIZhUQ== X-Received: by 2002:a37:12d1:: with SMTP id 78-v6mr19519749qks.147.1539017691827; Mon, 08 Oct 2018 09:54:51 -0700 (PDT) MIME-Version: 1.0 References: <20181005165848.3474-1-robh@kernel.org> <20181005165848.3474-30-robh@kernel.org> In-Reply-To: From: Rob Herring Date: Mon, 8 Oct 2018 11:54:40 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 29/36] dt-bindings: arm: Convert Renesas board/soc bindings to json-schema To: Geert Uytterhoeven Cc: "linux-kernel@vger.kernel.org" , devicetree@vger.kernel.org, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linuxppc-dev , Grant Likely , Kumar Gala , Frank Rowand , Mark Rutland , Linus Walleij , Olof Johansson , Arnd Bergmann , Mark Brown , Tom Rini , Pantelis Antoniou , Jonathan Cameron , Bjorn Andersson , Simon Horman , Magnus Damm , "open list:MEDIA DRIVERS FOR RENESAS - FCP" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 8, 2018 at 10:13 AM Geert Uytterhoeven wrote: > > Hi Rob, > > On Mon, Oct 8, 2018 at 4:57 PM Rob Herring wrote: > > On Mon, Oct 8, 2018 at 2:47 AM Geert Uytterhoeven wrote: > > > On Fri, Oct 5, 2018 at 6:59 PM Rob Herring wrote: > > > > Convert Renesas SoC bindings to DT schema format using json-schema. > > > > > --- /dev/null > > > > +++ b/Documentation/devicetree/bindings/arm/shmobile.yaml > > > > @@ -0,0 +1,205 @@ > > > > > + - description: Kingfisher (SBEV-RCAR-KF-M03) > > > > + items: > > > > + - const: shimafuji,kingfisher > > > > + - enum: > > > > + - renesas,h3ulcb > > > > + - renesas,m3ulcb > > > > + - enum: > > > > + - renesas,r8a7795 > > > > + - renesas,r8a7796 > > > > > > This looks a bit funny: all other entries have the "const" last, and > > > use it for the > > > SoC number. May be correct, though. > > > To clarify, this is an extension board that can fit both the [HM]3ULCB > > > boards (actually also the new M3NULCB, I think). > > > > This being Kingfisher? > > Correct. > > > I wrote this based on dts files in the tree. There's 2 combinations that I see: > > > > "shimafuji,kingfisher", "renesas,h3ulcb", "renesas,r8a7795" > > "shimafuji,kingfisher", "renesas,m3ulcb", "renesas,r8a7796" > > > > The schema allows 4 combinations (1 * 2 * 2). I have no idea if the > > other combinations are possible. If not, then we could rewrite this as > > 2 entries with 3 const values each. > > I expect there will soon be a third one: > > "shimafuji,kingfisher", "renesas,m3nulcb", "renesas,r8a77965" > > Technically, {h3,m3,m3n}ulcb are the same board (although there may be > minor revision differences), with a different SiP mounted. > But they are called/marketed depending on which SiP is mounted. > > And on top of that, you can plug in a Kingfisher daughterboard. Could be an > overlay ;-) We probably shouldn't have put kingfisher as a top-level compatible then. But we did, so not really much point to discuss that now. As to whether there's a better way to express it in the schema, I'm not sure. I don't think there's a way with json-schema to express a list, but the 1st item is optional. Rob