Re: [PATCH 1/2] dt-bindings: display: ti: Convert ti, tpd12s015 to DT schema

From: Laurent Pinchart

Date: Wed Sep 30 2026 - 01:30:35 EST


On Thu, Jul 30, 2026 at 12:22:44PM +0300, Eduard Bostina wrote:
> Convert the Texas Instruments TPD12S015 HDMI level shifter and
> ESD protection chip bindings to DT schema.
>
> During the conversion, the following updates were made:
> - Added the 'ti,tpd12s016' compatible string, which is used in
> am57xx device trees.
> - The 'gpios' property now allows up to 5 items, as the
> omap5-igep0050 device tree routes additional control pins
> beyond the standard 3 documented in the old text file.

Isn't this an issue in the omap5-igep0050 DT sources, rather than in the
binding ?

>
> Signed-off-by: Eduard Bostina <egbostina@xxxxxxxxx>
> ---
> .../bindings/display/ti/ti,tpd12s015.txt | 44 -----------
> .../bindings/display/ti/ti,tpd12s015.yaml | 78 +++++++++++++++++++
> 2 files changed, 78 insertions(+), 44 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/display/ti/ti,tpd12s015.txt
> create mode 100644 Documentation/devicetree/bindings/display/ti/ti,tpd12s015.yaml
>
> diff --git a/Documentation/devicetree/bindings/display/ti/ti,tpd12s015.txt b/Documentation/devicetree/bindings/display/ti/ti,tpd12s015.txt
> deleted file mode 100644
> index 26e6d32e3..000000000
> --- a/Documentation/devicetree/bindings/display/ti/ti,tpd12s015.txt
> +++ /dev/null
> @@ -1,44 +0,0 @@
> -TPD12S015 HDMI level shifter and ESD protection chip
> -====================================================
> -
> -Required properties:
> -- compatible: "ti,tpd12s015"
> -
> -Optional properties:
> -- gpios: CT CP HPD, LS OE and HPD gpios
> -
> -Required nodes:
> -- Video port 0 for HDMI input
> -- Video port 1 for HDMI output
> -
> -Example
> --------
> -
> -tpd12s015: encoder@1 {
> - compatible = "ti,tpd12s015";
> -
> - gpios = <&gpio2 28 GPIO_ACTIVE_HIGH>, /* 60, CT CP HPD */
> - <&gpio2 9 GPIO_ACTIVE_HIGH>, /* 41, LS OE */
> - <&gpio2 31 GPIO_ACTIVE_HIGH>; /* 63, HPD */
> -
> - ports {
> - #address-cells = <1>;
> - #size-cells = <0>;
> -
> - port@0 {
> - reg = <0>;
> -
> - tpd12s015_in: endpoint@0 {
> - remote-endpoint = <&hdmi_out>;
> - };
> - };
> -
> - port@1 {
> - reg = <1>;
> -
> - tpd12s015_out: endpoint@0 {
> - remote-endpoint = <&hdmi_connector_in>;
> - };
> - };
> - };
> -};
> diff --git a/Documentation/devicetree/bindings/display/ti/ti,tpd12s015.yaml b/Documentation/devicetree/bindings/display/ti/ti,tpd12s015.yaml
> new file mode 100644
> index 000000000..bda4bbab7
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/display/ti/ti,tpd12s015.yaml
> @@ -0,0 +1,78 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/display/ti/ti,tpd12s015.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Texas Instruments TPD12S015 HDMI level shifter and ESD protection
> +
> +maintainers:
> + - Eduard Bostina <egbostina@xxxxxxxxx>
> +
> +properties:
> + compatible:
> + oneOf:
> + - const: ti,tpd12s015
> + - items:
> + - const: ti,tpd12s016
> + - const: ti,tpd12s015
> +
> + gpios:
> + minItems: 3
> + maxItems: 5
> + description: CT CP HPD, LS OE, HPD, and optional supplementary control gpios
> +
> + ports:
> + $ref: /schemas/graph.yaml#/properties/ports
> +
> + properties:
> + port@0:
> + $ref: /schemas/graph.yaml#/properties/port
> + description: Video port for HDMI input
> +
> + port@1:
> + $ref: /schemas/graph.yaml#/properties/port
> + description: Video port for HDMI output
> +
> + required:
> + - port@0
> + - port@1
> +
> +required:
> + - compatible
> + - ports
> +
> +unevaluatedProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/gpio/gpio.h>
> +
> + encoder {
> + compatible = "ti,tpd12s015";
> +
> + gpios = <&gpio2 28 GPIO_ACTIVE_HIGH>, /* 60, CT CP HPD */
> + <&gpio2 9 GPIO_ACTIVE_HIGH>, /* 41, LS OE */
> + <&gpio2 31 GPIO_ACTIVE_HIGH>; /* 63, HPD */
> +
> + ports {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + port@0 {
> + reg = <0>;
> +
> + tpd12s015_in: endpoint {
> + remote-endpoint = <&hdmi_out>;
> + };
> + };
> +
> + port@1 {
> + reg = <1>;
> +
> + tpd12s015_out: endpoint {
> + remote-endpoint = <&hdmi_connector_in>;
> + };
> + };
> + };
> + };

--
Regards,

Laurent Pinchart