Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp610649ybz; Wed, 15 Apr 2020 15:06:27 -0700 (PDT) X-Google-Smtp-Source: APiQypLbipxgJ4hozHirEQH6lHXe7YSPXZCBmGAL62/mBUYCkdVJ2bnMji5vQ39qipPOiaR9V+Ba X-Received: by 2002:a17:906:2bd1:: with SMTP id n17mr6933744ejg.176.1586988387228; Wed, 15 Apr 2020 15:06:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586988387; cv=none; d=google.com; s=arc-20160816; b=VEyvf4vW5lqpwLCGGqcNk6PWGZ07FqhMFtimidUJwtVTARwtRc4GkSY9I5fAK3cRrj lh1Pym/K4/Ur++k981rVUZ8j0i/h1FpRPg8w4YO6yd3oeC2ZLpdtxhp/CMMnzfO5dTzb EUWQKt5cLvrk3dnO0VZXnqL64OdsJsxfGMwWJw2wy2b3ZXmRhOwFWztvcVeZ7FHBjNVP eitpLtmbJTSC3TKVieV248N908UDTJYMNbcgYk8kNUi+i65cydx0Xo6z8mxP6s74AMdi Zv3RqXgbuQvDEx0jMNsBGxim7949ObeEjSJXjQGUJwXv2v3Z2XP7ph3fhB8gVByWnkrN uLmA== 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=ATJ4gP5AVJPhEkO4eYiyrp4jQmq0Y3UuYR70V79lU+A=; b=osJ7XTEPTbcbAFazxS6agHevncytO/E7a4r4wMgZqMsDJg25EBmllg52XHmxeOk8s1 MkgYe+tc+i+mWR9fQchSwwriZqpRg7RZUr2oGIdZUf06ktPLXBCaWbC1kwAiXWTkpkGa TqcffS8j15sd/tUoh857on6hCzTxD+hQ1tp7aFDxPykP8WXEklmSY4mmz0fp1bSH0Z6W 2UugOlh97PcT+UWDSSvb23eRUoL4A5XVIcmnvjFytuf0gRQj7WiFaJbX6DJXV5gCzfue X+aP0iskjN+XubaBM98JinBwr8l8+4IijXsoHEKOVWHFVRrxVciaETGfBB6nWkFYE/cs uApg== 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 17si11419667ejz.46.2020.04.15.15.06.03; Wed, 15 Apr 2020 15:06: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 S2389845AbgDODll (ORCPT + 99 others); Tue, 14 Apr 2020 23:41:41 -0400 Received: from inva021.nxp.com ([92.121.34.21]:36994 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388436AbgDODlg (ORCPT ); Tue, 14 Apr 2020 23:41:36 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 0E74E20071C; 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 inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id D2651200716; 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 4D38840307; Wed, 15 Apr 2020 11:41:24 +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 3/3] dt-bindings: nvmem: Convert MXS OCOTP to json-schema Date: Wed, 15 Apr 2020 11:33:22 +0800 Message-Id: <1586921602-1877-3-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 MXS OCOTP binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- .../devicetree/bindings/nvmem/mxs-ocotp.txt | 24 ---------- .../devicetree/bindings/nvmem/mxs-ocotp.yaml | 52 ++++++++++++++++++++++ 2 files changed, 52 insertions(+), 24 deletions(-) delete mode 100644 Documentation/devicetree/bindings/nvmem/mxs-ocotp.txt create mode 100644 Documentation/devicetree/bindings/nvmem/mxs-ocotp.yaml diff --git a/Documentation/devicetree/bindings/nvmem/mxs-ocotp.txt b/Documentation/devicetree/bindings/nvmem/mxs-ocotp.txt deleted file mode 100644 index 372c72f..0000000 --- a/Documentation/devicetree/bindings/nvmem/mxs-ocotp.txt +++ /dev/null @@ -1,24 +0,0 @@ -On-Chip OTP Memory for Freescale i.MX23/i.MX28 - -Required properties : -- compatible : - - "fsl,imx23-ocotp" for i.MX23 - - "fsl,imx28-ocotp" for i.MX28 -- #address-cells : Should be 1 -- #size-cells : Should be 1 -- reg : Address and length of OTP controller registers -- clocks : Should contain a reference to the hbus clock - -= Data cells = -Are child nodes of mxs-ocotp, bindings of which as described in -bindings/nvmem/nvmem.txt - -Example for i.MX28: - - ocotp: ocotp@8002c000 { - compatible = "fsl,imx28-ocotp", "fsl,ocotp"; - #address-cells = <1>; - #size-cells = <1>; - reg = <0x8002c000 0x2000>; - clocks = <&clks 25>; - }; diff --git a/Documentation/devicetree/bindings/nvmem/mxs-ocotp.yaml b/Documentation/devicetree/bindings/nvmem/mxs-ocotp.yaml new file mode 100644 index 0000000..b8be3bb --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/mxs-ocotp.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/nvmem/mxs-ocotp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: On-Chip OTP Memory for Freescale i.MX23/i.MX28 + +maintainers: + - Anson Huang + +allOf: + - $ref: "nvmem.yaml#" + +properties: + compatible: + enum: + - fsl,imx23-ocotp + - fsl,imx28-ocotp + + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + + reg: + maxItems: 1 + + clocks: + description: | + OCOTP's clock source. + maxItems: 1 + +required: + - compatible + - reg + - clocks + +additionalProperties: false + +examples: + - | + ocotp: efuse@8002c000 { + compatible = "fsl,imx28-ocotp"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0x8002c000 0x2000>; + clocks = <&clks 25>; + }; + +... -- 2.7.4