Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp611192ybz; Wed, 15 Apr 2020 15:07:02 -0700 (PDT) X-Google-Smtp-Source: APiQypIq8z8G+Uk+xMFrSaZel+/YbDSVBQCXvCOwrgh9MOqo8PQxQ3dxKFeIsMByDj6e6kjX01dO X-Received: by 2002:aa7:ce8e:: with SMTP id y14mr26747689edv.30.1586988422321; Wed, 15 Apr 2020 15:07:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586988422; cv=none; d=google.com; s=arc-20160816; b=nN/tGmt7sF7NIq6H6bjvvAejsw6q510/FAy5h3XaqXf2u/a/Nzd38tSkYg5veifQSP ozfGVo8O2KM6KYptrrDW7AvMOqln1xqfahRLOGL1FKRmjLJTGlzXHNyCojBg2TDb9YY0 RbRfxEaqN71gzJF9HkQoRJd2WzCgk7gNNCpwnj04Z7SiKwfBjuUT6J+aB+QP4TO6Rtct Mj5wkc/i4QQHGDflammM5p2immEVRjUmiluRSXpgfePpS2OPLf58jZ1d+wdoBC89yv1g vFhuslT5QelvcQKYS97ZIyJNE7uyGsISbDznSkmGx1myHghYugQbj9aE7DdNxuOJBher jVqg== 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=wkRViAuLvZ/CcpdUJFjDqD6acXKpQVSCKmPKaVUcWvk=; b=qQtOhyD4/WOdCdX74Igwbq0HBN0b18hvD6slinXjhEwYjSdRcUexTu00JfstW15f81 /1iRcGcNqcU9TFuiZ8Lnq1dHtEou2j2K9f0cteeke9joNILPoBgqdvHhb6TEVc9G4i/8 7tYs1L0YAbP0L2LMcI2re01KPM4xGGf54eHpcU5/W1dJQ9YBxm55qGzS69ukqoRRvGmE kl3+7YdOAbFzrLjs7qcmTRjCHpKeJlO4PXmbkB4l32vwxlEeXVd0kz2ZKejpFUv/voQ8 pc3zWSVRTdwOI/i/4jkpYb76dc7+DIDtfLwP+n9NLzUgzPnAai7OzJTHOkNfTL/guhjs ykag== 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 bi3si12726469edb.116.2020.04.15.15.06.38; Wed, 15 Apr 2020 15:07:02 -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 S2389910AbgDODlr (ORCPT + 99 others); Tue, 14 Apr 2020 23:41:47 -0400 Received: from inva020.nxp.com ([92.121.34.13]:52542 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388437AbgDODlh (ORCPT ); Tue, 14 Apr 2020 23:41:37 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 10E401A06AE; Wed, 15 Apr 2020 05:41:34 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id D2A1E1A06B1; Wed, 15 Apr 2020 05:41:29 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 685A0402FC; Wed, 15 Apr 2020 11:41:23 +0800 (SGT) From: Anson Huang To: srinivas.kandagatla@linaro.org, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH 2/3] dt-bindings: nvmem: Convert i.MX IIM to json-schema Date: Wed, 15 Apr 2020 11:33:21 +0800 Message-Id: <1586921602-1877-2-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1586921602-1877-1-git-send-email-Anson.Huang@nxp.com> References: <1586921602-1877-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.MX IIM binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- .../devicetree/bindings/nvmem/imx-iim.txt | 22 -------- .../devicetree/bindings/nvmem/imx-iim.yaml | 59 ++++++++++++++++++++++ 2 files changed, 59 insertions(+), 22 deletions(-) delete mode 100644 Documentation/devicetree/bindings/nvmem/imx-iim.txt create mode 100644 Documentation/devicetree/bindings/nvmem/imx-iim.yaml diff --git a/Documentation/devicetree/bindings/nvmem/imx-iim.txt b/Documentation/devicetree/bindings/nvmem/imx-iim.txt deleted file mode 100644 index 1978c5b..0000000 --- a/Documentation/devicetree/bindings/nvmem/imx-iim.txt +++ /dev/null @@ -1,22 +0,0 @@ -Freescale i.MX IC Identification Module (IIM) device tree bindings - -This binding represents the IC Identification Module (IIM) found on -i.MX25, i.MX27, i.MX31, i.MX35, i.MX51 and i.MX53 SoCs. - -Required properties: -- compatible: should be one of - "fsl,imx25-iim", "fsl,imx27-iim", - "fsl,imx31-iim", "fsl,imx35-iim", - "fsl,imx51-iim", "fsl,imx53-iim", -- reg: Should contain the register base and length. -- interrupts: Should contain the interrupt for the IIM -- clocks: Should contain a phandle pointing to the gated peripheral clock. - -Example: - - iim: iim@63f98000 { - compatible = "fsl,imx53-iim", "fsl,imx27-iim"; - reg = <0x63f98000 0x4000>; - interrupts = <69>; - clocks = <&clks IMX5_CLK_IIM_GATE>; - }; diff --git a/Documentation/devicetree/bindings/nvmem/imx-iim.yaml b/Documentation/devicetree/bindings/nvmem/imx-iim.yaml new file mode 100644 index 0000000..0d85d37 --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/imx-iim.yaml @@ -0,0 +1,59 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/nvmem/imx-iim.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale i.MX IC Identification Module (IIM) device tree bindings + +maintainers: + - Anson Huang + +description: | + This binding represents the IC Identification Module (IIM) found on + i.MX25, i.MX27, i.MX31, i.MX35, i.MX51 and i.MX53 SoCs. + +allOf: + - $ref: "nvmem.yaml#" + +properties: + compatible: + enum: + - fsl,imx25-iim + - fsl,imx27-iim + - fsl,imx31-iim + - fsl,imx35-iim + - fsl,imx51-iim + - fsl,imx53-iim + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + description: | + IIM's clock source. + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - clocks + +additionalProperties: false + +examples: + - | + #include + + iim: efuse@63f98000 { + compatible = "fsl,imx53-iim"; + reg = <0x63f98000 0x4000>; + interrupts = <69>; + clocks = <&clks IMX5_CLK_IIM_GATE>; + }; + +... -- 2.7.4