[PATCH 1/7] dt-bindings: power: document Qualcomm CPRv4

From: Robert Marko

Date: Tue Dec 01 2026 - 16:35:52 EST


Document the Qualcomm CPRv4 voltage controller and APSS power domain.
Describe the fuse cells and APCS array power mux control used on IPQ8074.
The binding can be extended for other SoCs using CPRv4.

Signed-off-by: Robert Marko <robimarko@xxxxxxxxx>
---
.../bindings/power/avs/qcom,cpr4.yaml | 127 ++++++++++++++++++
1 file changed, 127 insertions(+)
create mode 100644 Documentation/devicetree/bindings/power/avs/qcom,cpr4.yaml

diff --git a/Documentation/devicetree/bindings/power/avs/qcom,cpr4.yaml b/Documentation/devicetree/bindings/power/avs/qcom,cpr4.yaml
new file mode 100644
index 000000000000..c8f4c54e8020
--- /dev/null
+++ b/Documentation/devicetree/bindings/power/avs/qcom,cpr4.yaml
@@ -0,0 +1,127 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/power/avs/qcom,cpr4.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm Core Power Reduction v4 (CPRv4) voltage controller
+
+description:
+ Qualcomm CPRv4 controllers measure ring oscillators in a voltage domain
+ and adjust the supply within limits derived from SoC fuses. The IPQ8074
+ APSS controller provides one power domain for CPU performance states.
+
+maintainers:
+ - Robert Marko <robimarko@xxxxxxxxx>
+
+properties:
+ compatible:
+ const: qcom,ipq8074-cpr4
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+ clocks:
+ maxItems: 1
+
+ vdd-supply: true
+
+ qcom,apm-ctrl:
+ $ref: /schemas/types.yaml#/definitions/phandle
+ description: APCS global block containing the APSS array power mux
+
+ '#power-domain-cells':
+ const: 1
+
+ operating-points-v2: true
+
+ nvmem-cells:
+ items:
+ - description: Fuse corner 1 ring oscillator
+ - description: Fuse corner 1 initial voltage
+ - description: Fuse corner 1 target quotient
+ - description: Fuse corner 2 ring oscillator
+ - description: Fuse corner 2 initial voltage
+ - description: Fuse corner 2 target quotient
+ - description: Fuse corner 2 quotient offset
+ - description: Fuse corner 3 ring oscillator
+ - description: Fuse corner 3 initial voltage
+ - description: Fuse corner 3 target quotient
+ - description: Fuse corner 3 quotient offset
+ - description: Fuse corner 4 ring oscillator
+ - description: Fuse corner 4 initial voltage
+ - description: Fuse corner 4 target quotient
+ - description: Fuse corner 4 quotient offset
+
+ nvmem-cell-names:
+ items:
+ - const: cpr0_ring_osc1
+ - const: cpr0_init_voltage1
+ - const: cpr0_quotient1
+ - const: cpr0_ring_osc2
+ - const: cpr0_init_voltage2
+ - const: cpr0_quotient2
+ - const: cpr0_quotient_offset2
+ - const: cpr0_ring_osc3
+ - const: cpr0_init_voltage3
+ - const: cpr0_quotient3
+ - const: cpr0_quotient_offset3
+ - const: cpr0_ring_osc4
+ - const: cpr0_init_voltage4
+ - const: cpr0_quotient4
+ - const: cpr0_quotient_offset4
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - clocks
+ - vdd-supply
+ - qcom,apm-ctrl
+ - '#power-domain-cells'
+ - operating-points-v2
+ - nvmem-cells
+ - nvmem-cell-names
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+
+ power-controller@b018000 {
+ compatible = "qcom,ipq8074-cpr4";
+ reg = <0x0b018000 0x4000>;
+ interrupts = <GIC_SPI 15 IRQ_TYPE_EDGE_RISING>;
+ clocks = <&xo>;
+ vdd-supply = <&s3>;
+ qcom,apm-ctrl = <&apcs_glb>;
+ #power-domain-cells = <1>;
+ operating-points-v2 = <&cpr_opp_table>;
+ nvmem-cells = <&cpr_efuse_ro_sel0>,
+ <&cpr_efuse_init_voltage0>,
+ <&cpr_efuse_quot0>,
+ <&cpr_efuse_ro_sel1>,
+ <&cpr_efuse_init_voltage1>,
+ <&cpr_efuse_quot1>,
+ <&cpr_efuse_quot1_offset>,
+ <&cpr_efuse_ro_sel2>,
+ <&cpr_efuse_init_voltage2>,
+ <&cpr_efuse_quot2>,
+ <&cpr_efuse_quot2_offset>,
+ <&cpr_efuse_ro_sel3>,
+ <&cpr_efuse_init_voltage3>,
+ <&cpr_efuse_quot3>,
+ <&cpr_efuse_quot3_offset>;
+ nvmem-cell-names = "cpr0_ring_osc1", "cpr0_init_voltage1",
+ "cpr0_quotient1", "cpr0_ring_osc2",
+ "cpr0_init_voltage2", "cpr0_quotient2",
+ "cpr0_quotient_offset2", "cpr0_ring_osc3",
+ "cpr0_init_voltage3", "cpr0_quotient3",
+ "cpr0_quotient_offset3", "cpr0_ring_osc4",
+ "cpr0_init_voltage4", "cpr0_quotient4",
+ "cpr0_quotient_offset4";
+ };
--
2.56.1