1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2020 Rockchip Electronics Co., Ltd.
4 *
5 */
6
7#include <dt-bindings/display/media-bus-format.h>
8#include "rk3568-evb2-lp4x-v10.dtsi"
9#include "rk3568-android.dtsi"
10
11&dsi0 {
12	status = "disabled";
13};
14
15&hdmi {
16	status = "disabled";
17};
18
19&i2c3 {
20	clock-frequency = <400000>;
21	status = "okay";
22
23	sii9022: sii9022@39 {
24		compatible = "sil,sii9022";
25		reg = <0x39>;
26		pinctrl-names = "default";
27		pinctrl-0 = <&sii902x_hdmi_int>;
28		interrupt-parent = <&gpio3>;
29		interrupts = <RK_PA0 IRQ_TYPE_LEVEL_HIGH>;
30		reset-gpio = <&gpio3 RK_PC4 GPIO_ACTIVE_LOW>;
31		enable-gpio = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
32		bus-format = <MEDIA_BUS_FMT_YUYV8_1X16>;
33
34		ports {
35			#address-cells = <1>;
36			#size-cells = <0>;
37
38			port@0 {
39				reg = <0>;
40
41				sii9022_in_rgb: endpoint {
42					remote-endpoint = <&rgb_out_sii9022>;
43				};
44			};
45		};
46	};
47};
48
49&video_phy0 {
50	status = "disabled";
51};
52
53&rgb {
54	status = "okay";
55	pinctrl-names = "default";
56	pinctrl-0 = <&bt1120_pins>;
57
58	ports {
59		port@1 {
60			reg = <1>;
61			#address-cells = <1>;
62			#size-cells = <0>;
63
64			rgb_out_sii9022: endpoint@0 {
65				reg = <0>;
66				remote-endpoint = <&sii9022_in_rgb>;
67			};
68		};
69	};
70};
71
72&rgb_in_vp2 {
73	status = "okay";
74};
75
76&vcc3v3_lcd1_n {
77	status = "disabled";
78	gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
79	enable-active-high;
80};
81