Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1891132ybz; Thu, 16 Apr 2020 17:51:21 -0700 (PDT) X-Google-Smtp-Source: APiQypK1jUdzOiAl9Fdi6QsECK+Tg/CamSkIJan3IiN6BB03304hq/52870qzeDgdO0F0BX6USoB X-Received: by 2002:a17:907:2101:: with SMTP id qn1mr678659ejb.207.1587084681544; Thu, 16 Apr 2020 17:51:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587084681; cv=none; d=google.com; s=arc-20160816; b=lcKMEGjPiksjoufexbhlLcdsGd6v31hhSp38tTHt7303GrVPYYYUKys9r5JMl9msUs p43pRITYn4NxVPNHV6QyIFOmhR/XjnGIIRhtIodUB9bDI8SAl3gShRZqP9TN+MgCJg51 NIfn/mQ/4h78KNSHJQi7L2oZ29srCi5NdNWqMGuEv+bT/H6Ld9wMrzpGoWX3Ttw52akh xq9tXq0JBcCG73xqlMyQJWojW7DOWxloRfzS99xDNm0U3JWtKcfXmvKZT5rCWoKWH/Nx gklHqshIL3LYhX9dILmAyAR7KSR0tVoR8kMKZex7UYfcu6fUP8E41T+g9VcvqbgogsWQ S5bw== 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=1NKNnM08i9db+PkeX3krEF9m+4+fmNUhrWMVRODzPls=; b=0BtnkifgLZMN3CJJGYg2ylzZLpzQLIZCx4OlpnNkWntEpXrBJZjHasFKHo0yUQ8MUN 4W50NIuM8Z3iCLp1YZKEx7yYiTpRUKTVgDS9MDJ/Uc2AU/8uodNdU9Rk/F3PBhWgNsoX u5MC5uZTpylCdIRekiIJG1V8ir+hx1FQgUjuDHZVZFO20vhpCgnX9VNcCArP/OXsOjaM K87nfIxOesqkOZJ8WKmPu8sn71c64juPg22FiJvm2G7AIf9a7dpLfRUpeEmyL1RVSumh ine4tGsBZK/v8zh0oi9+Obp7ii6Or2rZ2Ygwqy5EIv7uGdlVZlMiLoM4K7iLl8e9b67+ McvA== 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 f11si10233430ejb.492.2020.04.16.17.50.58; Thu, 16 Apr 2020 17:51:21 -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 S1728645AbgDQAt5 (ORCPT + 99 others); Thu, 16 Apr 2020 20:49:57 -0400 Received: from inva021.nxp.com ([92.121.34.21]:54564 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728449AbgDQAtx (ORCPT ); Thu, 16 Apr 2020 20:49:53 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id B8128200F20; Fri, 17 Apr 2020 02:49:50 +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 CBF72200EDF; Fri, 17 Apr 2020 02:49:45 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 98C4E402FC; Fri, 17 Apr 2020 08:49:39 +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 V3 5/5] dt-bindings: clock: Convert i.MX6UL clock to json-schema Date: Fri, 17 Apr 2020 08:41:31 +0800 Message-Id: <1587084091-5941-5-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1587084091-5941-1-git-send-email-Anson.Huang@nxp.com> References: <1587084091-5941-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.MX6UL clock binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- Changes since V2: - Force 'interrupts' minItem/maxItem to 2. --- .../devicetree/bindings/clock/imx6ul-clock.txt | 13 ----- .../devicetree/bindings/clock/imx6ul-clock.yaml | 61 ++++++++++++++++++++++ 2 files changed, 61 insertions(+), 13 deletions(-) delete mode 100644 Documentation/devicetree/bindings/clock/imx6ul-clock.txt create mode 100644 Documentation/devicetree/bindings/clock/imx6ul-clock.yaml diff --git a/Documentation/devicetree/bindings/clock/imx6ul-clock.txt b/Documentation/devicetree/bindings/clock/imx6ul-clock.txt deleted file mode 100644 index 571d503..0000000 --- a/Documentation/devicetree/bindings/clock/imx6ul-clock.txt +++ /dev/null @@ -1,13 +0,0 @@ -* Clock bindings for Freescale i.MX6 UltraLite - -Required properties: -- compatible: Should be "fsl,imx6ul-ccm" -- reg: Address and length of the register set -- #clock-cells: Should be <1> -- clocks: list of clock specifiers, must contain an entry for each required - entry in clock-names -- clock-names: should include entries "ckil", "osc", "ipp_di0" and "ipp_di1" - -The clock consumer should specify the desired clock by having the clock -ID in its "clocks" phandle cell. See include/dt-bindings/clock/imx6ul-clock.h -for the full list of i.MX6 UltraLite clock IDs. diff --git a/Documentation/devicetree/bindings/clock/imx6ul-clock.yaml b/Documentation/devicetree/bindings/clock/imx6ul-clock.yaml new file mode 100644 index 0000000..f742b65 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/imx6ul-clock.yaml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/imx6ul-clock.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Clock bindings for Freescale i.MX6 UltraLite + +maintainers: + - Anson Huang + +properties: + compatible: + const: fsl,imx6ul-ccm + + reg: + maxItems: 1 + + interrupts: + minItems: 2 + maxItems: 2 + + '#clock-cells': + const: 1 + + clocks: + items: + - description: 32k osc + - description: 24m osc + - description: ipp_di0 clock input + - description: ipp_di1 clock input + + clock-names: + items: + - const: ckil + - const: osc + - const: ipp_di0 + - const: ipp_di1 + +required: + - compatible + - reg + - interrupts + - '#clock-cells' + - clocks + - clock-names + +examples: + # Clock Control Module node: + - | + #include + + clks: clock-controller@20c4000 { + compatible = "fsl,imx6ul-ccm"; + reg = <0x020c4000 0x4000>; + interrupts = , + ; + #clock-cells = <1>; + clocks = <&ckil>, <&osc>, <&ipp_di0>, <&ipp_di1>; + clock-names = "ckil", "osc", "ipp_di0", "ipp_di1"; + }; -- 2.7.4