xref: /freebsd/sys/contrib/device-tree/Bindings/display/bridge/analogix,anx7625.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
15def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
25def4c47SEmmanuel Vadot# Copyright 2019 Analogix Semiconductor, Inc.
35def4c47SEmmanuel Vadot%YAML 1.2
45def4c47SEmmanuel Vadot---
5*fac71e4eSEmmanuel Vadot$id: http://devicetree.org/schemas/display/bridge/analogix,anx7625.yaml#
6*fac71e4eSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
75def4c47SEmmanuel Vadot
85def4c47SEmmanuel Vadottitle: Analogix ANX7625 SlimPort (4K Mobile HD Transmitter)
95def4c47SEmmanuel Vadot
105def4c47SEmmanuel Vadotmaintainers:
115def4c47SEmmanuel Vadot  - Xin Ji <xji@analogixsemi.com>
125def4c47SEmmanuel Vadot
135def4c47SEmmanuel Vadotdescription: |
145def4c47SEmmanuel Vadot  The ANX7625 is an ultra-low power 4K Mobile HD Transmitter
155def4c47SEmmanuel Vadot  designed for portable devices.
165def4c47SEmmanuel Vadot
175def4c47SEmmanuel Vadotproperties:
185def4c47SEmmanuel Vadot  compatible:
19*fac71e4eSEmmanuel Vadot    const: analogix,anx7625
205def4c47SEmmanuel Vadot
215def4c47SEmmanuel Vadot  reg:
225def4c47SEmmanuel Vadot    maxItems: 1
235def4c47SEmmanuel Vadot
245def4c47SEmmanuel Vadot  interrupts:
255def4c47SEmmanuel Vadot    description: used for interrupt pin B8.
265def4c47SEmmanuel Vadot    maxItems: 1
275def4c47SEmmanuel Vadot
285def4c47SEmmanuel Vadot  enable-gpios:
295def4c47SEmmanuel Vadot    description: used for power on chip control, POWER_EN pin D2.
305def4c47SEmmanuel Vadot    maxItems: 1
315def4c47SEmmanuel Vadot
325def4c47SEmmanuel Vadot  reset-gpios:
335def4c47SEmmanuel Vadot    description: used for reset chip control, RESET_N pin B7.
345def4c47SEmmanuel Vadot    maxItems: 1
355def4c47SEmmanuel Vadot
362eb4d8dcSEmmanuel Vadot  vdd10-supply:
372eb4d8dcSEmmanuel Vadot    description: Regulator that provides the supply 1.0V power.
382eb4d8dcSEmmanuel Vadot
392eb4d8dcSEmmanuel Vadot  vdd18-supply:
402eb4d8dcSEmmanuel Vadot    description: Regulator that provides the supply 1.8V power.
412eb4d8dcSEmmanuel Vadot
422eb4d8dcSEmmanuel Vadot  vdd33-supply:
432eb4d8dcSEmmanuel Vadot    description: Regulator that provides the supply 3.3V power.
442eb4d8dcSEmmanuel Vadot
45e67e8565SEmmanuel Vadot  analogix,lane0-swing:
46e67e8565SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint8-array
47e67e8565SEmmanuel Vadot    minItems: 1
48e67e8565SEmmanuel Vadot    maxItems: 20
49e67e8565SEmmanuel Vadot    description:
50e67e8565SEmmanuel Vadot      an array of swing register setting for DP tx lane0 PHY.
51e67e8565SEmmanuel Vadot      Registers 0~9 are Swing0_Pre0, Swing1_Pre0, Swing2_Pre0,
52e67e8565SEmmanuel Vadot      Swing3_Pre0, Swing0_Pre1, Swing1_Pre1, Swing2_Pre1, Swing0_Pre2,
53e67e8565SEmmanuel Vadot      Swing1_Pre2, Swing0_Pre3, they are for [Boost control] and
54e67e8565SEmmanuel Vadot      [Swing control] setting.
55e67e8565SEmmanuel Vadot      Registers 0~9, bit 3:0 is [Boost control], these bits control
56e67e8565SEmmanuel Vadot      post cursor manual, increase the [Boost control] to increase
57e67e8565SEmmanuel Vadot      Pre-emphasis value.
58e67e8565SEmmanuel Vadot      Registers 0~9, bit 6:4 is [Swing control], these bits control
59e67e8565SEmmanuel Vadot      swing manual, increase [Swing control] setting to add Vp-p value
60e67e8565SEmmanuel Vadot      for each Swing, Pre.
61e67e8565SEmmanuel Vadot      Registers 10~19 are Swing0_Pre0, Swing1_Pre0, Swing2_Pre0,
62e67e8565SEmmanuel Vadot      Swing3_Pre0, Swing0_Pre1, Swing1_Pre1, Swing2_Pre1, Swing0_Pre2,
63e67e8565SEmmanuel Vadot      Swing1_Pre2, Swing0_Pre3, they are for [R select control] and
64e67e8565SEmmanuel Vadot      [R Termination control] setting.
65e67e8565SEmmanuel Vadot      Registers 10~19, bit 4:0 is [R select control], these bits are
66e67e8565SEmmanuel Vadot      compensation manual, increase it can enhance IO driven strength
67e67e8565SEmmanuel Vadot      and Vp-p.
68e67e8565SEmmanuel Vadot      Registers 10~19, bit 5:6 is [R termination control], these bits
69e67e8565SEmmanuel Vadot      adjust 50ohm impedance of DP tx termination. 00:55 ohm,
70e67e8565SEmmanuel Vadot      01:50 ohm(default), 10:45 ohm, 11:40 ohm.
71e67e8565SEmmanuel Vadot
72e67e8565SEmmanuel Vadot  analogix,lane1-swing:
73e67e8565SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint8-array
74e67e8565SEmmanuel Vadot    minItems: 1
75e67e8565SEmmanuel Vadot    maxItems: 20
76e67e8565SEmmanuel Vadot    description:
77e67e8565SEmmanuel Vadot      an array of swing register setting for DP tx lane1 PHY.
78e67e8565SEmmanuel Vadot      DP TX lane1 swing register setting same with lane0
79e67e8565SEmmanuel Vadot      swing, please refer lane0-swing property description.
80e67e8565SEmmanuel Vadot
81e67e8565SEmmanuel Vadot  analogix,audio-enable:
82e67e8565SEmmanuel Vadot    type: boolean
83e67e8565SEmmanuel Vadot    description: let the driver enable audio HDMI codec function or not.
84e67e8565SEmmanuel Vadot
85c9ccf3a3SEmmanuel Vadot  aux-bus:
86c9ccf3a3SEmmanuel Vadot    $ref: /schemas/display/dp-aux-bus.yaml#
87c9ccf3a3SEmmanuel Vadot
885def4c47SEmmanuel Vadot  ports:
895def4c47SEmmanuel Vadot    $ref: /schemas/graph.yaml#/properties/ports
905def4c47SEmmanuel Vadot
915def4c47SEmmanuel Vadot    properties:
925def4c47SEmmanuel Vadot      port@0:
93e67e8565SEmmanuel Vadot        $ref: /schemas/graph.yaml#/$defs/port-base
94e67e8565SEmmanuel Vadot        unevaluatedProperties: false
955def4c47SEmmanuel Vadot        description:
96b97ee269SEmmanuel Vadot          MIPI DSI/DPI input.
97b97ee269SEmmanuel Vadot
98b97ee269SEmmanuel Vadot        properties:
99b97ee269SEmmanuel Vadot          endpoint:
100b97ee269SEmmanuel Vadot            $ref: /schemas/media/video-interfaces.yaml#
101b97ee269SEmmanuel Vadot            type: object
102b97ee269SEmmanuel Vadot            additionalProperties: false
103b97ee269SEmmanuel Vadot
104b97ee269SEmmanuel Vadot            properties:
105b97ee269SEmmanuel Vadot              remote-endpoint: true
106b97ee269SEmmanuel Vadot
107b97ee269SEmmanuel Vadot              bus-type:
108b97ee269SEmmanuel Vadot                enum: [7]
109b97ee269SEmmanuel Vadot                default: 1
110b97ee269SEmmanuel Vadot
111b97ee269SEmmanuel Vadot              data-lanes: true
1125def4c47SEmmanuel Vadot
1135def4c47SEmmanuel Vadot      port@1:
1145def4c47SEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
1155def4c47SEmmanuel Vadot        description:
1165def4c47SEmmanuel Vadot          Video port for panel or connector.
1175def4c47SEmmanuel Vadot
1185def4c47SEmmanuel Vadot    required:
1195def4c47SEmmanuel Vadot      - port@0
1205def4c47SEmmanuel Vadot      - port@1
1215def4c47SEmmanuel Vadot
1225def4c47SEmmanuel Vadotrequired:
1235def4c47SEmmanuel Vadot  - compatible
1245def4c47SEmmanuel Vadot  - reg
1252eb4d8dcSEmmanuel Vadot  - vdd10-supply
1262eb4d8dcSEmmanuel Vadot  - vdd18-supply
1272eb4d8dcSEmmanuel Vadot  - vdd33-supply
1285def4c47SEmmanuel Vadot  - ports
1295def4c47SEmmanuel Vadot
1305def4c47SEmmanuel VadotadditionalProperties: false
1315def4c47SEmmanuel Vadot
1325def4c47SEmmanuel Vadotexamples:
1335def4c47SEmmanuel Vadot  - |
1345def4c47SEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
1355def4c47SEmmanuel Vadot
136*fac71e4eSEmmanuel Vadot    i2c {
1375def4c47SEmmanuel Vadot        #address-cells = <1>;
1385def4c47SEmmanuel Vadot        #size-cells = <0>;
1395def4c47SEmmanuel Vadot
1405def4c47SEmmanuel Vadot        encoder@58 {
1415def4c47SEmmanuel Vadot            compatible = "analogix,anx7625";
1425def4c47SEmmanuel Vadot            reg = <0x58>;
1435def4c47SEmmanuel Vadot            enable-gpios = <&pio 45 GPIO_ACTIVE_HIGH>;
1445def4c47SEmmanuel Vadot            reset-gpios = <&pio 73 GPIO_ACTIVE_HIGH>;
1452eb4d8dcSEmmanuel Vadot            vdd10-supply = <&pp1000_mipibrdg>;
1462eb4d8dcSEmmanuel Vadot            vdd18-supply = <&pp1800_mipibrdg>;
1472eb4d8dcSEmmanuel Vadot            vdd33-supply = <&pp3300_mipibrdg>;
148e67e8565SEmmanuel Vadot            analogix,audio-enable;
149e67e8565SEmmanuel Vadot            analogix,lane0-swing = /bits/ 8 <0x14 0x54 0x64 0x74>;
150e67e8565SEmmanuel Vadot            analogix,lane1-swing = /bits/ 8 <0x14 0x54 0x64 0x74>;
1515def4c47SEmmanuel Vadot
1525def4c47SEmmanuel Vadot            ports {
1535def4c47SEmmanuel Vadot                #address-cells = <1>;
1545def4c47SEmmanuel Vadot                #size-cells = <0>;
1555def4c47SEmmanuel Vadot
1565def4c47SEmmanuel Vadot                mipi2dp_bridge_in: port@0 {
1575def4c47SEmmanuel Vadot                    reg = <0>;
1585def4c47SEmmanuel Vadot                    anx7625_in: endpoint {
1595def4c47SEmmanuel Vadot                        remote-endpoint = <&mipi_dsi>;
160b97ee269SEmmanuel Vadot                        bus-type = <7>;
161b97ee269SEmmanuel Vadot                        data-lanes = <0 1 2 3>;
1625def4c47SEmmanuel Vadot                    };
1635def4c47SEmmanuel Vadot                };
1645def4c47SEmmanuel Vadot
1655def4c47SEmmanuel Vadot                mipi2dp_bridge_out: port@1 {
1665def4c47SEmmanuel Vadot                    reg = <1>;
1675def4c47SEmmanuel Vadot                    anx7625_out: endpoint {
1685def4c47SEmmanuel Vadot                        remote-endpoint = <&panel_in>;
1695def4c47SEmmanuel Vadot                    };
1705def4c47SEmmanuel Vadot                };
1715def4c47SEmmanuel Vadot            };
172c9ccf3a3SEmmanuel Vadot
173c9ccf3a3SEmmanuel Vadot            aux-bus {
174c9ccf3a3SEmmanuel Vadot                panel {
175c9ccf3a3SEmmanuel Vadot                    compatible = "innolux,n125hce-gn1";
176c9ccf3a3SEmmanuel Vadot                    power-supply = <&pp3300_disp_x>;
177c9ccf3a3SEmmanuel Vadot                    backlight = <&backlight_lcd0>;
178c9ccf3a3SEmmanuel Vadot
179c9ccf3a3SEmmanuel Vadot                    port {
180c9ccf3a3SEmmanuel Vadot                        panel_in: endpoint {
181c9ccf3a3SEmmanuel Vadot                            remote-endpoint = <&anx7625_out>;
182c9ccf3a3SEmmanuel Vadot                        };
183c9ccf3a3SEmmanuel Vadot                    };
184c9ccf3a3SEmmanuel Vadot                };
185c9ccf3a3SEmmanuel Vadot            };
1865def4c47SEmmanuel Vadot        };
1875def4c47SEmmanuel Vadot    };
188