From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.54 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796160947; b=sWKWSn2zBZn1lRrhVBgSqRPO0ix+4BcYN4+f2CiYBtRMSmi+mT+EwrK6f2TcZ4eZReVj M2S+c3eRu7zFAllYCa9vy8Azw6+YGTbnWM6nR27IJ98sY0BQPqCwYJtaHZ9uGuKehJcDG WF5wPgg7orWOMgo8im/13KWhi5msOWn9Ijc+9BWcdrDA2+sq5B+IwFAxcvBOXQhjNUTRj iNQ19UZIs7VPddCGyIMiOmkqaD+OtUqVlppt3hLqVTsGIFX/bMF+iOQ7lOenBQ7G9OmOu s81e9U6QWhH0ISJCjK/tVyF7XxSwdaHinX6KNUQzD/dXw+DLxgrzbN343XV3ZD5nnhg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796160947; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=QVbjVJgB+zhRgdY3Jr2dYS1pmsNznW01/MKc26bWNGs=; b=mKkkkmsO26vIn8z8VmFPBGAh5viiFZrW/owNuhlEDYnmEpKy4rK5IaKncmaPr29inKJF 9mXL8IQQgmoX6sE8g+G33iksYYirF2Z6/aqmCHvZp17CMoVejTw16tnkp2uWBbm7RVZab 9WGWLaNeWDyVPaqiFOsTdKgMfqboabEnhm+d5G8TQxpTdRYPHS7YC/lxXZbfPk6jIY4+v KwzpGHUHlKoSkV5jQA02DHUsDBkz45H7b+sf3XFm3L4qOJfVk9M731/CR9lf8yn+lpo3i G4vGhxBIiIe7RPLDPstAxOojNhngcPdthWFs6cmi5piQO1qVfuQx9SuXYm8mRqiAT/g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=v0FPRoUK; arc=none smtp.remote-ip=209.85.128.54 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 75826606A327 for ; Tue, 1 Dec 2026 21:35:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 75826606A327 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=v0FPRoUK Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-4a3517554f7so110596775e9.2 for ; Tue, 01 Dec 2026 13:35:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796160946; x=1796765746; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=QVbjVJgB+zhRgdY3Jr2dYS1pmsNznW01/MKc26bWNGs=; b=v0FPRoUKzyXEa7hp7ZjHsUH92gBafcS0dGgYeQbfOiSrs19F9n4braS13dQE386Dm5 4PUmPFLmK1KADKm5VGM3ILf2OUIRVDy7ivubcfGBGlFHMDa/6r+x+0ZVbJ52IUezwbe2 ZIxv9v1dD6OCp+32If0FE6BYRRI4i73zLk5sLYVjIGUV2VTSYg8kLf7wCdp1neZvlb6M IzUlu77iG4aO+FlqQUAjyUM1c9f7OLGbJTMS+uRer89eQiwBCptQuZrcPsROUHPSGMfQ GqZkk7eL/Gdv/2eqnZYBSe6jKZJYwhiNHbYak+jWFofwei7uu4vP06oV6TcdNX6tgMt1 IvTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796160946; x=1796765746; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=QVbjVJgB+zhRgdY3Jr2dYS1pmsNznW01/MKc26bWNGs=; b=IfXBkWDiRACAK7cbfAY9vzBmkJXMl29hlqMVtqTlK2ygrmknfC7QPEJPX6puKbpTTM ibda5IE3ehyeFu8a7PY6fRYh0vW9ZewrnJDvkPs4voGJcNNiblo8ukHEZvfF4lPY/g6y bhYlBmDP74vOCRIcRduavh0BTeZNZB6e+LZTSwj32Ypapln7yxkgTc9J5OiUt9Ao0wLT 2nS1f2Rt/FXgTD8grOxJOogmixy4dzs5vrPDyq6BxR/ssHNn5NNkHBYjK77iSpjoeuUV OsmHsAUFe/rVebIJFTElCQOfADphptTVYKWJ51IvbjuYiKYGtqt6Ee1hHPpxRzy2TZUV bdsA== X-Forwarded-Encrypted: i=1; AL+hErETtTVtUFfGsO5l14tN8qJFIuZiWNJW8RIyOt46hgsET7yIUtYCBmZj9IpdZE4dRV6Y6YnlvB0mPQ==@vger.kernel.org X-Gm-Message-State: APuU4Z8GZUl6w4epIdc7Y0GQ3juSyHlksJ3fdedFsaeA/ohG0zbJ+o2Z nlZJB3mjorLyC1wjsSUHUbCM9FqybyR6ZlvvdETyq8dO12YolkZy0RTv X-Gm-Gg: AZFdTZe1V/1rCwSpQMnpttJWgpu8fhsEXt29UWvkiKMWR9xZBd/wNscw5rL5+2HYCMY INel9ADE2S/Eo12rrJdbtvxkQt0xCHkmyxNLvRux8i5bcyK9gW4dYMZTYE+X6rw41kQYYg98Rzh XUWKWjNQ7X5Lt6zPrjLw6/VNlPu8+kweCN8ROd+gTpJDvApPhUuKtLGgYYLLz4QhCZRdp9xs2vH rErH54tc+4tNO5zCiEWg2jkCX9r8w17BL/NSwmEqWVEIp83WyKdPOSx2zWwB0a72UOG2qeGi+DC xliXahoch8ofhjupNDdaO7GAjsjMGo8mjUfibXxV8Ftp/6CQ7yzvVc4wqM43MejxKilvjJodc63 djVrkIikvynYCJeXf/3/RQ+HuraE/AfveQTlgctE9RspmJ5i1atluxbeyTtlDKtomffTeWBV7es Z8M8px6cSwoKPgZ5jbA4fyMyGRCl/pdvyVohKsxgdNEyz9MN7KLUByIgBiuJN8Ost6/IZeTrzvw 9ky2RmtcEIa2RExGidWf7nAV1P18i5KNcCfwaHlC/MaB2SozwONPzn+7eR4EBXAFHMHVHHE0hZv SaKxThZ6CHr0MHvJP9BxcP7HfXDh2eI0k9u4rzuToej22gGImrC6eul/UyJ5QfxiLmvGqimCch2 +69UTEGH9yemyOJbGeZjSG7CRMJti4owar79MFvUdAULjbAZAVuxG/mFVeyaHzC8CUltibzmUO8 7O7umCQ5RhDj/BB9+yYS76EgTfFoMykx9H X-Received: by 2002:a05:600c:64c9:b0:4bb:8701:bb14 with SMTP id 5b1f17b1804b1-4bb88804d1cmr804323775e9.5.1796160945870; Tue, 01 Dec 2026 13:35:45 -0800 (PST) Received: from threadripper-fedora-workstation (cpe-109-60-83-214.zg3.cable.xnet.hr. [109.60.83.214]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb884911e3sm1283651735e9.6.2026.12.01.13.35.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 13:35:45 -0800 (PST) From: Robert Marko 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 Subject: [PATCH 1/7] dt-bindings: power: document Qualcomm CPRv4 Date: Tue, 1 Dec 2026 22:34:14 +0100 Message-ID: <20261201213534.343361-2-robimarko@gmail.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261201213534.343361-1-robimarko@gmail.com> References: <20261201213534.343361-1-robimarko@gmail.com> X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- .../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 + +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 + + power-controller@b018000 { + compatible = "qcom,ipq8074-cpr4"; + reg = <0x0b018000 0x4000>; + interrupts = ; + 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