Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp3178118ybx; Fri, 8 Nov 2019 15:20:03 -0800 (PST) X-Google-Smtp-Source: APXvYqzmrtJ5yZEWqaFO4v4uK6p4eRUn0Dz2cYI/B0YyUJ6M8gcaCYZxzMP/QPZxXOBSbX//ohFG X-Received: by 2002:aa7:c987:: with SMTP id c7mr13274867edt.232.1573255203024; Fri, 08 Nov 2019 15:20:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573255203; cv=none; d=google.com; s=arc-20160816; b=0Wywk6DiajVcMGjJReCi15qz9SqgaMyb/LSsizEpq+Xd0IYRqY1zyK+qVXm9UAWsMV czfZO/nm9fH0ha1Xuk4jpoRqFf8NaaTXWBsZJ9s4Y3VTH8MD0Gfl1/SEFOE1wRhGeGZE pgrenYTmeAqlmyNqg+e4FiauApjPGS8n0dBTjezpgSlN+uiv98Pzz7PGjd7vkYMLNsAP 6kDtXs2e3KoocOyAatW5CfFr0SbHuOiOQ+xOg/hvLBS6afnopsjRCDH27mQmziA9krc+ 46JnZnIspqSe5fjHwB3voNZfnxWPFdwDL3yT01oyF6IOR1TTX5mvz3kINaJsxdstvkx3 BHGQ== 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:dmarc-filter:dkim-signature:dkim-signature; bh=c4LQ0bKCsRDqHuE9cJgCSFvxgtbi1NyHNAWW4vB8D9I=; b=JEdG3b9WLd55ZxC180qnOFoaD3JS3VuVmkV7z3FpxDkFpg2VLkt+NVpdWYE2FUopI+ p1hYwfVloYUuNWaMqpZkV+c7NE5UhoY1c9Ne7GhWnSUUwHzcM9WgbxJAoOJ97Vchhc2T QDlw8cNy8ifNSnvr+rdzo7cXSMELQifS7EAr/xsbBEvtfgGAtytgHmRGccHBgo5IEUaP 1bevTkuiTEtcpsYMfkoEl7FB55E6NON0i7QhOvIRH1uTe/i6GPdh868afo+DNO/s3J0L 4fma/3/SX2MfGweOF7LIG6phUUX+WHAtYAS9W5J+8DM7aWDlpgHut2Y2dorUM7WYy/sd /1+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Ta60znXu; dkim=pass header.i=@codeaurora.org header.s=default header.b=L779DBbh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w27si5473326eda.296.2019.11.08.15.19.40; Fri, 08 Nov 2019 15:20:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Ta60znXu; dkim=pass header.i=@codeaurora.org header.s=default header.b=L779DBbh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729373AbfKHXRq (ORCPT + 99 others); Fri, 8 Nov 2019 18:17:46 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:60734 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726349AbfKHXRq (ORCPT ); Fri, 8 Nov 2019 18:17:46 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 06BD860909; Fri, 8 Nov 2019 23:17:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1573255065; bh=eKHUH1F93bLS7j8tuNGn/3w6ndB2IO2ULju3kisDM84=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ta60znXujnfkmOqsJj78yzU9Z6KcqHIe/+vUOnMzuy2k71SzdwDNj69wKSFhWs3Pi pTC0jYxI5XyU8SbahejGEy3Z22hqnKmN9up+2XuwB9PJo1Di+a33+s8mXcsH3EGxlo QzCQFWGiDG29efmLM34fbA2s29FKNhpHECvRIOio= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED,SPF_NONE autolearn=no autolearn_force=no version=3.4.0 Received: from jhugo-perf-lnx.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jhugo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 5B8C66132F; Fri, 8 Nov 2019 23:17:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1573255063; bh=eKHUH1F93bLS7j8tuNGn/3w6ndB2IO2ULju3kisDM84=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L779DBbhXALuFf6ind305g3iM752I4UxvXgVp/ZRkblwuhgwTgky2KZXjTu6rnqGT id7kYxDKjcSVgHat8mXIV6bNBaiOU0mFxKurqX4d2J/c27GDXoLqKt8V3CfF1Eu5kc YAL7p10QWpE3wCl/Zuptt/Eb3RTV5v3ZfnHDX6JY= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 5B8C66132F Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=jhugo@codeaurora.org From: Jeffrey Hugo To: mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: agross@kernel.org, bjorn.andersson@linaro.org, marc.w.gonzalez@free.fr, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Jeffrey Hugo Subject: [PATCH v8 2/4] dt-bindings: clock: Convert qcom,mmcc to DT schema Date: Fri, 8 Nov 2019 16:17:33 -0700 Message-Id: <1573255053-10351-1-git-send-email-jhugo@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1573254987-10241-1-git-send-email-jhugo@codeaurora.org> References: <1573254987-10241-1-git-send-email-jhugo@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the qcom,mmcc-X clock controller binding to DT schema. Signed-off-by: Jeffrey Hugo --- .../devicetree/bindings/clock/qcom,mmcc.txt | 28 ---------- .../devicetree/bindings/clock/qcom,mmcc.yaml | 59 ++++++++++++++++++++++ 2 files changed, 59 insertions(+), 28 deletions(-) delete mode 100644 Documentation/devicetree/bindings/clock/qcom,mmcc.txt create mode 100644 Documentation/devicetree/bindings/clock/qcom,mmcc.yaml diff --git a/Documentation/devicetree/bindings/clock/qcom,mmcc.txt b/Documentation/devicetree/bindings/clock/qcom,mmcc.txt deleted file mode 100644 index 8b0f784..0000000 --- a/Documentation/devicetree/bindings/clock/qcom,mmcc.txt +++ /dev/null @@ -1,28 +0,0 @@ -Qualcomm Multimedia Clock & Reset Controller Binding ----------------------------------------------------- - -Required properties : -- compatible : shall contain only one of the following: - - "qcom,mmcc-apq8064" - "qcom,mmcc-apq8084" - "qcom,mmcc-msm8660" - "qcom,mmcc-msm8960" - "qcom,mmcc-msm8974" - "qcom,mmcc-msm8996" - -- reg : shall contain base register location and length -- #clock-cells : shall contain 1 -- #reset-cells : shall contain 1 - -Optional properties : -- #power-domain-cells : shall contain 1 - -Example: - clock-controller@4000000 { - compatible = "qcom,mmcc-msm8960"; - reg = <0x4000000 0x1000>; - #clock-cells = <1>; - #reset-cells = <1>; - #power-domain-cells = <1>; - }; diff --git a/Documentation/devicetree/bindings/clock/qcom,mmcc.yaml b/Documentation/devicetree/bindings/clock/qcom,mmcc.yaml new file mode 100644 index 0000000..61ed4a2 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/qcom,mmcc.yaml @@ -0,0 +1,59 @@ +# SPDX-License-Identifier: GPL-2.0-only +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/bindings/clock/qcom,mmcc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Multimedia Clock & Reset Controller Binding + +maintainers: + - Jeffrey Hugo + +description: | + Qualcomm multimedia clock control module which supports the clocks, resets and + power domains. + +properties: + compatible : + enum: + - qcom,mmcc-apq8064 + - qcom,mmcc-apq8084 + - qcom,mmcc-msm8660 + - qcom,mmcc-msm8960 + - qcom,mmcc-msm8974 + - qcom,mmcc-msm8996 + + '#clock-cells': + const: 1 + + '#reset-cells': + const: 1 + + '#power-domain-cells': + const: 1 + + reg: + maxItems: 1 + + protected-clocks: + description: + Protected clock specifier list as per common clock binding + +required: + - compatible + - reg + - '#clock-cells' + - '#reset-cells' + - '#power-domain-cells' + +examples: + # Example for MMCC for MSM8960: + - | + clock-controller@4000000 { + compatible = "qcom,mmcc-msm8960"; + reg = <0x4000000 0x1000>; + #clock-cells = <1>; + #reset-cells = <1>; + #power-domain-cells = <1>; + }; +... -- Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.