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

dt-bindings: clock: add QCOM SM6115 display clock bindings

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

Signed-off-by: Adam Skladowski <a39.skl@gmail.com>
Reviewed-by: Rob Herring <robh@kernel.org>
[bjorn: Minor fix of binding description]
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220911164635.182973-2-a39.skl@gmail.com

authored by

Adam Skladowski and committed by
Bjorn Andersson
38557c6f 1a58ee13

+106
+70
Documentation/devicetree/bindings/clock/qcom,sm6115-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,sm6115-dispcc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Qualcomm Display Clock Controller for SM6115 8 + 9 + maintainers: 10 + - Bjorn Andersson <andersson@kernel.org> 11 + 12 + description: | 13 + Qualcomm display clock control module which supports the clocks and 14 + power domains on SM6115. 15 + 16 + See also: 17 + include/dt-bindings/clock/qcom,sm6115-dispcc.h 18 + 19 + properties: 20 + compatible: 21 + enum: 22 + - qcom,sm6115-dispcc 23 + 24 + clocks: 25 + items: 26 + - description: Board XO source 27 + - description: Board sleep clock 28 + - description: Byte clock from DSI PHY0 29 + - description: Pixel clock from DSI PHY0 30 + - description: GPLL0 DISP DIV clock from GCC 31 + 32 + '#clock-cells': 33 + const: 1 34 + 35 + '#reset-cells': 36 + const: 1 37 + 38 + '#power-domain-cells': 39 + const: 1 40 + 41 + reg: 42 + maxItems: 1 43 + 44 + required: 45 + - compatible 46 + - reg 47 + - clocks 48 + - '#clock-cells' 49 + - '#reset-cells' 50 + - '#power-domain-cells' 51 + 52 + additionalProperties: false 53 + 54 + examples: 55 + - | 56 + #include <dt-bindings/clock/qcom,rpmcc.h> 57 + #include <dt-bindings/clock/qcom,gcc-sm6115.h> 58 + clock-controller@5f00000 { 59 + compatible = "qcom,sm6115-dispcc"; 60 + reg = <0x5f00000 0x20000>; 61 + clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>, 62 + <&sleep_clk>, 63 + <&dsi0_phy 0>, 64 + <&dsi0_phy 1>, 65 + <&gcc GCC_DISP_GPLL0_DIV_CLK_SRC>; 66 + #clock-cells = <1>; 67 + #reset-cells = <1>; 68 + #power-domain-cells = <1>; 69 + }; 70 + ...
+36
include/dt-bindings/clock/qcom,sm6115-dispcc.h
··· 1 + /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ 2 + /* 3 + * Copyright (c) 2022, The Linux Foundation. All rights reserved. 4 + */ 5 + 6 + #ifndef _DT_BINDINGS_CLK_QCOM_DISP_CC_SM6115_H 7 + #define _DT_BINDINGS_CLK_QCOM_DISP_CC_SM6115_H 8 + 9 + /* DISP_CC clocks */ 10 + #define DISP_CC_PLL0 0 11 + #define DISP_CC_PLL0_OUT_MAIN 1 12 + #define DISP_CC_MDSS_AHB_CLK 2 13 + #define DISP_CC_MDSS_AHB_CLK_SRC 3 14 + #define DISP_CC_MDSS_BYTE0_CLK 4 15 + #define DISP_CC_MDSS_BYTE0_CLK_SRC 5 16 + #define DISP_CC_MDSS_BYTE0_DIV_CLK_SRC 6 17 + #define DISP_CC_MDSS_BYTE0_INTF_CLK 7 18 + #define DISP_CC_MDSS_ESC0_CLK 8 19 + #define DISP_CC_MDSS_ESC0_CLK_SRC 9 20 + #define DISP_CC_MDSS_MDP_CLK 10 21 + #define DISP_CC_MDSS_MDP_CLK_SRC 11 22 + #define DISP_CC_MDSS_MDP_LUT_CLK 12 23 + #define DISP_CC_MDSS_NON_GDSC_AHB_CLK 13 24 + #define DISP_CC_MDSS_PCLK0_CLK 14 25 + #define DISP_CC_MDSS_PCLK0_CLK_SRC 15 26 + #define DISP_CC_MDSS_ROT_CLK 16 27 + #define DISP_CC_MDSS_ROT_CLK_SRC 17 28 + #define DISP_CC_MDSS_VSYNC_CLK 18 29 + #define DISP_CC_MDSS_VSYNC_CLK_SRC 19 30 + #define DISP_CC_SLEEP_CLK 20 31 + #define DISP_CC_SLEEP_CLK_SRC 21 32 + 33 + /* DISP_CC GDSCR */ 34 + #define MDSS_GDSC 0 35 + 36 + #endif