From: <cy_huang@richtek.com>
To: <broonie@kernel.org>, <robh+dt@kernel.org>,
<krzysztof.kozlowski+dt@linaro.org>
Cc: <lgirdwood@gmail.com>, <cy_huang@richtek.com>,
<u0084500@gmail.com>, <linux-kernel@vger.kernel.org>,
<devicetree@vger.kernel.org>
Subject: [PATCH 1/2] dt-bindings: regulator: Add bindings for Richtek RT5739
Date: Wed, 15 Feb 2023 10:00:56 +0800 [thread overview]
Message-ID: <1676426457-1389-2-git-send-email-cy_huang@richtek.com> (raw)
In-Reply-To: <1676426457-1389-1-git-send-email-cy_huang@richtek.com>
From: ChiYuan Huang <cy_huang@richtek.com>
Add the binding document for Richtek RT5739.
Signed-off-by: ChiYuan Huang <cy_huang@richtek.com>
---
.../bindings/regulator/richtek,rt5739.yaml | 80 ++++++++++++++++++++++
1 file changed, 80 insertions(+)
create mode 100644 Documentation/devicetree/bindings/regulator/richtek,rt5739.yaml
diff --git a/Documentation/devicetree/bindings/regulator/richtek,rt5739.yaml b/Documentation/devicetree/bindings/regulator/richtek,rt5739.yaml
new file mode 100644
index 00000000..7dc4f78
--- /dev/null
+++ b/Documentation/devicetree/bindings/regulator/richtek,rt5739.yaml
@@ -0,0 +1,80 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/regulator/richtek,rt5739.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Richtek RT5739 2.4MHz 3.5A Step-Down Converter
+
+maintainers:
+ - ChiYuan Huang <cy_huang@richtek.com>
+
+description: |
+ The RT5739 is a step-down switching voltage regulator that delivers a
+ digitally programmable output from an input voltage supply of 2.5V to 5.5V.
+ The output voltage is programmed through an I2C interface capable of
+ operating up to 3.4MHz.
+
+ Using a proprietary architecture with synchronous rectification, the RT5739
+ is capable of delivering 3.5A continuously at over 80% efficiency,
+ maintaining that efficiency at load current as low as 10mA. The regulator
+ operates at a normal fixed frequency of 2.4MHz, which reduces the value of
+ the external components. Additional output capacitance can be added to
+ improve regulation during load transients without affecting stability.
+
+allOf:
+ - $ref: regulator.yaml#
+
+properties:
+ compatible:
+ enum:
+ - richtek,rt5739
+
+ reg:
+ maxItems: 1
+
+ enable-gpios:
+ maxItems: 1
+
+ richtek,vsel-active-high:
+ description: |
+ If property is present, use the 'VSEL1' register group for buck control.
+ Else, use the 'VSEL0' register group. This depends on external hardware
+ 'VSEL' pin connecton.
+ type: boolean
+
+ regulator-allowed-modes:
+ description: |
+ buck allowed operating mode
+ 0: Auto PFM/PWM mode
+ 1: Forced PWM mode
+ maxItems: 2
+ items:
+ enum: [0, 1]
+
+required:
+ - compatible
+ - reg
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ regulator@50 {
+ compatible = "richtek,rt5739";
+ reg = <0x50>;
+ enable-gpios = <&gpio26 1 GPIO_ACTIVE_HIGH>;
+ richtek,vsel-active-high;
+ regulator-name = "richtek,rt5739-buck";
+ regulator-min-microvolt = <3000000>;
+ regulator-max-microvolt = <13000000>;
+ regulator-allowed-modes = <0 1>;
+ regulator-boot-on;
+ };
+ };
--
2.7.4
next prev parent reply other threads:[~2023-02-15 2:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-15 2:00 [PATCH 0/2] Add Richtek RT5739 switching voltage regulator support cy_huang
2023-02-15 2:00 ` cy_huang [this message]
2023-02-15 13:03 ` [PATCH 1/2] dt-bindings: regulator: Add bindings for Richtek RT5739 Mark Brown
2023-02-15 13:30 ` ChiYuan Huang
2023-02-16 9:12 ` Krzysztof Kozlowski
2023-02-16 9:57 ` ChiYuan Huang
2023-02-16 10:03 ` Krzysztof Kozlowski
2023-02-16 10:35 ` ChiYuan Huang
2023-02-16 10:45 ` Krzysztof Kozlowski
2023-02-15 2:00 ` [PATCH 2/2] regulator: Add support for Richtek RT5739 voltage regulator cy_huang
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=1676426457-1389-2-git-send-email-cy_huang@richtek.com \
--to=cy_huang@richtek.com \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=u0084500@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).