Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp289579ybz; Wed, 15 Apr 2020 08:49:05 -0700 (PDT) X-Google-Smtp-Source: APiQypIN5HLRdYZZWPPMy5CsOzT6Kzhou7Pxe/ZcxEiFxHfGw/s0FDfWE+JIt8LO669JYOJ+E/iZ X-Received: by 2002:aa7:c497:: with SMTP id m23mr1999181edq.155.1586965744962; Wed, 15 Apr 2020 08:49:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586965744; cv=none; d=google.com; s=arc-20160816; b=Y2bokhnVleaoZiYN/0CMdl88U4eICfUdCY4oeMttQiscHWAxCAmCBNHYDGqRIoSNn+ mE+UK1xpVOumj6Esk3egBdJHwi+rpkmvB7n70y5tlKm9Pffxkx49k3iTvU5gFYTbClU+ lcDA3Ta/BOCt+8fEZoey4iQm3//Pjgtt1K9oz5CQugAbF6XcMoLWGXVi9XwX3PNjf9Ps jQGWg4MpMX4BI+Lm//Ph3A3juwmZHvPbhBpDSqHp7XjpMKOlcKK/dxVxNB2j2n67TsKW BPrWcch4FHxD+COMKkfZ4tmM/PpHp8lG6E+F9HUDVYxxa6X1oqXXBTWOss7YzxCQ0fM+ 8LDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=PkbYlLdDayUDIL+Ltav6F57c+Lxuy10g01BQQGZ2Xyk=; b=WrANk7Ipko7qDOIoOYLWGoeuY6/sPVhOtkJsItVmHEU53LFo7iBfT1iyxhRBe9IADD zazkspp4E0CH/YZ3Ks7a865FeYOag+r5qYWvspbWIFigzom3PzQzltwxqV6HFp59cU2e wf1SNPQvOsKR4i0bYBi1OfRUfx6U7e2xSSqWp+qEDyM7IbS34+QnaYS5KY+SpcFl1s9R 2yVtFih5UX0NoQ/Gx9mJ9V+F1kTqGxyZz+fRH5LL6jt6CMEy3tyGFv3LSaFgXH8fey/U XIp4Q6YZeVfTtBWJmQxoWx2g54bq89F3w0PrPBzDrwtaYMNplO44BmKQPkKHv4XejWwH pr1w== 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 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y3si10555926edr.469.2020.04.15.08.48.38; Wed, 15 Apr 2020 08:49:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for 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; spf=pass (google.com: best guess record for 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404176AbgDNClG (ORCPT + 99 others); Mon, 13 Apr 2020 22:41:06 -0400 Received: from inva021.nxp.com ([92.121.34.21]:52776 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404155AbgDNClA (ORCPT ); Mon, 13 Apr 2020 22:41:00 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 51A89200261; Tue, 14 Apr 2020 04:40:58 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 52A09200269; Tue, 14 Apr 2020 04:40:53 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 56D514030C; Tue, 14 Apr 2020 10:40:45 +0800 (SGT) From: Anson Huang To: wim@linux-watchdog.org, linux@roeck-us.net, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH 2/2] dt-bindings: watchdog: Convert i.MX7ULP to json-schema Date: Tue, 14 Apr 2020 10:32:48 +0800 Message-Id: <1586831568-24635-2-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1586831568-24635-1-git-send-email-Anson.Huang@nxp.com> References: <1586831568-24635-1-git-send-email-Anson.Huang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the i.MX7ULP watchdog binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- .../bindings/watchdog/fsl-imx7ulp-wdt.txt | 22 -------- .../bindings/watchdog/fsl-imx7ulp-wdt.yaml | 60 ++++++++++++++++++++++ 2 files changed, 60 insertions(+), 22 deletions(-) delete mode 100644 Documentation/devicetree/bindings/watchdog/fsl-imx7ulp-wdt.txt create mode 100644 Documentation/devicetree/bindings/watchdog/fsl-imx7ulp-wdt.yaml diff --git a/Documentation/devicetree/bindings/watchdog/fsl-imx7ulp-wdt.txt b/Documentation/devicetree/bindings/watchdog/fsl-imx7ulp-wdt.txt deleted file mode 100644 index f902508..0000000 --- a/Documentation/devicetree/bindings/watchdog/fsl-imx7ulp-wdt.txt +++ /dev/null @@ -1,22 +0,0 @@ -* Freescale i.MX7ULP Watchdog Timer (WDT) Controller - -Required properties: -- compatible : Should be "fsl,imx7ulp-wdt" -- reg : Should contain WDT registers location and length -- interrupts : Should contain WDT interrupt -- clocks: Should contain a phandle pointing to the gated peripheral clock. - -Optional properties: -- timeout-sec : Contains the watchdog timeout in seconds - -Examples: - -wdog1: watchdog@403d0000 { - compatible = "fsl,imx7ulp-wdt"; - reg = <0x403d0000 0x10000>; - interrupts = ; - clocks = <&pcc2 IMX7ULP_CLK_WDG1>; - assigned-clocks = <&pcc2 IMX7ULP_CLK_WDG1>; - assigned-clocks-parents = <&scg1 IMX7ULP_CLK_FIRC_BUS_CLK>; - timeout-sec = <40>; -}; diff --git a/Documentation/devicetree/bindings/watchdog/fsl-imx7ulp-wdt.yaml b/Documentation/devicetree/bindings/watchdog/fsl-imx7ulp-wdt.yaml new file mode 100644 index 0000000..0fe0ef9 --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/fsl-imx7ulp-wdt.yaml @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/watchdog/fsl-imx7ulp-wdt.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale i.MX7ULP Watchdog Timer (WDT) Controller + +maintainers: + - Anson Huang + +allOf: + - $ref: "watchdog.yaml#" + +properties: + compatible: + enum: + - fsl,imx7ulp-wdt + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + description: | + Watchdog's clock source. + maxItems: 1 + + assigned-clocks: + maxItems: 1 + + assigned-clocks-parents: + maxItems: 1 + +required: + - compatible + - interrupts + - reg + - clocks + +additionalProperties: false + +examples: + - | + #include + #include + + wdog1: watchdog@403d0000 { + compatible = "fsl,imx7ulp-wdt"; + reg = <0x403d0000 0x10000>; + interrupts = ; + clocks = <&pcc2 IMX7ULP_CLK_WDG1>; + assigned-clocks = <&pcc2 IMX7ULP_CLK_WDG1>; + assigned-clocks-parents = <&scg1 IMX7ULP_CLK_FIRC_BUS_CLK>; + timeout-sec = <40>; + }; + +... -- 2.7.4