Re: [PATCH v17 1/8] dt-bindings: clock: Add SM7250 global clock controller
From: Petr Vorel
Date: Wed Dec 02 2026 - 03:53:30 EST
Hi Sreeshankar,
> Add device tree bindings for global clock controller on SM7250 SoC.
> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
> Reviewed-by: Petr Vorel <pvorel@xxxxxxx>
> Signed-off-by: Sreeshankar K <sreeshankar0910@xxxxxxxxx>
> ---
> .../devicetree/bindings/clock/qcom,gcc-sm6350.yaml | 13 +-
> include/dt-bindings/clock/qcom,gcc-sm7250.h | 163 +++++++++++++++++++++
> 2 files changed, 172 insertions(+), 4 deletions(-)
> diff --git a/Documentation/devicetree/bindings/clock/qcom,gcc-sm6350.yaml b/Documentation/devicetree/bindings/clock/qcom,gcc-sm6350.yaml
> index 098a108b8..ee9cb8759 100644
> --- a/Documentation/devicetree/bindings/clock/qcom,gcc-sm6350.yaml
> +++ b/Documentation/devicetree/bindings/clock/qcom,gcc-sm6350.yaml
> @@ -4,20 +4,25 @@
> $id: http://devicetree.org/schemas/clock/qcom,gcc-sm6350.yaml#
> $schema: http://devicetree.org/meta-schemas/core.yaml#
> -title: Qualcomm Global Clock & Reset Controller on SM6350
> +title: Qualcomm Global Clock & Reset Controller on SM6350 and SM7250
> maintainers:
> - Konrad Dybcio <konradybcio@xxxxxxxxxx>
> + - Sreeshankar K <sreeshankar0910@xxxxxxxxx>
> description: |
> Qualcomm global clock control module provides the clocks, resets and power
> - domains on SM6350.
> + domains on SM6350 and SM7250.
> - See also: include/dt-bindings/clock/qcom,gcc-sm6350.h
> + See also:
> + - include/dt-bindings/clock/qcom,gcc-sm6350.h
> + - include/dt-bindings/clock/qcom,gcc-sm7250.h
Maybe qcom,gcc-sm7250.h would be worth to rename to qcom,sm7250-gcc.h ("gcc" at
the end). Quoting Dmitry [1] replying to my question in the past:
> I noticed GCC headers file names for SM* SoC have 2 patterns: "qcom,gcc-sm*" and
> "qcom,sm*-gcc":
The second form is the preferred one as can be seen by the platforms
(and time of creation).
[1] https://lore.kernel.org/linux-arm-msm/jioy2avjhyo2g7m6igrr3opikbnpp32heucpamiebqbx3udvlj@itrwcbog2m5w/
> properties:
> compatible:
> - const: qcom,gcc-sm6350
> + enum:
> + - qcom,gcc-sm6350
> + - qcom,gcc-sm7250
> clocks:
> items:
> diff --git a/include/dt-bindings/clock/qcom,gcc-sm7250.h b/include/dt-bindings/clock/qcom,gcc-sm7250.h
> new file mode 100644
> index 000000000..ae81f445c
> --- /dev/null
> +++ b/include/dt-bindings/clock/qcom,gcc-sm7250.h
> @@ -0,0 +1,163 @@
> +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
> +/*
> + * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
> + * Copyright (c) 2026, Sreeshankar K <sreeshankar0910@xxxxxxxxx>
> + */
> +
> +#ifndef _DT_BINDINGS_CLK_QCOM_GCC_SM7250_H
> +#define _DT_BINDINGS_CLK_QCOM_GCC_SM7250_H
FYI Interestingly enough, all include/dt-bindings/clock/qcom,*-gcc.h files have
pattern _DT_BINDINGS_CLK_QCOM_GCC_SOC_H (e.g.
_DT_BINDINGS_CLK_QCOM_GCC_SM8650_H).
...
Kind regards,
Petr