xref: /freebsd/sys/contrib/device-tree/Bindings/display/bridge/ti,tfp410.yaml (revision 5def4c47d4bd90b209b9b4a4ba9faec15846d8fd)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/display/bridge/ti,tfp410.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7c66ec88fSEmmanuel Vadottitle: TFP410 DPI to DVI encoder
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Tomi Valkeinen <tomi.valkeinen@ti.com>
11c66ec88fSEmmanuel Vadot  - Jyri Sarha <jsarha@ti.com>
12c66ec88fSEmmanuel Vadot
13c66ec88fSEmmanuel Vadotproperties:
14c66ec88fSEmmanuel Vadot  compatible:
15c66ec88fSEmmanuel Vadot    const: ti,tfp410
16c66ec88fSEmmanuel Vadot
17c66ec88fSEmmanuel Vadot  reg:
18c66ec88fSEmmanuel Vadot    description: I2C address of the device.
19c66ec88fSEmmanuel Vadot    maxItems: 1
20c66ec88fSEmmanuel Vadot
21c66ec88fSEmmanuel Vadot  powerdown-gpios:
22c66ec88fSEmmanuel Vadot    maxItems: 1
23c66ec88fSEmmanuel Vadot
24c66ec88fSEmmanuel Vadot  ti,deskew:
25c66ec88fSEmmanuel Vadot    description:
26c66ec88fSEmmanuel Vadot      Data de-skew value in 350ps increments, from 0 to 7, as configured
27c66ec88fSEmmanuel Vadot      through the DK[3:1] pins. The de-skew multiplier is computed as
28c66ec88fSEmmanuel Vadot      (DK[3:1] - 4), so it ranges from -4 to 3.
29c66ec88fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
30c66ec88fSEmmanuel Vadot    minimum: 0
31c66ec88fSEmmanuel Vadot    maximum: 7
32c66ec88fSEmmanuel Vadot
33c66ec88fSEmmanuel Vadot  ports:
34*5def4c47SEmmanuel Vadot    $ref: /schemas/graph.yaml#/properties/ports
35c66ec88fSEmmanuel Vadot
36c66ec88fSEmmanuel Vadot    properties:
37c66ec88fSEmmanuel Vadot      port@0:
38*5def4c47SEmmanuel Vadot        $ref: /schemas/graph.yaml#/$defs/port-base
39*5def4c47SEmmanuel Vadot        unevaluatedProperties: false
40c66ec88fSEmmanuel Vadot        description: DPI input port.
41c66ec88fSEmmanuel Vadot
42c66ec88fSEmmanuel Vadot        properties:
43c66ec88fSEmmanuel Vadot          endpoint:
44*5def4c47SEmmanuel Vadot            $ref: /schemas/graph.yaml#/$defs/endpoint-base
45*5def4c47SEmmanuel Vadot            unevaluatedProperties: false
46c66ec88fSEmmanuel Vadot
47c66ec88fSEmmanuel Vadot            properties:
48c66ec88fSEmmanuel Vadot              pclk-sample:
49c66ec88fSEmmanuel Vadot                description:
50c66ec88fSEmmanuel Vadot                  Endpoint sampling edge.
51c66ec88fSEmmanuel Vadot                enum:
52c66ec88fSEmmanuel Vadot                  - 0  # Falling edge
53c66ec88fSEmmanuel Vadot                  - 1  # Rising edge
54c66ec88fSEmmanuel Vadot                default: 0
55c66ec88fSEmmanuel Vadot
56c66ec88fSEmmanuel Vadot              bus-width:
57c66ec88fSEmmanuel Vadot                description:
58c66ec88fSEmmanuel Vadot                  Endpoint bus width.
59c66ec88fSEmmanuel Vadot                enum:
60c66ec88fSEmmanuel Vadot                  - 12  # 12 data lines connected and dual-edge mode
61c66ec88fSEmmanuel Vadot                  - 24  # 24 data lines connected and single-edge mode
62c66ec88fSEmmanuel Vadot                default: 24
63c66ec88fSEmmanuel Vadot
64c66ec88fSEmmanuel Vadot      port@1:
65*5def4c47SEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
66c66ec88fSEmmanuel Vadot        description: DVI output port.
67c66ec88fSEmmanuel Vadot
68c66ec88fSEmmanuel Vadot    required:
69c66ec88fSEmmanuel Vadot      - port@0
70c66ec88fSEmmanuel Vadot      - port@1
71c66ec88fSEmmanuel Vadot
72c66ec88fSEmmanuel Vadotrequired:
73c66ec88fSEmmanuel Vadot  - compatible
74c66ec88fSEmmanuel Vadot  - ports
75c66ec88fSEmmanuel Vadot
76c66ec88fSEmmanuel Vadotif:
77c66ec88fSEmmanuel Vadot  required:
78c66ec88fSEmmanuel Vadot    - reg
79c66ec88fSEmmanuel Vadotthen:
80c66ec88fSEmmanuel Vadot  properties:
81c66ec88fSEmmanuel Vadot    ti,deskew: false
82c66ec88fSEmmanuel Vadotelse:
83c66ec88fSEmmanuel Vadot  required:
84c66ec88fSEmmanuel Vadot    - ti,deskew
85c66ec88fSEmmanuel Vadot
86c66ec88fSEmmanuel VadotadditionalProperties: false
87c66ec88fSEmmanuel Vadot
88c66ec88fSEmmanuel Vadotexamples:
89c66ec88fSEmmanuel Vadot  - |
90c66ec88fSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
91c66ec88fSEmmanuel Vadot
92c66ec88fSEmmanuel Vadot    tfp410: encoder {
93c66ec88fSEmmanuel Vadot        compatible = "ti,tfp410";
94c66ec88fSEmmanuel Vadot        powerdown-gpios = <&twl_gpio 2 GPIO_ACTIVE_LOW>;
95c66ec88fSEmmanuel Vadot        ti,deskew = <3>;
96c66ec88fSEmmanuel Vadot
97c66ec88fSEmmanuel Vadot        ports {
98c66ec88fSEmmanuel Vadot            #address-cells = <1>;
99c66ec88fSEmmanuel Vadot            #size-cells = <0>;
100c66ec88fSEmmanuel Vadot
101c66ec88fSEmmanuel Vadot            port@0 {
102c66ec88fSEmmanuel Vadot                reg = <0>;
103c66ec88fSEmmanuel Vadot                tfp410_in: endpoint {
104c66ec88fSEmmanuel Vadot                    pclk-sample = <1>;
105c66ec88fSEmmanuel Vadot                    bus-width = <24>;
106c66ec88fSEmmanuel Vadot                    remote-endpoint = <&dpi_out>;
107c66ec88fSEmmanuel Vadot                };
108c66ec88fSEmmanuel Vadot            };
109c66ec88fSEmmanuel Vadot
110c66ec88fSEmmanuel Vadot            port@1 {
111c66ec88fSEmmanuel Vadot                reg = <1>;
112c66ec88fSEmmanuel Vadot                tfp410_out: endpoint {
113c66ec88fSEmmanuel Vadot                    remote-endpoint = <&dvi_connector_in>;
114c66ec88fSEmmanuel Vadot                };
115c66ec88fSEmmanuel Vadot            };
116c66ec88fSEmmanuel Vadot        };
117c66ec88fSEmmanuel Vadot    };
118c66ec88fSEmmanuel Vadot
119c66ec88fSEmmanuel Vadot...
120