xref: /OK3568_Linux_fs/kernel/arch/arm64/boot/dts/rockchip/rk3568-evb6-ddr3-v10-rk628-bt1120-to-hdmi.dts (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2020 Rockchip Electronics Co., Ltd.
4 */
5
6#include "rk3568-evb6-ddr3-v10.dtsi"
7#include "rk3568-android.dtsi"
8
9&dsi0 {
10	status = "disabled";
11};
12
13&i2c3 {
14	clock-frequency = <400000>;
15	status = "okay";
16
17	rk628: rk628@50 {
18		reg = <0x50>;
19		interrupt-parent = <&gpio0>;
20		interrupts = <RK_PA0 IRQ_TYPE_LEVEL_HIGH>;
21		enable-gpios = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
22		reset-gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_LOW>;
23		status = "okay";
24	};
25};
26
27&video_phy0 {
28	status = "disabled";
29};
30
31#include <arm/rk628.dtsi>
32
33&rk628_hdmi {
34	status = "okay";
35
36	ports {
37		#address-cells = <1>;
38		#size-cells = <0>;
39
40		port@0 {
41			reg = <0>;
42
43			hdmi_in_post_process: endpoint {
44				remote-endpoint = <&post_process_out_hdmi>;
45			};
46		};
47	};
48};
49
50&rk628_post_process {
51	pinctrl-names = "default";
52	pinctrl-0 = <&rk628_vop_pins>;
53	status = "okay";
54
55	mode-sync-pol = <0>;
56	ports {
57		#address-cells = <1>;
58		#size-cells = <0>;
59
60		port@0 {
61			reg = <0>;
62
63			post_process_in_bt1120: endpoint {
64				remote-endpoint = <&bt1120_out_post_process>;
65			};
66		};
67
68		port@1 {
69			reg = <1>;
70
71			post_process_out_hdmi: endpoint {
72				remote-endpoint = <&hdmi_in_post_process>;
73			};
74		};
75	};
76};
77
78&rk628_bt1120_rx {
79	status = "okay";
80
81	ports {
82		#address-cells = <1>;
83		#size-cells = <0>;
84
85		port@0 {
86			reg = <0>;
87
88			bt1120_in_rgb: endpoint {
89				remote-endpoint = <&rgb_out_bt1120>;
90			};
91		};
92
93		port@1 {
94			reg = <1>;
95
96			bt1120_out_post_process: endpoint {
97				remote-endpoint = <&post_process_in_bt1120>;
98			};
99		};
100	};
101};
102
103&rgb {
104	status = "okay";
105	pinctrl-names = "default";
106	pinctrl-0 = <&bt1120_pins>;
107
108	ports {
109		port@1 {
110			reg = <1>;
111
112			rgb_out_bt1120: endpoint {
113				remote-endpoint = <&bt1120_in_rgb>;
114			};
115		};
116	};
117};
118
119&rgb_in_vp2 {
120	status = "okay";
121};
122
123&vcc3v3_lcd1_n {
124	status = "disabled";
125	gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
126	enable-active-high;
127};
128