1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2# Copyright 2019 Analogix Semiconductor, Inc.
3%YAML 1.2
4---
5$id: "http://devicetree.org/schemas/display/bridge/analogix,anx7625.yaml#"
6$schema: "http://devicetree.org/meta-schemas/core.yaml#"
7
8title: Analogix ANX7625 SlimPort (4K Mobile HD Transmitter)
9
10maintainers:
11  - Xin Ji <xji@analogixsemi.com>
12
13description: |
14  The ANX7625 is an ultra-low power 4K Mobile HD Transmitter
15  designed for portable devices.
16
17properties:
18  compatible:
19    items:
20      - const: analogix,anx7625
21
22  reg:
23    maxItems: 1
24
25  interrupts:
26    description: used for interrupt pin B8.
27    maxItems: 1
28
29  enable-gpios:
30    description: used for power on chip control, POWER_EN pin D2.
31    maxItems: 1
32
33  reset-gpios:
34    description: used for reset chip control, RESET_N pin B7.
35    maxItems: 1
36
37  vdd10-supply:
38    description: Regulator that provides the supply 1.0V power.
39
40  vdd18-supply:
41    description: Regulator that provides the supply 1.8V power.
42
43  vdd33-supply:
44    description: Regulator that provides the supply 3.3V 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:
53          Video port for MIPI DSI input.
54
55      port@1:
56        $ref: /schemas/graph.yaml#/properties/port
57        description:
58          Video port for panel or connector.
59
60    required:
61      - port@0
62      - port@1
63
64required:
65  - compatible
66  - reg
67  - vdd10-supply
68  - vdd18-supply
69  - vdd33-supply
70  - ports
71
72additionalProperties: false
73
74examples:
75  - |
76    #include <dt-bindings/gpio/gpio.h>
77
78    i2c0 {
79        #address-cells = <1>;
80        #size-cells = <0>;
81
82        encoder@58 {
83            compatible = "analogix,anx7625";
84            reg = <0x58>;
85            enable-gpios = <&pio 45 GPIO_ACTIVE_HIGH>;
86            reset-gpios = <&pio 73 GPIO_ACTIVE_HIGH>;
87            vdd10-supply = <&pp1000_mipibrdg>;
88            vdd18-supply = <&pp1800_mipibrdg>;
89            vdd33-supply = <&pp3300_mipibrdg>;
90
91            ports {
92                #address-cells = <1>;
93                #size-cells = <0>;
94
95                mipi2dp_bridge_in: port@0 {
96                    reg = <0>;
97                    anx7625_in: endpoint {
98                        remote-endpoint = <&mipi_dsi>;
99                    };
100                };
101
102                mipi2dp_bridge_out: port@1 {
103                    reg = <1>;
104                    anx7625_out: endpoint {
105                        remote-endpoint = <&panel_in>;
106                    };
107                };
108            };
109        };
110    };
111