Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 433EFECE58E for ; Thu, 17 Oct 2019 13:06:44 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0BC8C20640 for ; Thu, 17 Oct 2019 13:06:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="S7zUbLxE"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=st.com header.i=@st.com header.b="Buoh9QaP" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0BC8C20640 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=st.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=VqUvekkM1XzX7109YNC+77o+u510Q/DHBKhMrIqKGfQ=; b=S7zUbLxEkdhWoTw6hodRhU+7G 8xFysRqNiYF/qx2uh8gnLsWGYlPYvMFwglzxGz2A5b16GEgtlp8Ipttn1dmkVnuBxBr4x1DyZJmU4 wicxBNy01pDLRZUAWgWrerGA68vvJE9bGhjTRqxHuceiR5BNJWiU/p74xxtKYJhCYCxu2k0Wwpztb 7FF1flEtDE4lkmrFIiuX7jI6TTfC1Jt5A2TGssphaeW4Y/hyudw+eyTpdYzbX7goOWPK+Ra+amB12 iPQvnOTXabDtDq13V+vjoTXf5bcXt0mR0D/VqOodfkHHbJmmro959u9TUR950j6cpiGXPZRqwDX2r z1EeA5q/Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iL5UJ-0003h0-AX; Thu, 17 Oct 2019 13:06:43 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iL5UF-0003gS-0h for linux-arm-kernel@lists.infradead.org; Thu, 17 Oct 2019 13:06:41 +0000 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x9HD6CTL006967; Thu, 17 Oct 2019 15:06:27 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=STMicroelectronics; bh=PrKwUa1Em5v/HEpQejy1oKJW+ecJixsX/EL63AL0ouE=; b=Buoh9QaPNiOCjr1uMGp5mK2iuqDR2M2ydEkzjMb/85WtgxIUSHiI3qQTu3r9Za3pcIPw v8muvSSac2KxNBneZI1uN665atTjXoV19vYG2+wQskFvI5qnvIF0ivdzJbp/usEkj0OE m2+5sdpoysFLtXFSEUKtm2s0UCQ9d5qdrq+M2DApeztSMWn7cp3uACMii5MpIh0+qrc7 0ME7j/hBRpsjYCBWo/ELtQhQtFlY3I1MqwrNUaKNNHpKb5HVmpu1R19hDAbeoRlVxVej LWN92nTga50Ckigy0sUENA48QoZy5SX8OWK2MgDM7Hlyp6c07iZnPR+Ah2dwW494y7MZ RQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2vk5qjm5d8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 17 Oct 2019 15:06:27 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 74B2D100038; Thu, 17 Oct 2019 15:06:26 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 58AB92B7573; Thu, 17 Oct 2019 15:06:26 +0200 (CEST) Received: from lmecxl0912.lme.st.com (10.75.127.50) by SFHDAG3NODE2.st.com (10.75.127.8) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Thu, 17 Oct 2019 15:06:25 +0200 Subject: Re: [PATCH] dt-bindings: watchdog: Convert stm32 watchdog bindings to json-schema To: Benjamin Gaignard , , , , References: <20191017124159.13869-1-benjamin.gaignard@st.com> From: Alexandre Torgue Message-ID: <63f96a2f-78c0-21ae-781b-e52068f57103@st.com> Date: Thu, 17 Oct 2019 15:06:24 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20191017124159.13869-1-benjamin.gaignard@st.com> Content-Language: en-US X-Originating-IP: [10.75.127.50] X-ClientProxiedBy: SFHDAG5NODE2.st.com (10.75.127.14) To SFHDAG3NODE2.st.com (10.75.127.8) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,1.0.8 definitions=2019-10-17_04:2019-10-17,2019-10-17 signatures=0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191017_060639_422382_1D0A4657 X-CRM114-Status: GOOD ( 22.40 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Benjamin On 10/17/19 2:41 PM, Benjamin Gaignard wrote: > Convert the STM32 watchdog binding to DT schema format using json-schema > > Signed-off-by: Benjamin Gaignard > --- > .../devicetree/bindings/watchdog/st,stm32-iwdg.txt | 26 ----------- > .../bindings/watchdog/st,stm32-iwdg.yaml | 54 ++++++++++++++++++++++ > 2 files changed, 54 insertions(+), 26 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.txt > create mode 100644 Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yaml > > diff --git a/Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.txt b/Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.txt > deleted file mode 100644 > index d8f4430b0a13..000000000000 > --- a/Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.txt > +++ /dev/null > @@ -1,26 +0,0 @@ > -STM32 Independent WatchDoG (IWDG) > ---------------------------------- > - > -Required properties: > -- compatible: Should be either: > - - "st,stm32-iwdg" > - - "st,stm32mp1-iwdg" > -- reg: Physical base address and length of the registers set for the device > -- clocks: Reference to the clock entry lsi. Additional pclk clock entry > - is required only for st,stm32mp1-iwdg. > -- clock-names: Name of the clocks used. > - "lsi" for st,stm32-iwdg > - "lsi", "pclk" for st,stm32mp1-iwdg > - > -Optional Properties: > -- timeout-sec: Watchdog timeout value in seconds. > - > -Example: > - > -iwdg: watchdog@40003000 { > - compatible = "st,stm32-iwdg"; > - reg = <0x40003000 0x400>; > - clocks = <&clk_lsi>; > - clock-names = "lsi"; > - timeout-sec = <32>; > -}; > diff --git a/Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yaml b/Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yaml > new file mode 100644 > index 000000000000..edec96d53e6b > --- /dev/null > +++ b/Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yaml > @@ -0,0 +1,54 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/watchdog/st,stm32-iwdg.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: STMicroelectronics STM32 Independent WatchDoG (IWDG) bindings > + > +maintainers: > + - Yannick Fertre Yannick is still working on this driver ? > + > +allOf: > + - $ref: "watchdog.yaml#" > + > +properties: > + compatible: > + enum: > + - st,stm32-iwdg > + - st,stm32mp1-iwdg > + > + reg: > + maxItems: 1 > + > + clocks: > + items: > + - description: Low speed clock > + - description: Optional peripheral clock > + minItems: 1 > + maxItems: 2 > + > + clock-names: > + items: > + enums: [ lsi, pclk ] > + minItems: 1 > + maxItems: 2 > + > +required: > + - compatible > + - reg > + - clocks > + - clock-names > + > +examples: > + - | > + #include > + watchdog@5a002000 { > + compatible = "st,stm32mp1-iwdg"; > + reg = <0x5a002000 0x400>; > + clocks = <&rcc IWDG2>, <&rcc CK_LSI>; > + clock-names = "pclk", "lsi"; > + timeout-sec = <32>; > + }; > + > +... > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel