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