Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp943758ybg; Wed, 3 Jun 2020 18:49:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPbIck0Let6nkt2MaZTHn3QvJO/7QaOvBneycFptwc9O7LN9EIHQKHsGYHm6M1vbMY5mdR X-Received: by 2002:a50:e14e:: with SMTP id i14mr2036787edl.279.1591235388868; Wed, 03 Jun 2020 18:49:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591235388; cv=none; d=google.com; s=arc-20160816; b=infZJTXKFqxl16MV6bh7EZWeXXxXtP39bL1e90YEb8BkiatE7MiuIGIA42l22Lr7gG iXtxyH+IrRS6b64gyKMTPYgi5emnlJaIZrGqGw/0M49C7H1w/xQ9cx5Q9/ifESCQw+Ch P1wP6gRsVjVrTf5Lwm6trzcdGjLKUTwsxpEOc4J0T9R98bhW2/ba9mrJIEkAyqyGaRf6 FlYKG7HRcB8oYFGiMABY0Gmh6LWxNGOANIHJtNgFmg4ampZNyN/ZfMLh8y5Q4UiaKkS0 W/RPyP69qTMgKZ24lKV4VFZ4cK+0kMv/gCRSsmGE/Uenz4WOUyNaVkYgg1jRLrGKMCdY L3Ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=/zuWSWi8khzIZNnyuwYO0k06KpaxQS36rQqNBwGCL18=; b=SMZxBEWScX/FJORtSVHAJesNQPsp+1GjfjzTl4mTLNiL9Ltfhd1dxhtMEnVVOg4wDB /MeRqIlrmGexUhzdIYBiJr76a6U/D+O1CcnUTYklsrFmICqHBwqLsyDAHft1ixf2Fhw+ 8Rg3ELzdMFQyWOIE3w1U5eEvwy+HYkuNmuo8QQfLQ+6SEVK8LHT4o1kcMOiJZAB+1W8k 6J8mS5ABz+Em9GQsOJQ3ds0iNgaxvM9MVCJ6JTUZ3ylazHQ5L94/3xGZzWgsIPjRqPnS N5ewUQab6JnNnXvx+dzBIXlAD6Alw480CT5Kc38BE1nHZqhGm77Rk6bo0IX/FHfCe5jq UjgQ== 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 fi11si715144ejb.612.2020.06.03.18.49.26; Wed, 03 Jun 2020 18:49:48 -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 S1727977AbgFDBr1 (ORCPT + 99 others); Wed, 3 Jun 2020 21:47:27 -0400 Received: from inva021.nxp.com ([92.121.34.21]:58974 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727973AbgFDBrZ (ORCPT ); Wed, 3 Jun 2020 21:47:25 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id CED362011D0; Thu, 4 Jun 2020 03:47:07 +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 BCCB12011DF; Thu, 4 Jun 2020 03:46:21 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 08582402A5; Thu, 4 Jun 2020 09:46:14 +0800 (SGT) From: Anson Huang To: a.zummo@towertech.it, alexandre.belloni@bootlin.com, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, stigge@antcom.de, linux-rtc@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 V2] dt-bindings: rtc: Convert imxdi rtc to json-schema Date: Thu, 4 Jun 2020 09:35:55 +0800 Message-Id: <1591234555-15187-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 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.MXDI RTC binding to DT schema format using json-schema Signed-off-by: Anson Huang --- Changes since V1: - add "additionalProperties: false". --- .../devicetree/bindings/rtc/imxdi-rtc.txt | 20 ---------- .../devicetree/bindings/rtc/imxdi-rtc.yaml | 44 ++++++++++++++++++++++ 2 files changed, 44 insertions(+), 20 deletions(-) delete mode 100644 Documentation/devicetree/bindings/rtc/imxdi-rtc.txt create mode 100644 Documentation/devicetree/bindings/rtc/imxdi-rtc.yaml diff --git a/Documentation/devicetree/bindings/rtc/imxdi-rtc.txt b/Documentation/devicetree/bindings/rtc/imxdi-rtc.txt deleted file mode 100644 index c797bc9..0000000 --- a/Documentation/devicetree/bindings/rtc/imxdi-rtc.txt +++ /dev/null @@ -1,20 +0,0 @@ -* i.MX25 Real Time Clock controller - -Required properties: -- compatible: should be: "fsl,imx25-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 - -Optional properties: -- interrupts: dryice security violation interrupt (second entry) - -Example: - -rtc@53ffc000 { - compatible = "fsl,imx25-rtc"; - reg = <0x53ffc000 0x4000>; - clocks = <&clks 81>; - interrupts = <25 56>; -}; diff --git a/Documentation/devicetree/bindings/rtc/imxdi-rtc.yaml b/Documentation/devicetree/bindings/rtc/imxdi-rtc.yaml new file mode 100644 index 0000000..06bd737 --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/imxdi-rtc.yaml @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/imxdi-rtc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: i.MX25 Real Time Clock controller + +maintainers: + - Roland Stigge + +properties: + compatible: + const: fsl,imx25-rtc + + reg: + maxItems: 1 + + interrupts: + items: + - description: rtc alarm interrupt + - description: dryice security violation interrupt + minItems: 1 + maxItems: 2 + + clocks: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - clocks + +additionalProperties: false + +examples: + - | + rtc@53ffc000 { + compatible = "fsl,imx25-rtc"; + reg = <0x53ffc000 0x4000>; + clocks = <&clks 81>; + interrupts = <25>, <56>; + }; -- 2.7.4