Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp849338pxb; Thu, 17 Feb 2022 16:31:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwSwM+X/P9riM9ssD/Jmjw2XdGczQYjR95+8KXQfu85GmkOBE5FLN2qOHB+omHUa0rfiyqM X-Received: by 2002:a17:902:ec8a:b0:14c:87e5:7e86 with SMTP id x10-20020a170902ec8a00b0014c87e57e86mr5265537plg.69.1645144308558; Thu, 17 Feb 2022 16:31:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645144308; cv=none; d=google.com; s=arc-20160816; b=NUHaVQ4DBXnhVlpYVsLZ+LAFdFXq3nheDKUJZOWkdtahQXjXYfRlfZgW8YAaJJJxlt 4gRN0E0XvKqkrCPJh3cc8ChqSFaDTp4h5jFXup/RQ32HzbNi8ez/EeM07whKclSS9iW0 HSoZSQbKSKolHtggCv6JY9kUUtUTOsPfG1fSOwhc/ohJLjkJeFuNfkYJEet57MgLUfUG Ruu718AGfopBF5DMZ6dXEP/PdmSj4W8bvsHpJ/xNJn09tXXNOA8n38jbOUHbRFkELkUG LYnrDNShXF5QkFr0b+WpIG2ZiTHtSr2jlAEK+Spu/k2WzdAySzhw9ux+0RYQpD+WuC2S fUFA== 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:to:from :dkim-signature; bh=PF/Xktp+y8WDs9emzgOxJszpKtHSj7ua4RGqvfCUZ+w=; b=oID4oLSOG/ayJcv2PKJJBc4veN4TuiNtQVsF+3FlPj4DWf6In090Pf6KB//LtmWe7p FXqPtHqzWYwzRl5nY96pF8RyfT1jWNgtA8hwPbCOrKBt7cmVZaAxiKn41oBHYOn6Bp0N HXriSHh0FBj4RV+HAIn5s6K42Eiz9QBe98qbumiHTgi3ALkZBmYVMXeA/qkFcZltzI/Y B/DfSeSX0L5/1/8Ila6BgkHdCj04olPRO+cv1UhzTF6BzoGI6lmZW3zf+e0EslI8F0VF VNkRXcNS1lF8nDhhv7SpJUWQg+njiI2N/3pgnmYwfmlLEeauuj94iMy7LzZACg5cLrFH 0E/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TULljE1T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d185si9767602pgc.646.2022.02.17.16.31.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Feb 2022 16:31:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TULljE1T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F18203E5CD; Thu, 17 Feb 2022 15:57:33 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229875AbiBQX5e (ORCPT + 99 others); Thu, 17 Feb 2022 18:57:34 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:52424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229797AbiBQX5X (ORCPT ); Thu, 17 Feb 2022 18:57:23 -0500 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA0F9419BF; Thu, 17 Feb 2022 15:57:07 -0800 (PST) Received: by mail-wr1-x436.google.com with SMTP id k1so11647549wrd.8; Thu, 17 Feb 2022 15:57:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=PF/Xktp+y8WDs9emzgOxJszpKtHSj7ua4RGqvfCUZ+w=; b=TULljE1TxC6FJWocaG3II3RnYzTxlg1TGybQIyU5Qff+YaMBpAWAWgL+tQfNwOFO20 LwBfSk5mOE/ZgL/slqGEFgGezqIVamLYUnJ2+z6LIUJYHPrjSWo6GhcHalBvbOdjsAB3 +MP5dyz/TtnMBM7iANfvYAGpo5dGmIBlqSQeBWqyotDNLEjT2QbsFUSf8bf223NAUWmz Vw0no1fkqTzrlKb8ybO1GgObXj7ZZTcdGvUfNZ0lui9kg9iM3UfqnAlnV4cOhx7LRuqf tOPgd8Wwmiku+NwOCPYvk/Nogf+iXEtdoxsOHqtGU43I3eW9Ab1p0SrfzyYOClAgzaxq eLfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=PF/Xktp+y8WDs9emzgOxJszpKtHSj7ua4RGqvfCUZ+w=; b=tTTmsqIJm6fYI9QuMBR7MxWo2o7a1b3nRauJ/R327XKXZs91r++NVzY4lw4S5anw4H oX6ApXfISVDP3IqPYKAubbooexu2QjmUcfTwN1/NFhh8Hy6zbCJrTtHwpl4BHyc6GERJ VlPEn7AAdGbeMPEcs6CbKLvdIgPkdp3TZAwdS0C773CQicuQ1Hvi9K0ZaIY98AHjIu79 z6aRh6H3P9JqaJSgbEBZkaP3uG8qVF9J5fajO4T/MktB8d0+VXJ/wcXUGtU5RExzW54D mEyIb/QIE2SwIODWH9dLCAnFmHauT5Il5a4hgJpKf0UUBnPdQREuBnEsebsDZ4cpDfKR nQaw== X-Gm-Message-State: AOAM530ZVrGJoEhYJ9uB55C6JqBzDiF8jdgdLRTk4lM8f9++1tYj1Ujb 23WNR8+a3s2xvaPfdsQ/CsNDmznt+KE= X-Received: by 2002:a5d:64aa:0:b0:1e8:59c0:93c3 with SMTP id m10-20020a5d64aa000000b001e859c093c3mr4128032wrp.173.1645142226337; Thu, 17 Feb 2022 15:57:06 -0800 (PST) Received: from Ansuel-xps.localdomain (93-42-71-246.ip85.fastwebnet.it. [93.42.71.246]) by smtp.googlemail.com with ESMTPSA id r2sm3691694wmq.24.2022.02.17.15.57.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Feb 2022 15:57:05 -0800 (PST) From: Ansuel Smith To: Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Philipp Zabel , Taniya Das , Ansuel Smith , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 03/16] dt-bindings: clock: Document qcom,gcc-ipq8064 binding Date: Fri, 18 Feb 2022 00:56:50 +0100 Message-Id: <20220217235703.26641-4-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220217235703.26641-1-ansuelsmth@gmail.com> References: <20220217235703.26641-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document qcom,gcc-ipq8064 binding needed to declare pxo and cxo source clocks. The gcc node is also used by the tsens driver, already documented, to get the calib nvmem cells and the base reg from gcc. Use qcom,gcc-common.yaml as a template and remove the compatible from generic qcom,gcc.yaml Signed-off-by: Ansuel Smith --- .../bindings/clock/qcom,gcc-ipq8064.yaml | 76 +++++++++++++++++++ .../bindings/clock/qcom,gcc-other.yaml | 3 - 2 files changed, 76 insertions(+), 3 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/qcom,gcc-ipq8064.yaml diff --git a/Documentation/devicetree/bindings/clock/qcom,gcc-ipq8064.yaml b/Documentation/devicetree/bindings/clock/qcom,gcc-ipq8064.yaml new file mode 100644 index 000000000000..9eb91dd22557 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/qcom,gcc-ipq8064.yaml @@ -0,0 +1,76 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/qcom,gcc-ipq8064.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Global Clock & Reset Controller Binding for IPQ8064 + +allOf: + - $ref: qcom,gcc.yaml# + +maintainers: + - Ansuel Smith + +description: | + Qualcomm global clock control module which supports the clocks, resets and + power domains on IPQ8064. + + See also: + - dt-bindings/clock/qcom,gcc-ipq806x.h (qcom,gcc-ipq8064) + - dt-bindings/reset/qcom,gcc-ipq806x.h (qcom,gcc-ipq8064) + +properties: + compatible: + items: + - const: qcom,gcc-ipq8064 + - const: syscon + + clocks: + items: + - description: PXO source + - description: CXO source + + clock-names: + items: + - const: pxo + - const: cxo + + thermal-sensor: + type: object + + allOf: + - $ref: /schemas/thermal/qcom-tsens.yaml# + +required: + - compatible + - clocks + - clock-names + +unevaluatedProperties: false + +examples: + - | + #include + + gcc: clock-controller@900000 { + compatible = "qcom,gcc-ipq8064", "syscon"; + reg = <0x00900000 0x4000>; + clocks = <&pxo_board>, <&cxo_board>; + clock-names = "pxo", "cxo"; + #clock-cells = <1>; + #reset-cells = <1>; + #power-domain-cells = <1>; + + tsens: thermal-sensor { + compatible = "qcom,ipq8064-tsens"; + + nvmem-cells = <&tsens_calib>, <&tsens_calib_backup>; + nvmem-cell-names = "calib", "calib_backup"; + interrupts = ; + interrupt-names = "uplow"; + + #qcom,sensors = <11>; + #thermal-sensor-cells = <1>; + }; + }; diff --git a/Documentation/devicetree/bindings/clock/qcom,gcc-other.yaml b/Documentation/devicetree/bindings/clock/qcom,gcc-other.yaml index 2703b53150d8..ebafdef71766 100644 --- a/Documentation/devicetree/bindings/clock/qcom,gcc-other.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,gcc-other.yaml @@ -18,8 +18,6 @@ description: - dt-bindings/clock/qcom,gcc-ipq4019.h - dt-bindings/clock/qcom,gcc-ipq6018.h - dt-bindings/reset/qcom,gcc-ipq6018.h - - dt-bindings/clock/qcom,gcc-ipq806x.h (qcom,gcc-ipq8064) - - dt-bindings/reset/qcom,gcc-ipq806x.h (qcom,gcc-ipq8064) - dt-bindings/clock/qcom,gcc-msm8939.h - dt-bindings/clock/qcom,gcc-msm8953.h - dt-bindings/reset/qcom,gcc-msm8939.h @@ -40,7 +38,6 @@ properties: enum: - qcom,gcc-ipq4019 - qcom,gcc-ipq6018 - - qcom,gcc-ipq8064 - qcom,gcc-mdm9607 - qcom,gcc-msm8226 - qcom,gcc-msm8660 -- 2.34.1