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  - Andrzej Hajda <andrzej.hajda@intel.com>
11  - Neil Armstrong <narmstrong@baylibre.com>
12  - Robert Foss <robert.foss@linaro.org>
13
14properties:
15  compatible:
16    enum:
17      - analogix,anx7808
18      - analogix,anx7812
19      - analogix,anx7814
20      - analogix,anx7818
21
22  reg:
23    maxItems: 1
24    description: I2C address of the device.
25
26  interrupts:
27    maxItems: 1
28    description: Should contain the INTP interrupt.
29
30  hpd-gpios:
31    deprecated: true
32    maxItems: 1
33    description: Which GPIO to use for hpd.
34
35  pd-gpios:
36    maxItems: 1
37    description: Which GPIO to use for power down.
38
39  reset-gpios:
40    maxItems: 1
41    description: Which GPIO to use for reset.
42
43  dvdd10-supply:
44    description: Regulator for 1.0V digital core power.
45
46  ports:
47    $ref: /schemas/graph.yaml#/properties/ports
48
49    properties:
50      port@0:
51        $ref: /schemas/graph.yaml#/properties/port
52        description: Video port for HDMI input.
53
54      port@1:
55        $ref: /schemas/graph.yaml#/properties/port
56        description:
57          Video port for SlimPort, DisplayPort, eDP or MyDP output.
58
59    required:
60      - port@0
61      - port@1
62
63required:
64  - compatible
65  - reg
66  - ports
67
68additionalProperties: false
69
70examples:
71  - |
72    #include <dt-bindings/interrupt-controller/arm-gic.h>
73    #include <dt-bindings/gpio/gpio.h>
74
75    i2c {
76        #address-cells = <1>;
77        #size-cells = <0>;
78
79        anx7814: bridge@38 {
80            compatible = "analogix,anx7814";
81            reg = <0x38>;
82            interrupt-parent = <&gpio0>;
83            interrupts = <99 IRQ_TYPE_LEVEL_LOW>;   /* INTP */
84            pd-gpios = <&pio 33 GPIO_ACTIVE_HIGH>;
85            reset-gpios = <&pio 98 GPIO_ACTIVE_HIGH>;
86
87            ports {
88                #address-cells = <1>;
89                #size-cells = <0>;
90
91                port@0 {
92                    reg = <0>;
93                    anx7814_in: endpoint {
94                        remote-endpoint = <&hdmi0_out>;
95                    };
96                };
97
98                port@1 {
99                    reg = <1>;
100                    anx7814_out: endpoint {
101                        remote-endpoint = <&edp_out>;
102                    };
103                };
104            };
105        };
106    };
107
108...
109