hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Copyright (c) 2023 Rockchip Electronics Co., Ltd.
 *
 */
 
#include <dt-bindings/display/media-bus-format.h>
#include "rk3562-evb1-lp4x-v10.dtsi"
#include "rk3562-android.dtsi"
#include "rk3562-rk817.dtsi"
 
/ {
   model = "Rockchip RK3562 EVB1 LP4X V10 Board + RK EVB SII9022 RGB2HDMI DISPLAY Ext Board";
   compatible = "rockchip,rk3562-evb1-lp4x-v10-sii9022-rgb2hdmi", "rockchip,rk3562";
};
 
&dsi {
   status = "disabled";
};
 
&dsi_in_vp0 {
   status = "disabled";
};
 
/*
 * The pins of gmac0 and rgb are multiplexed
 */
&gmac0 {
   status = "disabled";
};
 
&i2c3 {
   clock-frequency = <400000>;
   pinctrl-0 = <&i2c3m0_xfer>;
   status = "okay";
 
   sii9022: sii9022@39 {
       compatible = "sil,sii9022";
       reg = <0x39>;
       pinctrl-names = "default";
       pinctrl-0 = <&sii902x_hdmi>;
       interrupt-parent = <&gpio3>;
       interrupts = <RK_PA7 IRQ_TYPE_LEVEL_HIGH>;
       reset-gpio = <&gpio3 RK_PB0 GPIO_ACTIVE_LOW>;
       enable-gpio = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>;
       bus-format = <MEDIA_BUS_FMT_RGB888_1X24>;
       status = "okay";
 
       ports {
           #address-cells = <1>;
           #size-cells = <0>;
 
           port@0 {
               reg = <0>;
 
               sii9022_in_rgb: endpoint {
                   remote-endpoint = <&rgb_out_sii9022>;
               };
           };
       };
   };
};
 
/*
 * The pins of pcie2x1/pdm_codec and rgb are multiplexed
 */
&pcie2x1 {
   status = "disabled";
};
 
&pdm_codec {
   status = "disabled";
};
 
&pinctrl {
   sii902x {
       sii902x_hdmi: sii902x-hdmi {
           rockchip,pins = <3 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>;
       };
   };
};
 
&rgb {
   status = "okay";
   pinctrl-names = "default";
   pinctrl-0 = <&vo_pins>;
 
   ports {
       port@1 {
           reg = <1>;
           #address-cells = <1>;
           #size-cells = <0>;
 
           rgb_out_sii9022: endpoint@0 {
               reg = <0>;
               remote-endpoint = <&sii9022_in_rgb>;
           };
       };
   };
};
 
&rgb_in_vp0 {
   status = "okay";
};
 
&route_rgb {
   status = "disabled";
   connect = <&vp0_out_rgb>;
};
 
/*
 * The pins of sai0/vcc_mipicsi0/u2phy_host and rgb are multiplexed
 */
&sai0 {
   status = "disabled";
};
 
&u2phy_host {
   status = "disabled";
};
 
&vcc5v0_usb_host {
   status = "disabled";
};
 
&vcc_mipicsi0 {
   status = "disabled";
};
 
&video_phy {
   status = "disabled";
};