Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2673983ybg; Sat, 19 Oct 2019 21:11:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7bje6kj1lRXZU7c/jcQhICg7iUF1keAGyHdSn7/H7X38uAxh458X9kUH57AioLr0gCOK0 X-Received: by 2002:aa7:c890:: with SMTP id p16mr17859380eds.296.1571544699174; Sat, 19 Oct 2019 21:11:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571544699; cv=none; d=google.com; s=arc-20160816; b=G3gTO0JJBwVUZE6RY1jcOX36apuRJZY37zWRgegSY5fJgyDal8DjfvRsB36culLLHz T0R7IDiOfCWpn6JQ8iP8bB9QtfQp+q1LQvD0w1Gn24FPRSed77g8qHnDHCLebHsN2sLg XKSZJMc2MWQG7mC7lpwu70mxHRkcN80IefJdqJ0ft/T24Lab60+7etQE4h0bHFzwmb/+ RdK79CG4sMKvRsYgfICJnCigeplBBeu5MUDYY850j3enCV6UG+jmiEbI+FO9JpkTrjAD 2Rb8ZtU3wYXjnCFY3/psKVIPz3hPnwaMpMplmtI88TGcEQUSGu02n2Qexg9qdxN8iGsm 6tpQ== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=gZOGsXoLk4rGLm7QRbbDV78fn1H42Iu+lly/e+UCETU=; b=eKtsqrcy/oNmZnT8TN8mq0p2DjvlhIQOethv5j3lkZ66N4VrCPrsj7qyGKh9Aoskuy EEaXPxsFWvaYu9d9JPYi7k2BUTGA02SRJ5HejyjpzJiCC77E9tTfUJLzk6E7fUTxGsFS 59z9APWOQhNZk0Q9yUcVsLSQTzzRC67kZt497ygLYYXMcuFavn7F2ydl9+QIozM00yaR xwAwKoQcSm5sfvMu4LklkKvK720yncftWm3CJGTzPtoLNc63hZYriBushIHVNE9p8wMR EfemFYXIHImBDBnwlaUtuY3GDjogqNuTpUCnmHJDtzdKI8kIpgRU1zVArmudxI7CW2Ox NQQg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j11si7518230edj.43.2019.10.19.21.11.15; Sat, 19 Oct 2019 21:11:39 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726194AbfJTEI2 (ORCPT + 99 others); Sun, 20 Oct 2019 00:08:28 -0400 Received: from mx2.suse.de ([195.135.220.15]:37106 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725843AbfJTEI2 (ORCPT ); Sun, 20 Oct 2019 00:08:28 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 10F15AC8F; Sun, 20 Oct 2019 04:08:26 +0000 (UTC) From: =?UTF-8?q?Andreas=20F=C3=A4rber?= To: linux-realtek-soc@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, =?UTF-8?q?Andreas=20F=C3=A4rber?= , Wim Van Sebroeck , Guenter Roeck , Rob Herring , Mark Rutland , linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/8] dt-bindings: watchdog: realtek: Convert RTD119x to schema Date: Sun, 20 Oct 2019 06:08:10 +0200 Message-Id: <20191020040817.16882-2-afaerber@suse.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20191020040817.16882-1-afaerber@suse.de> References: <20191020040817.16882-1-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the Realtek watchdog binding to a YAML schema. Signed-off-by: Andreas Färber --- v2: New .../bindings/watchdog/realtek,rtd119x.txt | 17 ---------- .../bindings/watchdog/realtek,rtd119x.yaml | 38 ++++++++++++++++++++++ 2 files changed, 38 insertions(+), 17 deletions(-) delete mode 100644 Documentation/devicetree/bindings/watchdog/realtek,rtd119x.txt create mode 100644 Documentation/devicetree/bindings/watchdog/realtek,rtd119x.yaml diff --git a/Documentation/devicetree/bindings/watchdog/realtek,rtd119x.txt b/Documentation/devicetree/bindings/watchdog/realtek,rtd119x.txt deleted file mode 100644 index 05653054bd5b..000000000000 --- a/Documentation/devicetree/bindings/watchdog/realtek,rtd119x.txt +++ /dev/null @@ -1,17 +0,0 @@ -Realtek RTD1295 Watchdog -======================== - -Required properties: - -- compatible : Should be "realtek,rtd1295-watchdog" -- reg : Specifies the physical base address and size of registers -- clocks : Specifies one clock input - - -Example: - - watchdog@98007680 { - compatible = "realtek,rtd1295-watchdog"; - reg = <0x98007680 0x100>; - clocks = <&osc27M>; - }; diff --git a/Documentation/devicetree/bindings/watchdog/realtek,rtd119x.yaml b/Documentation/devicetree/bindings/watchdog/realtek,rtd119x.yaml new file mode 100644 index 000000000000..5d92cfdfd046 --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/realtek,rtd119x.yaml @@ -0,0 +1,38 @@ +# SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/watchdog/realtek,rtd119x.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Realtek RTD1295 Watchdog + +maintainers: + - Andreas Färber + +allOf: + - $ref: watchdog.yaml# + +properties: + compatible: + oneOf: + - const: realtek,rtd1295-watchdog + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + +required: + - compatible + - reg + - clocks + +examples: + - | + watchdog@98007680 { + compatible = "realtek,rtd1295-watchdog"; + reg = <0x98007680 0x100>; + clocks = <&osc27M>; + }; +... -- 2.16.4