From patchwork Sun Oct 20 04:08:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 176981 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp1692843ill; Sat, 19 Oct 2019 21:08:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzBDWsPQ4lOSSfpRAgsRdvFtT5j2G7v3XQ2/8fmkyHut6JXLGaXbHbX5tap5Oq7EeBhKYhB X-Received: by 2002:a50:97af:: with SMTP id e44mr4967718edb.3.1571544513222; Sat, 19 Oct 2019 21:08:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571544513; cv=none; d=google.com; s=arc-20160816; b=ktSJ8H+110s4voxsX5yQmNNbpw8NCiwVwa6fJGycaVCzEUGCwSdMsLXrqcXWQWBVCB emJtxsLpU7gHDjVaegdLtSbGAUvyNE+u900SORee2IDHzPyTdbwYNHLz++MYWeUe6xLo Vxx2PUFdHZqy0xViRTFqtK+KzGm6CzovrBsScrF6KRv0jWrqGRCsL7DlJ96ScFbThtaG ChAbMn+M2i/IA123fMPufcBiRHlHrhZ6fUcsTiuaozr0iXBkhoTR2EFCZM2KVHgDCkBi RTSzkeYNcpsrdlU/L9uyPw7iY90mIUMBkp9aKqD5A+NVlbGrpmtPD16Ws+EFidCF/L+c S57w== 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=ZJ3BTILxDnwHgW7qDC5I4nOaoLSsDLG77x8mDgQLnRJg8wgfGRBjgbHhF6RTrvS5iM D8iKAa5Pa5pxtaDZ8hb5KVuNKWMsM1Qrg9RRx6igo7uhs35dPPDfM8G6oJ2tfjwfkID2 stcuwiaNKwU8H7jW30MMXwLhB1jeN2QLC2xgiySCjQ9eYq/ltsAJok5vyH1SEpxpJ+UD TM/Opi2PTLZZWLM0MoS4ALvPQ9kJI38aC0g8ZWwtAs4KGTQ0XOfmotHygf5DICs9XEuk 3OH/i36bALx4jm+nrGS9YnDNN2Pcfzzk+y+z6sSC+TVAHNMRX/Va26EIbJ7MTexpVnNd BcGw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-watchdog-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-watchdog-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 ok21si6221776ejb.95.2019.10.19.21.08.33 for ; Sat, 19 Oct 2019 21:08:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-watchdog-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-watchdog-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-watchdog-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725916AbfJTEI2 (ORCPT ); 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_F=C3=A4rber?= To: linux-realtek-soc@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, =?utf-8?q?Andreas_F=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 Sender: linux-watchdog-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@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 -- 2.16.4 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>; + }; +...