From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Julien Panis <jpanis@baylibre.com>,
lee@kernel.org, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, corbet@lwn.net
Cc: hdegoede@redhat.com, eric.auger@redhat.com, jgg@ziepe.ca,
razor@blackwall.org, suma.hegde@amd.com,
stephen@networkplumber.org, arnd@arndb.de,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-doc@vger.kernel.org, eblanc@baylibre.com,
jneanne@baylibre.com
Subject: Re: [PATCH v1 1/4] dt-bindings: mfd: Add DT bindings for TI TPS6594 PMIC
Date: Fri, 17 Feb 2023 10:06:09 +0100 [thread overview]
Message-ID: <c50503f0-dce1-a3b0-2973-8a22b5ef8bc2@linaro.org> (raw)
In-Reply-To: <20230216114410.183489-2-jpanis@baylibre.com>
On 16/02/2023 12:44, Julien Panis wrote:
> TPS6594 is a Power Management IC which provides regulators and others
Subject: drop second/last, redundant "DT bindings for". The
"dt-bindings" prefix is already stating that these are bindings.
> features like GPIOs, RTC, watchdog, ESMs (Error Signal Monitor), and
> PFSM (Pre-configurable Finite State Machine) managing the state of the
> device.
> TPS6594 is the super-set device while TPS6593 and LP8764X are derivatives.
>
> Signed-off-by: Julien Panis <jpanis@baylibre.com>
> ---
> .../devicetree/bindings/mfd/ti,tps6594.yaml | 164 ++++++++++++++++++
> 1 file changed, 164 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/mfd/ti,tps6594.yaml
>
> diff --git a/Documentation/devicetree/bindings/mfd/ti,tps6594.yaml b/Documentation/devicetree/bindings/mfd/ti,tps6594.yaml
> new file mode 100644
> index 000000000000..37968d6c0420
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mfd/ti,tps6594.yaml
> @@ -0,0 +1,164 @@
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/mfd/ti,tps6594.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: TI TPS6594 Power Management Integrated Circuit
> +
> +maintainers:
> + - Julien Panis <jpanis@baylibre.com>
> +
> +description: |
> + TPS6594 is a Power Management IC which provides regulators and others
> + features like GPIOs, RTC, watchdog, ESMs (Error Signal Monitor), and
> + PFSM (Pre-configurable Finite State Machine) managing the state of the device.
> + TPS6594 is the super-set device while TPS6593 and LP8764X are derivatives.
> +
> +properties:
> + compatible:
> + enum:
> + - ti,tps6594
> + - ti,tps6593
> + - ti,lp8764x
Any particular choice of ordering (different than alphabetical)?
> +
> + reg:
> + description: I2C slave address or SPI chip select number.
> + maxItems: 1
> +
> + ti,use-crc:
> + type: boolean
> + description: If true, use CRC for I2C and SPI interface protocols.
Hm, why different boards would like to enable or disable it? Why this
suits DT?
> +
> + system-power-controller: true
> +
> + interrupts:
> + maxItems: 1
> +
> + ti,multi-phase-id:
> + description: |
> + Describes buck multi-phase configuration, if any. For instance, XY id means
> + that outputs of buck converters X and Y are combined in multi-phase mode.
> + $ref: /schemas/types.yaml#/definitions/uint32
> + enum: [12, 34, 123, 1234]
> +
> +patternProperties:
> + "^buck([1-5]|12|34|123|1234)-supply$":
> + description: Input supply phandle for each buck.
> +
> + "^ldo[1-4]-supply$":
> + description: Input supply phandle for each ldo.
> +
> + regulators:
This should go to properties, not patternProperties.
> + type: object
> + description: List of regulators provided by this controller.
> +
> + patternProperties:
> + "^buck([1-5]|12|34|123|1234)$":
> + type: object
> + $ref: /schemas/regulator/regulator.yaml#
> +
> + unevaluatedProperties: false
> +
> + "^ldo[1-4]$":
> + type: object
> + $ref: /schemas/regulator/regulator.yaml#
> +
> + unevaluatedProperties: false
> +
You could add here - on this level - of indentation allOf:if for
excluding setups
if:
required:
- buck12
then:
properties:
buck123: false
buck1234: false
Or, if you want to require regulator then:
oneOf:
- required:
- buck12
- required:
- buck123
- required:
- buck1234
and anyway exclude buck34 with two above.
> + additionalProperties: false
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> +
> +additionalProperties: false
Best regards,
Krzysztof
next prev parent reply other threads:[~2023-02-17 9:06 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-16 11:44 [PATCH v1 0/4] TI TPS6594 PMIC support (Core, ESM, PFSM) Julien Panis
2023-02-16 11:44 ` [PATCH v1 1/4] dt-bindings: mfd: Add DT bindings for TI TPS6594 PMIC Julien Panis
2023-02-17 9:06 ` Krzysztof Kozlowski [this message]
2023-02-17 12:10 ` Julien Panis
2023-02-21 11:17 ` Krzysztof Kozlowski
2023-02-21 14:49 ` Julien Panis
2023-02-21 15:01 ` Krzysztof Kozlowski
2023-02-21 15:18 ` Julien Panis
2023-02-22 8:40 ` Krzysztof Kozlowski
2023-02-16 11:44 ` [PATCH v1 2/4] mfd: tps6594: Add driver " Julien Panis
2023-03-03 15:03 ` Lee Jones
2023-03-06 16:41 ` Julien Panis
2023-02-16 11:44 ` [PATCH v1 3/4] mfd: tps6594-esm: Add driver for TI TPS6594 ESM Julien Panis
2023-03-03 21:59 ` Lee Jones
2023-02-16 11:44 ` [PATCH v1 4/4] mfd: tps6594-pfsm: Add driver for TI TPS6594 PFSM Julien Panis
2023-03-03 22:00 ` Lee Jones
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=c50503f0-dce1-a3b0-2973-8a22b5ef8bc2@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=arnd@arndb.de \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=eblanc@baylibre.com \
--cc=eric.auger@redhat.com \
--cc=hdegoede@redhat.com \
--cc=jgg@ziepe.ca \
--cc=jneanne@baylibre.com \
--cc=jpanis@baylibre.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=lee@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=razor@blackwall.org \
--cc=robh+dt@kernel.org \
--cc=stephen@networkplumber.org \
--cc=suma.hegde@amd.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®