Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1246602ybz; Wed, 29 Apr 2020 18:02:47 -0700 (PDT) X-Google-Smtp-Source: APiQypLLJHaWYdUDUCTeFyDNTcBkiFjfS09HOKTK43so43LcqBjUTuEi5Yssp6VyRnoCEkk9J61+ X-Received: by 2002:a17:906:200a:: with SMTP id 10mr431663ejo.294.1588208567852; Wed, 29 Apr 2020 18:02:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588208567; cv=none; d=google.com; s=arc-20160816; b=Fc90kUJSRisS/NQQhZSqkfLJrwwXvdvs//HZiinYkHsqC+2GRfUcKMU/WkfU+/qA0x tIxtKz0C3qfYtuP1FmBZzWzHYKFSLKTd2u9NHwCP5f7fl80r3QZC/+wklncmlWNeESri bLpOYkK/g4GQwlUshnbPV9MvMFWUm5pfNsJP5Tp4sBXaDG8/5j5m3H5wvHgZqBnzqA4T 17ZRkKnTtWetEjQOPWfo9GLJ9tJ+dT+HDcl0H4AXUnmCjHXC0+si1t9QUc3wqrY4eAU/ JAx0goUIGpH4DxozZ885mPDxfuzXbJvP6zxbcaVeGSvgex3zTIPEK02lKo8ivm4pgs+F q/jQ== 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=VxkglkjTrEkgCrcyVNPI3b/MfpRIjjF4Gk9EQGy+UD8=; b=Pjd8h6hT3FWReANCdju+r6k+zYaDAPSDrqAarGx4kTKqN4LB2sf0dQxaYD958MYYcK Xv9ItVEEShWAVHZns891DwLTQdSHItgxm8RC7MseI1g0YC/tz8UJz6jh8aa0jZxqgQZk cv0g1ZpeOmcM0WMobiaui0LqQOou7tpEJFJ3txktrvoD2e20285iIxXajUJr2FulthBu tJWSr5a5eVyXhIMbs0cB+r+wF8EKG4PIqhA3UfkwXz5sCDdM7i0glVeX0AIxMboZ/hgK RI2ls1pv6ZkW5zevtuNOh642I5Ml/YuaF+1QxEID/ohntLlKwuSZzUm/jewTnKOfVEPg Isrg== 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 d11si4201013edy.477.2020.04.29.18.02.24; Wed, 29 Apr 2020 18:02: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 S1726684AbgD3BBB (ORCPT + 99 others); Wed, 29 Apr 2020 21:01:01 -0400 Received: from inva020.nxp.com ([92.121.34.13]:38442 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726587AbgD3BA7 (ORCPT ); Wed, 29 Apr 2020 21:00:59 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 0FAAE1A056F; Thu, 30 Apr 2020 03:00:57 +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 E85941A057E; Thu, 30 Apr 2020 03:00:51 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 9ECA740302; Thu, 30 Apr 2020 09:00:45 +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 4/5] dt-bindings: clock: Convert i.MX6SLL clock to json-schema Date: Thu, 30 Apr 2020 08:52:00 +0800 Message-Id: <1588207921-20604-4-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.MX6SLL 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/imx6sll-clock.txt | 36 ------------- .../devicetree/bindings/clock/imx6sll-clock.yaml | 60 ++++++++++++++++++++++ 2 files changed, 60 insertions(+), 36 deletions(-) delete mode 100644 Documentation/devicetree/bindings/clock/imx6sll-clock.txt create mode 100644 Documentation/devicetree/bindings/clock/imx6sll-clock.yaml diff --git a/Documentation/devicetree/bindings/clock/imx6sll-clock.txt b/Documentation/devicetree/bindings/clock/imx6sll-clock.txt deleted file mode 100644 index fee849d..0000000 --- a/Documentation/devicetree/bindings/clock/imx6sll-clock.txt +++ /dev/null @@ -1,36 +0,0 @@ -* Clock bindings for Freescale i.MX6 SLL - -Required properties: -- compatible: Should be "fsl,imx6sll-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/imx6sll-clock.h -for the full list of i.MX6 SLL clock IDs. - -Examples: - -#include - -clks: clock-controller@20c4000 { - compatible = "fsl,imx6sll-ccm"; - reg = <0x020c4000 0x4000>; - interrupts = , - ; - #clock-cells = <1>; - clocks = <&ckil>, <&osc>, <&ipp_di0>, <&ipp_di1>; - clock-names = "ckil", "osc", "ipp_di0", "ipp_di1"; -}; - -uart1: serial@2020000 { - compatible = "fsl,imx6sl-uart", "fsl,imx6q-uart", "fsl,imx21-uart"; - reg = <0x02020000 0x4000>; - interrupts = ; - clocks = <&clks IMX6SLL_CLK_UART1_IPG>, - <&clks IMX6SLL_CLK_UART1_SERIAL>; - clock-names = "ipg", "per"; -}; diff --git a/Documentation/devicetree/bindings/clock/imx6sll-clock.yaml b/Documentation/devicetree/bindings/clock/imx6sll-clock.yaml new file mode 100644 index 0000000..3e7d6a3c --- /dev/null +++ b/Documentation/devicetree/bindings/clock/imx6sll-clock.yaml @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/imx6sll-clock.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Clock bindings for Freescale i.MX6 SLL + +maintainers: + - Anson Huang + +properties: + compatible: + const: fsl,imx6sll-ccm + + reg: + maxItems: 1 + + interrupts: + 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 + + clock-controller@20c4000 { + compatible = "fsl,imx6sll-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