Merge tag 'linux-kselftest-kunit-fixes-5.11-rc3' of git://git.kernel.org/pub/scm...
[linux/fpc-iii.git] / Documentation / devicetree / bindings / power / avs / qcom,cpr.txt
blobab0d5ebbad4ee5886e3d5317ed271d5f0303dea5
1 QCOM CPR (Core Power Reduction)
3 CPR (Core Power Reduction) is a technology to reduce core power on a CPU
4 or other device. Each OPP of a device corresponds to a "corner" that has
5 a range of valid voltages for a particular frequency. While the device is
6 running at a particular frequency, CPR monitors dynamic factors such as
7 temperature, etc. and suggests adjustments to the voltage to save power
8 and meet silicon characteristic requirements.
10 - compatible:
11         Usage: required
12         Value type: <string>
13         Definition: should be "qcom,qcs404-cpr", "qcom,cpr" for qcs404
15 - reg:
16         Usage: required
17         Value type: <prop-encoded-array>
18         Definition: base address and size of the rbcpr register region
20 - interrupts:
21         Usage: required
22         Value type: <prop-encoded-array>
23         Definition: should specify the CPR interrupt
25 - clocks:
26         Usage: required
27         Value type: <prop-encoded-array>
28         Definition: phandle to the reference clock
30 - clock-names:
31         Usage: required
32         Value type: <stringlist>
33         Definition: must be "ref"
35 - vdd-apc-supply:
36         Usage: required
37         Value type: <phandle>
38         Definition: phandle to the vdd-apc-supply regulator
40 - #power-domain-cells:
41         Usage: required
42         Value type: <u32>
43         Definition: should be 0
45 - operating-points-v2:
46         Usage: required
47         Value type: <phandle>
48         Definition: A phandle to the OPP table containing the
49                     performance states supported by the CPR
50                     power domain
52 - acc-syscon:
53         Usage: optional
54         Value type: <phandle>
55         Definition: phandle to syscon for writing ACC settings
57 - nvmem-cells:
58         Usage: required
59         Value type: <phandle>
60         Definition: phandle to nvmem cells containing the data
61                     that makes up a fuse corner, for each fuse corner.
62                     As well as the CPR fuse revision.
64 - nvmem-cell-names:
65         Usage: required
66         Value type: <stringlist>
67         Definition: should be "cpr_quotient_offset1", "cpr_quotient_offset2",
68                     "cpr_quotient_offset3", "cpr_init_voltage1",
69                     "cpr_init_voltage2", "cpr_init_voltage3", "cpr_quotient1",
70                     "cpr_quotient2", "cpr_quotient3", "cpr_ring_osc1",
71                     "cpr_ring_osc2", "cpr_ring_osc3", "cpr_fuse_revision"
72                     for qcs404.
74 Example:
76         cpr_opp_table: cpr-opp-table {
77                 compatible = "operating-points-v2-qcom-level";
79                 cpr_opp1: opp1 {
80                         opp-level = <1>;
81                         qcom,opp-fuse-level = <1>;
82                 };
83                 cpr_opp2: opp2 {
84                         opp-level = <2>;
85                         qcom,opp-fuse-level = <2>;
86                 };
87                 cpr_opp3: opp3 {
88                         opp-level = <3>;
89                         qcom,opp-fuse-level = <3>;
90                 };
91         };
93         power-controller@b018000 {
94                 compatible = "qcom,qcs404-cpr", "qcom,cpr";
95                 reg = <0x0b018000 0x1000>;
96                 interrupts = <0 15 IRQ_TYPE_EDGE_RISING>;
97                 clocks = <&xo_board>;
98                 clock-names = "ref";
99                 vdd-apc-supply = <&pms405_s3>;
100                 #power-domain-cells = <0>;
101                 operating-points-v2 = <&cpr_opp_table>;
102                 acc-syscon = <&tcsr>;
104                 nvmem-cells = <&cpr_efuse_quot_offset1>,
105                         <&cpr_efuse_quot_offset2>,
106                         <&cpr_efuse_quot_offset3>,
107                         <&cpr_efuse_init_voltage1>,
108                         <&cpr_efuse_init_voltage2>,
109                         <&cpr_efuse_init_voltage3>,
110                         <&cpr_efuse_quot1>,
111                         <&cpr_efuse_quot2>,
112                         <&cpr_efuse_quot3>,
113                         <&cpr_efuse_ring1>,
114                         <&cpr_efuse_ring2>,
115                         <&cpr_efuse_ring3>,
116                         <&cpr_efuse_revision>;
117                 nvmem-cell-names = "cpr_quotient_offset1",
118                         "cpr_quotient_offset2",
119                         "cpr_quotient_offset3",
120                         "cpr_init_voltage1",
121                         "cpr_init_voltage2",
122                         "cpr_init_voltage3",
123                         "cpr_quotient1",
124                         "cpr_quotient2",
125                         "cpr_quotient3",
126                         "cpr_ring_osc1",
127                         "cpr_ring_osc2",
128                         "cpr_ring_osc3",
129                         "cpr_fuse_revision";
130         };