Merge tag 'v5.15.57' into rpi-5.15.y
[platform/kernel/linux-rpi.git] / arch / arm / boot / dts / overlays / vc4-kms-dsi-lt070me05000-v2-overlay.dts
1 /*
2  * Device Tree overlay to connect a JDI LT070ME05000 DSI panel to DSI1.
3  * This uses 4 DSI data lanes, so can only be used with a Compute Module.
4  *
5  * The overlay is for V2 of Harlab's interface board that uses a PCA9536 to
6  * handle the panel's control GPIOs instead of wiring it back to Pi GPIOs.
7  *
8  * Credit to Andrey Vostrukhin of Harlab for the overlay.
9  *
10  * Refer to https://github.com/harlab/CM4_LCD_LT070ME05000 for schematics and
11  * other documentation.
12  */
13
14 /dts-v1/;
15 /plugin/;
16
17 / {
18         compatible = "brcm,bcm2835";
19
20         fragment@0 {
21                 target = <&i2c_csi_dsi>;
22                 __overlay__ {
23                         #address-cells = <1>;
24                         #size-cells = <0>;
25                         status = "okay";
26
27                         pca: pca@41 {
28                                 compatible = "nxp,pca9536";
29                                 reg = <0x41>;
30                                 gpio-controller;
31                                 #gpio-cells = <2>;
32                                 status = "okay";
33                         };
34                 };
35         };
36
37         fragment@1 {
38                 target = <&dsi1>;
39                 __overlay__{
40                         status = "okay";
41                         #address-cells = <1>;
42                         #size-cells = <0>;
43                         port {
44                                 dsi_out_port:endpoint {
45                                         remote-endpoint = <&panel_dsi_port>;
46                                 };
47                         };
48
49                         lt070me05000:lt070me05000@0 {
50                                 compatible    = "jdi,lt070me05000";
51                                 status        = "okay";
52                                 reg           = <0>;
53                                 reset-gpios   = <&pca 0 1>;
54                                 enable-gpios  = <&pca 2 0>;
55                                 dcdc-en-gpios = <&pca 1 0>;
56                                 port {
57                                         panel_dsi_port: endpoint {
58                                                 remote-endpoint = <&dsi_out_port>;
59                                         };
60                                 };
61                         };
62                 };
63         };
64 };