Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4053044ybz; Mon, 20 Apr 2020 14:45:45 -0700 (PDT) X-Google-Smtp-Source: APiQypJFGi3LxlKbeVHbzl2QTJRc+CR6rOKmnV3FMxUTwW9Xzkv8qCdmsNPMS6kwOE4yK1mNOS// X-Received: by 2002:a17:906:1c56:: with SMTP id l22mr18358486ejg.304.1587419145276; Mon, 20 Apr 2020 14:45:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587419145; cv=none; d=google.com; s=arc-20160816; b=ZCOGgoD/MiHY+hjCOm5mrL5OGytMD7vM0cT4GJKbYujobpsGeGIrJwvifr5xg768ID YPBo8XWI657LJ7mhC827pUtHiUs2fiEiH+eXNVRrrR7YJEj8ureltohR8wgSsnlVeK3t UZhYrMEpTtY8++GkmO69J5CR8eJS7H4RNbSwCVNbHfPX5eWCDrNrw7vD0nuYjQ0n6fq5 W8fZ3mIIHZj2LNdreE0eeiQjcJ4472ueWkvRGbblOVWpjebM/1Yr0DBG8PQkrAlYyN36 sEyKszS/UuXXdhXvJ+f153tA0MPJW83/nhZ/PKaZrx33mhRngxoQEplDe1/7N+Y7x7no jn2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=LZKwSahPOrclJ2VbpUDt4G9WvWMr16xeYo8HAFLzKHs=; b=HiJ6uho74sYU/3gVI1t2HtsvafOHqnPkqx6oFKIE98T0k/hyqqvg7UVErlPnjB6KY2 Mt2Zf+7XO3kuBTlPHywKCClr6o4ntp3nReL6Zf9FuxiGoBkToh1aF/jkssC0EGjoGNlr OeWFi4D3LkHyO7mtoK8vh8HLbeduDtpnt3Qy5yTF4TeJ9qO1MGQPpxO/0+Q4/Ar9sTi0 /BLw9kSaczbDAs3L1mIWcf0JA8KDIIgtc4e88v3FFydTEVZzNU8bWWmvfbAOkrcjKYZc Ag5neJONamhvnWLqxkFU4z6aqbaR2RGkhm2Hqh2seTUYbhOET2WOyeERVvBgv4SFFZnf OMag== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d10si485213edo.6.2020.04.20.14.45.22; Mon, 20 Apr 2020 14:45:45 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728168AbgDTVoC (ORCPT + 99 others); Mon, 20 Apr 2020 17:44:02 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:35330 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726400AbgDTVoB (ORCPT ); Mon, 20 Apr 2020 17:44:01 -0400 Received: by mail-ot1-f68.google.com with SMTP id e20so9554683otl.2; Mon, 20 Apr 2020 14:44:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=LZKwSahPOrclJ2VbpUDt4G9WvWMr16xeYo8HAFLzKHs=; b=jHh0jcIHsiGIkeQzCxvvlV+OWimM6d7hIlWq/XUDqz/App23r7FmnXzl+Y5z0H6MPQ BK+mtbxXLQ0iNgcD238/sXDVXSsZVihz5jq6kOw0zIpqPy20EJRZ+I8rv//2INdwLCXH RTFuICQORTx9gQgCw2xQtjcSEmYfb9me23e8dDatnIk0Vj2ZLBV7beIpHPW2d27kxEx2 PI8FDymDGYCuzZ2M0k4+9nkeJZ9e9mNILk64YlcR0QjPUNNpDHhGc4vPiwaUp0/cSwRs SEgvSLLAkWOD1Uj2pvn2/dhibopYW4cGg2MOGUeEgtVNH2H9z/fZ7Bo5gXXxKr8ogpBX SLzQ== X-Gm-Message-State: AGi0PuaSz5/hJzJwILsHIqaqAznbd5rluUaDDNR/3BmOv5FFqIGV4X68 QKi2pIVwDgPxQNxryjMXtw== X-Received: by 2002:a9d:7343:: with SMTP id l3mr9432115otk.276.1587419040593; Mon, 20 Apr 2020 14:44:00 -0700 (PDT) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id 76sm227400otg.68.2020.04.20.14.43.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Apr 2020 14:44:00 -0700 (PDT) Received: (nullmailer pid 15237 invoked by uid 1000); Mon, 20 Apr 2020 21:43:59 -0000 Date: Mon, 20 Apr 2020 16:43:59 -0500 From: Rob Herring To: Anson Huang Cc: srinivas.kandagatla@linaro.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, Linux-imx@nxp.com Subject: Re: [PATCH 2/3] dt-bindings: nvmem: Convert i.MX IIM to json-schema Message-ID: <20200420214358.GA13370@bogus> References: <1586921602-1877-1-git-send-email-Anson.Huang@nxp.com> <1586921602-1877-2-git-send-email-Anson.Huang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1586921602-1877-2-git-send-email-Anson.Huang@nxp.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 15, 2020 at 11:33:21AM +0800, Anson Huang wrote: > 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. Drop this. Same in patch 3. > + 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 >