From patchwork Mon Nov 6 08:25:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 13446440 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1BA86C4167B for ; Mon, 6 Nov 2023 08:26:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231207AbjKFI0J (ORCPT ); Mon, 6 Nov 2023 03:26:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231180AbjKFI0I (ORCPT ); Mon, 6 Nov 2023 03:26:08 -0500 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38EFF1B2 for ; Mon, 6 Nov 2023 00:26:05 -0800 (PST) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-40859c464daso31081465e9.1 for ; Mon, 06 Nov 2023 00:26:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699259163; x=1699863963; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=UzGjVS3at3n/pceXahgDDyc4wDIPcG+CeU59gILW0pk=; b=eu7nr7BNZBZa1vYhF4kfbZPc3+n1+h3j9PotJdXGgC5mri7/4fMTSxtcSFdZ99Cov3 /efyvyZ00d4dtwIZAMf6qXM5VKQmywPab+Yf3xYbUtbX2+XfLBToz3Y/txA2nhM9Ntau zGzmnzXg+3cJ1AP9JUjYVLKZf6/nR+w+F19a2hxx/RVXJpdT7WpRerlTp0dqAh7QEU4S 2i+kAItYqs2rREVMvOfr0BQS8en/HA8BVaaWYWceXNmROylQO68fYTP7iT6H6f1jD9YK 7AwWyF05mWwKV0JuvkIjkVWrAb+0z3Tu2gF3XsmQdkoDGOzysM84RRgNP5BvXMsDGoo9 CF3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699259163; x=1699863963; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UzGjVS3at3n/pceXahgDDyc4wDIPcG+CeU59gILW0pk=; b=hVbmBYOmEQQu5q0hsWHSL9mpc7HOeWg8Xna1xM0yLCcGYTHAqdoSA8DjOTOiDHW4wa os4qtSaTl3nWx14+eB5Zost5W2uR712H+P3a50/C910nRrLI/jqFWpe4l/JKYR4C7vby hdX1bxHKAZS5LOQ5UOGEAWA2uGlmXbm+ptYRUJf+VmhaIXSSUrDqQd9hV4W2OJl4S8Mh pFD36J0fZC6f+kWF+mIigJoptfzXmYRLnWlLhGtaZnTQbsvnzx8SgwR+fBUmLgtFcg+h 9S3O2P66x9sMKq3BXgn7/0NJtaa1SUUjBGrzm/bmTQaDp5s9OJhoxp46/OqYbsKO5G9z MK5Q== X-Gm-Message-State: AOJu0YylIcnhya0GngcAdUyzLKqZe02CKOiRp9wHVemt0YYYOa8xMPZP Ghcxb4ipqsyvuCoYx4mMJgt6H8lu2uHcrbttmpTTsA== X-Google-Smtp-Source: AGHT+IF7C31a5WM+VZ+uvoLdLSiSFIYj8rXzlVpV1Kzkgq6j9ZnnLUV76kBcSiBsHEMgUIQrkkgEOA== X-Received: by 2002:a05:600c:1c93:b0:408:3c8a:65ec with SMTP id k19-20020a05600c1c9300b004083c8a65ecmr22569134wms.8.1699259163552; Mon, 06 Nov 2023 00:26:03 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id az25-20020a05600c601900b004095874f6d3sm11610663wmb.28.2023.11.06.00.26.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 00:26:03 -0800 (PST) From: Neil Armstrong Date: Mon, 06 Nov 2023 09:25:54 +0100 Subject: [PATCH v3 01/11] dt-bindings: clock: qcom: document the SM8650 TCSR Clock Controller MIME-Version: 1.0 Message-Id: <20231106-topic-sm8650-upstream-clocks-v3-1-761a6fadb4c0@linaro.org> References: <20231106-topic-sm8650-upstream-clocks-v3-0-761a6fadb4c0@linaro.org> In-Reply-To: <20231106-topic-sm8650-upstream-clocks-v3-0-761a6fadb4c0@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Taniya Das Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1985; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=O0iRHbcXKAwCJ7jZa5qhP1VrxlTsAWl2qMZ84eG0xCU=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBlSKMUhE0FeGV5TZRKpvr8snwgH6GKXojuJKhv4bJw 8IpfkAyJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZUijFAAKCRB33NvayMhJ0WBLD/ wJxX3bHf9PtHF/5N4U9Dl07OJRCboIgElmtX7fiWAcEVCehJ4zSjjoyfDJgWzoROXNlNzvWM4BfuEb IO1l6SMdh0bzw/+atOst5bup8fcibYAmtLf94mGKIb7qtUmx1YbI4Wwp/4cf6VshEEdZ7bmH4q2yYj DCoNNPhgd69xH9Bz3KF7L2cFXfV+gkf/wjaopkyRIZj8ZoGVskmUwD8JYHwbDMpN9y32el+UsDu4GD L2zP/4/mLfxTF/Vtr/SnqZEvk5Z+MUhLTRbXRKPJ8HO1a1GhHg/TCNUgjHl8v1v5/zidwuXm+a8q/6 F2Imk37XKN3DOPYELea+v9FzTzU5lIDpiK2OCvL9PP3vlyDxrOmav5GlsY8t1XteNWK8/xHMoiOPgD 4SgLMglwxTSNw6mfnzjBgNxpnfTzjBzFFUd6Q0oF8c4V01PmnYE1a0Z1SH2rjvezgNyENh/KqVjMmm 8jUqFVSJNsROWu/RMDfimt3Q2DcBwwFmkgJCxIi/JHqkyh9S6a6a6UloYIArv8n2lx31Wlc6Fnd+hl 7BGIAZsOie4O9swAOE6fKbdYSOANwixpqI7JgklVLq4lbVKdaL8qqxo8aGUg3Snk0iGY1i0vDxgMBN zqZrjoc44Vmkx7jybJgqHWeZ1WLVcLjdiLibwEfe6lmVhKxbTeWlj/4F2eew== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Add bindings documentation for the SM8650 TCSR Clock Controller. Signed-off-by: Neil Armstrong Reviewed-by: Krzysztof Kozlowski --- .../devicetree/bindings/clock/qcom,sm8550-tcsr.yaml | 8 ++++++-- include/dt-bindings/clock/qcom,sm8650-tcsr.h | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/clock/qcom,sm8550-tcsr.yaml b/Documentation/devicetree/bindings/clock/qcom,sm8550-tcsr.yaml index 1bf1a41fd89c..af16b05eac96 100644 --- a/Documentation/devicetree/bindings/clock/qcom,sm8550-tcsr.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,sm8550-tcsr.yaml @@ -13,12 +13,16 @@ description: | Qualcomm TCSR clock control module provides the clocks, resets and power domains on SM8550 - See also:: include/dt-bindings/clock/qcom,sm8550-tcsr.h + See also: + - include/dt-bindings/clock/qcom,sm8550-tcsr.h + - include/dt-bindings/clock/qcom,sm8650-tcsr.h properties: compatible: items: - - const: qcom,sm8550-tcsr + - enum: + - qcom,sm8550-tcsr + - qcom,sm8650-tcsr - const: syscon clocks: diff --git a/include/dt-bindings/clock/qcom,sm8650-tcsr.h b/include/dt-bindings/clock/qcom,sm8650-tcsr.h new file mode 100644 index 000000000000..b2c72d492f1f --- /dev/null +++ b/include/dt-bindings/clock/qcom,sm8650-tcsr.h @@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* + * Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2023, Linaro Limited + */ + +#ifndef _DT_BINDINGS_CLK_QCOM_TCSR_CC_SM8650_H +#define _DT_BINDINGS_CLK_QCOM_TCSR_CC_SM8650_H + +/* TCSR CC clocks */ +#define TCSR_PCIE_0_CLKREF_EN 0 +#define TCSR_PCIE_1_CLKREF_EN 1 +#define TCSR_UFS_CLKREF_EN 2 +#define TCSR_UFS_PAD_CLKREF_EN 3 +#define TCSR_USB2_CLKREF_EN 4 +#define TCSR_USB3_CLKREF_EN 5 + +#endif