Merge tag 'v5.15.57' into rpi-5.15.y
[platform/kernel/linux-rpi.git] / arch / arm / boot / dts / overlays / vc4-kms-vga666-overlay.dts
1 /*
2  * vc4-kms-vga666-overlay.dts
3  * Configures a FenLogic or similar VGA666 DPI adapter when using the
4  * vc4-kms-v3d driver.
5  * If a suitable I2C level shifter is connected to GPIOs 0&1 and the VGA
6  * ID1/SDA (pin 12) and ID3/SCL (pin 15) lines, then there is the option to
7  * enable reading the EDID from the display.
8  */
9
10 /dts-v1/;
11 /plugin/;
12
13 #include <dt-bindings/pinctrl/bcm2835.h>
14
15 / {
16         compatible = "brcm,bcm2835";
17
18         fragment@0 {
19                 target-path = "/";
20                 __overlay__ {
21                         vga_connector: vga_connector {
22                                 compatible = "vga-connector";
23                                 label = "vga";
24
25                                 port {
26                                         vga_con_in: endpoint {
27                                                 remote-endpoint = <&vga666_out>;
28                                         };
29                                 };
30                         };
31
32                         vga_dac {
33                                 compatible = "dumb-vga-dac";
34
35                                 ports {
36                                         #address-cells = <1>;
37                                         #size-cells = <0>;
38
39                                         port@0 {
40                                                 reg = <0>;
41
42                                                 vga666_in: endpoint {
43                                                         remote-endpoint = <&dpi_out>;
44                                                 };
45                                         };
46
47                                         port@1 {
48                                                 reg = <1>;
49
50                                                 vga666_out: endpoint {
51                                                         remote-endpoint = <&vga_con_in>;
52                                                 };
53                                         };
54                                 };
55                         };
56
57                 };
58         };
59
60         fragment@1 {
61                 target = <&dpi>;
62                 __overlay__  {
63                         status = "okay";
64
65                         pinctrl-names = "default";
66                         pinctrl-0 = <&dpi_18bit_gpio2>;
67
68                         port {
69                                 dpi_out: endpoint@0 {
70                                         remote-endpoint = <&vga666_in>;
71                                 };
72                         };
73                 };
74         };
75
76         fragment@2 {
77                 target = <&vga_connector>;
78                 __dormant__  {
79                         ddc-i2c-bus = <&i2c_vc>;
80                 };
81         };
82
83         fragment@3 {
84                 target = <&i2c0if>;
85                 __dormant__ {
86                         status = "okay";
87                 };
88         };
89
90         fragment@4 {
91                 target = <&i2c0mux>;
92                 __dormant__ {
93                         status = "okay";
94                 };
95         };
96
97         __overrides__ {
98                 ddc = <0>,"=2", <0>,"=3", <0>,"=4";
99         };
100 };