Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 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,sm8450-camcc.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Qualcomm Camera Clock & Reset Controller on SM8450 |
| 8 | |
| 9 | maintainers: |
| 10 | - Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org> |
| 11 | |
| 12 | description: | |
| 13 | Qualcomm camera clock control module provides the clocks, resets and power |
| 14 | domains on SM8450. |
| 15 | |
| 16 | See also:: |
| 17 | include/dt-bindings/clock/qcom,sm8450-camcc.h |
| 18 | include/dt-bindings/clock/qcom,sm8550-camcc.h |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 19 | include/dt-bindings/clock/qcom,sc8280xp-camcc.h |
| 20 | |
| 21 | allOf: |
| 22 | - $ref: qcom,gcc.yaml# |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 23 | |
| 24 | properties: |
| 25 | compatible: |
| 26 | enum: |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 27 | - qcom,sc8280xp-camcc |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 28 | - qcom,sm8450-camcc |
| 29 | - qcom,sm8550-camcc |
| 30 | |
| 31 | clocks: |
| 32 | items: |
| 33 | - description: Camera AHB clock from GCC |
| 34 | - description: Board XO source |
| 35 | - description: Board active XO source |
| 36 | - description: Sleep clock source |
| 37 | |
| 38 | power-domains: |
| 39 | maxItems: 1 |
| 40 | description: |
| 41 | A phandle and PM domain specifier for the MMCX power domain. |
| 42 | |
| 43 | required-opps: |
| 44 | maxItems: 1 |
| 45 | description: |
| 46 | A phandle to an OPP node describing required MMCX performance point. |
| 47 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 48 | reg: |
| 49 | maxItems: 1 |
| 50 | |
| 51 | required: |
| 52 | - compatible |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 53 | - clocks |
| 54 | - power-domains |
| 55 | - required-opps |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 56 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 57 | unevaluatedProperties: false |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 58 | |
| 59 | examples: |
| 60 | - | |
| 61 | #include <dt-bindings/clock/qcom,gcc-sm8450.h> |
| 62 | #include <dt-bindings/clock/qcom,rpmh.h> |
| 63 | #include <dt-bindings/power/qcom,rpmhpd.h> |
| 64 | clock-controller@ade0000 { |
| 65 | compatible = "qcom,sm8450-camcc"; |
| 66 | reg = <0xade0000 0x20000>; |
| 67 | clocks = <&gcc GCC_CAMERA_AHB_CLK>, |
| 68 | <&rpmhcc RPMH_CXO_CLK>, |
| 69 | <&rpmhcc RPMH_CXO_CLK_A>, |
| 70 | <&sleep_clk>; |
| 71 | power-domains = <&rpmhpd RPMHPD_MMCX>; |
| 72 | required-opps = <&rpmhpd_opp_low_svs>; |
| 73 | #clock-cells = <1>; |
| 74 | #reset-cells = <1>; |
| 75 | #power-domain-cells = <1>; |
| 76 | }; |
| 77 | ... |