arm64: dts: rockchip: rk3576-evb: Add hyn touchscreen support

Type: Function
Redmine ID: #N/A
Associated modifications: I649a447919003574d907b83b10ba3fd7496ad492
Test: N/A

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: I9f65041ac85a5bf1f47d244ec2b08fa60d5e77fc
This commit is contained in:
Zhibin Huang
2025-05-26 10:49:26 +08:00
committed by Tao Huang
parent f30f8ab9a2
commit 8594c92761
14 changed files with 185 additions and 1 deletions

View File

@@ -628,6 +628,25 @@
goodix,rst-gpio = <&gpio0 RK_PD0 GPIO_ACTIVE_HIGH>;
goodix,irq-gpio = <&gpio0 RK_PC5 IRQ_TYPE_LEVEL_LOW>;
};
hynitron: hynitron@5a {
status = "disabled";
compatible = "hyn,3240";
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 = <&gpio0 RK_PD0 GPIO_ACTIVE_HIGH>;
irq-gpios = <&gpio0 RK_PC5 GPIO_ACTIVE_LOW>;
max-touch-number = <5>;
display-coords = <0 0 1080 1920>;
pos-swap = <0>;
posx-reverse = <0>;
posy-reverse = <0>;
};
};
&i2c2 {
@@ -684,6 +703,22 @@
<0 RK_PD0 RK_FUNC_GPIO &pcfg_pull_up>,
<0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_active: ts_int_active {
rockchip,pins = <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_reset_active: ts_reset_active {
rockchip,pins = <0 RK_PD0 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_suspend: ts_int_suspend {
rockchip,pins = <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_down>;
};
ts_reset_suspend: ts_reset_suspend {
rockchip,pins = <0 RK_PD0 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
wireless-bluetooth {

View File

@@ -163,6 +163,10 @@
status = "disabled";
};
&hynitron {
status = "disabled";
};
&i2c2 {
status = "okay";
/delete-node/ husb311@4e;

View File

@@ -312,6 +312,11 @@
status = "okay";
};
&hynitron {
status = "okay";
power-supply = <&vcc3v3_lcd_n>;
};
&i2c2 {
status = "okay";

View File

@@ -10,6 +10,7 @@
/delete-node/ &leds;
/delete-node/ &gt1x;
/delete-node/ &hynitron;
/ {
es8388_sound: es8388-sound {
@@ -570,4 +571,3 @@
wifi_chip_type = "ap6398s";
status = "okay";
};

View File

@@ -131,6 +131,11 @@
status = "okay";
};
&hynitron {
status = "okay";
power-supply = <&vcc3v3_lcd_n>;
};
&i2c3 {
status = "okay";
pinctrl-names = "default";

View File

@@ -585,6 +585,25 @@
goodix,rst-gpio = <&gpio2 RK_PA5 GPIO_ACTIVE_HIGH>;
goodix,irq-gpio = <&gpio2 RK_PA4 IRQ_TYPE_LEVEL_LOW>;
};
hynitron: hynitron@5a {
status = "disabled";
compatible = "hyn,3240";
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 = <&gpio2 RK_PA5 GPIO_ACTIVE_HIGH>;
irq-gpios = <&gpio2 RK_PA4 GPIO_ACTIVE_LOW>;
max-touch-number = <5>;
display-coords = <0 0 1080 1920>;
pos-swap = <0>;
posx-reverse = <0>;
posy-reverse = <0>;
};
};
&iep {
@@ -632,6 +651,22 @@
<2 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>,
<2 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_active: ts_int_active {
rockchip,pins = <2 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_reset_active: ts_reset_active {
rockchip,pins = <2 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_suspend: ts_int_suspend {
rockchip,pins = <2 RK_PA4 RK_FUNC_GPIO &pcfg_pull_down>;
};
ts_reset_suspend: ts_reset_suspend {
rockchip,pins = <2 RK_PA5 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
};

View File

@@ -128,6 +128,11 @@
status = "okay";
};
&hynitron {
status = "okay";
power-supply = <&vcc3v3_lcd_n>;
};
&route_hdmi {
status = "disabled";
connect = <&vp0_out_hdmi>;

View File

@@ -281,6 +281,11 @@
status = "okay";
};
&hynitron {
status = "okay";
power-supply = <&vcc3v3_lcd_n>;
};
&i2c0 {
status = "okay";

View File

@@ -163,6 +163,11 @@
power-supply = <&vcc3v3_lcd_n>;
};
&hynitron {
status = "okay";
power-supply = <&vcc3v3_lcd_n>;
};
&i2c2 {
status = "okay";

View File

@@ -218,6 +218,11 @@
status = "disabled";
};
&hynitron {
status = "disabled";
power-supply = <&vcc3v3_lcd_n>;
};
&i2c0 {
s35390a: s35390a@30 {
compatible = "sii,s35390a";

View File

@@ -238,6 +238,11 @@
status = "okay";
};
&hynitron {
status = "okay";
power-supply = <&vcc3v3_lcd_n>;
};
&i2c0 {
s35390a: s35390a@30 {
compatible = "sii,s35390a";

View File

@@ -251,6 +251,25 @@
goodix,rst-gpio = <&gpio0 RK_PD0 GPIO_ACTIVE_HIGH>;
goodix,irq-gpio = <&gpio0 RK_PC5 IRQ_TYPE_LEVEL_LOW>;
};
hynitron: hynitron@5a {
status = "disabled";
compatible = "hyn,3240";
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 = <&gpio0 RK_PD0 GPIO_ACTIVE_HIGH>;
irq-gpios = <&gpio0 RK_PC5 GPIO_ACTIVE_LOW>;
max-touch-number = <5>;
display-coords = <0 0 1080 1920>;
pos-swap = <0>;
posx-reverse = <0>;
posy-reverse = <0>;
};
};
&i2c2 {
@@ -305,6 +324,22 @@
<0 RK_PD0 RK_FUNC_GPIO &pcfg_pull_up>,
<0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_active: ts_int_active {
rockchip,pins = <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_reset_active: ts_reset_active {
rockchip,pins = <0 RK_PD0 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_suspend: ts_int_suspend {
rockchip,pins = <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_down>;
};
ts_reset_suspend: ts_reset_suspend {
rockchip,pins = <0 RK_PD0 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
wireless-bluetooth {

View File

@@ -611,6 +611,25 @@
goodix,rst-gpio = <&gpio0 RK_PD0 GPIO_ACTIVE_HIGH>;
goodix,irq-gpio = <&gpio0 RK_PC5 IRQ_TYPE_LEVEL_LOW>;
};
hynitron: hynitron@5a {
status = "disabled";
compatible = "hyn,3240";
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 = <&gpio0 RK_PD0 GPIO_ACTIVE_HIGH>;
irq-gpios = <&gpio0 RK_PC5 GPIO_ACTIVE_LOW>;
max-touch-number = <5>;
display-coords = <0 0 1080 1920>;
pos-swap = <0>;
posx-reverse = <0>;
posy-reverse = <0>;
};
};
&i2c2 {
@@ -667,6 +686,22 @@
<0 RK_PD0 RK_FUNC_GPIO &pcfg_pull_up>,
<0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_active: ts_int_active {
rockchip,pins = <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_reset_active: ts_reset_active {
rockchip,pins = <0 RK_PD0 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_suspend: ts_int_suspend {
rockchip,pins = <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_down>;
};
ts_reset_suspend: ts_reset_suspend {
rockchip,pins = <0 RK_PD0 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
wireless-bluetooth {

View File

@@ -247,6 +247,11 @@
status = "okay";
};
&hynitron {
status = "okay";
power-supply = <&vcc3v3_lcd_n>;
};
&i2c2 {
status = "okay";