Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp865507ybp; Fri, 11 Oct 2019 05:41:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqxNOGszg53+qO71UZXU3kTnoLeMm62qvH1gsUXIFDGs5Dhf+ST3sslvQoHgCRMDq2gy25Ww X-Received: by 2002:aa7:d748:: with SMTP id a8mr13040668eds.269.1570797716205; Fri, 11 Oct 2019 05:41:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570797716; cv=none; d=google.com; s=arc-20160816; b=RIw/SYz2lCwzKxMJfxnzoeCsNOVZbQlivCWu5ArDR1NDnt8fMa9EmOdyAlERJGR32M N4+tTGLsSVLMe/HbpRhlqAfJowmVKUfmYUkYiG7BZLoAM4XpktQ2wDv2vlzXpR2DujQQ xv7sB62O15FKKgUrs950haBKgoOFvDaENGVubDECJ55Ep7Pb1oFZrQLyIwo0pN6vB5QW aKUBv/7R8QIQAIAXlFUOjup3Umz0AHdlIYB8vYTg1luUghj2KlIYJESuqcleBZsI4+b3 zCZmnkiEoPrmiXGh0og58n7rR1kAR8EuGrhzE8Xrq7/XxvUBAywXxzhpRNkjNvBF1Z46 AINQ== 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=KvelsFGh+TFA/3zCVKBRkn6m69Eil6v/5JKiXqwpwPA=; b=lixKvaOEXw4UtTMWyd8QTiluO3cm7wGm3dAdowlnDFGQTbrBpTCuyrO/GgKLQa4J/j b69gxOc+2AW8a+gLX9IfxVuDuC1K0rqR9Be5aLZOV6JWOtKUK9hctyXJkt99z/bfvW2Y VEiZsUGTCrZWQManm5+TGKLbB1UHS2Vj2tmaj8/tbpBkpjeQ4FFt41bS4QF+vJ+BaFQU tb2vukZKYNMm5yZwiuHMyk9ZIJ+m2OFfLRPIlVoHy6ZBevWAHsFqSlUacMO8ppeT3u62 gT6og+XDuXyLY141dJ07zQg6JSvEzYF7fnabAJHx4tCfio79eU1VXzOjVVZlPBujjRFW 0HnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dR100AmR; 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 f45si5729445edb.166.2019.10.11.05.41.31; Fri, 11 Oct 2019 05:41:56 -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=dR100AmR; 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 S1728188AbfJKMlY (ORCPT + 99 others); Fri, 11 Oct 2019 08:41:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:36250 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728002AbfJKMlX (ORCPT ); Fri, 11 Oct 2019 08:41:23 -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 D471E21D82; Fri, 11 Oct 2019 12:41:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570797683; bh=0ntoZW7nIQaS0RptBTqn8yRQKbcwYPW6mrTC+nExxQQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=dR100AmRHlPwX27kUrp1Lauf3ohIZVPT1aokTFmN/cMb52PIZCHr7cnR8lnpbjLqj dicgfF0TpW4nEd2mwFBiZJjqOSCarxIGU+A6CE1Bvzn5Lxu1fFt6mtmei+4dyZVSSl CSrZCRsYHokj3EuztdAzqWaGGTOBWJxfSIjVmNCk= Received: by mail-qk1-f178.google.com with SMTP id u184so8729069qkd.4; Fri, 11 Oct 2019 05:41:22 -0700 (PDT) X-Gm-Message-State: APjAAAUd2UBXEtHJcOxwdG1FbIT5dJXmJhSM6AqXDoXVp/OTrGmmbf3x oH9VcV9ON0woIWvIcZL5SFVNK3kgafadNTw6IQ== X-Received: by 2002:a05:620a:12f1:: with SMTP id f17mr15407013qkl.152.1570797681944; Fri, 11 Oct 2019 05:41:21 -0700 (PDT) MIME-Version: 1.0 References: <20191002151907.15986-1-benjamin.gaignard@st.com> In-Reply-To: <20191002151907.15986-1-benjamin.gaignard@st.com> From: Rob Herring Date: Fri, 11 Oct 2019 07:41:10 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] dt-bindings: hwlock: Convert stm32 hwspinlock bindings to json-schema To: Benjamin Gaignard Cc: Ohad Ben-Cohen , Bjorn Andersson , Alexandre Torgue , "open list:REMOTE PROCESSOR (REMOTEPROC) SUBSYSTEM" , devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "linux-kernel@vger.kernel.org" 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 Wed, Oct 2, 2019 at 10:19 AM Benjamin Gaignard wrote: > > Convert the STM32 hwspinlock binding to DT schema format using json-schema > > Signed-off-by: Benjamin Gaignard > --- > .../bindings/hwlock/st,stm32-hwspinlock.txt | 23 ----------- > .../bindings/hwlock/st,stm32-hwspinlock.yaml | 48 ++++++++++++++++++++++ > 2 files changed, 48 insertions(+), 23 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/hwlock/st,stm32-hwspinlock.txt > create mode 100644 Documentation/devicetree/bindings/hwlock/st,stm32-hwspinlock.yaml > > diff --git a/Documentation/devicetree/bindings/hwlock/st,stm32-hwspinlock.txt b/Documentation/devicetree/bindings/hwlock/st,stm32-hwspinlock.txt > deleted file mode 100644 > index adf4f000ea3d..000000000000 > --- a/Documentation/devicetree/bindings/hwlock/st,stm32-hwspinlock.txt > +++ /dev/null > @@ -1,23 +0,0 @@ > -STM32 Hardware Spinlock Device Binding > -------------------------------------- > - > -Required properties : > -- compatible : should be "st,stm32-hwspinlock". > -- reg : the register address of hwspinlock. > -- #hwlock-cells : hwlock users only use the hwlock id to represent a specific > - hwlock, so the number of cells should be <1> here. > -- clock-names : Must contain "hsem". > -- clocks : Must contain a phandle entry for the clock in clock-names, see the > - common clock bindings. > - > -Please look at the generic hwlock binding for usage information for consumers, > -"Documentation/devicetree/bindings/hwlock/hwlock.txt" > - > -Example of hwlock provider: > - hwspinlock@4c000000 { > - compatible = "st,stm32-hwspinlock"; > - #hwlock-cells = <1>; > - reg = <0x4c000000 0x400>; > - clocks = <&rcc HSEM>; > - clock-names = "hsem"; > - }; > diff --git a/Documentation/devicetree/bindings/hwlock/st,stm32-hwspinlock.yaml b/Documentation/devicetree/bindings/hwlock/st,stm32-hwspinlock.yaml > new file mode 100644 > index 000000000000..64e169702515 > --- /dev/null > +++ b/Documentation/devicetree/bindings/hwlock/st,stm32-hwspinlock.yaml > @@ -0,0 +1,48 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/hwlock/st,stm32-hwspinlock.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: STMicroelectronics STM32 Hardware Spinlock bindings > + > +maintainers: > + - Benjamin Gaignard > + - Fabien Dessenne > + > +properties: > + "#hwlock-cells": true const: 1 > + > + compatible: > + const: st,stm32-hwspinlock > + > + reg: > + maxItems: 1 > + > + clocks: > + items: > + - description: Module Clock Don't need a description for a single item. maxItems: 1 > + > + clock-names: > + items: > + - const: hsem > + > +required: > + - "#hwlock-cells" > + - compatible > + - reg > + - clocks > + - clock-names Add a: additionalProperties: false > + > +examples: > + - | > + #include > + hwspinlock@4c000000 { > + compatible = "st,stm32-hwspinlock"; > + #hwlock-cells = <1>; > + reg = <0x4c000000 0x400>; > + clocks = <&rcc HSEM>; > + clock-names = "hsem"; > + }; > + > +... > -- > 2.15.0 >