From mboxrd@z Thu Jan 1 00:00:00 1970 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=-7.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 51111C433FF for ; Tue, 13 Aug 2019 21:31:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1E3362067D for ; Tue, 13 Aug 2019 21:31:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565731866; bh=XkpRbJVll+516C+jJvJAyZYjkbPpLw3esxFYVJy/wTM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:List-ID:From; b=IhyKPrG/oS3pCbPNgyrHTT/Ot9lSNAyji1fwHj3wnuEwHIQw5NGOfXyapvuzhwtbh N8P6FJIrnMEi1NzbOfJR/UqCr4OV8OcLQlnbbcPrRcjmd65gUyQ6EXGFl3/P6sNtl+ 5LJ1t/Xr2uGz0svRkN6B1RvH52y2KNMz1ChaioMc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726994AbfHMVbF (ORCPT ); Tue, 13 Aug 2019 17:31:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:57672 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726631AbfHMVbF (ORCPT ); Tue, 13 Aug 2019 17:31:05 -0400 Received: from mail-qt1-f179.google.com (mail-qt1-f179.google.com [209.85.160.179]) (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 0E5CE216F4; Tue, 13 Aug 2019 21:31:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565731864; bh=XkpRbJVll+516C+jJvJAyZYjkbPpLw3esxFYVJy/wTM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=BhKlEJ07K2sEEE5X4BQU8lEPMxeIpf0FdTFhXiajh0LjFw8bDbY3WzB2dNJ4vcMn3 UGtMwQUP93jw9omyNyPFpXjzVk9Hl234h1a8jhcbZevW85Qxd1ii4y5Fu06AyWI7Am GHJYOHU67WvA4jTB6oS6YDAOleQ99BlwEqc6fckY= Received: by mail-qt1-f179.google.com with SMTP id e8so7422060qtp.7; Tue, 13 Aug 2019 14:31:04 -0700 (PDT) X-Gm-Message-State: APjAAAVG9AITvDoE80FqxULHL+418M1t7jd0+2o5rB0rLoxzQGeIzM+u 7U6lL53Iov0isyDFvyhWWuIQfm1pzYs/it8yQA== X-Google-Smtp-Source: APXvYqxokdujfBE8cDSjy43/2Jcz08YFXVAXNp4Cx5lVzoxujubkxGKCo14iNFpW20deuL9aWMxvPVwsHCwUEklSXXc= X-Received: by 2002:ac8:7593:: with SMTP id s19mr27868839qtq.136.1565731863171; Tue, 13 Aug 2019 14:31:03 -0700 (PDT) MIME-Version: 1.0 References: <20190813124744.32614-1-mripard@kernel.org> <20190813124744.32614-2-mripard@kernel.org> In-Reply-To: <20190813124744.32614-2-mripard@kernel.org> From: Rob Herring Date: Tue, 13 Aug 2019 15:30:52 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/5] dt-bindings: watchdog: Convert Allwinner watchdog to a schema To: Maxime Ripard Cc: Guenter Roeck , Wim Van Sebroeck , "linux-kernel@vger.kernel.org" , Chen-Yu Tsai , Mark Rutland , Frank Rowand , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , devicetree@vger.kernel.org, Maxime Ripard 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, Aug 13, 2019 at 6:47 AM Maxime Ripard wrote: > > From: Maxime Ripard > > The Allwinner SoCs have a watchdog supported in Linux, with a matching > Device Tree binding. > > Now that we have the DT validation in place, let's convert the device tree > bindings for that controller over to a YAML schemas. > > Signed-off-by: Maxime Ripard > --- > .../watchdog/allwinner,sun4i-a10-wdt.yaml | 50 +++++++++++++++++++ > .../bindings/watchdog/sunxi-wdt.txt | 22 -------- > 2 files changed, 50 insertions(+), 22 deletions(-) > create mode 100644 Documentation/devicetree/bindings/watchdog/allwinner,sun4i-a10-wdt.yaml > delete mode 100644 Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt > > diff --git a/Documentation/devicetree/bindings/watchdog/allwinner,sun4i-a10-wdt.yaml b/Documentation/devicetree/bindings/watchdog/allwinner,sun4i-a10-wdt.yaml > new file mode 100644 > index 000000000000..93df27ec1664 > --- /dev/null > +++ b/Documentation/devicetree/bindings/watchdog/allwinner,sun4i-a10-wdt.yaml > @@ -0,0 +1,50 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/watchdog/allwinner,sun4i-a10-wdt.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Allwinner A10 Watchdog Device Tree Bindings > + > +maintainers: > + - Chen-Yu Tsai > + - Maxime Ripard > + > +properties: > + compatible: > + oneOf: > + - const: allwinner,sun4i-a10-wdt > + - const: allwinner,sun6i-a31-wdt > + - items: > + - const: allwinner,sun50i-a64-wdt > + - const: allwinner,sun6i-a31-wdt > + - items: > + - const: allwinner,sun50i-h6-wdt > + - const: allwinner,sun6i-a31-wdt > + - items: > + - const: allwinner,suniv-f1c100s-wdt > + - const: allwinner,sun4i-a10-wdt > + > + reg: > + maxItems: 1 > + > + timeout-sec: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + Contains the watchdog timeout in seconds. Can you do a common watchdog schema to include with this and the node name at least. Rob