xref: /OK3568_Linux_fs/kernel/arch/arm64/boot/dts/rockchip/rk3562-evb2-ddr4-v10-sii9022-bt1120-to-hdmi.dts (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2023 Rockchip Electronics Co., Ltd.
4 *
5 */
6
7#include <dt-bindings/display/media-bus-format.h>
8#include "rk3562-evb2-ddr4-v10.dtsi"
9#include "rk3562-android.dtsi"
10#include "rk3562-rk809.dtsi"
11
12/ {
13	model = "Rockchip RK3562 EVB2 DDR4 V10 Board + RK EVB BT1120 TO HDMI V10 Ext Board";
14	compatible = "rockchip,rk3562-evb2-ddr4-v10-sii9022-bt1120-to-hdmi", "rockchip,rk3562";
15};
16
17&dsi {
18	status = "disabled";
19};
20
21&dsi_in_vp0 {
22	status = "disabled";
23};
24
25/*
26 * The pins of gamc0 and bt1120 are multiplexed
27 */
28&gmac0 {
29	status = "disabled";
30};
31
32&i2c1 {
33	clock-frequency = <400000>;
34	pinctrl-0 = <&i2c1m1_xfer>;
35	status = "okay";
36
37	sii9022: sii9022@39 {
38		compatible = "sil,sii9022";
39		reg = <0x39>;
40		pinctrl-names = "default";
41		pinctrl-0 = <&sii902x_hdmi_int>;
42		interrupt-parent = <&gpio4>;
43		interrupts = <RK_PB2 IRQ_TYPE_LEVEL_HIGH>;
44		reset-gpio = <&gpio4 RK_PB3 GPIO_ACTIVE_LOW>;
45		enable-gpio = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>;
46		/*
47		 * MEDIA_BUS_FMT_YUYV8_1X16 for bt1120
48		 * MEDIA_BUS_FMT_UYVY8_2X8  for bt656
49		 */
50		bus-format = <MEDIA_BUS_FMT_YUYV8_1X16>;
51
52		ports {
53			#address-cells = <1>;
54			#size-cells = <0>;
55
56			port@0 {
57				reg = <0>;
58
59				sii9022_in_rgb: endpoint {
60					remote-endpoint = <&rgb_out_sii9022>;
61				};
62			};
63		};
64	};
65};
66
67&pinctrl {
68	sii902x {
69		sii902x_hdmi_int: sii902x-hdmi-int {
70			rockchip,pins = <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>;
71		};
72	};
73};
74
75&rgb {
76	status = "okay";
77	pinctrl-names = "default";
78	/*
79	 * <&bt1120_pins> for bt1120
80	 * <&bt656_pins>  for bt656
81	 */
82	pinctrl-0 = <&bt1120_pins>;
83
84	ports {
85		port@1 {
86			reg = <1>;
87			#address-cells = <1>;
88			#size-cells = <0>;
89
90			rgb_out_sii9022: endpoint@0 {
91				reg = <0>;
92				remote-endpoint = <&sii9022_in_rgb>;
93			};
94		};
95	};
96};
97
98&rgb_in_vp0 {
99	status = "okay";
100};
101
102&video_phy {
103	status = "disabled";
104};
105