Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1246968ybz; Wed, 29 Apr 2020 18:03:10 -0700 (PDT) X-Google-Smtp-Source: APiQypIaZDOworuEgNda4W2jlug/us1tfDZ1WiC0mQUqtAsJn5dXwen47RV+GQCKbxEtWPZCqbjp X-Received: by 2002:a17:906:e5a:: with SMTP id q26mr403127eji.261.1588208590171; Wed, 29 Apr 2020 18:03:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588208590; cv=none; d=google.com; s=arc-20160816; b=QV7q++BNrrH7LPbEmR1x21aA/1kMugYNSd6lUMsH1PwNs+73FbyWjNi959LLnnX3eS Fb4/8iVcMOnjMVzOBjB6d30aogQ3BYcSn8yADx6wOdIJ302yXtt8TIl2ZATcNHHpiNZ2 YcyQx4jBbDna2qJL83TjyzFrUAEbVkYHiUtaaBQX2CtrhtibKmT3+a+w+hS+NpAv77Ok 0m6SmAkSfUALZ81kdYhl4Of2j6Q5TGe/xkBPWDfLN0gP+6Q7afFkBelAyyb+SnpgjrBQ QUShJWv3YTNTLPslES+jvN+fJbEtoiFzqWRIM0ZjuHckPHWg6BFGeF6tE6x0RYkFo20H 5o4w== 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=3Hle6AyMXP/ey+/GxEyH2s1t/WqmP1IYJ5ipeV1SBBc=; b=VLfQe4teGdTXWUCmXne9rvKA9LZrEwJOlvHbzWICnKLXosb6eOXSUx5bvPaHdHdFq9 0cPZ6LVnqwpD/PCQ85JfzDAxbWmBCBD7j3/QFS/6GD1k180NXA0OxnyQgFOGmA4LNIYQ /8p2AmcKYASFyYtb9tlCk+2tmEz6thZBGcCCUbIVMOzpD3aZXoCsZxDCc+xwyQCAzDac VIY51EJ4dZDvbIPeIfIxLNXkov7rZr5Sgq2c7luzzgFN98qb1fCNth7y6oW/vdqGj0cG bbWNGxCVIRx8ltSf+ePPlOzaFs2gj2MT2pe55ZKrzYOXPwjrokMnO6EdxlXRnC883rb2 pDKA== 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 pv20si4708251ejb.295.2020.04.29.18.02.47; Wed, 29 Apr 2020 18:03:10 -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 S1726669AbgD3BBA (ORCPT + 99 others); Wed, 29 Apr 2020 21:01:00 -0400 Received: from inva021.nxp.com ([92.121.34.21]:37932 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726279AbgD3BA6 (ORCPT ); Wed, 29 Apr 2020 21:00:58 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id B85352005F3; Thu, 30 Apr 2020 03:00:55 +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 D22EE200611; Thu, 30 Apr 2020 03:00:50 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 7B7C2402AA; Thu, 30 Apr 2020 09:00:44 +0800 (SGT) From: Anson Huang To: mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-clk@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 V4 3/5] dt-bindings: clock: Convert i.MX6SL clock to json-schema Date: Thu, 30 Apr 2020 08:51:59 +0800 Message-Id: <1588207921-20604-3-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1588207921-20604-1-git-send-email-Anson.Huang@nxp.com> References: <1588207921-20604-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.MX6SL clock binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- Changes since V3: - update license to be with (GPL-2.0-only OR BSD-2-Clause); - remove unnecessary minItem for interrupts; - remove label in example. --- .../devicetree/bindings/clock/imx6sl-clock.txt | 10 ------ .../devicetree/bindings/clock/imx6sl-clock.yaml | 42 ++++++++++++++++++++++ 2 files changed, 42 insertions(+), 10 deletions(-) delete mode 100644 Documentation/devicetree/bindings/clock/imx6sl-clock.txt create mode 100644 Documentation/devicetree/bindings/clock/imx6sl-clock.yaml diff --git a/Documentation/devicetree/bindings/clock/imx6sl-clock.txt b/Documentation/devicetree/bindings/clock/imx6sl-clock.txt deleted file mode 100644 index 15e40bd..0000000 --- a/Documentation/devicetree/bindings/clock/imx6sl-clock.txt +++ /dev/null @@ -1,10 +0,0 @@ -* Clock bindings for Freescale i.MX6 SoloLite - -Required properties: -- compatible: Should be "fsl,imx6sl-ccm" -- reg: Address and length of the register set -- #clock-cells: Should be <1> - -The clock consumer should specify the desired clock by having the clock -ID in its "clocks" phandle cell. See include/dt-bindings/clock/imx6sl-clock.h -for the full list of i.MX6 SoloLite clock IDs. diff --git a/Documentation/devicetree/bindings/clock/imx6sl-clock.yaml b/Documentation/devicetree/bindings/clock/imx6sl-clock.yaml new file mode 100644 index 0000000..833da8b --- /dev/null +++ b/Documentation/devicetree/bindings/clock/imx6sl-clock.yaml @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/imx6sl-clock.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Clock bindings for Freescale i.MX6 SoloLite + +maintainers: + - Anson Huang + +properties: + compatible: + const: fsl,imx6sl-ccm + + reg: + maxItems: 1 + + interrupts: + maxItems: 2 + + '#clock-cells': + const: 1 + +required: + - compatible + - reg + - interrupts + - '#clock-cells' + +examples: + # Clock Control Module node: + - | + #include + + clock-controller@20c4000 { + compatible = "fsl,imx6sl-ccm"; + reg = <0x020c4000 0x4000>; + interrupts = <0 87 IRQ_TYPE_LEVEL_HIGH>, + <0 88 IRQ_TYPE_LEVEL_HIGH>; + #clock-cells = <1>; + }; -- 2.7.4