Type: Function Redmine ID: #N/A Associated modifications: I649a447919003574d907b83b10ba3fd7496ad492 Test: N/A Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com> Change-Id: I310e7bf9f743accd3bc9b1f26c30a6b4fc3cd3c7
112 lines
2.0 KiB
Plaintext
112 lines
2.0 KiB
Plaintext
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
/*
|
|
* Copyright (c) 2023 Rockchip Electronics Co., Ltd.
|
|
*
|
|
*/
|
|
|
|
/ {
|
|
compatible = "rockchip,rk3568-toybrick-sd0-mipi-tx0", "rockchip,rk3568";
|
|
};
|
|
|
|
/*
|
|
* mipi_dphy0 needs to be enabled
|
|
* when dsi0 is enabled
|
|
*/
|
|
&backlight {
|
|
status = "okay";
|
|
pwms = <&pwm14 0 25000 0>;
|
|
};
|
|
|
|
&dsi0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&dsi0_in_vp0 {
|
|
status = "disabled";
|
|
};
|
|
|
|
&dsi0_in_vp1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&dsi0_panel {
|
|
power-supply = <&vcc3v3_lcd0_n>;
|
|
};
|
|
|
|
&i2c1 {
|
|
status = "okay";
|
|
power-supply = <&vcc3v3_lcd0_n>;
|
|
gt1x: gt1x@14 {
|
|
compatible = "goodix,gt1x";
|
|
status = "okay";
|
|
reg = <0x14>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&touch_pin>;
|
|
goodix,rst-gpio = <&gpio4 RK_PC3 GPIO_ACTIVE_HIGH>;
|
|
goodix,irq-gpio = <&gpio4 RK_PC2 IRQ_TYPE_LEVEL_LOW>;
|
|
};
|
|
|
|
hynitron: hynitron@5a {
|
|
compatible = "hyn,3240";
|
|
status = "okay";
|
|
reg = <0x5a>;
|
|
|
|
pinctrl-names = "ts_active","ts_suspend";
|
|
pinctrl-0 = <&ts_int_active &ts_reset_active>;
|
|
pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
|
|
|
|
reset-gpios = <&gpio4 RK_PC3 GPIO_ACTIVE_HIGH>;
|
|
irq-gpios = <&gpio4 RK_PC2 GPIO_ACTIVE_LOW>;
|
|
|
|
max-touch-number = <5>;
|
|
display-coords = <0 0 1080 1920>;
|
|
pos-swap = <0>;
|
|
posx-reverse = <0>;
|
|
posy-reverse = <0>;
|
|
};
|
|
};
|
|
|
|
&pwm14{
|
|
status = "okay";
|
|
};
|
|
|
|
&route_dsi0 {
|
|
status = "okay";
|
|
connect = <&vp1_out_dsi0>;
|
|
};
|
|
|
|
&vcc3v3_lcd0_n {
|
|
gpio = <&gpio3 RK_PC5 GPIO_ACTIVE_HIGH>;
|
|
enable-active-high;
|
|
};
|
|
|
|
&video_phy0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&pinctrl {
|
|
touch {
|
|
touch_pin: touch-pin {
|
|
rockchip,pins =
|
|
<4 RK_PC3 RK_FUNC_GPIO &pcfg_pull_up>,
|
|
<4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
|
|
ts_int_active: ts_int_active {
|
|
rockchip,pins = <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_up>;
|
|
};
|
|
|
|
ts_reset_active: ts_reset_active {
|
|
rockchip,pins = <4 RK_PC3 RK_FUNC_GPIO &pcfg_pull_up>;
|
|
};
|
|
|
|
ts_int_suspend: ts_int_suspend {
|
|
rockchip,pins = <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>;
|
|
};
|
|
|
|
ts_reset_suspend: ts_reset_suspend {
|
|
rockchip,pins = <4 RK_PC3 RK_FUNC_GPIO &pcfg_pull_down>;
|
|
};
|
|
};
|
|
};
|