Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp193463ybz; Tue, 21 Apr 2020 07:19:58 -0700 (PDT) X-Google-Smtp-Source: APiQypIqHMAqiqW1Hb54sqJiIASGheRDejpP1pVDNmF7kTqD0F130yGJx7Z8saBurHmCsMYdNGjc X-Received: by 2002:a17:906:168f:: with SMTP id s15mr22280421ejd.17.1587478798512; Tue, 21 Apr 2020 07:19:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587478798; cv=none; d=google.com; s=arc-20160816; b=DX2vHESofTWeD+I7YOtmiEnERXuwVICXzsCvilCI4p6ggNkRKxmP2KZCLfRPmZrWS+ wyNO8kwEbwBfjazob8ZZ5taO1jOJ4/Bbef9tIv2DN14cT1jQYLuuRGk9uOnTTBeuWNfX svvQQQq/fMa6ZxcLt9j6mgdaXpZ+TakrTr7XW8XGu0UgpbgqGn3EZ5UlZ6qexbsZlNGZ n626SMgc/77MygD5cXzwDCuHHIasIDvPzQ16Gc/QVlPQ68bEDN07ettXB2+d0qtQkYC1 fOOtfjdGa2FONV5uuH+fo111Qyeg4SyEN++qccvheVLvbAEb2oh86JFRrXOu10/S137x YcDQ== 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=N1s3A9B9X1AguDnBI0phtJcJdsmr+85FhY1ZcQIEJ1g=; b=0OReHlgIGeMiETxaQQdjUuQRmnaWER2PZ5C+WWuBlhia+hNMaFDQUrRCZlwqlJfw8r DqFlz3kGvnhdpUHYpS2vuAILF3MxkX40gCHkUxYuoUdZ+mTnIPyrZK4SeqMfCbHmvHsS XLah8RHGpKVgFQ9vB53mnfguTWwAFWaRZwJe+X5hpUg1BhlbgODi52nV+YF3n6vt/ElV WWe2jeDNcOTHMT97eXUzdJ/qemvjuvJD4XvGD/N56r9gPKgFo4YghA9DtfuQNoavofYp MW/ov2uF/m/XM0F2ls82yvEt8V2bBgCJhVSgAI+j269+5Yyt8yPmsn3J2qBD9drjescC XBdg== 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 yc9si1799443ejb.319.2020.04.21.07.19.34; Tue, 21 Apr 2020 07:19:58 -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 S1726741AbgDUOSN (ORCPT + 99 others); Tue, 21 Apr 2020 10:18:13 -0400 Received: from inva020.nxp.com ([92.121.34.13]:43134 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728803AbgDUOSL (ORCPT ); Tue, 21 Apr 2020 10:18:11 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 321F01A0D8A; Tue, 21 Apr 2020 16:18:09 +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 021231A0DA4; Tue, 21 Apr 2020 16:18:05 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 9E149402ED; Tue, 21 Apr 2020 22:17:59 +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 V2 3/3] dt-bindings: nvmem: Convert MXS OCOTP to json-schema Date: Tue, 21 Apr 2020 22:09:41 +0800 Message-Id: <1587478181-21226-3-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1587478181-21226-1-git-send-email-Anson.Huang@nxp.com> References: <1587478181-21226-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 --- Changes since V1: - drop clocks description. --- .../devicetree/bindings/nvmem/mxs-ocotp.txt | 24 ----------- .../devicetree/bindings/nvmem/mxs-ocotp.yaml | 50 ++++++++++++++++++++++ 2 files changed, 50 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..ff317fd --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/mxs-ocotp.yaml @@ -0,0 +1,50 @@ +# 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: + 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