Skip to content

Commit a4937e9

Browse files
lweiss-fairphoneandersson
authored andcommitted
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 <[email protected]> Signed-off-by: Luca Weiss <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 980d7c8 commit a4937e9

File tree

2 files changed

+89
-0
lines changed

2 files changed

+89
-0
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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 <[email protected]>
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+
...
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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 <[email protected]>
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

0 commit comments

Comments
 (0)