Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
From: Robert Marko <robimarko@gmail.com>
To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
	andersson@kernel.org, konradybcio@kernel.org,
	abelvesa@kernel.org, ilia.lin@kernel.org, rafael@kernel.org,
	viresh.kumar@linaro.org, ulfh@kernel.org, lgirdwood@gmail.com,
	broonie@kernel.org, angelogioacchino.delregno@somainline.org,
	devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org
Cc: Robert Marko <robimarko@gmail.com>
Subject: [PATCH 1/7] dt-bindings: power: document Qualcomm CPRv4
Date: Tue,  1 Dec 2026 22:34:14 +0100	[thread overview]
Message-ID: <20261201213534.343361-2-robimarko@gmail.com> (raw)
In-Reply-To: <20261201213534.343361-1-robimarko@gmail.com>

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@gmail.com>
---
 .../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@gmail.com>
+
+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


  reply	other threads:[~2026-12-01 21:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 21:34 [PATCH 0/7] Add APSS CPRv4 support for IPQ8074 Robert Marko
2026-12-01 21:34 ` Robert Marko [this message]
2026-12-01 21:34 ` [PATCH 2/7] pmdomain: qcom: add CPRv4 power domain driver Robert Marko
2026-12-01 21:34 ` [PATCH 3/7] pmdomain: qcom: cpr4: add IPQ8074 APSS support Robert Marko
2026-12-01 21:34 ` [PATCH 4/7] cpufreq: qcom: attach IPQ8074 CPUs to CPRv4 domain Robert Marko
2026-12-01 21:34 ` [PATCH 5/7] arm64: dts: qcom: ipq8074: describe APSS CPRv4 fuses Robert Marko
2026-12-01 21:34 ` [PATCH 6/7] arm64: dts: qcom: ipq8074: add APSS CPRv4 and OPPs Robert Marko
2026-12-01 21:34 ` [PATCH 7/7] arm64: dts: qcom: ipq8074-hk10: include PMP8074 PMIC Robert Marko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261201213534.343361-2-robimarko@gmail.com \
    --to=robimarko@gmail.com \
    --cc=abelvesa@kernel.org \
    --cc=andersson@kernel.org \
    --cc=angelogioacchino.delregno@somainline.org \
    --cc=broonie@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=ilia.lin@kernel.org \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=rafael@kernel.org \
    --cc=robh@kernel.org \
    --cc=ulfh@kernel.org \
    --cc=viresh.kumar@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox