Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1088229ybk; Wed, 13 May 2020 23:26:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlRM8ELWj3wFBHbXa0BfS9gjFxxmoUAF+1sOhhSnAubnP8wX+q+xvTiUJ5Rf56roHwdbBJ X-Received: by 2002:a17:906:298a:: with SMTP id x10mr2485081eje.238.1589437587138; Wed, 13 May 2020 23:26:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589437587; cv=none; d=google.com; s=arc-20160816; b=Rs9pbmulizZyI0MaXiMNisrt1FKn2wO5CMRFmLjsyGXkCG1xvL+zlezUkTS/5HopoD 5tW3FIKu9RC/22zrcIp8mnXNsjatAQnjGnI1M4w1WwfrV8vzfe5WCru3y6AliGE8ZPpS Em3gdVxjEZ705WIWG5UnIstp7LX/7vjCS4Alm5L6WhJ7NYs4Bi1UsTYNxWudAI6YRQie wCIgIi5lHlmO0Pk5pReYmkgsq9rSdG7XcC4o4OgQHFqN5OZJkmF+sQDCbQXy03lwU2U+ 8OPvvg7WN6PWjIIX6KGlYhzfigi7oVlMd/Y7hPNdPI6Nu41UvUIZpCKTsTM2t1MALkMU /Pow== 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=ubcv/XN5kfzt/ChuoUit9nNPTMRR4UXiwwktQjgEBzk=; b=YkwdCd3KkDgWTJoKCVvL+ss0MtCuBWaJbBBD+Aa9G4VatTvGBD181B2e+mQtO5L8U9 ry2WZdlAqE1dsnsDa9CnTr/yEjLYrcs9ZkxAfaRHIWIiSjwncNnaWtOCAfmp/6rUxFfX IQsENcteOrpbWVikdrBktlYPjuGGdPJKwBmUF3a16YI5FpbLmS7KxFbZX9zVB+LpIK/K gXWWsMwjPp/Sa56e/4Tc8EkrYBPf4Gx6+hqLE4c32wPKgx02WDvkpWAXtCGB/uM0NKh3 XTmyOuZ8RJqQ5Oo1f0HVY4Y9Y/Re7bw6BQE4Ydr8vRlDLXn6FtFgqDVGP2Dr03722tag vZCw== ARC-Authentication-Results: i=1; mx.google.com; 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=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 u14si1003193edd.346.2020.05.13.23.26.04; Wed, 13 May 2020 23:26:27 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726389AbgENGXc (ORCPT + 99 others); Thu, 14 May 2020 02:23:32 -0400 Received: from inva021.nxp.com ([92.121.34.21]:36940 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726098AbgENGXA (ORCPT ); Thu, 14 May 2020 02:23:00 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id B758620022F; Thu, 14 May 2020 08:22:57 +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 E6986200247; Thu, 14 May 2020 08:22: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 8178D402B4; Thu, 14 May 2020 14:22:48 +0800 (SGT) From: Anson Huang To: a.zummo@towertech.it, alexandre.belloni@bootlin.com, robh+dt@kernel.org, tremyfr@gmail.com, p.bruenn@beckhoff.com, linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH 2/2] dt-bindings: rtc: Convert MXC RTC V2 to json-schema Date: Thu, 14 May 2020 14:13:25 +0800 Message-Id: <1589436805-22923-2-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1589436805-22923-1-git-send-email-Anson.Huang@nxp.com> References: <1589436805-22923-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 MXC RTC V2 binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- .../devicetree/bindings/rtc/rtc-mxc_v2.txt | 17 -------- .../devicetree/bindings/rtc/rtc-mxc_v2.yaml | 46 ++++++++++++++++++++++ 2 files changed, 46 insertions(+), 17 deletions(-) delete mode 100644 Documentation/devicetree/bindings/rtc/rtc-mxc_v2.txt create mode 100644 Documentation/devicetree/bindings/rtc/rtc-mxc_v2.yaml diff --git a/Documentation/devicetree/bindings/rtc/rtc-mxc_v2.txt b/Documentation/devicetree/bindings/rtc/rtc-mxc_v2.txt deleted file mode 100644 index 79d7e87..0000000 --- a/Documentation/devicetree/bindings/rtc/rtc-mxc_v2.txt +++ /dev/null @@ -1,17 +0,0 @@ -* i.MX53 Secure Real Time Clock (SRTC) - -Required properties: -- compatible: should be: "fsl,imx53-rtc" -- reg: physical base address of the controller and length of memory mapped - region. -- clocks: should contain the phandle for the rtc clock -- interrupts: rtc alarm interrupt - -Example: - -rtc@53fa4000 { - compatible = "fsl,imx53-rtc"; - reg = <0x53fa4000 0x4000>; - interrupts = <24>; - clocks = <&clks IMX5_CLK_SRTC_GATE>; -}; diff --git a/Documentation/devicetree/bindings/rtc/rtc-mxc_v2.yaml b/Documentation/devicetree/bindings/rtc/rtc-mxc_v2.yaml new file mode 100644 index 0000000..2d1a306 --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/rtc-mxc_v2.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/rtc-mxc_v2.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: i.MX53 Secure Real Time Clock (SRTC) + +allOf: + - $ref: "rtc.yaml#" + +maintainers: + - Patrick Bruenn + +properties: + compatible: + enum: + - fsl,imx53-rtc + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - interrupts + +additionalProperties: false + +examples: + - | + #include + + rtc@53fa4000 { + compatible = "fsl,imx53-rtc"; + reg = <0x53fa4000 0x4000>; + interrupts = <24>; + clocks = <&clks IMX5_CLK_SRTC_GATE>; + }; -- 2.7.4