devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: devicetree@vger.kernel.org, Conor Dooley <conor+dt@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>, Rob Herring <robh@kernel.org>,
	Tim Harvey <tharvey@gateworks.com>,
	kernel@dh-electronics.com
Subject: Re: [PATCH] dt-bindings: regulator: lltc,ltc3676: convert to YAML
Date: Thu, 17 Oct 2024 00:48:34 +0200	[thread overview]
Message-ID: <2055a272-8391-4990-bc13-329247e09197@denx.de> (raw)
In-Reply-To: <oif3padobl4laflhuqyw3hdqnf4rdwlzh2twllieoelyxcgtdk@fulczljt7hwq>

On 10/16/24 9:24 AM, Krzysztof Kozlowski wrote:
> On Wed, Oct 16, 2024 at 12:42:51AM +0200, Marek Vasut wrote:
>> Convert Linear Technology LTC3676 8-output I2C voltage regulator IC
>> DT bindings to YAML DT. Add missing interrupts: property as this IC
>> does have interrupt line and it is used in existing DTs.
>>
>> Signed-off-by: Marek Vasut <marex@denx.de>
>> ---
>> Cc: Conor Dooley <conor+dt@kernel.org>
>> Cc: Krzysztof Kozlowski <krzk+dt@kernel.org>
>> Cc: Liam Girdwood <lgirdwood@gmail.com>
>> Cc: Mark Brown <broonie@kernel.org>
>> Cc: Rob Herring <robh@kernel.org>
>> Cc: Tim Harvey <tharvey@gateworks.com>
>> Cc: devicetree@vger.kernel.org
>> Cc: kernel@dh-electronics.com
>> ---
>>   .../bindings/regulator/lltc,ltc3676.yaml      | 171 ++++++++++++++++++
>>   .../devicetree/bindings/regulator/ltc3676.txt |  94 ----------
>>   2 files changed, 171 insertions(+), 94 deletions(-)
>>   create mode 100644 Documentation/devicetree/bindings/regulator/lltc,ltc3676.yaml
>>   delete mode 100644 Documentation/devicetree/bindings/regulator/ltc3676.txt
>>
>> diff --git a/Documentation/devicetree/bindings/regulator/lltc,ltc3676.yaml b/Documentation/devicetree/bindings/regulator/lltc,ltc3676.yaml
>> new file mode 100644
>> index 0000000000000..ec9ce856a944d
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/regulator/lltc,ltc3676.yaml
>> @@ -0,0 +1,171 @@
>> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
>> +%YAML 1.2
>> +---
>> +$id: http://devicetree.org/schemas/regulator/lltc,ltc3676.yaml#
>> +$schema: http://devicetree.org/meta-schemas/core.yaml#
>> +
>> +title: Linear Technology LTC3676 8-output regulators
>> +
>> +maintainers:
>> +  - Tim Harvey <tharvey@gateworks.com>
>> +
>> +description: |
>> +  LTC3676 contains eight regulators, 4 switching SW1..SW4 and four LDO1..4 .
>> +
>> +properties:
>> +  compatible:
>> +    const: lltc,ltc3676
>> +
>> +  reg:
>> +    maxItems: 1
>> +
>> +  interrupts:
>> +    maxItems: 1
>> +
>> +  regulators:
>> +    type: object
> 
> Move the additionalProperties:false here.
> 
>> +    description: |
>> +      List of regulators provided by this controller, must be named
>> +      after their hardware counterparts (SW|LDO)[1-4].
>> +
>> +    patternProperties:
>> +      "^(sw[1-4]|ldo[24])$":
>> +        type: object
>> +        $ref: regulator.yaml#
> 
> Move the unevaluatedProperties here, ditto in other places.
Fixed in V2.

I wanted to ask though, there are these patternProperties here which 
cover sw1..4 and ldo2 and ldo4, and then there is dedicated special case 
for ldo1 (because this LDO node must always contain regulator-always-on 
property) and ldo3 (because this LDO node must NOT contain 
lltc,fb-voltage-divider property). Is there any way to place all the 
sw1..4 and ldo1..4 into patternProperties, and then selectively DISABLE 
lltc,fb-voltage-divider requirement for LDO3 and ENABLE 
regulator-always-on for LDO1 ? I was looking at allOf:if: , but couldn't 
find anything.

Thanks !

  reply	other threads:[~2024-10-17  0:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-15 22:42 [PATCH] dt-bindings: regulator: lltc,ltc3676: convert to YAML Marek Vasut
2024-10-16  7:24 ` Krzysztof Kozlowski
2024-10-16 22:48   ` Marek Vasut [this message]
2024-10-17  7:01     ` Krzysztof Kozlowski
2024-10-17 20:50       ` Marek Vasut

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=2055a272-8391-4990-bc13-329247e09197@denx.de \
    --to=marex@denx.de \
    --cc=broonie@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=kernel@dh-electronics.com \
    --cc=krzk+dt@kernel.org \
    --cc=krzk@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=robh@kernel.org \
    --cc=tharvey@gateworks.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).