Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: clock: Add SM8550 TCSR CC clocks

Add bindings documentation for clock TCSR driver on SM8550.

Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230104093450.3150578-2-abel.vesa@linaro.org

authored by

Abel Vesa and committed by
Bjorn Andersson
d220193c 1b929c02

+73
+55
Documentation/devicetree/bindings/clock/qcom,sm8550-tcsr.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/clock/qcom,sm8550-tcsr.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Qualcomm TCSR Clock Controller on SM8550 8 + 9 + maintainers: 10 + - Bjorn Andersson <andersson@kernel.org> 11 + 12 + description: | 13 + Qualcomm TCSR clock control module provides the clocks, resets and 14 + power domains on SM8550 15 + 16 + See also:: include/dt-bindings/clock/qcom,sm8550-tcsr.h 17 + 18 + properties: 19 + compatible: 20 + items: 21 + - const: qcom,sm8550-tcsr 22 + - const: syscon 23 + 24 + clocks: 25 + items: 26 + - description: TCXO pad clock 27 + 28 + reg: 29 + maxItems: 1 30 + 31 + '#clock-cells': 32 + const: 1 33 + 34 + '#reset-cells': 35 + const: 1 36 + 37 + required: 38 + - compatible 39 + - clocks 40 + 41 + additionalProperties: false 42 + 43 + examples: 44 + - | 45 + #include <dt-bindings/clock/qcom,rpmh.h> 46 + 47 + clock-controller@1fc0000 { 48 + compatible = "qcom,sm8550-tcsr", "syscon"; 49 + reg = <0x1fc0000 0x30000>; 50 + clocks = <&rpmhcc RPMH_CXO_CLK>; 51 + #clock-cells = <1>; 52 + #reset-cells = <1>; 53 + }; 54 + 55 + ...
+18
include/dt-bindings/clock/qcom,sm8550-tcsr.h
··· 1 + /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ 2 + /* 3 + * Copyright (c) 2022, The Linux Foundation. All rights reserved. 4 + * Copyright (c) 2022, Linaro Limited 5 + */ 6 + 7 + #ifndef _DT_BINDINGS_CLK_QCOM_TCSR_CC_SM8550_H 8 + #define _DT_BINDINGS_CLK_QCOM_TCSR_CC_SM8550_H 9 + 10 + /* TCSR CC clocks */ 11 + #define TCSR_PCIE_0_CLKREF_EN 0 12 + #define TCSR_PCIE_1_CLKREF_EN 1 13 + #define TCSR_UFS_CLKREF_EN 2 14 + #define TCSR_UFS_PAD_CLKREF_EN 3 15 + #define TCSR_USB2_CLKREF_EN 4 16 + #define TCSR_USB3_CLKREF_EN 5 17 + 18 + #endif