xref: /OK3568_Linux_fs/kernel/arch/arm64/boot/dts/rockchip/rk3568-toybrick-sd0-mipi-tx0.dtsi (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2023 Rockchip Electronics Co., Ltd.
4 *
5 */
6
7/ {
8	compatible = "rockchip,rk3568-toybrick-sd0-mipi-tx0", "rockchip,rk3568";
9};
10
11/*
12 * mipi_dphy0 needs to be enabled
13 * when dsi0 is enabled
14 */
15&backlight {
16	status = "okay";
17	pwms = <&pwm14 0 25000 0>;
18};
19
20&dsi0 {
21	status = "okay";
22};
23
24&dsi0_in_vp0 {
25	status = "disabled";
26};
27
28&dsi0_in_vp1 {
29	status = "okay";
30};
31
32&dsi0_panel {
33	power-supply = <&vcc3v3_lcd0_n>;
34};
35
36&i2c1 {
37	status = "okay";
38	power-supply = <&vcc3v3_lcd0_n>;
39	gt1x: gt1x@14 {
40		compatible = "goodix,gt1x";
41		status = "okay";
42		reg = <0x14>;
43		pinctrl-names = "default";
44		pinctrl-0 = <&touch_pin>;
45		goodix,rst-gpio = <&gpio4 RK_PC3 GPIO_ACTIVE_HIGH>;
46		goodix,irq-gpio = <&gpio4 RK_PC2 IRQ_TYPE_LEVEL_LOW>;
47	};
48};
49
50&pwm14{
51	status = "okay";
52};
53
54&route_dsi0 {
55	status = "okay";
56	connect = <&vp1_out_dsi0>;
57};
58
59&vcc3v3_lcd0_n {
60	gpio = <&gpio3 RK_PC5 GPIO_ACTIVE_HIGH>;
61	enable-active-high;
62};
63
64&video_phy0 {
65	status = "okay";
66};
67
68&pinctrl {
69	touch {
70		touch_pin: touch-pin {
71			rockchip,pins =
72				<4 RK_PC3 RK_FUNC_GPIO &pcfg_pull_up>,
73				<4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
74		};
75	};
76};
77