xref: /linux/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml (revision a43661e7e819b100e1f833a35018560a1d9abb39)
19aab6601SXin Ji# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
29aab6601SXin Ji# Copyright 2019 Analogix Semiconductor, Inc.
39aab6601SXin Ji%YAML 1.2
49aab6601SXin Ji---
59aab6601SXin Ji$id: "http://devicetree.org/schemas/display/bridge/analogix,anx7625.yaml#"
69aab6601SXin Ji$schema: "http://devicetree.org/meta-schemas/core.yaml#"
79aab6601SXin Ji
89aab6601SXin Jititle: Analogix ANX7625 SlimPort (4K Mobile HD Transmitter)
99aab6601SXin Ji
109aab6601SXin Jimaintainers:
119aab6601SXin Ji  - Xin Ji <xji@analogixsemi.com>
129aab6601SXin Ji
139aab6601SXin Jidescription: |
149aab6601SXin Ji  The ANX7625 is an ultra-low power 4K Mobile HD Transmitter
159aab6601SXin Ji  designed for portable devices.
169aab6601SXin Ji
179aab6601SXin Jiproperties:
189aab6601SXin Ji  compatible:
199aab6601SXin Ji    items:
209aab6601SXin Ji      - const: analogix,anx7625
219aab6601SXin Ji
229aab6601SXin Ji  reg:
239aab6601SXin Ji    maxItems: 1
249aab6601SXin Ji
259aab6601SXin Ji  interrupts:
269aab6601SXin Ji    description: used for interrupt pin B8.
279aab6601SXin Ji    maxItems: 1
289aab6601SXin Ji
299aab6601SXin Ji  enable-gpios:
309aab6601SXin Ji    description: used for power on chip control, POWER_EN pin D2.
319aab6601SXin Ji    maxItems: 1
329aab6601SXin Ji
339aab6601SXin Ji  reset-gpios:
349aab6601SXin Ji    description: used for reset chip control, RESET_N pin B7.
359aab6601SXin Ji    maxItems: 1
369aab6601SXin Ji
372f240cdbSHsin-Yi Wang  vdd10-supply:
382f240cdbSHsin-Yi Wang    description: Regulator that provides the supply 1.0V power.
392f240cdbSHsin-Yi Wang
402f240cdbSHsin-Yi Wang  vdd18-supply:
412f240cdbSHsin-Yi Wang    description: Regulator that provides the supply 1.8V power.
422f240cdbSHsin-Yi Wang
432f240cdbSHsin-Yi Wang  vdd33-supply:
442f240cdbSHsin-Yi Wang    description: Regulator that provides the supply 3.3V power.
452f240cdbSHsin-Yi Wang
46*a43661e7SXin Ji  analogix,lane0-swing:
47*a43661e7SXin Ji    $ref: /schemas/types.yaml#/definitions/uint8-array
48*a43661e7SXin Ji    minItems: 1
49*a43661e7SXin Ji    maxItems: 20
50*a43661e7SXin Ji    description:
51*a43661e7SXin Ji      an array of swing register setting for DP tx lane0 PHY.
52*a43661e7SXin Ji      Registers 0~9 are Swing0_Pre0, Swing1_Pre0, Swing2_Pre0,
53*a43661e7SXin Ji      Swing3_Pre0, Swing0_Pre1, Swing1_Pre1, Swing2_Pre1, Swing0_Pre2,
54*a43661e7SXin Ji      Swing1_Pre2, Swing0_Pre3, they are for [Boost control] and
55*a43661e7SXin Ji      [Swing control] setting.
56*a43661e7SXin Ji      Registers 0~9, bit 3:0 is [Boost control], these bits control
57*a43661e7SXin Ji      post cursor manual, increase the [Boost control] to increase
58*a43661e7SXin Ji      Pre-emphasis value.
59*a43661e7SXin Ji      Registers 0~9, bit 6:4 is [Swing control], these bits control
60*a43661e7SXin Ji      swing manual, increase [Swing control] setting to add Vp-p value
61*a43661e7SXin Ji      for each Swing, Pre.
62*a43661e7SXin Ji      Registers 10~19 are Swing0_Pre0, Swing1_Pre0, Swing2_Pre0,
63*a43661e7SXin Ji      Swing3_Pre0, Swing0_Pre1, Swing1_Pre1, Swing2_Pre1, Swing0_Pre2,
64*a43661e7SXin Ji      Swing1_Pre2, Swing0_Pre3, they are for [R select control] and
65*a43661e7SXin Ji      [R Termination control] setting.
66*a43661e7SXin Ji      Registers 10~19, bit 4:0 is [R select control], these bits are
67*a43661e7SXin Ji      compensation manual, increase it can enhance IO driven strength
68*a43661e7SXin Ji      and Vp-p.
69*a43661e7SXin Ji      Registers 10~19, bit 5:6 is [R termination control], these bits
70*a43661e7SXin Ji      adjust 50ohm impedance of DP tx termination. 00:55 ohm,
71*a43661e7SXin Ji      01:50 ohm(default), 10:45 ohm, 11:40 ohm.
72*a43661e7SXin Ji
73*a43661e7SXin Ji  analogix,lane1-swing:
74*a43661e7SXin Ji    $ref: /schemas/types.yaml#/definitions/uint8-array
75*a43661e7SXin Ji    minItems: 1
76*a43661e7SXin Ji    maxItems: 20
77*a43661e7SXin Ji    description:
78*a43661e7SXin Ji      an array of swing register setting for DP tx lane1 PHY.
79*a43661e7SXin Ji      DP TX lane1 swing register setting same with lane0
80*a43661e7SXin Ji      swing, please refer lane0-swing property description.
81*a43661e7SXin Ji
82*a43661e7SXin Ji  analogix,audio-enable:
83*a43661e7SXin Ji    type: boolean
84*a43661e7SXin Ji    description: let the driver enable audio HDMI codec function or not.
85*a43661e7SXin Ji
869aab6601SXin Ji  ports:
87b6755423SRob Herring    $ref: /schemas/graph.yaml#/properties/ports
889aab6601SXin Ji
899aab6601SXin Ji    properties:
909aab6601SXin Ji      port@0:
91*a43661e7SXin Ji        $ref: /schemas/graph.yaml#/$defs/port-base
92*a43661e7SXin Ji        unevaluatedProperties: false
939aab6601SXin Ji        description:
94*a43661e7SXin Ji          MIPI DSI/DPI input.
95*a43661e7SXin Ji
96*a43661e7SXin Ji        properties:
97*a43661e7SXin Ji          endpoint:
98*a43661e7SXin Ji            $ref: /schemas/media/video-interfaces.yaml#
99*a43661e7SXin Ji            type: object
100*a43661e7SXin Ji            additionalProperties: false
101*a43661e7SXin Ji
102*a43661e7SXin Ji            properties:
103*a43661e7SXin Ji              remote-endpoint: true
104*a43661e7SXin Ji
105*a43661e7SXin Ji              bus-type:
106*a43661e7SXin Ji                enum: [1, 5]
107*a43661e7SXin Ji                default: 1
108*a43661e7SXin Ji
109*a43661e7SXin Ji              data-lanes: true
1109aab6601SXin Ji
1119aab6601SXin Ji      port@1:
112b6755423SRob Herring        $ref: /schemas/graph.yaml#/properties/port
1139aab6601SXin Ji        description:
1149aab6601SXin Ji          Video port for panel or connector.
1159aab6601SXin Ji
1169aab6601SXin Ji    required:
1179aab6601SXin Ji      - port@0
1189aab6601SXin Ji      - port@1
1199aab6601SXin Ji
1209aab6601SXin Jirequired:
1219aab6601SXin Ji  - compatible
1229aab6601SXin Ji  - reg
1232f240cdbSHsin-Yi Wang  - vdd10-supply
1242f240cdbSHsin-Yi Wang  - vdd18-supply
1252f240cdbSHsin-Yi Wang  - vdd33-supply
1269aab6601SXin Ji  - ports
1279aab6601SXin Ji
1289aab6601SXin JiadditionalProperties: false
1299aab6601SXin Ji
1309aab6601SXin Jiexamples:
1319aab6601SXin Ji  - |
1329aab6601SXin Ji    #include <dt-bindings/gpio/gpio.h>
1339aab6601SXin Ji
1349aab6601SXin Ji    i2c0 {
1359aab6601SXin Ji        #address-cells = <1>;
1369aab6601SXin Ji        #size-cells = <0>;
1379aab6601SXin Ji
1389aab6601SXin Ji        encoder@58 {
1399aab6601SXin Ji            compatible = "analogix,anx7625";
1409aab6601SXin Ji            reg = <0x58>;
1419aab6601SXin Ji            enable-gpios = <&pio 45 GPIO_ACTIVE_HIGH>;
1429aab6601SXin Ji            reset-gpios = <&pio 73 GPIO_ACTIVE_HIGH>;
1432f240cdbSHsin-Yi Wang            vdd10-supply = <&pp1000_mipibrdg>;
1442f240cdbSHsin-Yi Wang            vdd18-supply = <&pp1800_mipibrdg>;
1452f240cdbSHsin-Yi Wang            vdd33-supply = <&pp3300_mipibrdg>;
146*a43661e7SXin Ji            analogix,audio-enable;
147*a43661e7SXin Ji            analogix,lane0-swing = /bits/ 8 <0x14 0x54 0x64 0x74>;
148*a43661e7SXin Ji            analogix,lane1-swing = /bits/ 8 <0x14 0x54 0x64 0x74>;
1499aab6601SXin Ji
1509aab6601SXin Ji            ports {
1519aab6601SXin Ji                #address-cells = <1>;
1529aab6601SXin Ji                #size-cells = <0>;
1539aab6601SXin Ji
1549aab6601SXin Ji                mipi2dp_bridge_in: port@0 {
1559aab6601SXin Ji                    reg = <0>;
1569aab6601SXin Ji                    anx7625_in: endpoint {
1579aab6601SXin Ji                        remote-endpoint = <&mipi_dsi>;
158*a43661e7SXin Ji                        bus-type = <5>;
159*a43661e7SXin Ji                        data-lanes = <0 1 2 3>;
1609aab6601SXin Ji                    };
1619aab6601SXin Ji                };
1629aab6601SXin Ji
1639aab6601SXin Ji                mipi2dp_bridge_out: port@1 {
1649aab6601SXin Ji                    reg = <1>;
1659aab6601SXin Ji                    anx7625_out: endpoint {
1669aab6601SXin Ji                        remote-endpoint = <&panel_in>;
1679aab6601SXin Ji                    };
1689aab6601SXin Ji                };
1699aab6601SXin Ji            };
1709aab6601SXin Ji        };
1719aab6601SXin Ji    };
172