From patchwork Tue Apr 6 23:19:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 415947 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp4998356jai; Tue, 6 Apr 2021 16:19:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymvBKUP3qAYiiAs+z2vV0n8zZDQfMustTvs2poVkE4jbJ39PerIPpxlAVy0Ly/ibGVBHf1 X-Received: by 2002:a05:6638:140e:: with SMTP id k14mr529823jad.31.1617751157564; Tue, 06 Apr 2021 16:19:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617751157; cv=none; d=google.com; s=arc-20160816; b=O4nLKqrxajRSpUhifeQ81uGRPZvQJZxZx2yBHphhcHh6wd8DZSI9hZHt4tvBcLP/9B PFtDanhvpKqiD7ln2MK6jXrxsUjQ5qtyt4MQdIiDyQ26jtu2XoCUJevcV/VGv7WF0ldf XAxOoYCSUHuSwkOyoJfmU5520O7MeRu6XZ/DrISTdkq8xm60vP9GJQbCbWkoFaDLmOfg FFPWrmHTDBUYvo7ANG1hjOdbU6CnYbmoXQskQDpFznf37z6Og1YHzU+HfjuUErnJFLvD vSP9yf6AfG0eQhNirAMtmwaIZgSYPs19NOYgY5cLNiz73TuZHqQos128Z274aGl0v4NE wnbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MqUyCQ8bApydwGreXPqVnRLc78HVU/m7ATGYH5tMkXg=; b=SW3A1lK4/3YN34u+1aUjxzSiPu8woAlhtL0yVcH3cOcKhSF0rTuTAzQvQUA2v7aoOT uUaur1erT28xzVHFRLxDthxegSn9rgx16WemoSx1Qe/lgidX8nDkJZqAqXyx3UP+hEVX bqlhCrdmpkoD8fpsbo2MXMB1fiqSHvWdp4v4QdCX6pn/RdzkTMLkAKjEy0tmnEBNf1gt tJrez+DLBpZ2QxbXFMTJorzlwH6xNuY+SxCgOMuy4wKQr6r1ErLhMGPadYii61iJbfmw ZhwXWQTg81EV8JK4ZgTXz93B9+MPZgjHkMSJYayzYi4x2dcJKdoejAX+jxskNXxgVmuR P0mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YhWJ4w34; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t15si20043348jal.2.2021.04.06.16.19.14; Tue, 06 Apr 2021 16:19:17 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YhWJ4w34; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244287AbhDFXTW (ORCPT + 6 others); Tue, 6 Apr 2021 19:19:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236097AbhDFXTW (ORCPT ); Tue, 6 Apr 2021 19:19:22 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AC91C061761 for ; Tue, 6 Apr 2021 16:19:13 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id b14so25341014lfv.8 for ; Tue, 06 Apr 2021 16:19:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MqUyCQ8bApydwGreXPqVnRLc78HVU/m7ATGYH5tMkXg=; b=YhWJ4w34d5BT8WeRgmPjRzgfvtQ/G+N5xQqF+e/xyxgLPYXcQCJIOmOuw07gRyk8di KsiuvhrWHUj7AIm14xo/f0UXiVt83vGwvX9wMEg2WJkbfGQ4kETjogeiVfOMVaogxwbx sVAM2uaUvZFanT+G9mvxDOQE6TOtNZ8sxliDOl4R7LdKme5VmVwZEw7eAORzx1kuPoIG okrfJEhGPKCb7/vfC/MkGsf9CE+3HKYJs1PUswBHYrK8JTP6lJF4Q60Ko+V5jK+vioH7 BomBa+V0WIcsX6F9/NA2pd3xpa92W5kA3CWdzeb3th/Bl2EH3Pc43ouHr19cwTiiQVTJ kfbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MqUyCQ8bApydwGreXPqVnRLc78HVU/m7ATGYH5tMkXg=; b=lisqEdRbK5uXZJxnSdsTL/EDKmODAI3ZcfGZmQ645DnFuzxF43mq/eku1bARAT7kIu KZpos8RjetzPvJNnrHJup7IHIYvLXCYxIuGTm4r/3y0vepZgB09LZk5P7Il96vId7Wzd Szprb90HyOlV+VoK4TWYreKrM5QAwRzFQjpZM2lTfxUV7dWoel7/PfjP+00BN1InkkrO 21Nua3wgZuLqebYWiPE7EB2kDKHyGMM2DBXP+h1tVHvvOAhcH1JlxwC0KID9uRVxSSdV wrDqP5ysBpFRpwcC8ybOHEFT4TILfZcazZZe5CWZFudFEsOezAIibCE7rZv0cRabqoI6 fTaA== X-Gm-Message-State: AOAM532nq2UgiZIrcjJgibx85S75lLm+raiXPycegLAVLTZXWTXmJP2Y lRWi/gmBwYGSxaFHdMN59ohPYNlVBGVwWw== X-Received: by 2002:a05:6512:11c7:: with SMTP id h7mr393606lfr.197.1617751152000; Tue, 06 Apr 2021 16:19:12 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id u16sm2366565lja.48.2021.04.06.16.19.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Apr 2021 16:19:11 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring , Stephen Boyd , Michael Turquette Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH v2 1/4] dt-bindings: clock: separate SDM845 GCC clock bindings Date: Wed, 7 Apr 2021 02:19:06 +0300 Message-Id: <20210406231909.3035267-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210406231909.3035267-1-dmitry.baryshkov@linaro.org> References: <20210406231909.3035267-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Separate qcom,gcc-sdm845 clock bindings, adding required clocks and clock-names properties. Signed-off-by: Dmitry Baryshkov --- .../bindings/clock/qcom,gcc-sdm845.yaml | 84 +++++++++++++++++++ .../devicetree/bindings/clock/qcom,gcc.yaml | 2 - 2 files changed, 84 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/qcom,gcc-sdm845.yaml -- 2.30.2 diff --git a/Documentation/devicetree/bindings/clock/qcom,gcc-sdm845.yaml b/Documentation/devicetree/bindings/clock/qcom,gcc-sdm845.yaml new file mode 100644 index 000000000000..4808fa7a6b8c --- /dev/null +++ b/Documentation/devicetree/bindings/clock/qcom,gcc-sdm845.yaml @@ -0,0 +1,84 @@ +# SPDX-License-Identifier: GPL-2.0-only +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/qcom,gcc-sdm845.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Global Clock & Reset Controller Binding + +maintainers: + - Stephen Boyd + - Taniya Das + +description: | + Qualcomm global clock control module which supports the clocks, resets and + power domains on SDM845 + + See also: + - dt-bindings/clock/qcom,gcc-sdm845.h + +properties: + compatible: + const: qcom,gcc-sdm845 + + clocks: + items: + - description: Board XO source + - description: Board active XO source + - description: Sleep clock source + - description: PCIE 0 Pipe clock source (Optional clock) + - description: PCIE 1 Pipe clock source (Optional clock) + minItems: 3 + maxItems: 5 + + clock-names: + items: + - const: bi_tcxo + - const: bi_tcxo_ao + - const: sleep_clk + - const: pcie_0_pipe_clk # Optional clock + - const: pcie_1_pipe_clk # Optional clock + minItems: 3 + maxItems: 5 + + '#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' + +additionalProperties: false + +examples: + # Example for GCC for MSM8960: + - | + #include + clock-controller@100000 { + compatible = "qcom,gcc-sdm845"; + reg = <0x100000 0x1f0000>; + clocks = <&rpmhcc RPMH_CXO_CLK>, + <&rpmhcc RPMH_CXO_CLK_A>, + <&sleep_clk>; + clock-names = "bi_tcxo", "bi_tcxo_ao", "sleep_clk"; + #clock-cells = <1>; + #reset-cells = <1>; + #power-domain-cells = <1>; + }; +... diff --git a/Documentation/devicetree/bindings/clock/qcom,gcc.yaml b/Documentation/devicetree/bindings/clock/qcom,gcc.yaml index ee0467fb5e31..490edad25830 100644 --- a/Documentation/devicetree/bindings/clock/qcom,gcc.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,gcc.yaml @@ -32,7 +32,6 @@ description: | - dt-bindings/clock/qcom,gcc-mdm9615.h - dt-bindings/reset/qcom,gcc-mdm9615.h - dt-bindings/clock/qcom,gcc-sdm660.h (qcom,gcc-sdm630 and qcom,gcc-sdm660) - - dt-bindings/clock/qcom,gcc-sdm845.h properties: compatible: @@ -52,7 +51,6 @@ properties: - qcom,gcc-mdm9615 - qcom,gcc-sdm630 - qcom,gcc-sdm660 - - qcom,gcc-sdm845 '#clock-cells': const: 1