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

dt-bindings: clock: Add Qualcomm QCS615 Display clock controller

Add DT bindings for the Display clock on QCS615 platforms. Add the
relevant DT include definitions as well.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Taniya Das <quic_tdas@quicinc.com>
Link: https://lore.kernel.org/r/20250702-qcs615-mm-v10-clock-controllers-v11-4-9c216e1615ab@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Taniya Das and committed by
Bjorn Andersson
8b1750ea 28bc4229

+107
+55
Documentation/devicetree/bindings/clock/qcom,qcs615-dispcc.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,qcs615-dispcc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Qualcomm Display Clock & Reset Controller on QCS615 8 + 9 + maintainers: 10 + - Taniya Das <quic_tdas@quicinc.com> 11 + 12 + description: | 13 + Qualcomm display clock control module provides the clocks, resets and power 14 + domains on QCS615. 15 + 16 + See also: include/dt-bindings/clock/qcom,qcs615-dispcc.h 17 + 18 + properties: 19 + compatible: 20 + const: qcom,qcs615-dispcc 21 + 22 + clocks: 23 + items: 24 + - description: Board XO source 25 + - description: GPLL0 clock source from GCC 26 + - description: Byte clock from DSI PHY0 27 + - description: Pixel clock from DSI PHY0 28 + - description: Pixel clock from DSI PHY1 29 + - description: Display port PLL link clock 30 + - description: Display port PLL VCO DIV clock 31 + 32 + allOf: 33 + - $ref: qcom,gcc.yaml# 34 + 35 + unevaluatedProperties: false 36 + 37 + examples: 38 + - | 39 + #include <dt-bindings/clock/qcom,rpmh.h> 40 + #include <dt-bindings/clock/qcom,qcs615-gcc.h> 41 + clock-controller@af00000 { 42 + compatible = "qcom,qcs615-dispcc"; 43 + reg = <0x0af00000 0x20000>; 44 + clocks = <&rpmhcc RPMH_CXO_CLK>, 45 + <&gcc GCC_DISP_GPLL0_DIV_CLK_SRC>, 46 + <&mdss_dsi0_phy 0>, 47 + <&mdss_dsi0_phy 1>, 48 + <&mdss_dsi1_phy 0>, 49 + <&mdss_dp_phy 0>, 50 + <&mdss_dp_vco 0>; 51 + #clock-cells = <1>; 52 + #reset-cells = <1>; 53 + #power-domain-cells = <1>; 54 + }; 55 + ...
+52
include/dt-bindings/clock/qcom,qcs615-dispcc.h
··· 1 + /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ 2 + /* 3 + * Copyright (c) 2024, Qualcomm Innovation Center, Inc. All rights reserved. 4 + */ 5 + 6 + #ifndef _DT_BINDINGS_CLK_QCOM_DISP_CC_QCS615_H 7 + #define _DT_BINDINGS_CLK_QCOM_DISP_CC_QCS615_H 8 + 9 + /* DISP_CC clocks */ 10 + #define DISP_CC_MDSS_AHB_CLK 0 11 + #define DISP_CC_MDSS_AHB_CLK_SRC 1 12 + #define DISP_CC_MDSS_BYTE0_CLK 2 13 + #define DISP_CC_MDSS_BYTE0_CLK_SRC 3 14 + #define DISP_CC_MDSS_BYTE0_DIV_CLK_SRC 4 15 + #define DISP_CC_MDSS_BYTE0_INTF_CLK 5 16 + #define DISP_CC_MDSS_DP_AUX_CLK 6 17 + #define DISP_CC_MDSS_DP_AUX_CLK_SRC 7 18 + #define DISP_CC_MDSS_DP_CRYPTO_CLK 8 19 + #define DISP_CC_MDSS_DP_CRYPTO_CLK_SRC 9 20 + #define DISP_CC_MDSS_DP_LINK_CLK 10 21 + #define DISP_CC_MDSS_DP_LINK_CLK_SRC 11 22 + #define DISP_CC_MDSS_DP_LINK_DIV_CLK_SRC 12 23 + #define DISP_CC_MDSS_DP_LINK_INTF_CLK 13 24 + #define DISP_CC_MDSS_DP_PIXEL1_CLK 14 25 + #define DISP_CC_MDSS_DP_PIXEL1_CLK_SRC 15 26 + #define DISP_CC_MDSS_DP_PIXEL_CLK 16 27 + #define DISP_CC_MDSS_DP_PIXEL_CLK_SRC 17 28 + #define DISP_CC_MDSS_ESC0_CLK 18 29 + #define DISP_CC_MDSS_ESC0_CLK_SRC 19 30 + #define DISP_CC_MDSS_MDP_CLK 20 31 + #define DISP_CC_MDSS_MDP_CLK_SRC 21 32 + #define DISP_CC_MDSS_MDP_LUT_CLK 22 33 + #define DISP_CC_MDSS_NON_GDSC_AHB_CLK 23 34 + #define DISP_CC_MDSS_PCLK0_CLK 24 35 + #define DISP_CC_MDSS_PCLK0_CLK_SRC 25 36 + #define DISP_CC_MDSS_ROT_CLK 26 37 + #define DISP_CC_MDSS_ROT_CLK_SRC 27 38 + #define DISP_CC_MDSS_RSCC_AHB_CLK 28 39 + #define DISP_CC_MDSS_RSCC_VSYNC_CLK 29 40 + #define DISP_CC_MDSS_VSYNC_CLK 30 41 + #define DISP_CC_MDSS_VSYNC_CLK_SRC 31 42 + #define DISP_CC_PLL0 32 43 + #define DISP_CC_XO_CLK 33 44 + 45 + /* DISP_CC power domains */ 46 + #define MDSS_CORE_GDSC 0 47 + 48 + /* DISP_CC resets */ 49 + #define DISP_CC_MDSS_CORE_BCR 0 50 + #define DISP_CC_MDSS_RSCC_BCR 1 51 + 52 + #endif