1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/clock/qcom,sdm845-dispcc.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 78bab661aSEmmanuel Vadottitle: Qualcomm Display Clock & Reset Controller on SDM845 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10aa1a8ff2SEmmanuel Vadot - Taniya Das <quic_tdas@quicinc.com> 11c66ec88fSEmmanuel Vadot 12c66ec88fSEmmanuel Vadotdescription: | 138bab661aSEmmanuel Vadot Qualcomm display clock control module provides the clocks, resets and power 148bab661aSEmmanuel Vadot domains on SDM845. 15c66ec88fSEmmanuel Vadot 168bab661aSEmmanuel Vadot See also:: include/dt-bindings/clock/qcom,dispcc-sdm845.h 17c66ec88fSEmmanuel Vadot 18c66ec88fSEmmanuel Vadotproperties: 19c66ec88fSEmmanuel Vadot compatible: 20c66ec88fSEmmanuel Vadot const: qcom,sdm845-dispcc 21c66ec88fSEmmanuel Vadot 22c66ec88fSEmmanuel Vadot # NOTE: sdm845.dtsi existed for quite some time and specified no clocks. 23c66ec88fSEmmanuel Vadot # The code had to use hardcoded mechanisms to find the input clocks. 24c66ec88fSEmmanuel Vadot # New dts files should have these clocks. 25c66ec88fSEmmanuel Vadot clocks: 26c66ec88fSEmmanuel Vadot items: 27c66ec88fSEmmanuel Vadot - description: Board XO source 28c66ec88fSEmmanuel Vadot - description: GPLL0 source from GCC 29c66ec88fSEmmanuel Vadot - description: GPLL0 div source from GCC 30c66ec88fSEmmanuel Vadot - description: Byte clock from DSI PHY0 31c66ec88fSEmmanuel Vadot - description: Pixel clock from DSI PHY0 32c66ec88fSEmmanuel Vadot - description: Byte clock from DSI PHY1 33c66ec88fSEmmanuel Vadot - description: Pixel clock from DSI PHY1 34c66ec88fSEmmanuel Vadot - description: Link clock from DP PHY 35c66ec88fSEmmanuel Vadot - description: VCO DIV clock from DP PHY 36c66ec88fSEmmanuel Vadot 37c66ec88fSEmmanuel Vadot clock-names: 38c66ec88fSEmmanuel Vadot items: 39c66ec88fSEmmanuel Vadot - const: bi_tcxo 40c66ec88fSEmmanuel Vadot - const: gcc_disp_gpll0_clk_src 41c66ec88fSEmmanuel Vadot - const: gcc_disp_gpll0_div_clk_src 42c66ec88fSEmmanuel Vadot - const: dsi0_phy_pll_out_byteclk 43c66ec88fSEmmanuel Vadot - const: dsi0_phy_pll_out_dsiclk 44c66ec88fSEmmanuel Vadot - const: dsi1_phy_pll_out_byteclk 45c66ec88fSEmmanuel Vadot - const: dsi1_phy_pll_out_dsiclk 46c66ec88fSEmmanuel Vadot - const: dp_link_clk_divsel_ten 47c66ec88fSEmmanuel Vadot - const: dp_vco_divided_clk_src_mux 48c66ec88fSEmmanuel Vadot 49c66ec88fSEmmanuel Vadotrequired: 50c66ec88fSEmmanuel Vadot - compatible 51c66ec88fSEmmanuel Vadot - clocks 52c66ec88fSEmmanuel Vadot - clock-names 53c66ec88fSEmmanuel Vadot - '#power-domain-cells' 54c66ec88fSEmmanuel Vadot 55*0e8011faSEmmanuel VadotallOf: 56*0e8011faSEmmanuel Vadot - $ref: qcom,gcc.yaml# 57*0e8011faSEmmanuel Vadot 58*0e8011faSEmmanuel VadotunevaluatedProperties: false 59c66ec88fSEmmanuel Vadot 60c66ec88fSEmmanuel Vadotexamples: 61c66ec88fSEmmanuel Vadot - | 62c66ec88fSEmmanuel Vadot #include <dt-bindings/clock/qcom,gcc-sdm845.h> 63c66ec88fSEmmanuel Vadot #include <dt-bindings/clock/qcom,rpmh.h> 64c66ec88fSEmmanuel Vadot clock-controller@af00000 { 65c66ec88fSEmmanuel Vadot compatible = "qcom,sdm845-dispcc"; 66c66ec88fSEmmanuel Vadot reg = <0x0af00000 0x10000>; 67c66ec88fSEmmanuel Vadot clocks = <&rpmhcc RPMH_CXO_CLK>, 68c66ec88fSEmmanuel Vadot <&gcc GCC_DISP_GPLL0_CLK_SRC>, 69c66ec88fSEmmanuel Vadot <&gcc GCC_DISP_GPLL0_DIV_CLK_SRC>, 70c66ec88fSEmmanuel Vadot <&dsi0_phy 0>, 71c66ec88fSEmmanuel Vadot <&dsi0_phy 1>, 72c66ec88fSEmmanuel Vadot <&dsi1_phy 0>, 73c66ec88fSEmmanuel Vadot <&dsi1_phy 1>, 74c66ec88fSEmmanuel Vadot <&dp_phy 0>, 75c66ec88fSEmmanuel Vadot <&dp_phy 1>; 76c66ec88fSEmmanuel Vadot clock-names = "bi_tcxo", 77c66ec88fSEmmanuel Vadot "gcc_disp_gpll0_clk_src", 78c66ec88fSEmmanuel Vadot "gcc_disp_gpll0_div_clk_src", 79c66ec88fSEmmanuel Vadot "dsi0_phy_pll_out_byteclk", 80c66ec88fSEmmanuel Vadot "dsi0_phy_pll_out_dsiclk", 81c66ec88fSEmmanuel Vadot "dsi1_phy_pll_out_byteclk", 82c66ec88fSEmmanuel Vadot "dsi1_phy_pll_out_dsiclk", 83c66ec88fSEmmanuel Vadot "dp_link_clk_divsel_ten", 84c66ec88fSEmmanuel Vadot "dp_vco_divided_clk_src_mux"; 85c66ec88fSEmmanuel Vadot #clock-cells = <1>; 86c66ec88fSEmmanuel Vadot #reset-cells = <1>; 87c66ec88fSEmmanuel Vadot #power-domain-cells = <1>; 88c66ec88fSEmmanuel Vadot }; 89c66ec88fSEmmanuel Vadot... 90