mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Yang <mmyangfl@gmail.com>
To: Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>
Cc: David Yang <mmyangfl@gmail.com>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	linux-kernel@vger.kernel.org, devicetree@vger.kernel.org
Subject: [PATCH 1/2] dt-bindings: regulator: add HiSilicon STB voltage regulator
Date: Thu,  8 Oct 2026 23:57:24 +0800	[thread overview]
Message-ID: <20261008155727.3801095-2-mmyangfl@gmail.com> (raw)
In-Reply-To: <20261008155727.3801095-1-mmyangfl@gmail.com>

The PMOC block of the HiSilicon STB SoCs drives an external converter
with a PWM signal. Document the binding.

Signed-off-by: David Yang <mmyangfl@gmail.com>
---
 .../regulator/hisilicon,histb-volt.yaml       | 58 +++++++++++++++++++
 1 file changed, 58 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/regulator/hisilicon,histb-volt.yaml

diff --git a/Documentation/devicetree/bindings/regulator/hisilicon,histb-volt.yaml b/Documentation/devicetree/bindings/regulator/hisilicon,histb-volt.yaml
new file mode 100644
index 000000000000..34deee17d034
--- /dev/null
+++ b/Documentation/devicetree/bindings/regulator/hisilicon,histb-volt.yaml
@@ -0,0 +1,58 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/regulator/hisilicon,histb-volt.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: HiSilicon STB voltage regulator
+
+maintainers:
+  - David Yang <mmyangfl@gmail.com>
+
+description: |
+  HiSilicon STB SoCs provide PWM outputs in the PMOC block which drive an
+  external converter. The signal is filtered into a DC level between 0 V and
+  3.3 V which is summed into the feedback input of the converter, so a rail
+  follows the average level of the PWM signal and its voltage is set by the duty
+  cycle.
+
+  Where the duty cycle maps to in volts is a property of the board, not of the
+  SoC: the endpoints come from the resistors of the filter and from the
+  reference voltage of the converter. The datasheets therefore tabulate a
+  different pair of endpoints for each converter of their reference designs
+  (0.65 V to 1.15 V for the Hi3798cv200, 0.7 V to 1.25 V for the Hi3798mv200),
+  and a board built to its own schematic has to describe its own.
+  regulator-min-microvolt and regulator-max-microvolt are those endpoints of
+  the linear range, and the regulator has no other source of calibration.
+
+properties:
+  compatible:
+    enum:
+      - hisilicon,hi3798cv200-volt
+      - hisilicon,hi3798mv100-volt
+      - hisilicon,hi3798mv200-volt
+
+  reg:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+  - regulator-min-microvolt
+  - regulator-max-microvolt
+
+allOf:
+  - $ref: regulator.yaml#
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    vddcpu: regulator@8a23018 {
+        compatible = "hisilicon,hi3798mv200-volt";
+        reg = <0x8a23018 0x4>;
+        regulator-name = "vdd-cpu";
+        regulator-min-microvolt = <700000>;
+        regulator-max-microvolt = <1250000>;
+        regulator-always-on;
+    };
-- 
2.53.0


  reply	other threads:[~2026-10-08 15:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-08 15:57 [PATCH 0/2] regulator: support the HiSilicon STB PMOC voltage rails David Yang
2026-10-08 15:57 ` David Yang [this message]
2026-10-09 18:50   ` [PATCH 1/2] dt-bindings: regulator: add HiSilicon STB voltage regulator Conor Dooley
2026-10-08 15:57 ` [PATCH 2/2] regulator: histb: add voltage regulator driver David Yang

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=20261008155727.3801095-2-mmyangfl@gmail.com \
    --to=mmyangfl@gmail.com \
    --cc=broonie@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh@kernel.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

all inboxes | Powered by JetHome®