From: Krzysztof Kozlowski <krzk@kernel.org>
To: cy_huang <u0084500@gmail.com>, broonie@kernel.org, robh+dt@kernel.org
Cc: lgirdwood@gmail.com, cy_huang@richtek.com, gene_chen@richtek.com,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: regulator: Add binding for Richtek RT5759 DCDC converter
Date: Fri, 25 Mar 2022 13:14:33 +0100 [thread overview]
Message-ID: <d9b883d2-8269-8419-3bcd-3761074bea96@kernel.org> (raw)
In-Reply-To: <1648170401-6351-2-git-send-email-u0084500@gmail.com>
On 25/03/2022 02:06, cy_huang wrote:
> From: ChiYuan Huang <cy_huang@richtek.com>
>
> Add bindings for Richtek RT5759 high-performance DCDC converter.
>
> Signed-off-by: ChiYuan Huang <cy_huang@richtek.com>
> ---
> .../regulator/richtek,rt5759-regulator.yaml | 90 ++++++++++++++++++++++
> 1 file changed, 90 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/regulator/richtek,rt5759-regulator.yaml
>
> diff --git a/Documentation/devicetree/bindings/regulator/richtek,rt5759-regulator.yaml b/Documentation/devicetree/bindings/regulator/richtek,rt5759-regulator.yaml
> new file mode 100644
> index 00000000..c24b583
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/regulator/richtek,rt5759-regulator.yaml
> @@ -0,0 +1,90 @@
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/regulator/richtek,rt5759-regulator.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Richtek RT5759 High Performance DCDC Concverter
typo: Converter
> +
> +maintainers:
> + - ChiYuan Huang <cy_huang@richtek.com>
> +
> +description: |
> + The RT5759 is a high-performance, synchronous step-down DC-DC converter that
> + can deliver up to 9A output current from 3V to 6.5V input supply, The output
> + voltage can be programmable with I2C controlled 7-Bit VID.
> +
> + Datasheet is available at
> + https://www.richtek.com/assets/product_file/RT5759/DS5759-00.pdf
> +
> +allOf:
> + - $ref: regulator.yaml#
> +
> +properties:
> + compatible:
> + enum:
> + - richtek,rt5759
> + - richtek,rt5759a
> +
> + reg:
> + maxItems: 1
> +
> + regulator-allowed-modes:
> + description: |
> + buck allowed operating mode
> + 0: auto mode (PSKIP: pulse skipping)
> + 1: force pwm mode
> + items:
> + enum: [0, 1]
> +
> + richtek,watchdog-enable:
> + description: enable the external watchdog reset pin listening
> + type: boolean
> +
> +if:
This should be inside allOf. Move allOf here,
> + properties:
> + compatible:
> + contains:
> + const: richtek,rt5759
> +then:
> + properties:
> + richtek,watchdog-enable: false
> +
> +required:
> + - compatible
> + - reg
> +
> +unevaluatedProperties: false
> +
> +examples:
> + # example 1 for RT5759
> + - |
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + rt5759@62 {
Generic node name, so pmic.
> + compatible = "richtek,rt5759";
> + reg = <0x62>;
> + regulator-name = "rt5759-buck";
> + regulator-min-microvolt = <600000>;
> + regulator-max-microvolt = <1500000>;
> + regulator-boot-on;
> + };
> + };
> + # example 2 for RT5759A
> + - |
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + rt5759a@62 {
Ditto
> + compatible = "richtek,rt5759a";
> + reg = <0x62>;
> + regulator-name = "rt5759a-buck";
> + regulator-min-microvolt = <600000>;
> + regulator-max-microvolt = <1725000>;
> + regulator-boot-on;
> + richtek,watchdog-enable;
> + };
> + };
Best regards,
Krzysztof
next prev parent reply other threads:[~2022-03-25 12:14 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-25 1:06 [PATCH 0/2] Add Richtek RT5759 buck converter support cy_huang
2022-03-25 1:06 ` [PATCH 1/2] dt-bindings: regulator: Add binding for Richtek RT5759 DCDC converter cy_huang
2022-03-25 12:14 ` Krzysztof Kozlowski [this message]
2022-03-25 13:44 ` ChiYuan Huang
2022-03-25 14:46 ` Krzysztof Kozlowski
2022-03-25 14:53 ` ChiYuan Huang
2022-03-25 1:06 ` [PATCH 2/2] regulator: rt5759: Add support " cy_huang
2022-03-25 12:17 ` Krzysztof Kozlowski
2022-03-25 14:10 ` ChiYuan Huang
2022-03-25 14:47 ` Krzysztof Kozlowski
2022-03-25 14:59 ` ChiYuan Huang
2022-03-25 15:37 ` Krzysztof Kozlowski
2022-03-25 15:50 ` ChiYuan Huang
2022-03-25 15:55 ` Krzysztof Kozlowski
2022-03-25 16:05 ` Mark Brown
2022-03-25 16:08 ` Krzysztof Kozlowski
2022-03-26 0:58 ` ChiYuan Huang
2022-03-26 1:07 ` Mark Brown
2022-03-26 7:55 ` ChiYuan Huang
2022-03-26 8:13 ` Krzysztof Kozlowski
2022-03-26 8:24 ` ChiYuan 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=d9b883d2-8269-8419-3bcd-3761074bea96@kernel.org \
--to=krzk@kernel.org \
--cc=broonie@kernel.org \
--cc=cy_huang@richtek.com \
--cc=devicetree@vger.kernel.org \
--cc=gene_chen@richtek.com \
--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).