xref: /linux/Documentation/devicetree/bindings/display/bridge/simple-bridge.yaml (revision 58809f614e0e3f4e12b489bddf680bfeb31c0a20)
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      - items:
26          - const: corpro,gm7123
27          - const: adi,adv7123
28      - enum:
29          - adi,adv7123
30          - dumb-vga-dac
31          - radxa,ra620
32          - realtek,rtd2171
33          - ti,opa362
34          - ti,ths8134
35          - ti,ths8135
36
37  ports:
38    $ref: /schemas/graph.yaml#/properties/ports
39
40    properties:
41      port@0:
42        $ref: /schemas/graph.yaml#/properties/port
43        description: The bridge input
44
45      port@1:
46        $ref: /schemas/graph.yaml#/properties/port
47        description: The bridge output
48
49    required:
50      - port@0
51      - port@1
52
53  enable-gpios:
54    maxItems: 1
55    description: GPIO controlling bridge enable
56
57  vdd-supply:
58    description: Power supply for the bridge
59
60required:
61  - compatible
62  - ports
63
64additionalProperties: false
65
66examples:
67  - |
68    bridge {
69        compatible = "ti,ths8134a", "ti,ths8134";
70
71        ports {
72            #address-cells = <1>;
73            #size-cells = <0>;
74
75            port@0 {
76                reg = <0>;
77
78                vga_bridge_in: endpoint {
79                    remote-endpoint = <&tcon0_out_vga>;
80                };
81            };
82
83            port@1 {
84                reg = <1>;
85
86                vga_bridge_out: endpoint {
87                    remote-endpoint = <&vga_con_in>;
88                };
89            };
90        };
91    };
92
93...
94