xref: /OK3568_Linux_fs/kernel/arch/arm64/boot/dts/rockchip/rk3568-evb6-ddr3-v10-rk628-rgb2hdmi.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#include <arm/rk628.dtsi>
28
29&rk628_hdmi {
30	status = "okay";
31
32	ports {
33		#address-cells = <1>;
34		#size-cells = <0>;
35
36		port@0 {
37			reg = <0>;
38
39			hdmi_in_post_process: endpoint {
40				remote-endpoint = <&post_process_out_hdmi>;
41			};
42		};
43	};
44};
45
46&rk628_post_process {
47	pinctrl-names = "default";
48	pinctrl-0 = <&rk628_vop_pins>;
49	status = "okay";
50
51	mode-sync-pol = <0>;
52	ports {
53		#address-cells = <1>;
54		#size-cells = <0>;
55
56		port@0 {
57			reg = <0>;
58
59			post_process_in_rgb: endpoint {
60				remote-endpoint = <&rgb_out_post_process>;
61			};
62		};
63
64		port@1 {
65			reg = <1>;
66
67			post_process_out_hdmi: endpoint {
68				remote-endpoint = <&hdmi_in_post_process>;
69			};
70		};
71	};
72};
73
74&rgb {
75	status = "okay";
76
77	ports {
78		port@1 {
79			reg = <1>;
80
81			rgb_out_post_process: endpoint {
82				remote-endpoint = <&post_process_in_rgb>;
83			};
84		};
85	};
86};
87
88&rgb_in_vp2 {
89	status = "okay";
90};
91
92&vcc3v3_lcd1_n {
93	status = "disabled";
94	gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
95	enable-active-high;
96};
97