hc
2023-12-11 1f93a7dfd1f8d5ff7a5c53246c7534fe2332d6f4
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
// 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-evb2-ddr4-v10.dtsi"
#include "rk3562-android.dtsi"
#include "rk3562-rk809.dtsi"
 
/ {
   model = "Rockchip RK3562 EVB2 DDR4 V10 Board + RK EVB BT1120 TO HDMI V10 Ext Board";
   compatible = "rockchip,rk3562-evb2-ddr4-v10-sii9022-bt1120-to-hdmi", "rockchip,rk3562";
};
 
&dsi {
   status = "disabled";
};
 
&dsi_in_vp0 {
   status = "disabled";
};
 
/*
 * The pins of gamc0 and bt1120 are multiplexed
 */
&gmac0 {
   status = "disabled";
};
 
&i2c1 {
   clock-frequency = <400000>;
   pinctrl-0 = <&i2c1m1_xfer>;
   status = "okay";
 
   sii9022: sii9022@39 {
       compatible = "sil,sii9022";
       reg = <0x39>;
       pinctrl-names = "default";
       pinctrl-0 = <&sii902x_hdmi_int>;
       interrupt-parent = <&gpio4>;
       interrupts = <RK_PB2 IRQ_TYPE_LEVEL_HIGH>;
       reset-gpio = <&gpio4 RK_PB3 GPIO_ACTIVE_LOW>;
       enable-gpio = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>;
       /*
        * MEDIA_BUS_FMT_YUYV8_1X16 for bt1120
        * MEDIA_BUS_FMT_UYVY8_2X8  for bt656
        */
       bus-format = <MEDIA_BUS_FMT_YUYV8_1X16>;
 
       ports {
           #address-cells = <1>;
           #size-cells = <0>;
 
           port@0 {
               reg = <0>;
 
               sii9022_in_rgb: endpoint {
                   remote-endpoint = <&rgb_out_sii9022>;
               };
           };
       };
   };
};
 
&pinctrl {
   sii902x {
       sii902x_hdmi_int: sii902x-hdmi-int {
           rockchip,pins = <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>;
       };
   };
};
 
&rgb {
   status = "okay";
   pinctrl-names = "default";
   /*
    * <&bt1120_pins> for bt1120
    * <&bt656_pins>  for bt656
    */
   pinctrl-0 = <&bt1120_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";
};
 
&video_phy {
   status = "disabled";
};