Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp122834ybk; Tue, 12 May 2020 17:22:47 -0700 (PDT) X-Google-Smtp-Source: APiQypL/q8vGuIJqciFKCVRHdNG43Rv8+BtKmLn/pdiu2zOGx37TCo34smDSMhUxK4z4kzCJsRF9 X-Received: by 2002:a17:906:8246:: with SMTP id f6mr13265627ejx.350.1589329367096; Tue, 12 May 2020 17:22:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589329367; cv=none; d=google.com; s=arc-20160816; b=T7Cs8pZb6DE7J6hsHv2uPcs+aJeiSq0EKxWkeccsq/eJC92FGl347LqzmGhL9RDchP IYpcryPlI6KnQXnL7+Ol6LWIKcEmpEtkLqMfqOdhBHJFGpTwA/kPHR9BCL+VngZiMZ3I E2zibslfnUyAd7D0HJOdzhgyIDEPqR2DXV3tWVZDamTdKJFv1NAq3SvTOGH3enLH6fIE J1U8VBNssDdA1GuidG7LeRFHYUtWBO2OkvHBijSsKBeI5cvbYnJ/9hcFSG9/hXqaPOi6 1t9Gz6RnGE4J1M4Hmohnxgrvtz8qmOnbXrcpFZzcWlz2izp6Jy4eEUNPZpLGgs+YYljW lwBw== 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=zXZMuXCEjpqQ/hAu/YwxZuHG1KcPAeXaK+qzx0tZvKM=; b=ko+LBPIxyZNekoqyw0pyx4yenrj9SaNDhXiAgJTttglT83eKL+HBiZrg+JfTJBQX18 hXAWsGSx3AYA1yGaIPAWEswwlaOHzNhEwKZGU8+Qj5Bb68ktmP+/M+jeQu8v85m/GGcx fjm2AdWOSoITNnU9oBjm1NcQUeP1l9Ydc9fxYnGdaaQEnrygajQMJXqchSfW9ykfG8r5 mIHvf1JhXVny+h82voRdXjP0p9qYgAVRd1HGQUtCrrajugOSORu6HAJzCDWCev45Wgrl vzphOjGnD2cX9N76NoDYa5UHdPlo27A0wXg1F/EYUOrAuFo64jFhYgZFepIq2X6E7W6X B5gw== 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 c17si9225192ejr.75.2020.05.12.17.22.24; Tue, 12 May 2020 17:22:47 -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 S1731815AbgEMAVC (ORCPT + 99 others); Tue, 12 May 2020 20:21:02 -0400 Received: from inva021.nxp.com ([92.121.34.21]:36950 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731771AbgEMAVB (ORCPT ); Tue, 12 May 2020 20:21:01 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id AA38D20119A; Wed, 13 May 2020 02:20:57 +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 C7722201199; Wed, 13 May 2020 02:20:52 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id C996D402E1; Wed, 13 May 2020 08:20:46 +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 V5 3/5] dt-bindings: clock: Convert i.MX6SL clock to json-schema Date: Wed, 13 May 2020 08:11:22 +0800 Message-Id: <1589328684-1397-4-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1589328684-1397-1-git-send-email-Anson.Huang@nxp.com> References: <1589328684-1397-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 Acked-by: Stephen Boyd --- Changes since V4: - add descriptions for interrupts and each item of it. --- .../devicetree/bindings/clock/imx6sl-clock.txt | 10 ----- .../devicetree/bindings/clock/imx6sl-clock.yaml | 48 ++++++++++++++++++++++ 2 files changed, 48 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..135568c --- /dev/null +++ b/Documentation/devicetree/bindings/clock/imx6sl-clock.yaml @@ -0,0 +1,48 @@ +# 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: + description: CCM provides 2 interrupt requests, request 1 is to generate + interrupt for frequency or mux change, request 2 is to generate + interrupt for oscillator read or PLL lock. + items: + - description: CCM interrupt request 1 + - description: CCM interrupt request 2 + 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