1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/display/bridge/simple-bridge.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Transparent non-programmable DRM bridges
8
9maintainers:
10  - Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
11  - Maxime Ripard <mripard@kernel.org>
12
13description: |
14  This binding supports transparent non-programmable bridges that don't require
15  any configuration, with a single input and a single output.
16
17properties:
18  compatible:
19    oneOf:
20      - items:
21          - enum:
22              - ti,ths8134a
23              - ti,ths8134b
24          - const: ti,ths8134
25      - enum:
26          - adi,adv7123
27          - dumb-vga-dac
28          - ti,opa362
29          - ti,ths8134
30          - ti,ths8135
31
32  ports:
33    type: object
34    description: |
35      This device has two video ports. Their connections are modeled using the
36      OF graph bindings specified in Documentation/devicetree/bindings/graph.txt.
37    properties:
38      '#address-cells':
39        const: 1
40
41      '#size-cells':
42        const: 0
43
44      port@0:
45        type: object
46        description: The bridge input
47
48      port@1:
49        type: object
50        description: The bridge output
51
52    required:
53      - port@0
54      - port@1
55
56    additionalProperties: false
57
58  enable-gpios:
59    maxItems: 1
60    description: GPIO controlling bridge enable
61
62  vdd-supply:
63    description: Power supply for the bridge
64
65required:
66  - compatible
67  - ports
68
69additionalProperties: false
70
71examples:
72  - |
73    bridge {
74        compatible = "ti,ths8134a", "ti,ths8134";
75
76        ports {
77            #address-cells = <1>;
78            #size-cells = <0>;
79
80            port@0 {
81                reg = <0>;
82
83                vga_bridge_in: endpoint {
84                    remote-endpoint = <&tcon0_out_vga>;
85                };
86            };
87
88            port@1 {
89                reg = <1>;
90
91                vga_bridge_out: endpoint {
92                    remote-endpoint = <&vga_con_in>;
93                };
94            };
95        };
96    };
97
98...
99