Skip to content

Commit 7ec95ff

Browse files
0xB0Dandersson
authored andcommitted
dt-bindings: clock: move qcom,x1e80100-camcc to its own file
Add an x1e80100 camcc binding. x1e80100 has two power-domain parents unlike other similar camcc controllers. Differentiate the new structure into a unique camcc definition. Other similar camcc controller setups can then be easily added to this one. Suggested-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Bryan O'Donoghue <[email protected]> Link: https://lore.kernel.org/r/20250102-b4-linux-next-24-11-18-dtsi-x1e80100-camss-v3-2-cb66d55d20cc@linaro.org Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 0ee8787 commit 7ec95ff

File tree

2 files changed

+74
-2
lines changed

2 files changed

+74
-2
lines changed

Documentation/devicetree/bindings/clock/qcom,sm8450-camcc.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ description: |
1919
include/dt-bindings/clock/qcom,sm8450-camcc.h
2020
include/dt-bindings/clock/qcom,sm8550-camcc.h
2121
include/dt-bindings/clock/qcom,sm8650-camcc.h
22-
include/dt-bindings/clock/qcom,x1e80100-camcc.h
2322
2423
properties:
2524
compatible:
@@ -29,7 +28,6 @@ properties:
2928
- qcom,sm8475-camcc
3029
- qcom,sm8550-camcc
3130
- qcom,sm8650-camcc
32-
- qcom,x1e80100-camcc
3331

3432
clocks:
3533
items:
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
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,x1e80100-camcc.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Qualcomm Camera Clock & Reset Controller on x1e80100
8+
9+
maintainers:
10+
- Bryan O'Donoghue <[email protected]>
11+
12+
description: |
13+
Qualcomm camera clock control module provides the clocks, resets and power
14+
domains on x1e80100.
15+
16+
See also:
17+
include/dt-bindings/clock/qcom,x1e80100-camcc.h
18+
19+
allOf:
20+
- $ref: qcom,gcc.yaml#
21+
22+
properties:
23+
compatible:
24+
enum:
25+
- qcom,x1e80100-camcc
26+
27+
reg:
28+
maxItems: 1
29+
30+
clocks:
31+
items:
32+
- description: Camera AHB clock from GCC
33+
- description: Board XO source
34+
- description: Board active XO source
35+
- description: Sleep clock source
36+
37+
power-domains:
38+
items:
39+
- description: A phandle to the MXC power-domain
40+
- description: A phandle to the MMCX power-domain
41+
42+
required-opps:
43+
maxItems: 1
44+
description:
45+
A phandle to an OPP node describing MMCX performance points.
46+
47+
required:
48+
- compatible
49+
- clocks
50+
- power-domains
51+
- required-opps
52+
53+
unevaluatedProperties: false
54+
55+
examples:
56+
- |
57+
#include <dt-bindings/clock/qcom,x1e80100-gcc.h>
58+
#include <dt-bindings/clock/qcom,rpmh.h>
59+
#include <dt-bindings/power/qcom,rpmhpd.h>
60+
clock-controller@ade0000 {
61+
compatible = "qcom,x1e80100-camcc";
62+
reg = <0xade0000 0x20000>;
63+
clocks = <&gcc GCC_CAMERA_AHB_CLK>,
64+
<&rpmhcc RPMH_CXO_CLK>,
65+
<&rpmhcc RPMH_CXO_CLK_A>,
66+
<&sleep_clk>;
67+
power-domains = <&rpmhpd RPMHPD_MXC>,
68+
<&rpmhpd RPMHPD_MMCX>;
69+
required-opps = <&rpmhpd_opp_low_svs>;
70+
#clock-cells = <1>;
71+
#reset-cells = <1>;
72+
#power-domain-cells = <1>;
73+
};
74+
...

0 commit comments

Comments
 (0)