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

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: clock: qcom: Add SM7150 DISPCC clocks

Add device tree bindings for the display clock controller on Qualcomm
SM7150 platform.

Co-developed-by: David Wronek <david@mainlining.org>
Signed-off-by: David Wronek <david@mainlining.org>
Signed-off-by: Danila Tikhonov <danila@jiaxyga.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20240505201038.276047-4-danila@jiaxyga.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Danila Tikhonov and committed by
Bjorn Andersson
ca3a9106 734b6e7a

+134
+75
Documentation/devicetree/bindings/clock/qcom,sm7150-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,sm7150-dispcc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Qualcomm Display Clock & Reset Controller for SM7150 8 + 9 + maintainers: 10 + - Danila Tikhonov <danila@jiaxyga.com> 11 + - David Wronek <david@mainlining.org> 12 + - Jens Reidel <adrian@travitia.xyz> 13 + 14 + description: | 15 + Qualcomm display clock control module provides the clocks, resets and power 16 + domains on SM7150. 17 + 18 + See also:: include/dt-bindings/clock/qcom,sm7150-dispcc.h 19 + 20 + properties: 21 + compatible: 22 + const: qcom,sm7150-dispcc 23 + 24 + clocks: 25 + items: 26 + - description: Board XO source 27 + - description: Board Always On XO source 28 + - description: GPLL0 source from GCC 29 + - description: Sleep clock source 30 + - description: Byte clock from MDSS DSI PHY0 31 + - description: Pixel clock from MDSS DSI PHY0 32 + - description: Byte clock from MDSS DSI PHY1 33 + - description: Pixel clock from MDSS DSI PHY1 34 + - description: Link clock from DP PHY 35 + - description: VCO DIV clock from DP PHY 36 + 37 + power-domains: 38 + maxItems: 1 39 + description: 40 + CX power domain. 41 + 42 + required: 43 + - compatible 44 + - clocks 45 + - power-domains 46 + 47 + allOf: 48 + - $ref: qcom,gcc.yaml# 49 + 50 + unevaluatedProperties: false 51 + 52 + examples: 53 + - | 54 + #include <dt-bindings/clock/qcom,sm7150-gcc.h> 55 + #include <dt-bindings/clock/qcom,rpmh.h> 56 + #include <dt-bindings/power/qcom,rpmhpd.h> 57 + clock-controller@af00000 { 58 + compatible = "qcom,sm7150-dispcc"; 59 + reg = <0x0af00000 0x200000>; 60 + clocks = <&rpmhcc RPMH_CXO_CLK>, 61 + <&rpmhcc RPMH_CXO_CLK_A>, 62 + <&gcc GCC_DISP_GPLL0_CLK_SRC>, 63 + <&sleep_clk>, 64 + <&mdss_dsi0_phy 0>, 65 + <&mdss_dsi0_phy 1>, 66 + <&mdss_dsi1_phy 0>, 67 + <&mdss_dsi1_phy 1>, 68 + <&dp_phy 0>, 69 + <&dp_phy 1>; 70 + power-domains = <&rpmhpd RPMHPD_CX>; 71 + #clock-cells = <1>; 72 + #reset-cells = <1>; 73 + #power-domain-cells = <1>; 74 + }; 75 + ...
+59
include/dt-bindings/clock/qcom,sm7150-dispcc.h
··· 1 + /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ 2 + /* 3 + * Copyright (c) 2018, The Linux Foundation. All rights reserved. 4 + * Copyright (c) 2024, Danila Tikhonov <danila@jiaxyga.com> 5 + * Copyright (c) 2024, David Wronek <david@mainlining.org> 6 + */ 7 + 8 + #ifndef _DT_BINDINGS_CLK_QCOM_DISPCC_SM7150_H 9 + #define _DT_BINDINGS_CLK_QCOM_DISPCC_SM7150_H 10 + 11 + /* DISPCC clock registers */ 12 + #define DISPCC_PLL0 0 13 + #define DISPCC_MDSS_AHB_CLK 1 14 + #define DISPCC_MDSS_AHB_CLK_SRC 2 15 + #define DISPCC_MDSS_BYTE0_CLK 3 16 + #define DISPCC_MDSS_BYTE0_CLK_SRC 4 17 + #define DISPCC_MDSS_BYTE0_DIV_CLK_SRC 5 18 + #define DISPCC_MDSS_BYTE0_INTF_CLK 6 19 + #define DISPCC_MDSS_BYTE1_CLK 7 20 + #define DISPCC_MDSS_BYTE1_CLK_SRC 8 21 + #define DISPCC_MDSS_BYTE1_DIV_CLK_SRC 9 22 + #define DISPCC_MDSS_BYTE1_INTF_CLK 10 23 + #define DISPCC_MDSS_DP_AUX_CLK 11 24 + #define DISPCC_MDSS_DP_AUX_CLK_SRC 12 25 + #define DISPCC_MDSS_DP_CRYPTO_CLK 13 26 + #define DISPCC_MDSS_DP_CRYPTO_CLK_SRC 14 27 + #define DISPCC_MDSS_DP_LINK_CLK 15 28 + #define DISPCC_MDSS_DP_LINK_CLK_SRC 16 29 + #define DISPCC_MDSS_DP_LINK_INTF_CLK 17 30 + #define DISPCC_MDSS_DP_PIXEL1_CLK 18 31 + #define DISPCC_MDSS_DP_PIXEL1_CLK_SRC 19 32 + #define DISPCC_MDSS_DP_PIXEL_CLK 20 33 + #define DISPCC_MDSS_DP_PIXEL_CLK_SRC 21 34 + #define DISPCC_MDSS_ESC0_CLK 22 35 + #define DISPCC_MDSS_ESC0_CLK_SRC 23 36 + #define DISPCC_MDSS_ESC1_CLK 24 37 + #define DISPCC_MDSS_ESC1_CLK_SRC 25 38 + #define DISPCC_MDSS_MDP_CLK 26 39 + #define DISPCC_MDSS_MDP_CLK_SRC 27 40 + #define DISPCC_MDSS_MDP_LUT_CLK 28 41 + #define DISPCC_MDSS_NON_GDSC_AHB_CLK 29 42 + #define DISPCC_MDSS_PCLK0_CLK 30 43 + #define DISPCC_MDSS_PCLK0_CLK_SRC 31 44 + #define DISPCC_MDSS_PCLK1_CLK 32 45 + #define DISPCC_MDSS_PCLK1_CLK_SRC 33 46 + #define DISPCC_MDSS_ROT_CLK 34 47 + #define DISPCC_MDSS_ROT_CLK_SRC 35 48 + #define DISPCC_MDSS_RSCC_AHB_CLK 36 49 + #define DISPCC_MDSS_RSCC_VSYNC_CLK 37 50 + #define DISPCC_MDSS_VSYNC_CLK 38 51 + #define DISPCC_MDSS_VSYNC_CLK_SRC 39 52 + #define DISPCC_XO_CLK_SRC 40 53 + #define DISPCC_SLEEP_CLK 41 54 + #define DISPCC_SLEEP_CLK_SRC 42 55 + 56 + /* DISPCC GDSCR */ 57 + #define MDSS_GDSC 0 58 + 59 + #endif