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

dt-bindings: clock: Add SC7280 DISPCC clock binding

Add device tree bindings for display clock controller subsystem for
Qualcomm Technology Inc's SC7280 SoCs.

Signed-off-by: Taniya Das <tdas@codeaurora.org>
Link: https://lore.kernel.org/r/1626189143-12957-3-git-send-email-tdas@codeaurora.org
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Taniya Das and committed by
Stephen Boyd
ced3aaea 8bde9dd3

+149
+94
Documentation/devicetree/bindings/clock/qcom,sc7280-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,sc7280-dispcc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Qualcomm Display Clock & Reset Controller Binding for SC7280 8 + 9 + maintainers: 10 + - Taniya Das <tdas@codeaurora.org> 11 + 12 + description: | 13 + Qualcomm display clock control module which supports the clocks, resets and 14 + power domains on SC7280. 15 + 16 + See also dt-bindings/clock/qcom,dispcc-sc7280.h. 17 + 18 + properties: 19 + compatible: 20 + const: qcom,sc7280-dispcc 21 + 22 + clocks: 23 + items: 24 + - description: Board XO source 25 + - description: GPLL0 source from GCC 26 + - description: Byte clock from DSI PHY 27 + - description: Pixel clock from DSI PHY 28 + - description: Link clock from DP PHY 29 + - description: VCO DIV clock from DP PHY 30 + - description: Link clock from EDP PHY 31 + - description: VCO DIV clock from EDP PHY 32 + 33 + clock-names: 34 + items: 35 + - const: bi_tcxo 36 + - const: gcc_disp_gpll0_clk 37 + - const: dsi0_phy_pll_out_byteclk 38 + - const: dsi0_phy_pll_out_dsiclk 39 + - const: dp_phy_pll_link_clk 40 + - const: dp_phy_pll_vco_div_clk 41 + - const: edp_phy_pll_link_clk 42 + - const: edp_phy_pll_vco_div_clk 43 + 44 + '#clock-cells': 45 + const: 1 46 + 47 + '#reset-cells': 48 + const: 1 49 + 50 + '#power-domain-cells': 51 + const: 1 52 + 53 + reg: 54 + maxItems: 1 55 + 56 + required: 57 + - compatible 58 + - reg 59 + - clocks 60 + - clock-names 61 + - '#clock-cells' 62 + - '#reset-cells' 63 + - '#power-domain-cells' 64 + 65 + additionalProperties: false 66 + 67 + examples: 68 + - | 69 + #include <dt-bindings/clock/qcom,gcc-sc7280.h> 70 + #include <dt-bindings/clock/qcom,rpmh.h> 71 + clock-controller@af00000 { 72 + compatible = "qcom,sc7280-dispcc"; 73 + reg = <0x0af00000 0x200000>; 74 + clocks = <&rpmhcc RPMH_CXO_CLK>, 75 + <&gcc GCC_DISP_GPLL0_CLK_SRC>, 76 + <&dsi_phy 0>, 77 + <&dsi_phy 1>, 78 + <&dp_phy 0>, 79 + <&dp_phy 1>, 80 + <&edp_phy 0>, 81 + <&edp_phy 1>; 82 + clock-names = "bi_tcxo", 83 + "gcc_disp_gpll0_clk", 84 + "dsi0_phy_pll_out_byteclk", 85 + "dsi0_phy_pll_out_dsiclk", 86 + "dp_phy_pll_link_clk", 87 + "dp_phy_pll_vco_div_clk", 88 + "edp_phy_pll_link_clk", 89 + "edp_phy_pll_vco_div_clk"; 90 + #clock-cells = <1>; 91 + #reset-cells = <1>; 92 + #power-domain-cells = <1>; 93 + }; 94 + ...
+55
include/dt-bindings/clock/qcom,dispcc-sc7280.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 + */ 5 + 6 + #ifndef _DT_BINDINGS_CLK_QCOM_DISP_CC_SC7280_H 7 + #define _DT_BINDINGS_CLK_QCOM_DISP_CC_SC7280_H 8 + 9 + /* DISP_CC clocks */ 10 + #define DISP_CC_PLL0 0 11 + #define DISP_CC_MDSS_AHB_CLK 1 12 + #define DISP_CC_MDSS_AHB_CLK_SRC 2 13 + #define DISP_CC_MDSS_BYTE0_CLK 3 14 + #define DISP_CC_MDSS_BYTE0_CLK_SRC 4 15 + #define DISP_CC_MDSS_BYTE0_DIV_CLK_SRC 5 16 + #define DISP_CC_MDSS_BYTE0_INTF_CLK 6 17 + #define DISP_CC_MDSS_DP_AUX_CLK 7 18 + #define DISP_CC_MDSS_DP_AUX_CLK_SRC 8 19 + #define DISP_CC_MDSS_DP_CRYPTO_CLK 9 20 + #define DISP_CC_MDSS_DP_CRYPTO_CLK_SRC 10 21 + #define DISP_CC_MDSS_DP_LINK_CLK 11 22 + #define DISP_CC_MDSS_DP_LINK_CLK_SRC 12 23 + #define DISP_CC_MDSS_DP_LINK_DIV_CLK_SRC 13 24 + #define DISP_CC_MDSS_DP_LINK_INTF_CLK 14 25 + #define DISP_CC_MDSS_DP_PIXEL_CLK 15 26 + #define DISP_CC_MDSS_DP_PIXEL_CLK_SRC 16 27 + #define DISP_CC_MDSS_EDP_AUX_CLK 17 28 + #define DISP_CC_MDSS_EDP_AUX_CLK_SRC 18 29 + #define DISP_CC_MDSS_EDP_LINK_CLK 19 30 + #define DISP_CC_MDSS_EDP_LINK_CLK_SRC 20 31 + #define DISP_CC_MDSS_EDP_LINK_DIV_CLK_SRC 21 32 + #define DISP_CC_MDSS_EDP_LINK_INTF_CLK 22 33 + #define DISP_CC_MDSS_EDP_PIXEL_CLK 23 34 + #define DISP_CC_MDSS_EDP_PIXEL_CLK_SRC 24 35 + #define DISP_CC_MDSS_ESC0_CLK 25 36 + #define DISP_CC_MDSS_ESC0_CLK_SRC 26 37 + #define DISP_CC_MDSS_MDP_CLK 27 38 + #define DISP_CC_MDSS_MDP_CLK_SRC 28 39 + #define DISP_CC_MDSS_MDP_LUT_CLK 29 40 + #define DISP_CC_MDSS_NON_GDSC_AHB_CLK 30 41 + #define DISP_CC_MDSS_PCLK0_CLK 31 42 + #define DISP_CC_MDSS_PCLK0_CLK_SRC 32 43 + #define DISP_CC_MDSS_ROT_CLK 33 44 + #define DISP_CC_MDSS_ROT_CLK_SRC 34 45 + #define DISP_CC_MDSS_RSCC_AHB_CLK 35 46 + #define DISP_CC_MDSS_RSCC_VSYNC_CLK 36 47 + #define DISP_CC_MDSS_VSYNC_CLK 37 48 + #define DISP_CC_MDSS_VSYNC_CLK_SRC 38 49 + #define DISP_CC_SLEEP_CLK 39 50 + #define DISP_CC_XO_CLK 40 51 + 52 + /* DISP_CC power domains */ 53 + #define DISP_CC_MDSS_CORE_GDSC 0 54 + 55 + #endif