Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4093854pxk; Tue, 8 Sep 2020 10:29:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXNUDIES/kKxKa3sW3/qYBOtuQmAjHDeLxPkZL16dE1qXJDuDXFh7lwqYlJwtQ2CD5FAfu X-Received: by 2002:a17:906:7489:: with SMTP id e9mr3538161ejl.154.1599586183188; Tue, 08 Sep 2020 10:29:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599586183; cv=none; d=google.com; s=arc-20160816; b=BwkKI7Lxjk+cHvctLKu2zvPzvDon2X4niEv0N7uBZloWNkN9Jgtl+84pyebCJkx2lc tUKMGDMiEqnb4elur5kDcVsagD0H9rb1WtYxoQL4yhpobor25gWJw1Cn0++k5ixFiC4v 4NXryH89bm7gjjLEXLhiYP4BYvmUIVf3n7hPXaxnJ59g3/eVQheX1b/1xk5pD0TLDnou dSjNyNWaor31iz0KlpCLEeP+xmpI3Ib3U+uinUdeTkottrDuM7dqZYb7c0WjZ3pE4wfA RPh/VLtcExiIo7mqUxy7P1ERKx3JM/qHt2sJj/QiRZilwvvR95jfAffaW5EkXxuniQ5w bfcA== 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=E4OvFYeGxF2aeG3aPmmLv8wI5rMUpxfgpeofiiL4O0Q=; b=nqXfXpU3/dEy1pvlSnOnkWEgYilSBvx0SFnAdnqvrVsk8dqXPQdZwqIb+8Ej0QpowR 4ubHwVcqKucgjHjAzMo5jQeGXD1IKSQiaj3ZGZz0bdLOOd3/mmhakQ31YTFU7T7FQd7w rAW7K91BWG/xkwv/hRWTj95Nw30kKvdTEJlnwEsaLhcyQMjPIVCPhEE9nbbSH5/1SRE/ kUOoj15HYtDI/ydCJhf2ixuep2UBgc3fVOFAT7I65WcVf0MdbnCPQDne/o3n7EBgDW56 oO7B5tn2+uiOWo59jYEr1vTbQev9hrAfrjvm3bQQ3XBKoqZmmroplwMceLzXr1EL6UoQ IJvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0xHHYNIT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id jz19si13560406ejb.716.2020.09.08.10.29.20; Tue, 08 Sep 2020 10:29:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0xHHYNIT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1731980AbgIHR0b (ORCPT + 99 others); Tue, 8 Sep 2020 13:26:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:58748 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731826AbgIHRZu (ORCPT ); Tue, 8 Sep 2020 13:25:50 -0400 Received: from mail-oo1-f52.google.com (mail-oo1-f52.google.com [209.85.161.52]) (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 EAE0B21532; Tue, 8 Sep 2020 17:25:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599585950; bh=OkqeuIqrKR7bGs2ubOleM1hudzXsytRwrAN1s4XP4Ew=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=0xHHYNITz4itRKxva3t4URtYS103wLewnyrgiygYiKvhKVI7JeZpkP/yX2GV4GX/2 K4eQyyfFSccATam4yXejQzqCOWCX4Qw20q1/byuFbssHLnmIXN8zcZp/LGgZdCxAzc 1U8AzrQ4EONXky+XP2je6zf3U6yBH8nplFaczOZs= Received: by mail-oo1-f52.google.com with SMTP id z1so4124563ooj.3; Tue, 08 Sep 2020 10:25:49 -0700 (PDT) X-Gm-Message-State: AOAM533c9Nco+s4z/pBgVg7SKB2T1vLRH4Stst9YKGZwU0/tmRRvi5ml hvR1/a/N1XoG8xTlv10GcmTTm+kzJYbJRAibVA== X-Received: by 2002:a4a:9d48:: with SMTP id f8mr18836211ook.50.1599585949221; Tue, 08 Sep 2020 10:25:49 -0700 (PDT) MIME-Version: 1.0 References: <20200828130602.42203-1-andre.przywara@arm.com> <20200828130602.42203-2-andre.przywara@arm.com> In-Reply-To: From: Rob Herring Date: Tue, 8 Sep 2020 11:25:38 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 01/10] dt-bindings: watchdog: sp-805: Convert to Json-schema To: Andre Przywara Cc: devicetree@vger.kernel.org, Guenter Roeck , Wim Van Sebroeck , Viresh Kumar , LINUX-WATCHDOG , "linux-kernel@vger.kernel.org" , Chanho Min , Linus Walleij , Liviu Dudau , Li Yang , Shawn Guo , Lorenzo Pieralisi , Ray Jui , Scott Branden , Florian Fainelli , "maintainer:BROADCOM BCM7XXX ARM ARCHITECTURE" , Sudeep Holla , Wei Xu 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 Tue, Sep 8, 2020 at 11:20 AM Rob Herring wrote: > > On Fri, Aug 28, 2020 at 7:06 AM Andre Przywara wrote: > > > > Convert the ARM SP-805 watchdog IP DT binding over to Json-schema. > > > > A straight-forward conversion, but the requirement for providing two > > clocks got strengthened from "should" to "must". > > > > Signed-off-by: Andre Przywara > > --- > > .../bindings/watchdog/arm,sp805.txt | 32 -------- > > .../bindings/watchdog/arm,sp805.yaml | 75 +++++++++++++++++++ > > 2 files changed, 75 insertions(+), 32 deletions(-) > > delete mode 100644 Documentation/devicetree/bindings/watchdog/arm,sp805.txt > > create mode 100644 Documentation/devicetree/bindings/watchdog/arm,sp805.yaml > > > > diff --git a/Documentation/devicetree/bindings/watchdog/arm,sp805.txt b/Documentation/devicetree/bindings/watchdog/arm,sp805.txt > > deleted file mode 100644 > > index bee6f1f0e41b..000000000000 > > --- a/Documentation/devicetree/bindings/watchdog/arm,sp805.txt > > +++ /dev/null > > @@ -1,32 +0,0 @@ > > -ARM AMBA Primecell SP805 Watchdog > > - > > -SP805 WDT is a ARM Primecell Peripheral and has a standard-id register that > > -can be used to identify the peripheral type, vendor, and revision. > > -This value can be used for driver matching. > > - > > -As SP805 WDT is a primecell IP, it follows the base bindings specified in > > -'arm/primecell.txt' > > - > > -Required properties: > > -- compatible: Should be "arm,sp805" & "arm,primecell" > > -- reg: Should contain location and length for watchdog timer register > > -- clocks: Clocks driving the watchdog timer hardware. This list should be > > - 2 clocks. With 2 clocks, the order is wdog_clk, apb_pclk > > - wdog_clk can be equal to or be a sub-multiple of the apb_pclk > > - frequency > > -- clock-names: Shall be "wdog_clk" for first clock and "apb_pclk" for the > > - second one > > - > > -Optional properties: > > -- interrupts: Should specify WDT interrupt number > > -- timeout-sec: Should specify default WDT timeout in seconds. If unset, the > > - default timeout is determined by the driver > > - > > -Example: > > - watchdog@66090000 { > > - compatible = "arm,sp805", "arm,primecell"; > > - reg = <0x66090000 0x1000>; > > - interrupts = ; > > - clocks = <&wdt_clk>, <&apb_pclk>; > > - clock-names = "wdog_clk", "apb_pclk"; > > - }; > > diff --git a/Documentation/devicetree/bindings/watchdog/arm,sp805.yaml b/Documentation/devicetree/bindings/watchdog/arm,sp805.yaml > > new file mode 100644 > > index 000000000000..980e155d3387 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/watchdog/arm,sp805.yaml > > @@ -0,0 +1,75 @@ > > +# SPDX-License-Identifier: GPL-2.0 > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/watchdog/arm,sp805.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: ARM AMBA Primecell SP805 Watchdog > > + > > +maintainers: > > + - Viresh Kumar > > + > > +description: |+ > > + The Arm SP805 IP implements a watchdog device, which triggers an interrupt > > + after a configurable time period. If that interrupt has not been serviced > > + when the next interrupt would be triggered, the reset signal is asserted. > > + > > +allOf: > > + - $ref: /schemas/arm/primecell.yaml# > > Should also ref watchdog.yaml here. Actually, you should also drop primecell.yaml as that will get applied already with the 'arm,primecell' compatible match. Rob