# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/display/bridge/ti,tdp158.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: TI TDP158 HDMI to TMDS Redriver

maintainers:
  - Arnaud Vrac <avrac@freebox.fr>
  - Pierre-Hugues Husson <phhusson@freebox.fr>

properties:
  compatible:
    const: ti,tdp158

# The reg property is required if and only if the device is connected
# to an I2C bus. In pin strap mode, reg must not be specified.
  reg:
    description: I2C address of the device

# Pin 36 = Operation Enable / Reset Pin
# OE = L: Power Down Mode
# OE = H: Normal Operation
# Internal weak pullup - device resets on H to L transitions
  enable-gpios:
    description: GPIO controlling bridge enable

  vcc-supply:
    description: Power supply 3.3V

  vdd-supply:
    description: Power supply 1.1V

  ports:
    $ref: /schemas/graph.yaml#/properties/ports

    properties:
      port@0:
        $ref: /schemas/graph.yaml#/properties/port
        description: Bridge input

      port@1:
        $ref: /schemas/graph.yaml#/properties/port
        description: Bridge output

    required:
      - port@0
      - port@1

required:
  - compatible
  - vcc-supply
  - vdd-supply
  - ports

additionalProperties: false
