1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/display/bridge/ps8640.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
78bab661aSEmmanuel Vadottitle: MIPI DSI to eDP Video Format Converter
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Nicolas Boichat <drinkcat@chromium.org>
11c66ec88fSEmmanuel Vadot
12c66ec88fSEmmanuel Vadotdescription: |
13c66ec88fSEmmanuel Vadot  The PS8640 is a low power MIPI-to-eDP video format converter supporting
14c66ec88fSEmmanuel Vadot  mobile devices with embedded panel resolutions up to 2048 x 1536. The
15c66ec88fSEmmanuel Vadot  device accepts a single channel of MIPI DSI v1.1, with up to four lanes
16c66ec88fSEmmanuel Vadot  plus clock, at a transmission rate up to 1.5Gbit/sec per lane. The
17c66ec88fSEmmanuel Vadot  device outputs eDP v1.4, one or two lanes, at a link rate of up to
18c66ec88fSEmmanuel Vadot  3.24Gbit/sec per lane.
19c66ec88fSEmmanuel Vadot
20c66ec88fSEmmanuel Vadotproperties:
21c66ec88fSEmmanuel Vadot  compatible:
22c66ec88fSEmmanuel Vadot    const: parade,ps8640
23c66ec88fSEmmanuel Vadot
24c66ec88fSEmmanuel Vadot  reg:
25c66ec88fSEmmanuel Vadot    maxItems: 1
26c66ec88fSEmmanuel Vadot    description: Base I2C address of the device.
27c66ec88fSEmmanuel Vadot
28c66ec88fSEmmanuel Vadot  powerdown-gpios:
29c66ec88fSEmmanuel Vadot    maxItems: 1
30c66ec88fSEmmanuel Vadot    description: GPIO connected to active low powerdown.
31c66ec88fSEmmanuel Vadot
32c66ec88fSEmmanuel Vadot  reset-gpios:
33c66ec88fSEmmanuel Vadot    maxItems: 1
34c66ec88fSEmmanuel Vadot    description: GPIO connected to active low reset.
35c66ec88fSEmmanuel Vadot
36c66ec88fSEmmanuel Vadot  vdd12-supply:
37c66ec88fSEmmanuel Vadot    description: Regulator for 1.2V digital core power.
38c66ec88fSEmmanuel Vadot
39c66ec88fSEmmanuel Vadot  vdd33-supply:
40c66ec88fSEmmanuel Vadot    description: Regulator for 3.3V digital core power.
41c66ec88fSEmmanuel Vadot
428cc087a1SEmmanuel Vadot  aux-bus:
438cc087a1SEmmanuel Vadot    $ref: /schemas/display/dp-aux-bus.yaml#
448cc087a1SEmmanuel Vadot
45c66ec88fSEmmanuel Vadot  ports:
465def4c47SEmmanuel Vadot    $ref: /schemas/graph.yaml#/properties/ports
475def4c47SEmmanuel Vadot
48c66ec88fSEmmanuel Vadot    properties:
49c66ec88fSEmmanuel Vadot      port@0:
505def4c47SEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
515def4c47SEmmanuel Vadot        description:
52c66ec88fSEmmanuel Vadot          Video port for DSI input
53c66ec88fSEmmanuel Vadot
54c66ec88fSEmmanuel Vadot      port@1:
555def4c47SEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
565def4c47SEmmanuel Vadot        description:
57c66ec88fSEmmanuel Vadot          Video port for eDP output (panel or connector).
58c66ec88fSEmmanuel Vadot
59c66ec88fSEmmanuel Vadot    required:
60c66ec88fSEmmanuel Vadot      - port@0
61c66ec88fSEmmanuel Vadot
62c66ec88fSEmmanuel Vadotrequired:
63c66ec88fSEmmanuel Vadot  - compatible
64c66ec88fSEmmanuel Vadot  - reg
65c66ec88fSEmmanuel Vadot  - powerdown-gpios
66c66ec88fSEmmanuel Vadot  - reset-gpios
67c66ec88fSEmmanuel Vadot  - vdd12-supply
68c66ec88fSEmmanuel Vadot  - vdd33-supply
69c66ec88fSEmmanuel Vadot  - ports
70c66ec88fSEmmanuel Vadot
71c66ec88fSEmmanuel VadotadditionalProperties: false
72c66ec88fSEmmanuel Vadot
73c66ec88fSEmmanuel Vadotexamples:
74c66ec88fSEmmanuel Vadot  - |
75c66ec88fSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
76*fac71e4eSEmmanuel Vadot    i2c {
77c66ec88fSEmmanuel Vadot        #address-cells = <1>;
78c66ec88fSEmmanuel Vadot        #size-cells = <0>;
79c66ec88fSEmmanuel Vadot
80c66ec88fSEmmanuel Vadot        ps8640: edp-bridge@18 {
81c66ec88fSEmmanuel Vadot            compatible = "parade,ps8640";
82c66ec88fSEmmanuel Vadot            reg = <0x18>;
83c66ec88fSEmmanuel Vadot            powerdown-gpios = <&pio 116 GPIO_ACTIVE_LOW>;
84c66ec88fSEmmanuel Vadot            reset-gpios = <&pio 115 GPIO_ACTIVE_LOW>;
85c66ec88fSEmmanuel Vadot            vdd12-supply = <&ps8640_fixed_1v2>;
86c66ec88fSEmmanuel Vadot            vdd33-supply = <&mt6397_vgp2_reg>;
87c66ec88fSEmmanuel Vadot
88c66ec88fSEmmanuel Vadot            ports {
89c66ec88fSEmmanuel Vadot                #address-cells = <1>;
90c66ec88fSEmmanuel Vadot                #size-cells = <0>;
91c66ec88fSEmmanuel Vadot
92c66ec88fSEmmanuel Vadot                port@0 {
93c66ec88fSEmmanuel Vadot                    reg = <0>;
94c66ec88fSEmmanuel Vadot                    ps8640_in: endpoint {
95c66ec88fSEmmanuel Vadot                        remote-endpoint = <&dsi0_out>;
96c66ec88fSEmmanuel Vadot                    };
97c66ec88fSEmmanuel Vadot                };
98c66ec88fSEmmanuel Vadot
99c66ec88fSEmmanuel Vadot                port@1 {
100c66ec88fSEmmanuel Vadot                    reg = <1>;
101c66ec88fSEmmanuel Vadot                    ps8640_out: endpoint {
102c66ec88fSEmmanuel Vadot                        remote-endpoint = <&panel_in>;
103c66ec88fSEmmanuel Vadot                    };
104c66ec88fSEmmanuel Vadot                };
105c66ec88fSEmmanuel Vadot            };
1068cc087a1SEmmanuel Vadot
1078cc087a1SEmmanuel Vadot            aux-bus {
1088cc087a1SEmmanuel Vadot                panel {
1098cc087a1SEmmanuel Vadot                    compatible = "boe,nv133fhm-n62";
1108cc087a1SEmmanuel Vadot                    power-supply = <&pp3300_dx_edp>;
1118cc087a1SEmmanuel Vadot                    backlight = <&backlight>;
1128cc087a1SEmmanuel Vadot
1138cc087a1SEmmanuel Vadot                    port {
1148cc087a1SEmmanuel Vadot                        panel_in: endpoint {
1158cc087a1SEmmanuel Vadot                            remote-endpoint = <&ps8640_out>;
1168cc087a1SEmmanuel Vadot                        };
1178cc087a1SEmmanuel Vadot                    };
1188cc087a1SEmmanuel Vadot                };
1198cc087a1SEmmanuel Vadot            };
120c66ec88fSEmmanuel Vadot        };
121c66ec88fSEmmanuel Vadot    };
122