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

dt-bindings: clock: Add SM8350 VIDEOCC

SM8350, like most recent higher-end chips has a separate clock
controller block just for the Venus IP. Document it.

The binding was separated as the driver, unlike the earlier ones, doesn't
expect clock-names to keep it easier to maintain.

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230413-topic-lahaina_vidcc-v4-1-86c714a66a81@linaro.org

authored by

Konrad Dybcio and committed by
Bjorn Andersson
2aae5eaa ac9a7868

+121
+68
Documentation/devicetree/bindings/clock/qcom,sm8350-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,sm8350-videocc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Qualcomm SM8350 Video Clock & Reset Controller 8 + 9 + maintainers: 10 + - Konrad Dybcio <konrad.dybcio@linaro.org> 11 + 12 + description: | 13 + Qualcomm video clock control module provides the clocks, resets and power 14 + domains on Qualcomm SoCs. 15 + 16 + See also:: 17 + include/dt-bindings/clock/qcom,videocc-sm8350.h 18 + include/dt-bindings/reset/qcom,videocc-sm8350.h 19 + 20 + properties: 21 + compatible: 22 + const: qcom,sm8350-videocc 23 + 24 + clocks: 25 + items: 26 + - description: Board XO source 27 + - description: Board active XO source 28 + - description: Board sleep clock 29 + 30 + power-domains: 31 + description: 32 + A phandle and PM domain specifier for the MMCX power domain. 33 + maxItems: 1 34 + 35 + required-opps: 36 + description: 37 + A phandle to an OPP node describing required MMCX performance point. 38 + maxItems: 1 39 + 40 + required: 41 + - compatible 42 + - clocks 43 + - power-domains 44 + - required-opps 45 + 46 + allOf: 47 + - $ref: qcom,gcc.yaml# 48 + 49 + unevaluatedProperties: false 50 + 51 + examples: 52 + - | 53 + #include <dt-bindings/clock/qcom,rpmh.h> 54 + #include <dt-bindings/power/qcom-rpmpd.h> 55 + 56 + clock-controller@abf0000 { 57 + compatible = "qcom,sm8350-videocc"; 58 + reg = <0x0abf0000 0x10000>; 59 + clocks = <&rpmhcc RPMH_CXO_CLK>, 60 + <&rpmhcc RPMH_CXO_CLK_A>, 61 + <&sleep_clk>; 62 + power-domains = <&rpmhpd SM8350_MMCX>; 63 + required-opps = <&rpmhpd_opp_low_svs>; 64 + #clock-cells = <1>; 65 + #reset-cells = <1>; 66 + #power-domain-cells = <1>; 67 + }; 68 + ...
+35
include/dt-bindings/clock/qcom,sm8350-videocc.h
··· 1 + /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ 2 + /* 3 + * Copyright (c) 2019, The Linux Foundation. All rights reserved. 4 + * Copyright (c) 2023, Linaro Limited 5 + */ 6 + 7 + #ifndef _DT_BINDINGS_CLK_QCOM_VIDEO_CC_SM8350_H 8 + #define _DT_BINDINGS_CLK_QCOM_VIDEO_CC_SM8350_H 9 + 10 + /* Clocks */ 11 + #define VIDEO_CC_AHB_CLK_SRC 0 12 + #define VIDEO_CC_MVS0_CLK 1 13 + #define VIDEO_CC_MVS0_CLK_SRC 2 14 + #define VIDEO_CC_MVS0_DIV_CLK_SRC 3 15 + #define VIDEO_CC_MVS0C_CLK 4 16 + #define VIDEO_CC_MVS0C_DIV2_DIV_CLK_SRC 5 17 + #define VIDEO_CC_MVS1_CLK 6 18 + #define VIDEO_CC_MVS1_CLK_SRC 7 19 + #define VIDEO_CC_MVS1_DIV2_CLK 8 20 + #define VIDEO_CC_MVS1_DIV_CLK_SRC 9 21 + #define VIDEO_CC_MVS1C_CLK 10 22 + #define VIDEO_CC_MVS1C_DIV2_DIV_CLK_SRC 11 23 + #define VIDEO_CC_SLEEP_CLK 12 24 + #define VIDEO_CC_SLEEP_CLK_SRC 13 25 + #define VIDEO_CC_XO_CLK_SRC 14 26 + #define VIDEO_PLL0 15 27 + #define VIDEO_PLL1 16 28 + 29 + /* GDSCs */ 30 + #define MVS0C_GDSC 0 31 + #define MVS1C_GDSC 1 32 + #define MVS0_GDSC 2 33 + #define MVS1_GDSC 3 34 + 35 + #endif
+18
include/dt-bindings/reset/qcom,sm8350-videocc.h
··· 1 + /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ 2 + /* 3 + * Copyright (c) 2019, The Linux Foundation. All rights reserved. 4 + * Copyright (c) 2023, Linaro Limited 5 + */ 6 + 7 + #ifndef _DT_BINDINGS_RESET_QCOM_VIDEO_CC_SM8350_H 8 + #define _DT_BINDINGS_RESET_QCOM_VIDEO_CC_SM8350_H 9 + 10 + #define VIDEO_CC_CVP_INTERFACE_BCR 0 11 + #define VIDEO_CC_CVP_MVS0_BCR 1 12 + #define VIDEO_CC_MVS0C_CLK_ARES 2 13 + #define VIDEO_CC_CVP_MVS0C_BCR 3 14 + #define VIDEO_CC_CVP_MVS1_BCR 4 15 + #define VIDEO_CC_MVS1C_CLK_ARES 5 16 + #define VIDEO_CC_CVP_MVS1C_BCR 6 17 + 18 + #endif