From: Rob Herring <robh@kernel.org>
To: Eduard Bostina <egbostina@gmail.com>
Cc: Conor Dooley <conor+dt@kernel.org>,
Daniel Thompson <danielt@kernel.org>,
devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org,
Jingoo Han <jingoohan1@gmail.com>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Lee Jones <lee@kernel.org>,
linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org,
Pavel Machek <pavel@kernel.org>,
daniel.baluta@nxp.com, simona.toaca@nxp.com,
goledhruva@gmail.com, m-chawdhry@ti.com
Subject: Re: [PATCH] dt-bindings: leds: backlight: Convert TPS65217 to DT schema
Date: Thu, 16 Jul 2026 16:59:44 -0500 [thread overview]
Message-ID: <20260716215944.GA1491596-robh@kernel.org> (raw)
In-Reply-To: <20260708123317.1768641-1-egbostina@gmail.com>
On Wed, Jul 08, 2026 at 12:33:17PM +0000, Eduard Bostina wrote:
> Convert the Texas Instruments TPS65217 PMIC bindings to DT schema.
>
> During the conversion, the following updates were made:
> - Make the 'backlight' node optional to resolve dtbs_check warnings.
> Some boards declare a bare TPS65217 node without implementing the
> backlight configuration.
> - Document the 'isink-en' property in the backlight subnode to resolve
> dtbs_check warnings. This property is used (am335x-guardian.dts)
> to manage the backlight current sinks. It was missing from the old
> txt binding.
> - 'additionalProperties: true' is at the top level because the
> TPS65217 node is documented across multiple independent schemas
> matching the same compatible string.
We can't have true here.
Looks to me like you just need to define all the child nodes like
'regulators' (and its children) and 'charger' (which already has a
schema).
>
> Signed-off-by: Eduard Bostina <egbostina@gmail.com>
> ---
> .../bindings/leds/backlight/ti,tps65217.yaml | 82 +++++++++++++++++++
> .../leds/backlight/tps65217-backlight.txt | 27 ------
> 2 files changed, 82 insertions(+), 27 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/leds/backlight/ti,tps65217.yaml
> delete mode 100644 Documentation/devicetree/bindings/leds/backlight/tps65217-backlight.txt
>
> diff --git a/Documentation/devicetree/bindings/leds/backlight/ti,tps65217.yaml b/Documentation/devicetree/bindings/leds/backlight/ti,tps65217.yaml
> new file mode 100644
> index 000000000000..07b15cab4b63
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/leds/backlight/ti,tps65217.yaml
> @@ -0,0 +1,82 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/leds/backlight/ti,tps65217.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: TPS65217 family of regulators
> +
> +maintainers:
> + - Eduard Bostina <egbostina@gmail.com>
> +
> +description: |
Don't need '|' if no formatting.
> + The TPS65217 chip contains a boost converter and current sinks which can be
> + used to drive LEDs for use as backlights.
> +
> +properties:
> + compatible:
> + const: ti,tps65217
> +
> + reg:
> + maxItems: 1
> + description: I2C slave address
> +
> + backlight:
> + type: object
> + additionalProperties: false
> + description:
> + Node for specifying WLED1 and WLED2 lines in TPS65217.
> +
> + properties:
> + isel:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + enum: [1, 2]
> + description: |
> + Selection bit. Valid values:
> + 1 - ISEL1 (low-level)
> + 2 - ISEL2 (high-level)
> +
> + fdim:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + enum: [100, 200, 500, 1000]
> + description:
> + PWM dimming frequency in Hz.
> +
> + default-brightness:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + minimum: 0
> + maximum: 100
> +
> + isink-en:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description:
> + Enable backlight current sinks.
Constraints? 0 or 1?
Not used by any driver, so perhaps it should be removed from the .dts
file.
Rob
prev parent reply other threads:[~2026-07-16 21:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-08 12:33 [PATCH] dt-bindings: leds: backlight: Convert TPS65217 to DT schema Eduard Bostina
2026-07-08 12:37 ` sashiko-bot
2026-07-16 21:59 ` Rob Herring [this message]
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=20260716215944.GA1491596-robh@kernel.org \
--to=robh@kernel.org \
--cc=conor+dt@kernel.org \
--cc=daniel.baluta@nxp.com \
--cc=danielt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=egbostina@gmail.com \
--cc=goledhruva@gmail.com \
--cc=jingoohan1@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=lee@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=m-chawdhry@ti.com \
--cc=pavel@kernel.org \
--cc=simona.toaca@nxp.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.