1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/power/avs/qcom,cpr.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm Core Power Reduction (CPR) bindings
10 - Niklas Cassel <nks@flawful.org>
13 CPR (Core Power Reduction) is a technology to reduce core power on a CPU
14 or other device. Each OPP of a device corresponds to a "corner" that has
15 a range of valid voltages for a particular frequency. While the device is
16 running at a particular frequency, CPR monitors dynamic factors such as
17 temperature, etc. and suggests adjustments to the voltage to save power
18 and meet silicon characteristic requirements.
28 description: Base address and size of the RBCPR register region.
36 - description: Reference clock.
43 description: APC regulator supply.
45 '#power-domain-cells':
50 A phandle to the OPP table containing the performance states
51 supported by the CPR power domain.
54 $ref: /schemas/types.yaml#/definitions/phandle
55 description: A phandle to the syscon used for writing ACC settings.
59 - description: Corner 1 quotient offset
60 - description: Corner 2 quotient offset
61 - description: Corner 3 quotient offset
62 - description: Corner 1 initial voltage
63 - description: Corner 2 initial voltage
64 - description: Corner 3 initial voltage
65 - description: Corner 1 quotient
66 - description: Corner 2 quotient
67 - description: Corner 3 quotient
68 - description: Corner 1 ring oscillator
69 - description: Corner 2 ring oscillator
70 - description: Corner 3 ring oscillator
71 - description: Fuse revision
75 - const: cpr_quotient_offset1
76 - const: cpr_quotient_offset2
77 - const: cpr_quotient_offset3
78 - const: cpr_init_voltage1
79 - const: cpr_init_voltage2
80 - const: cpr_init_voltage3
81 - const: cpr_quotient1
82 - const: cpr_quotient2
83 - const: cpr_quotient3
84 - const: cpr_ring_osc1
85 - const: cpr_ring_osc2
86 - const: cpr_ring_osc3
87 - const: cpr_fuse_revision
96 - '#power-domain-cells'
101 additionalProperties: false
105 #include <dt-bindings/interrupt-controller/arm-gic.h>
107 cpr_opp_table: opp-table-cpr {
108 compatible = "operating-points-v2-qcom-level";
112 qcom,opp-fuse-level = <1>;
116 qcom,opp-fuse-level = <2>;
120 qcom,opp-fuse-level = <3>;
124 power-controller@b018000 {
125 compatible = "qcom,qcs404-cpr", "qcom,cpr";
126 reg = <0x0b018000 0x1000>;
127 interrupts = <0 15 IRQ_TYPE_EDGE_RISING>;
128 clocks = <&xo_board>;
130 vdd-apc-supply = <&pms405_s3>;
131 #power-domain-cells = <0>;
132 operating-points-v2 = <&cpr_opp_table>;
133 acc-syscon = <&tcsr>;
135 nvmem-cells = <&cpr_efuse_quot_offset1>,
136 <&cpr_efuse_quot_offset2>,
137 <&cpr_efuse_quot_offset3>,
138 <&cpr_efuse_init_voltage1>,
139 <&cpr_efuse_init_voltage2>,
140 <&cpr_efuse_init_voltage3>,
147 <&cpr_efuse_revision>;
148 nvmem-cell-names = "cpr_quotient_offset1",
149 "cpr_quotient_offset2",
150 "cpr_quotient_offset3",