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

dt-bindings: clock: add QCOM SM6375 display clock

Add device tree bindings for display clock controller for
Qualcomm Technology Inc's SM6375 SoC.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221115155808.10899-1-konrad.dybcio@linaro.org

authored by

Konrad Dybcio and committed by
Bjorn Andersson
9285e61a 4a66e76f

+96
+54
Documentation/devicetree/bindings/clock/qcom,sm6375-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,sm6375-dispcc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Qualcomm Display Clock & Reset Controller on SM6375 8 + 9 + maintainers: 10 + - Konrad Dybcio <konrad.dybcio@linaro.org> 11 + 12 + description: | 13 + Qualcomm display clock control module provides the clocks, resets and power 14 + domains on SM6375. 15 + 16 + See also:: include/dt-bindings/clock/qcom,dispcc-sm6375.h 17 + 18 + allOf: 19 + - $ref: qcom,gcc.yaml# 20 + 21 + properties: 22 + compatible: 23 + const: qcom,sm6375-dispcc 24 + 25 + clocks: 26 + items: 27 + - description: Board XO source 28 + - description: GPLL0 source from GCC 29 + - description: Byte clock from DSI PHY 30 + - description: Pixel clock from DSI PHY 31 + 32 + required: 33 + - compatible 34 + - clocks 35 + 36 + unevaluatedProperties: false 37 + 38 + examples: 39 + - | 40 + #include <dt-bindings/clock/qcom,sm6375-gcc.h> 41 + #include <dt-bindings/clock/qcom,rpmh.h> 42 + 43 + clock-controller@5f00000 { 44 + compatible = "qcom,sm6375-dispcc"; 45 + reg = <0x05f00000 0x20000>; 46 + clocks = <&rpmhcc RPMH_CXO_CLK>, 47 + <&gcc GCC_DISP_GPLL0_CLK_SRC>, 48 + <&dsi_phy 0>, 49 + <&dsi_phy 1>; 50 + #clock-cells = <1>; 51 + #reset-cells = <1>; 52 + #power-domain-cells = <1>; 53 + }; 54 + ...
+42
include/dt-bindings/clock/qcom,sm6375-dispcc.h
··· 1 + /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ 2 + /* 3 + * Copyright (c) 2021, The Linux Foundation. All rights reserved. 4 + * Copyright (c) 2022, Linaro Limited 5 + */ 6 + 7 + #ifndef _DT_BINDINGS_CLK_QCOM_DISP_CC_SM6375_H 8 + #define _DT_BINDINGS_CLK_QCOM_DISP_CC_SM6375_H 9 + 10 + /* Clocks */ 11 + #define DISP_CC_PLL0 0 12 + #define DISP_CC_MDSS_AHB_CLK 1 13 + #define DISP_CC_MDSS_AHB_CLK_SRC 2 14 + #define DISP_CC_MDSS_BYTE0_CLK 3 15 + #define DISP_CC_MDSS_BYTE0_CLK_SRC 4 16 + #define DISP_CC_MDSS_BYTE0_DIV_CLK_SRC 5 17 + #define DISP_CC_MDSS_BYTE0_INTF_CLK 6 18 + #define DISP_CC_MDSS_ESC0_CLK 7 19 + #define DISP_CC_MDSS_ESC0_CLK_SRC 8 20 + #define DISP_CC_MDSS_MDP_CLK 9 21 + #define DISP_CC_MDSS_MDP_CLK_SRC 10 22 + #define DISP_CC_MDSS_MDP_LUT_CLK 11 23 + #define DISP_CC_MDSS_NON_GDSC_AHB_CLK 12 24 + #define DISP_CC_MDSS_PCLK0_CLK 13 25 + #define DISP_CC_MDSS_PCLK0_CLK_SRC 14 26 + #define DISP_CC_MDSS_ROT_CLK 15 27 + #define DISP_CC_MDSS_ROT_CLK_SRC 16 28 + #define DISP_CC_MDSS_RSCC_AHB_CLK 17 29 + #define DISP_CC_MDSS_RSCC_VSYNC_CLK 18 30 + #define DISP_CC_MDSS_VSYNC_CLK 19 31 + #define DISP_CC_MDSS_VSYNC_CLK_SRC 20 32 + #define DISP_CC_SLEEP_CLK 21 33 + #define DISP_CC_XO_CLK 22 34 + 35 + /* Resets */ 36 + #define DISP_CC_MDSS_CORE_BCR 0 37 + #define DISP_CC_MDSS_RSCC_BCR 1 38 + 39 + /* GDSCs */ 40 + #define MDSS_GDSC 0 41 + 42 + #endif