hc
2024-03-22 a0752693d998599af469473b8dc239ef973a012f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/dts-v1/;
/plugin/;
 
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/rockchip.h>
 
/ {
   metadata {
       title = "Enable Raspberry Pi 7-inch Touchscreen on DSI0";
       compatible = "radxa,cm5-io";
       category = "display";
       exclusive = "dsi0";
       description = "Enable Raspberry Pi 7-inch Touchscreen on DSI0.";
   };
 
   fragment@0 {
       target = <&dsi0>;
 
       __overlay__ {
           status = "okay";
           #address-cells = <1>;
           #size-cells = <0>;
           rockchip,lane-rate = <696>;
 
           ports {
               #address-cells = <1>;
               #size-cells = <0>;
 
               port@1 {
                   reg = <1>;
                   dsi0_out_panel: endpoint {
                       remote-endpoint = <&panel_in_dsi0>;
                   };
               };
           };
       };
   };
 
   fragment@1 {
       target = <&i2c7>;
 
       __overlay__ {
           status = "okay";
           pinctrl-0 = <&i2c7m2_xfer>;
           #address-cells = <1>;
           #size-cells = <0>;
 
           raspits_panel: raspits-panel@45 {
               compatible = "raspberrypi,7inch-touchscreen-panel";
               reg = <0x45>;
 
               port {
                   panel_in_dsi0: endpoint {
                       remote-endpoint = <&dsi0_out_panel>;
                   };
               };
           };
 
           raspits_touch_ft5426: raspits-touch-ft5426@38 {
               compatible = "raspits_ft5426";
               reg = <0x38>;
           };
 
           chipone_icn8952: chipone_icn8952@30 {
               compatible = "chipone_icn8505";
               reg = <0x30>;
           };
       };
   };
 
   fragment@2 {
       target = <&mipi_dcphy0>;
 
       __overlay__ {
           status = "okay";
       };
   };
 
   fragment@3 {
       target = <&route_dsi0>;
 
       __overlay__ {
           status = "okay";
           connect = <&vp3_out_dsi0>;
       };
   };
 
   fragment@4 {
       target = <&dsi0_in_vp2>;
 
       __overlay__ {
           status = "disabled";
       };
   };
 
   fragment@5 {
       target = <&dsi0_in_vp3>;
 
       __overlay__ {
           status = "okay";
       };
   };
};