Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp3051001ybx; Fri, 8 Nov 2019 13:17:33 -0800 (PST) X-Google-Smtp-Source: APXvYqyoSUe9AOOXlIBQcLdKMyMvkuzoONTJhCQm4C4Mi8c+DeyzwZAV9QyT4pzyoZvIUCQHMQbg X-Received: by 2002:a50:b2c4:: with SMTP id p62mr12602158edd.128.1573247853605; Fri, 08 Nov 2019 13:17:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573247853; cv=none; d=google.com; s=arc-20160816; b=R2UhL1XbxbzK3F9pctoW/o9c8eCePqkANrgohmcPSrBv91V3UWvtwG0rgTtHD0nHF2 5x/embZDM1+3U5Ol7POAHdNx4ZursJh8VWLo6k3XuBczFmLPsggnZaV+xJ7X9CxW3C0c PHSqxPmm1oAYM9SBF0YTe+2iH2Lujx8s3LkvOY2TLxHmx5Ru/r+vFZLaa11DeimZRz15 GZE4dPQiJG8vDNu97LTolevPISxKs5vNKs1W6nDFoNKS/lJ4cbI+eJPb6U42aTUTaHlv +SDSRC/QlILw/g8YHTdj/l5IXmpqibuXPquyVAPFiW0JffJSSeIi+SZZQ1iYsHle9cmT mYag== 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=Wzghp+3AQaBquWSrj/pcD34lc8m42Yu15MwPNDNoznA=; b=GYIy49PaJj8ELOOIetqzTbdh77Hb2P143F9qe/RlT7SPy03vVJkWXsoE5wfuATLz1n J5+4FvJkNmmptRmZVlXi/Zx/+cmYSc16EhJS3lNMX0UEAEwH15cKZqOf1tFOXnOVikBq gdt1fgnzZgBPefM7LoaMSzGLcJ1BPFt4Dj2VlBvDFVRY4JAmPu81zfVZt2V3o2EExBeJ ssXNLtCXPNA7uoFYeXlSWxYDuA75+54vxfWQ66q9fI1AiPDBdJzIifJq3By0ht3vQsS3 i26HSJkfxCV7fMQ/45T5lWuzmYlmkfn1yN0aBDxn8Rz5ci5Ei7kCeslskN/GR1+kHPOv TDZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=meeuVqje; dkim=pass header.i=@codeaurora.org header.s=default header.b=bbxJ0DLr; 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 17si4460344ejt.419.2019.11.08.13.17.10; Fri, 08 Nov 2019 13:17:33 -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=meeuVqje; dkim=pass header.i=@codeaurora.org header.s=default header.b=bbxJ0DLr; 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 S1732715AbfKHVOL (ORCPT + 99 others); Fri, 8 Nov 2019 16:14:11 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:34522 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732358AbfKHVOK (ORCPT ); Fri, 8 Nov 2019 16:14:10 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 5CD9660D95; Fri, 8 Nov 2019 21:14:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1573247649; bh=vsfaLQwdJMswsUGg4yBnLwoJyzM9rdM1iMMBbX5RoFI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=meeuVqje62fSky66IbGHgnTOwej5/TWNAH6brPDcZHta8ptKUaSHenzNvpkrMPetv 44uLKubuJYcr1ErL24xq/ZdWzyC37s1F7iIhV7jz+YRhy3KfTEPf4q4QK7KQdKlX8P O5JHYF8wZTuOkIC6hiQzXOOovGAuodh6xlALUnfk= 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 6C32C60D51; Fri, 8 Nov 2019 21:14:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1573247648; bh=vsfaLQwdJMswsUGg4yBnLwoJyzM9rdM1iMMBbX5RoFI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bbxJ0DLrr0VDroyVebgC7WHKsxcY2f1XmhrCqaDbqkS4v4pzNYVrJzPQTSZFRBCVk fz9harZzqFAeF06Qn8FhaUoa/DUIqIXZ967BE81jUQnXnetpbIcwcn8vq/38nWUyc4 SjEfRNTcnR6e2LIBR0QarSqqOLzCHQloiwlWFmBI= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 6C32C60D51 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 v7 3/6] dt-bindings: clock: Convert qcom,mmcc to DT schema Date: Fri, 8 Nov 2019 14:13:59 -0700 Message-Id: <1573247639-19991-1-git-send-email-jhugo@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1573247450-19738-1-git-send-email-jhugo@codeaurora.org> References: <1573247450-19738-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 | 60 +++++++++++++++++++ 2 files changed, 60 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 8b0f7841af8d..000000000000 --- 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 000000000000..769b0869eb9d --- /dev/null +++ b/Documentation/devicetree/bindings/clock/qcom,mmcc.yaml @@ -0,0 +1,60 @@ +# 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: + - Stephen Boyd + - 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 GCC for MSM8960: + - | + clock-controller@4000000 { + compatible = "qcom,mmcc-msm8960"; + reg = <0x4000000 0x1000>; + #clock-cells = <1>; + #reset-cells = <1>; + #power-domain-cells = <1>; + }; +... -- 2.17.1