Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1595851ybc; Wed, 13 Nov 2019 01:03:16 -0800 (PST) X-Google-Smtp-Source: APXvYqx86xSEYiNUxS88jYYgrnTUDGe/+pMbTdt6EaVpDSnvPRGkerJdoJ9gksRDH+9V66PeD77x X-Received: by 2002:a50:8859:: with SMTP id c25mr2260809edc.253.1573635796751; Wed, 13 Nov 2019 01:03:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573635796; cv=none; d=google.com; s=arc-20160816; b=nli/mD5AyECDe38AHUEy1Yh5yBnVsxO+mFbkcrXNwRnBWUSwnwOgNRxhnLPFuN9RSf GreRUS9GKBXUSE7CYKMzcSH/LqHJq99C0c6iImJgiJoTHVByo336a787r+TXm0gZ9rfe 1ZjsOfdLuTcRUPWLM386RJRo1KBUsDxP8UPD9jND0+sjysIcztgF5O/RYa1qa70ljd+s QDQCkXLfcluWa4i4I/U+AQ6Xl8z84MWlItrMruhLz5rTgWCzTrEHj+vC00YqpB6e/8y9 r35t4+wLsOFtDpFF8T4orkma/Y3j0UZ4HaQDhYDqE0qa+64j3jVKXwUEw4ZfdcRpMuok x9+A== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=zriSzR1A7PY8VkXg8BzENfmEpX+OltCL/F/xWpeuul4=; b=T9VaE1ScTdnNNsX4oxNNc5rJLxytwi9w/9kkzqPjactG08OJDgifRMk57UjCATAIN4 e3CXds1lNvL2+vLcoYtvsvHUqkludbu3ZcpIyrUDvfIXLDGAo5EaNC2FgaQ3ni3q1UDH bxd86HI6EQQ6QvoESPbCdDTG8tvSklf8+v+KyAndsFuXFtnkCtgGbgpRjs+4CA8nnwco aePGSnhzqD3vd4RzxFpn82DhXrS/awga623AEImKjuZK+R8rRNKHPdiCAN9vVpVixFKD ifxnNqcUbt6QYY/7nG/CAwhbiWVWnmATLTUgDKgF20ISeAR+rIkZdItVpFAPRXcorW8h kjIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=my0U+qCL; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x12si739519eju.50.2019.11.13.01.02.51; Wed, 13 Nov 2019 01:03:16 -0800 (PST) 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=@linaro.org header.s=google header.b=my0U+qCL; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726543AbfKMJAB (ORCPT + 99 others); Wed, 13 Nov 2019 04:00:01 -0500 Received: from mail-qk1-f193.google.com ([209.85.222.193]:40146 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726120AbfKMJAB (ORCPT ); Wed, 13 Nov 2019 04:00:01 -0500 Received: by mail-qk1-f193.google.com with SMTP id z16so1044277qkg.7 for ; Wed, 13 Nov 2019 01:00:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=zriSzR1A7PY8VkXg8BzENfmEpX+OltCL/F/xWpeuul4=; b=my0U+qCLomIt6E1rAcdLE1Id6S8BuETSIIYtZIcmh2johk6LY+sQR3OjPubPjNOZQ8 6NQNnX9pWKlZ9SNfJx5VIdEc09EjWpcwRbHBiPDehzm8+sJMUnGQ74CAgqKMhdkC/VH4 b1XyxWzrZDwZ3bRb95XyDevdiw+hY/azHEjwrCyWCCuwB1vT2kWfJyP39J6X9zDbTJ+s CYquB2V7jcS3H3bMbcuOynmxubakIWY2jmDQ+nt1XaAS4CB5W/aCDQFC1jMbCliAN/ZG 07AFzKV3bl6HOxccM/iSQ8WklrCXO932AMgXydPNhtOyLKIA29nq16WU2NALw4A/rO+I ck+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=zriSzR1A7PY8VkXg8BzENfmEpX+OltCL/F/xWpeuul4=; b=AX/cFSbqDqCDcUrK1BcgpxBuRHBecjAP2VXvjNUJbewU1VwijcHinmFggfvP6NC65J UXz6Mv/cH/A+yyrAPyV2StGw47M9dlJddY6/tOPRRltn9ieABTezmMOgohNomCPupbZV 49L7JTQJ9lFwDZRfLqE8HxaBv9qpdtyweK8tKVwz7/C6y99j376XJahWzi95xeDFgqEz cDIJFi1R/dYBi6QmCKE6LoaeB6PvTVtoixfx9KikDyfujHXfOKJqTVh6an84xl1nprpQ RF61rt9qeIuC2U0DeJ4YAd9mSE4uqFJGdbQK+7fQnSOU2iwVMVQKaXG92+WUsjFQzWkF J4Lw== X-Gm-Message-State: APjAAAVKqHuxvvFncoWDRf/bd42d8VODz8jzDoiaUfZRfrdScL5RkdcK oZ6NsUpf0jNMCwNV+5FtErSSYvDrmuX9jZ38jmWz+Q== X-Received: by 2002:ae9:e885:: with SMTP id a127mr1321564qkg.427.1573635599889; Wed, 13 Nov 2019 00:59:59 -0800 (PST) MIME-Version: 1.0 References: <20191017124159.13869-1-benjamin.gaignard@st.com> <63f96a2f-78c0-21ae-781b-e52068f57103@st.com> <6597f899-f049-02dc-de59-07a0f23a88b8@st.com> In-Reply-To: From: Benjamin Gaignard Date: Wed, 13 Nov 2019 09:59:48 +0100 Message-ID: Subject: Re: [PATCH] dt-bindings: watchdog: Convert stm32 watchdog bindings to json-schema To: Guenter Roeck Cc: Benjamin GAIGNARD , Alexandre TORGUE , "wim@linux-watchdog.org" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "linux-kernel@vger.kernel.org" , "linux-watchdog@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-stm32@st-md-mailman.stormreply.com" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le jeu. 17 oct. 2019 =C3=A0 15:31, Guenter Roeck a =C3= =A9crit : > > On 10/17/19 6:17 AM, Benjamin GAIGNARD wrote: > > > > On 10/17/19 3:06 PM, Alexandre Torgue wrote: > >> Hi Benjamin > >> > >> On 10/17/19 2:41 PM, Benjamin Gaignard wrote: > >>> Convert the STM32 watchdog binding to DT schema format using json-sch= ema > >>> > >>> 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 en= try > >>> - 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 =3D "st,stm32-iwdg"; > >>> - reg =3D <0x40003000 0x400>; > >>> - clocks =3D <&clk_lsi>; > >>> - clock-names =3D "lsi"; > >>> - timeout-sec =3D <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 ? > > > > That is a good question. > > > > Rob, can we use the STM32 dedicated mailing list address for this > > mainteners field ? > > > > maintainers: > > > > - linux STM32 > > > > > I'd rather wonder who is going to maintain this secondary distributed > maintainers list, but I guess that is a different question. > Gentle ping to reviewers on this patch. Thanks, Benjamin > Guenter > > > Regards, > > > > Benjamin > > > >> > >>> + > >>> +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 =3D "st,stm32mp1-iwdg"; > >>> + reg =3D <0x5a002000 0x400>; > >>> + clocks =3D <&rcc IWDG2>, <&rcc CK_LSI>; > >>> + clock-names =3D "pclk", "lsi"; > >>> + timeout-sec =3D <32>; > >>> + }; > >>> + > >>> +... > >> > > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel