Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3605003imm; Mon, 8 Oct 2018 06:47:39 -0700 (PDT) X-Google-Smtp-Source: ACcGV62GVnR3fFdd9c0AqjytqWUlspXe5CeUdDWHaOn01IDqp2sHrXebHXRAP90VYwO74pq1Mp24 X-Received: by 2002:a17:902:7142:: with SMTP id u2-v6mr24471895plm.154.1539006459423; Mon, 08 Oct 2018 06:47:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539006459; cv=none; d=google.com; s=arc-20160816; b=sfq2mBE4GzKw5YLhpY0LBVIo79S2KS64M2MR+9TJlCWDSjoKeoER3YW4amN71ZQq6G 7fDH/FWUnNam8NwkpGSV2BGvrCdlFwBVmHW3zmcj32up4Z4aaZTcJ7cmmA6sjYMl0BtN bwPFcL3+/5u7FCfB3pnKPnBDIb4mVucGm1gBV46Dj41fS8xukQL/ObfjDarIxfpkAYqR 2NMHFtT/bFhodbp3Oay82LmWzOgg1HsyQSOTTLuOyzeFQgN1y8hNqNWzAa5Y+OnHq6Jy y4qIpbEaOV8kM/ObpLbOsXqUCeNhgfd/eCWkJU/s/ICuT5b6ViF1kII7Bv09Tc7zOyJX HL2A== 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=vQWZZAmyhutN/h6ahODP+INdtSTRFZHSI9BV8D50ld8=; b=EfF1sHtTrO4OI1bqD+5NDkQc5mJH4gkiA2DIBr17oAxO1T8+unNJYO1TOWYUdTG8u8 wOnlECe9q92CqJyYS9/ALcNYwRZmSJBeWx4NHPx0WCIdbhTJTNwn0O+U7liPJmjRI5cS Jne77xaGsFLdhAfUm0fwz4RiigzTIOgT20m041Gq5ziUEYaDLh9ELQCLlR19CJyoTDJR /HMfB4OQNLIebn5KijeXVgw3SpRF69fykAKq6kd18omxfzqohMp8CKLLgbBzsHQBO6Wk 5VlaC6K3l5OJbb34iCpxbdEQ9D8PMudRMOmiWAkBPrCDLUlb1gck/xxy/4j62NkYHJoo beWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ccOTgV7T; 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 x186-v6si19130848pfx.19.2018.10.08.06.47.24; Mon, 08 Oct 2018 06:47:39 -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=ccOTgV7T; 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 S1726537AbeJHU6V (ORCPT + 99 others); Mon, 8 Oct 2018 16:58:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:44246 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726198AbeJHU6V (ORCPT ); Mon, 8 Oct 2018 16:58:21 -0400 Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com [209.85.160.170]) (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 21D3020890; Mon, 8 Oct 2018 13:46:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539006392; bh=jR8K6sL3dQKFGacRFfiHHdgXPEuNZEpxTMsH2Nu/8+I=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ccOTgV7TYbiBJWCJGtXh7k/DwfG9InEyBToMMUv8wZTdVk6eClMoftFOtsYS6mZ28 /BlMhbhJ/5Kns2zvMKzqKzR2r2JSBfdyy0Bnrx9byavOmbZKgyNweLZs23wVaKXNEq 1JL1czqe19m6pivUAw/1FWSr7X5M8cYbiALG/aLM= Received: by mail-qt1-f170.google.com with SMTP id u34-v6so20960297qth.3; Mon, 08 Oct 2018 06:46:32 -0700 (PDT) X-Gm-Message-State: ABuFfogT9EyFOUQT4ftN1SkcY42T0EmFS6Paigv44pbhRoBxKz4TWCkW uLsGjQUg8RGRHLQ7vVdnQHCRQVzE+lzbpqjCjA== X-Received: by 2002:a0c:d4e5:: with SMTP id y34mr4743931qvh.106.1539006391296; Mon, 08 Oct 2018 06:46:31 -0700 (PDT) MIME-Version: 1.0 References: <20181005165848.3474-1-robh@kernel.org> <20181005165848.3474-29-robh@kernel.org> <1857752.ZLvpeyYpZr@phil> In-Reply-To: <1857752.ZLvpeyYpZr@phil> From: Rob Herring Date: Mon, 8 Oct 2018 08:46:08 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 28/36] dt-bindings: arm: Convert Rockchip board/soc bindings to json-schema To: "heiko@sntech.de" 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 , Geert Uytterhoeven , Jonathan Cameron , Bjorn Andersson , "open list:ARM/Rockchip SoC..." 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 4:45 AM Heiko Stuebner wrote: > > Hi Rob, > > either I'm misunderstanding that, or something did go a bit wrong during > the conversion, as pointed out below: > > Am Freitag, 5. Oktober 2018, 18:58:40 CEST schrieb Rob Herring: > > Convert Rockchip SoC bindings to DT schema format using json-schema. > > > > Cc: Mark Rutland > > Cc: Heiko Stuebner > > Cc: devicetree@vger.kernel.org > > Cc: linux-arm-kernel@lists.infradead.org > > Cc: linux-rockchip@lists.infradead.org > > Signed-off-by: Rob Herring > > --- > > .../devicetree/bindings/arm/rockchip.txt | 220 ---------------- > > .../devicetree/bindings/arm/rockchip.yaml | 242 ++++++++++++++++++ > > 2 files changed, 242 insertions(+), 220 deletions(-) > > delete mode 100644 Documentation/devicetree/bindings/arm/rockchip.txt > > create mode 100644 Documentation/devicetree/bindings/arm/rockchip.yaml > > > > > > > +properties: > > + $nodename: > > + const: '/' > > + compatible: > > + oneOf: > > + - items: > > + - enum: > > + - amarula,vyasa-rk3288 > > + - asus,rk3288-tinker > > + - radxa,rock2-square > > + - chipspark,popmetal-rk3288 > > + - netxeon,r89 > > + - firefly,firefly-rk3288 > > + - firefly,firefly-rk3288-beta > > + - firefly,firefly-rk3288-reload > > + - mqmaker,miqi > > + - rockchip,rk3288-fennec > > + - const: rockchip,rk3288 > > These are very much distinct boards, so shouldn't they also get > individual entries including their existing description like the phytec > or google boards below? It is grouped by SoC compatible and # of compatible strings. So this one is all the cases that have 2 compatible strings. It is simply saying the 1st compatible string must be one of the enums and the 2nd compatible string must be "rockchip,rk3288". > > Similarly why is it an enum for those, while the Google boards get a > const for each compatible string? Because each Google board is a fixed list of strings. > Most non-google boards below also lost their description and where lumped > together into combined entries. Was that intentional? If the description was just repeating the compatible string with spaces and capitalization, then yes it was intentional. If your description matches what you have for 'model', then I'd prefer to see model added as a property schema. Rob