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

dt-bindings: clock: qcom: document the Milos Video Clock Controller

Add bindings documentation for the Milos (e.g. SM7635) Video Clock
Controller.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Link: https://lore.kernel.org/r/20250715-sm7635-clocks-v3-10-18f9faac4984@fairphone.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Luca Weiss and committed by
Bjorn Andersson
a4937e97 980d7c84

+89
+53
Documentation/devicetree/bindings/clock/qcom,milos-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,milos-videocc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Qualcomm Video Clock & Reset Controller on Milos 8 + 9 + maintainers: 10 + - Luca Weiss <luca.weiss@fairphone.com> 11 + 12 + description: | 13 + Qualcomm video clock control module provides the clocks, resets and power 14 + domains on Milos. 15 + 16 + See also: include/dt-bindings/clock/qcom,milos-videocc.h 17 + 18 + properties: 19 + compatible: 20 + const: qcom,milos-videocc 21 + 22 + clocks: 23 + items: 24 + - description: Board XO source 25 + - description: Board active XO source 26 + - description: Sleep clock source 27 + - description: Video AHB clock from GCC 28 + 29 + required: 30 + - compatible 31 + - clocks 32 + 33 + allOf: 34 + - $ref: qcom,gcc.yaml# 35 + 36 + unevaluatedProperties: false 37 + 38 + examples: 39 + - | 40 + #include <dt-bindings/clock/qcom,milos-gcc.h> 41 + clock-controller@aaf0000 { 42 + compatible = "qcom,milos-videocc"; 43 + reg = <0x0aaf0000 0x10000>; 44 + clocks = <&bi_tcxo_div2>, 45 + <&bi_tcxo_ao_div2>, 46 + <&sleep_clk>, 47 + <&gcc GCC_VIDEO_AHB_CLK>; 48 + #clock-cells = <1>; 49 + #reset-cells = <1>; 50 + #power-domain-cells = <1>; 51 + }; 52 + 53 + ...
+36
include/dt-bindings/clock/qcom,milos-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 + * Copyright (c) 2025, Luca Weiss <luca.weiss@fairphone.com> 5 + */ 6 + 7 + #ifndef _DT_BINDINGS_CLK_QCOM_VIDEO_CC_MILOS_H 8 + #define _DT_BINDINGS_CLK_QCOM_VIDEO_CC_MILOS_H 9 + 10 + /* VIDEO_CC clocks */ 11 + #define VIDEO_CC_PLL0 0 12 + #define VIDEO_CC_AHB_CLK 1 13 + #define VIDEO_CC_AHB_CLK_SRC 2 14 + #define VIDEO_CC_MVS0_CLK 3 15 + #define VIDEO_CC_MVS0_CLK_SRC 4 16 + #define VIDEO_CC_MVS0_DIV_CLK_SRC 5 17 + #define VIDEO_CC_MVS0_SHIFT_CLK 6 18 + #define VIDEO_CC_MVS0C_CLK 7 19 + #define VIDEO_CC_MVS0C_DIV2_DIV_CLK_SRC 8 20 + #define VIDEO_CC_MVS0C_SHIFT_CLK 9 21 + #define VIDEO_CC_SLEEP_CLK 10 22 + #define VIDEO_CC_SLEEP_CLK_SRC 11 23 + #define VIDEO_CC_XO_CLK 12 24 + #define VIDEO_CC_XO_CLK_SRC 13 25 + 26 + /* VIDEO_CC resets */ 27 + #define VIDEO_CC_INTERFACE_BCR 0 28 + #define VIDEO_CC_MVS0_BCR 1 29 + #define VIDEO_CC_MVS0C_CLK_ARES 2 30 + #define VIDEO_CC_MVS0C_BCR 3 31 + 32 + /* VIDEO_CC power domains */ 33 + #define VIDEO_CC_MVS0_GDSC 0 34 + #define VIDEO_CC_MVS0C_GDSC 1 35 + 36 + #endif