From: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
To: ChiYuan Huang <u0084500@gmail.com>
Cc: Mark Brown <broonie@kernel.org>, Rob Herring <robh+dt@kernel.org>,
Liam Girdwood <lgirdwood@gmail.com>,
cy_huang <cy_huang@richtek.com>,
lkml <linux-kernel@vger.kernel.org>,
"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
<devicetree@vger.kernel.org>
Subject: Re: [PATCH 1/2] dt-bindings: regulator: Add bindings for Richtek RT5190A PMIC
Date: Mon, 7 Mar 2022 14:27:39 +0100 [thread overview]
Message-ID: <060968dc-9460-1b75-12a7-cb0bbe9563cc@canonical.com> (raw)
In-Reply-To: <CADiBU3_jC_+P4d-gjMRGpP0uBejUkCY-axNd4nh1Y_=95iav3A@mail.gmail.com>
On 07/03/2022 14:21, ChiYuan Huang wrote:
> Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> 於 2022年3月7日 週一 下午7:14寫道:
>>
>> On 07/03/2022 11:08, cy_huang wrote:
>>> From: ChiYuan Huang <cy_huang@richtek.com>
>>>
>>> Add bindings for Richtek RT5190A PMIC.
>>>
>>> Signed-off-by: ChiYuan Huang <cy_huang@richtek.com>
>>> ---
>>> .../regulator/richtek,rt5190a-regulator.yaml | 138 +++++++++++++++++++++
>>> 1 file changed, 138 insertions(+)
>>> create mode 100644 Documentation/devicetree/bindings/regulator/richtek,rt5190a-regulator.yaml
>>>
>>> diff --git a/Documentation/devicetree/bindings/regulator/richtek,rt5190a-regulator.yaml b/Documentation/devicetree/bindings/regulator/richtek,rt5190a-regulator.yaml
>>> new file mode 100644
>>> index 00000000..b9f5836
>>> --- /dev/null
>>> +++ b/Documentation/devicetree/bindings/regulator/richtek,rt5190a-regulator.yaml
>>> @@ -0,0 +1,138 @@
>>> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
>>> +%YAML 1.2
>>> +---
>>> +$id: http://devicetree.org/schemas/regulator/richtek,rt5190a-regulator.yaml#
>>> +$schema: http://devicetree.org/meta-schemas/core.yaml#
>>> +
>>> +title: Richtek RT5190A PMIC Regulator
>>> +
>>> +maintainers:
>>> + - ChiYuan Huang <cy_huang@richtek.com>
>>> +
>>> +description: |
>>> + The RT5190A integrates 1 channel buck controller, 3 channels high efficiency
>>> + synchronous buck converters, 1 LDO, I2C control interface and peripherial
>>> + logical control.
>>> +
>>> + It also supports mute AC OFF depop sound and quick setting storage while
>>> + input power is removed.
>>> +
>>> +properties:
>>> + compatible:
>>> + enum:
>>> + - richtek,rt5190a
>>> +
>>> + reg:
>>> + maxItems: 1
>>> +
>>> + interrupts:
>>> + maxItems: 1
>>> +
>>> + vin2-supply:
>>> + description: phandle to buck2 input voltage.
>>> +
>>> + vin3-supply:
>>> + description: phandle to buck3 input voltage.
>>> +
>>> + vin4-supply:
>>> + description: phandle to buck4 input voltage.
>>> +
>>> + vinldo-supply:
>>> + description: phandle to ldo input voltage
>>> +
>>> + richtek,buck1-fixed-microvolt:
>>> + description: buck1 fixed voltage that depends on the external resistor.
>>> + $ref: "/schemas/types.yaml#/definitions/uint32"
>>
>> You should use standard bindings for it.
>>
> Sorry, I didn't get the point for the meaning 'standard binding'.
> Do you mean to change 'richtek,buck1-fixed-microvolt' or 'uint32' definition?
> This voltage depends on the external resistor selection. It's 'fixed'
> by the application.
I meant that you should not have dedicated binding to set regulator
voltage, but use regulator-min/max-microvolt instead, within one
regulator node. Just set min/max to same level and handle it in the
driver. See for example:
drivers/regulator/scmi-regulator.c
Best regards,
Krzysztof
next prev parent reply other threads:[~2022-03-07 13:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-07 10:08 [PATCH 0/2] Add Richtek RT5190A PMIC support cy_huang
2022-03-07 10:08 ` [PATCH 1/2] dt-bindings: regulator: Add bindings for Richtek RT5190A PMIC cy_huang
2022-03-07 11:14 ` Krzysztof Kozlowski
2022-03-07 13:21 ` ChiYuan Huang
2022-03-07 13:27 ` Krzysztof Kozlowski [this message]
2022-03-07 14:21 ` ChiYuan Huang
2022-03-07 14:26 ` Krzysztof Kozlowski
2022-03-07 10:08 ` [PATCH 2/2] regulator: rt5190a: Add support " 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=060968dc-9460-1b75-12a7-cb0bbe9563cc@canonical.com \
--to=krzysztof.kozlowski@canonical.com \
--cc=broonie@kernel.org \
--cc=cy_huang@richtek.com \
--cc=devicetree@vger.kernel.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
all inboxes | Powered by JetHome®