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 SM8450 video clock controller

Add device tree bindings for the video clock controller on Qualcomm
SM8450 platform.

Signed-off-by: Taniya Das <quic_tdas@quicinc.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230524140656.7076-2-quic_tdas@quicinc.com

authored by

Taniya Das and committed by
Bjorn Andersson
1e910b2b ac9a7868

+115
+77
Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.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,sm8450-videocc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Qualcomm Video Clock & Reset Controller on SM8450 8 + 9 + maintainers: 10 + - Taniya Das <quic_tdas@quicinc.com> 11 + 12 + description: | 13 + Qualcomm video clock control module provides the clocks, resets and power 14 + domains on SM8450. 15 + 16 + See also:: include/dt-bindings/clock/qcom,videocc-sm8450.h 17 + 18 + properties: 19 + compatible: 20 + const: qcom,sm8450-videocc 21 + 22 + reg: 23 + maxItems: 1 24 + 25 + clocks: 26 + items: 27 + - description: Board XO source 28 + - description: Video AHB clock from GCC 29 + 30 + power-domains: 31 + maxItems: 1 32 + description: 33 + MMCX power domain. 34 + 35 + required-opps: 36 + maxItems: 1 37 + description: 38 + A phandle to an OPP node describing required MMCX performance point. 39 + 40 + '#clock-cells': 41 + const: 1 42 + 43 + '#reset-cells': 44 + const: 1 45 + 46 + '#power-domain-cells': 47 + const: 1 48 + 49 + required: 50 + - compatible 51 + - reg 52 + - clocks 53 + - power-domains 54 + - required-opps 55 + - '#clock-cells' 56 + - '#reset-cells' 57 + - '#power-domain-cells' 58 + 59 + additionalProperties: false 60 + 61 + examples: 62 + - | 63 + #include <dt-bindings/clock/qcom,gcc-sm8450.h> 64 + #include <dt-bindings/clock/qcom,rpmh.h> 65 + #include <dt-bindings/power/qcom-rpmpd.h> 66 + videocc: clock-controller@aaf0000 { 67 + compatible = "qcom,sm8450-videocc"; 68 + reg = <0x0aaf0000 0x10000>; 69 + clocks = <&rpmhcc RPMH_CXO_CLK>, 70 + <&gcc GCC_VIDEO_AHB_CLK>; 71 + power-domains = <&rpmhpd SM8450_MMCX>; 72 + required-opps = <&rpmhpd_opp_low_svs>; 73 + #clock-cells = <1>; 74 + #reset-cells = <1>; 75 + #power-domain-cells = <1>; 76 + }; 77 + ...
+38
include/dt-bindings/clock/qcom,sm8450-videocc.h
··· 1 + /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ 2 + /* 3 + * Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved. 4 + */ 5 + 6 + #ifndef _DT_BINDINGS_CLK_QCOM_VIDEO_CC_SM8450_H 7 + #define _DT_BINDINGS_CLK_QCOM_VIDEO_CC_SM8450_H 8 + 9 + /* VIDEO_CC clocks */ 10 + #define VIDEO_CC_MVS0_CLK 0 11 + #define VIDEO_CC_MVS0_CLK_SRC 1 12 + #define VIDEO_CC_MVS0_DIV_CLK_SRC 2 13 + #define VIDEO_CC_MVS0C_CLK 3 14 + #define VIDEO_CC_MVS0C_DIV2_DIV_CLK_SRC 4 15 + #define VIDEO_CC_MVS1_CLK 5 16 + #define VIDEO_CC_MVS1_CLK_SRC 6 17 + #define VIDEO_CC_MVS1_DIV_CLK_SRC 7 18 + #define VIDEO_CC_MVS1C_CLK 8 19 + #define VIDEO_CC_MVS1C_DIV2_DIV_CLK_SRC 9 20 + #define VIDEO_CC_PLL0 10 21 + #define VIDEO_CC_PLL1 11 22 + 23 + /* VIDEO_CC power domains */ 24 + #define VIDEO_CC_MVS0C_GDSC 0 25 + #define VIDEO_CC_MVS0_GDSC 1 26 + #define VIDEO_CC_MVS1C_GDSC 2 27 + #define VIDEO_CC_MVS1_GDSC 3 28 + 29 + /* VIDEO_CC resets */ 30 + #define CVP_VIDEO_CC_INTERFACE_BCR 0 31 + #define CVP_VIDEO_CC_MVS0_BCR 1 32 + #define CVP_VIDEO_CC_MVS0C_BCR 2 33 + #define CVP_VIDEO_CC_MVS1_BCR 3 34 + #define CVP_VIDEO_CC_MVS1C_BCR 4 35 + #define VIDEO_CC_MVS0C_CLK_ARES 5 36 + #define VIDEO_CC_MVS1C_CLK_ARES 6 37 + 38 + #endif