Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp5551434ybl; Tue, 27 Aug 2019 06:27:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqzW1WqSKBJJNR321veZQp8TlniKXZWzKYIGfpFriUtV8F/3uRhpfyf+YVvLWoxYywYj99Ju X-Received: by 2002:a17:902:a715:: with SMTP id w21mr23199246plq.274.1566912420581; Tue, 27 Aug 2019 06:27:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566912420; cv=none; d=google.com; s=arc-20160816; b=x9j9tBznAdbopOWgzaGzY8bn/d6BjDDb1EteN9eJXI18G7oKi7fUG0dbeN1ZvsSuzt VFu8V226JNvCzWhctQWo1HX2UY6t+T8GWNtuIHiysc93HFoIaStpuouZCF1EnJR9cU/F v6TzGZykLPaUYsuYzNMc0vclRIlU3hNNXFTVscCndGNMorUsRFMcItSwj0hTWlN4m05K eN0jwk6CApiAbz4WSNNAyNXCUY+7ZJRSFALRo309L3rhoYZ09Z3mfeMdDQy48/lCkmf0 st+Wu44POjlEOXAqHVPW8dVOVOwXyMBDnJ4EZAIqfwEUNXHDLKM4lt+YROykt6Y8EiAj P09g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=yU+cALwX1wb6t1MR4Xy7kF21LC4AQwJL8ooOes5Jub4=; b=h2JpO1BimF4pskH1R292DdoLijz44l6uUyyiXsrQ9d9UHEz5ThJDpYVObZ3xPWJjS+ hwez5J/bMHtoY03o2760RbISPazIU8RSEZKzXw3ibf1Ypnes88Ty8aT+Gn8anyhZ2LgS F6mkNQL95Ge4Q/5A5csbAD88+VwYuqNMHWP4H4L1BxhH3SqnKpJ8r9mjKx15J8DMCz9t /aO4980UXwUfWAsH3ZfC6h6rj5HGkOEGKlJzl07vxoW2Owiahdc4w7aJASfGenCHjU2N WH9DdfySMUgVJ2IQt9QrLQ215sY/6svLKBVdVQkgH9E791pEeJgw9+qwUql17Iyt27x4 68+Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s21si12058125pgg.168.2019.08.27.06.26.45; Tue, 27 Aug 2019 06:27:00 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730015AbfH0NYR (ORCPT + 99 others); Tue, 27 Aug 2019 09:24:17 -0400 Received: from shell.v3.sk ([90.176.6.54]:35524 "EHLO shell.v3.sk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727380AbfH0NYR (ORCPT ); Tue, 27 Aug 2019 09:24:17 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id C31EAD80FE; Tue, 27 Aug 2019 15:24:11 +0200 (CEST) Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id fX9pmDjAEMa4; Tue, 27 Aug 2019 15:24:03 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id C4E0CD80FF; Tue, 27 Aug 2019 15:24:02 +0200 (CEST) X-Virus-Scanned: amavisd-new at zimbra.v3.sk Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ASGlmL8EOUht; Tue, 27 Aug 2019 15:24:01 +0200 (CEST) Received: from belphegor (nat-pool-brq-t.redhat.com [213.175.37.10]) by zimbra.v3.sk (Postfix) with ESMTPSA id 6DE9DD80FE; Tue, 27 Aug 2019 15:24:00 +0200 (CEST) Message-ID: <136a57cf3d293e3233f31d5ee660a6418726333a.camel@v3.sk> Subject: Re: [PATCH v2 02/20] dt-bindings: arm: Convert Marvell MMP board/soc bindings to json-schema From: Lubomir Rintel To: Rob Herring Cc: Olof Johansson , Mark Rutland , Thomas Gleixner , Jason Cooper , Marc Zyngier , Kishon Vijay Abraham I , Russell King , Michael Turquette , Stephen Boyd , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-clk Date: Tue, 27 Aug 2019 15:23:58 +0200 In-Reply-To: References: <20190822092643.593488-1-lkundrak@v3.sk> <20190822092643.593488-3-lkundrak@v3.sk> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.4 (3.32.4-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2019-08-27 at 06:59 -0500, Rob Herring wrote: > On Thu, Aug 22, 2019 at 4:27 AM Lubomir Rintel wrote: > > Convert Marvell MMP SoC bindings to DT schema format using json-schema. > > > > Signed-off-by: Lubomir Rintel > > > > --- > > Changes since v1: > > - Added this patch > > > > .../devicetree/bindings/arm/mrvl/mrvl.txt | 14 --------- > > .../devicetree/bindings/arm/mrvl/mrvl.yaml | 31 +++++++++++++++++++ > > 2 files changed, 31 insertions(+), 14 deletions(-) > > delete mode 100644 Documentation/devicetree/bindings/arm/mrvl/mrvl.txt > > create mode 100644 Documentation/devicetree/bindings/arm/mrvl/mrvl.yaml > > > > diff --git a/Documentation/devicetree/bindings/arm/mrvl/mrvl.txt b/Documentation/devicetree/bindings/arm/mrvl/mrvl.txt > > deleted file mode 100644 > > index 951687528efb0..0000000000000 > > --- a/Documentation/devicetree/bindings/arm/mrvl/mrvl.txt > > +++ /dev/null > > @@ -1,14 +0,0 @@ > > -Marvell Platforms Device Tree Bindings > > ----------------------------------------------------- > > - > > -PXA168 Aspenite Board > > -Required root node properties: > > - - compatible = "mrvl,pxa168-aspenite", "mrvl,pxa168"; > > - > > -PXA910 DKB Board > > -Required root node properties: > > - - compatible = "mrvl,pxa910-dkb"; > > - > > -MMP2 Brownstone Board > > -Required root node properties: > > - - compatible = "mrvl,mmp2-brownstone", "mrvl,mmp2"; > > diff --git a/Documentation/devicetree/bindings/arm/mrvl/mrvl.yaml b/Documentation/devicetree/bindings/arm/mrvl/mrvl.yaml > > new file mode 100644 > > index 0000000000000..dc9de506ac6e3 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/arm/mrvl/mrvl.yaml > > @@ -0,0 +1,31 @@ > > +# SPDX-License-Identifier: GPL-2.0 > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/arm/mrvl/mrvl.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Marvell Platforms Device Tree Bindings > > + > > +maintainers: > > + - Lubomir Rintel > > + > > +properties: > > + $nodename: > > + const: '/' > > + compatible: > > + oneOf: > > + - description: PXA168 Aspenite Board > > + items: > > + - enum: > > + - mrvl,pxa168-aspenite > > + - const: mrvl,pxa168 > > + - description: PXA910 DKB Board > > + items: > > + - enum: > > + - mrvl,pxa910-dkb > > Doesn't match what's in dts file: > > arch/arm/boot/dts/pxa910-dkb.dts: compatible = > "mrvl,pxa910-dkb", "mrvl,pxa910"; It corresponds to the .txt bindings specification this commit is converting. I thought it wouldn't be a good idea to do any changes to the contents at the time the conversion is done. I also don't understand why does the dts file specify the board- specific compatible string. Surely "mrvl,pxa910" alone would be sufficient? > > + - description: MMP2 Brownstone Board > > If this entry is only for this board... > > > + items: > > + - enum: > > + - mrvl,mmp2-brownstone > > ...then this can be a 'const' instead. Same for the others. Sure, but is it preferable? I've actually done a "git grep -A3 enum Documentation/devicetree/bindings/" to see if the single-element is typically used and it seems like it is. Perhaps it's a good idea to indicate to a human reader that this is a list that's expected to eventually be extended with new elements. In any case, there are more boards with MMP2 currently supported, notably the XO-1.75 laptop. I've actually sent out the dts file for review some time ago. I haven't added a separate compatible string for it because I thought it is not necessary (see above). > > + - const: mrvl,mmp2 > > +... > > -- > > 2.21.0 Thank you Lubo