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 VIDEOCC clocks

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

Signed-off-by: Danila Tikhonov <danila@jiaxyga.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20240505201038.276047-8-danila@jiaxyga.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Danila Tikhonov and committed by
Bjorn Andersson
a4be1860 9f0532da

+86
+58
Documentation/devicetree/bindings/clock/qcom,sm7150-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,sm7150-videocc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Qualcomm Video Clock & Reset Controller on 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 video clock control module provides the clocks, resets and power 16 + domains on SM7150. 17 + 18 + See also:: include/dt-bindings/clock/qcom,videocc-sm7150.h 19 + 20 + properties: 21 + compatible: 22 + const: qcom,sm7150-videocc 23 + 24 + clocks: 25 + items: 26 + - description: Board XO source 27 + - description: Board Always On XO source 28 + 29 + power-domains: 30 + maxItems: 1 31 + description: 32 + CX power domain. 33 + 34 + required: 35 + - compatible 36 + - clocks 37 + - power-domains 38 + 39 + allOf: 40 + - $ref: qcom,gcc.yaml# 41 + 42 + unevaluatedProperties: false 43 + 44 + examples: 45 + - | 46 + #include <dt-bindings/clock/qcom,rpmh.h> 47 + #include <dt-bindings/power/qcom,rpmhpd.h> 48 + videocc: clock-controller@ab00000 { 49 + compatible = "qcom,sm7150-videocc"; 50 + reg = <0x0ab00000 0x10000>; 51 + clocks = <&rpmhcc RPMH_CXO_CLK>, 52 + <&rpmhcc RPMH_CXO_CLK_A>; 53 + power-domains = <&rpmhpd RPMHPD_CX>; 54 + #clock-cells = <1>; 55 + #reset-cells = <1>; 56 + #power-domain-cells = <1>; 57 + }; 58 + ...
+28
include/dt-bindings/clock/qcom,sm7150-videocc.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 + */ 6 + 7 + #ifndef _DT_BINDINGS_CLK_QCOM_VIDEOCC_SM7150_H 8 + #define _DT_BINDINGS_CLK_QCOM_VIDEOCC_SM7150_H 9 + 10 + #define VIDEOCC_PLL0 0 11 + #define VIDEOCC_IRIS_AHB_CLK 1 12 + #define VIDEOCC_IRIS_CLK_SRC 2 13 + #define VIDEOCC_MVS0_AXI_CLK 3 14 + #define VIDEOCC_MVS0_CORE_CLK 4 15 + #define VIDEOCC_MVS1_AXI_CLK 5 16 + #define VIDEOCC_MVS1_CORE_CLK 6 17 + #define VIDEOCC_MVSC_CORE_CLK 7 18 + #define VIDEOCC_MVSC_CTL_AXI_CLK 8 19 + #define VIDEOCC_VENUS_AHB_CLK 9 20 + #define VIDEOCC_XO_CLK 10 21 + #define VIDEOCC_XO_CLK_SRC 11 22 + 23 + /* VIDEOCC GDSCRs */ 24 + #define VENUS_GDSC 0 25 + #define VCODEC0_GDSC 1 26 + #define VCODEC1_GDSC 2 27 + 28 + #endif