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/analogix,anx7814.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Analogix ANX7814 SlimPort (Full-HD Transmitter)
8
9maintainers:
10  - Enric Balletbo i Serra <enric.balletbo@collabora.com>
11
12properties:
13  compatible:
14    enum:
15      - analogix,anx7808
16      - analogix,anx7812
17      - analogix,anx7814
18      - analogix,anx7818
19
20  reg:
21    maxItems: 1
22    description: I2C address of the device.
23
24  interrupts:
25    maxItems: 1
26    description: Should contain the INTP interrupt.
27
28  hpd-gpios:
29    deprecated: true
30    maxItems: 1
31    description: Which GPIO to use for hpd.
32
33  pd-gpios:
34    maxItems: 1
35    description: Which GPIO to use for power down.
36
37  reset-gpios:
38    maxItems: 1
39    description: Which GPIO to use for reset.
40
41  dvdd10-supply:
42    description: Regulator for 1.0V digital core power.
43
44  ports:
45    type: object
46    description:
47      A node containing input and output port nodes with endpoint
48      definitions as documented in
49      Documentation/devicetree/bindings/media/video-interfaces.txt
50      Documentation/devicetree/bindings/graph.txt
51
52    properties:
53      port@0:
54        type: object
55        description: Video port for HDMI input.
56
57        properties:
58          reg:
59            const: 0
60
61      port@1:
62        type: object
63        description:
64          Video port for SlimPort, DisplayPort, eDP or MyDP output.
65
66        properties:
67          reg:
68            const: 1
69
70    required:
71      - port@0
72      - port@1
73
74required:
75  - compatible
76  - reg
77  - ports
78
79additionalProperties: false
80
81examples:
82  - |
83    #include <dt-bindings/interrupt-controller/arm-gic.h>
84    #include <dt-bindings/gpio/gpio.h>
85
86    i2c {
87        #address-cells = <1>;
88        #size-cells = <0>;
89
90        anx7814: bridge@38 {
91            compatible = "analogix,anx7814";
92            reg = <0x38>;
93            interrupt-parent = <&gpio0>;
94            interrupts = <99 IRQ_TYPE_LEVEL_LOW>;   /* INTP */
95            pd-gpios = <&pio 33 GPIO_ACTIVE_HIGH>;
96            reset-gpios = <&pio 98 GPIO_ACTIVE_HIGH>;
97
98            ports {
99                #address-cells = <1>;
100                #size-cells = <0>;
101
102                port@0 {
103                    reg = <0>;
104                    anx7814_in: endpoint {
105                        remote-endpoint = <&hdmi0_out>;
106                    };
107                };
108
109                port@1 {
110                    reg = <1>;
111                    anx7814_out: endpoint {
112                        remote-endpoint = <&edp_out>;
113                    };
114                };
115            };
116        };
117    };
118
119...
120