arm64: dts: rockchip: 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: I310e7bf9f743accd3bc9b1f26c30a6b4fc3cd3c7
This commit is contained in:
Zhibin Huang
2025-06-26 11:42:44 +08:00
committed by Tao Huang
parent d08f47a2c4
commit 4f3c5c6bc7
56 changed files with 1057 additions and 2 deletions

View File

@@ -919,6 +919,26 @@
power-supply = <&vcc3v3_lcd>;
};
hynitron: hynitron@5a {
compatible = "hyn,3240";
reg = <0x5a>;
power-supply = <&vcc3v3_lcd>;
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_PB4 GPIO_ACTIVE_HIGH>;
irq-gpios = <&gpio0 RK_PB3 GPIO_ACTIVE_LOW>;
max-touch-number = <5>;
display-coords = <0 0 1080 1920>;
pos-swap = <0>;
posx-reverse = <0>;
posy-reverse = <0>;
};
};
&i2c5 {
@@ -1012,6 +1032,22 @@
<0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_up>,
<0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
};
ts_int_active: ts_int_active {
rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_reset_active: ts_reset_active {
rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_suspend: ts_int_suspend {
rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_down>;
};
ts_reset_suspend: ts_reset_suspend {
rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
sdio-pwrseq {

View File

@@ -505,6 +505,29 @@
*/
power-supply = <&vcc3v3_lcd_n>;
};
hynitron: hynitron@5a {
compatible = "hyn,3240";
reg = <0x5a>;
/*
* power-supply should switche to vcc3v3_lcd1_n
* when mipi panel is connected to dsi1.
*/
power-supply = <&vcc3v3_lcd_n>;
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_PA0 GPIO_ACTIVE_HIGH>;
irq-gpios = <&gpio0 RK_PB0 GPIO_ACTIVE_LOW>;
max-touch-number = <5>;
display-coords = <0 0 1080 1920>;
pos-swap = <0>;
posx-reverse = <0>;
posy-reverse = <0>;
};
};
&jpegd {
@@ -526,6 +549,22 @@
<0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>,
<0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
};
ts_int_active: ts_int_active {
rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_reset_active: ts_reset_active {
rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_suspend: ts_int_suspend {
rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_down>;
};
ts_reset_suspend: ts_reset_suspend {
rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
};

View File

@@ -492,6 +492,29 @@
*/
power-supply = <&vcc3v3_lcd_n>;
};
hynitron: hynitron@5a {
compatible = "hyn,3240";
reg = <0x5a>;
/*
* power-supply should switche to vcc3v3_lcd1_n
* when mipi panel is connected to dsi1.
*/
power-supply = <&vcc3v3_lcd_n>;
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_PB0 GPIO_ACTIVE_HIGH>;
irq-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
max-touch-number = <5>;
display-coords = <0 0 1080 1920>;
pos-swap = <0>;
posx-reverse = <0>;
posy-reverse = <0>;
};
};
&pinctrl {
@@ -507,6 +530,22 @@
<0 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>,
<0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
};
ts_int_active: ts_int_active {
rockchip,pins = <0 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_reset_active: ts_reset_active {
rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_suspend: ts_int_suspend {
rockchip,pins = <0 RK_PA7 RK_FUNC_GPIO &pcfg_pull_down>;
};
ts_reset_suspend: ts_reset_suspend {
rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
};

View File

@@ -227,6 +227,29 @@
power-supply = <&vcc3v3_lcd_n>;
};
&hynitron {
compatible = "hyn,3240";
reg = <0x5a>;
/*
* power-supply should switche to vcc3v3_lcd1_n
* when mipi panel is connected to dsi1.
*/
power-supply = <&vcc3v3_lcd_n>;
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_PA0 GPIO_ACTIVE_HIGH>;
irq-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
max-touch-number = <5>;
display-coords = <0 0 1080 1920>;
pos-swap = <0>;
posx-reverse = <0>;
posy-reverse = <0>;
};
&mdio0 {
rgmii_phy: phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
@@ -262,6 +285,22 @@
<0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>,
<0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
};
ts_int_active: ts_int_active {
rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_reset_active: ts_reset_active {
rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_suspend: ts_int_suspend {
rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_down>;
};
ts_reset_suspend: ts_reset_suspend {
rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
usb {

View File

@@ -293,6 +293,29 @@
interrupts = <RK_PA5 IRQ_TYPE_LEVEL_LOW>;
wakeup-source;
};
hynitron: hynitron@5a {
compatible = "hyn,3240";
reg = <0x5a>;
/*
* power-supply should switche to vcc3v3_lcd1_n
* when mipi panel is connected to dsi1.
*/
power-supply = <&vcc3v3_lcd_n>;
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_PB7 GPIO_ACTIVE_HIGH>;
irq-gpios = <&gpio0 RK_PC3 GPIO_ACTIVE_LOW>;
max-touch-number = <5>;
display-coords = <0 0 1080 1920>;
pos-swap = <0>;
posx-reverse = <0>;
posy-reverse = <0>;
};
};
&mdio0 {
@@ -342,6 +365,22 @@
<0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up>,
<0 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>;
};
ts_int_active: ts_int_active {
rockchip,pins = <0 RK_PC3 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_reset_active: ts_reset_active {
rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_suspend: ts_int_suspend {
rockchip,pins = <0 RK_PC3 RK_FUNC_GPIO &pcfg_pull_down>;
};
ts_reset_suspend: ts_reset_suspend {
rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
sdio-pwrseq {

View File

@@ -227,6 +227,11 @@
power-supply = <&vcc3v3_lcd0_n>;
};
&hynitron {
status = "disabled";
power-supply = <&vcc3v3_lcd0_n>;
};
&hdmi {
status = "disabled";
};

View File

@@ -226,6 +226,10 @@
power-supply = <&vcc3v3_lcd0_n>;
};
&hynitron {
power-supply = <&vcc3v3_lcd0_n>;
};
&i2c2 {
status = "okay";
pinctrl-names = "default";

View File

@@ -150,6 +150,10 @@
status = "disabled";
};
&hynitron {
status = "disabled";
};
&hdmi {
status = "disabled";
};

View File

@@ -405,6 +405,10 @@
power-supply = <&vcc3v3_lcd0_n>;
};
&hynitron {
power-supply = <&vcc3v3_lcd0_n>;
};
&mipi_csi2 {
status = "okay";

View File

@@ -188,6 +188,10 @@
power-supply = <&vcc3v3_lcd0_n>;
};
&hynitron {
power-supply = <&vcc3v3_lcd0_n>;
};
&i2c2 {
status = "okay";
pinctrl-0 = <&i2c2m1_xfer>;

View File

@@ -172,6 +172,10 @@
power-supply = <&vcc3v3_lcd0_n>;
};
&hynitron {
power-supply = <&vcc3v3_lcd0_n>;
};
&i2c5 {
status = "disabled";
};

View File

@@ -396,6 +396,10 @@
power-supply = <&vcc3v3_lcd0_n>;
};
&hynitron {
power-supply = <&vcc3v3_lcd0_n>;
};
&mipi_csi2 {
status = "okay";

View File

@@ -15,6 +15,13 @@
goodix,irq-gpio = <&gpio0 RK_PA4 IRQ_TYPE_LEVEL_LOW>;
};
&hynitron {
status = "okay";
power-supply = <&vcc3v3_lcd0_n>;
reset-gpios = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>;
irq-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
};
&i2c2_rk628 {
panel-backlight = <&backlight>;
panel-power-supply = <&vcc3v3_lcd0_n>;

View File

@@ -12,6 +12,10 @@
status = "disabled";
};
&hynitron {
status = "disabled";
};
&i2c2_rk628 {
panel-backlight = <&backlight>;
panel-power-supply = <&vcc3v3_lcd0_n>;

View File

@@ -16,6 +16,10 @@
status = "disabled";
};
&hynitron {
status = "disabled";
};
&i2c2_rk628 {
panel-backlight = <&backlight>;
panel-power-supply = <&vcc3v3_lcd0_n>;

View File

@@ -12,6 +12,10 @@
status = "disabled";
};
&hynitron {
status = "disabled";
};
&i2c2_rk628 {
panel-backlight = <&backlight>;
panel-power-supply = <&vcc3v3_lcd0_n>;

View File

@@ -16,6 +16,10 @@
status = "disabled";
};
&hynitron {
status = "disabled";
};
&i2c2_rk628 {
panel-backlight = <&backlight>;
panel-power-supply = <&vcc3v3_lcd0_n>;

View File

@@ -46,6 +46,13 @@
goodix,irq-gpio = <&gpio0 RK_PA4 IRQ_TYPE_LEVEL_LOW>;
};
&hynitron {
status = "okay";
power-supply = <&vcc3v3_lcd0_n>;
reset-gpios = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>;
irq-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
};
&i2c2_rk628 {
panel-backlight = <&backlight>;
panel-power-supply = <&vcc3v3_lcd0_n>;

View File

@@ -47,6 +47,10 @@
status = "disabled";
};
&hynitron {
status = "disabled";
};
&i2c2_rk628 {
panel-backlight = <&backlight>;
panel-power-supply = <&vcc3v3_lcd0_n>;

View File

@@ -15,6 +15,10 @@
status = "disabled";
};
&hynitron {
status = "disabled";
};
&i2c2_rk628 {
assigned-clocks = <&pmucru CLK_WIFI>;
assigned-clock-rates = <24000000>;

View File

@@ -47,6 +47,10 @@
status = "disabled";
};
&hynitron {
status = "disabled";
};
&i2c2_rk628 {
panel-backlight = <&backlight>;
panel-power-supply = <&vcc3v3_lcd0_n>;

View File

@@ -48,6 +48,10 @@
status = "disabled";
};
&hynitron {
status = "disabled";
};
&i2c2_rk628 {
panel-backlight = <&backlight>;
panel-power-supply = <&vcc3v3_lcd0_n>;

View File

@@ -1380,6 +1380,24 @@
goodix,rst-gpio = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>;
goodix,irq-gpio = <&gpio0 RK_PB5 IRQ_TYPE_LEVEL_LOW>;
};
hynitron: hynitron@5a {
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_PB6 GPIO_ACTIVE_HIGH>;
irq-gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_LOW>;
max-touch-number = <5>;
display-coords = <0 0 1080 1920>;
pos-swap = <0>;
posx-reverse = <0>;
posy-reverse = <0>;
};
};
&i2c5 {
@@ -1496,6 +1514,22 @@
<0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>,
<0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
};
ts_int_active: ts_int_active {
rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_reset_active: ts_reset_active {
rockchip,pins = <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_suspend: ts_int_suspend {
rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_down>;
};
ts_reset_suspend: ts_reset_suspend {
rockchip,pins = <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
sdio-pwrseq {

View File

@@ -263,6 +263,10 @@
power-supply = <&vcc3v3_lcd0_n>;
};
&hynitron {
power-supply = <&vcc3v3_lcd0_n>;
};
&i2c4 {
status = "okay";

View File

@@ -211,6 +211,10 @@
power-supply = <&vcc3v3_lcd0_n>;
};
&hynitron {
power-supply = <&vcc3v3_lcd0_n>;
};
&i2c3 {
status = "okay";

View File

@@ -264,6 +264,10 @@
power-supply = <&vcc3v3_lcd0_n>;
};
&hynitron {
power-supply = <&vcc3v3_lcd0_n>;
};
&i2c3 {
clock-frequency = <400000>;
status = "okay";

View File

@@ -111,6 +111,10 @@
power-supply = <&vcc3v3_lcd0_n>;
};
&hynitron {
power-supply = <&vcc3v3_lcd0_n>;
};
&i2c2 {
status = "okay";
pinctrl-names = "default";

View File

@@ -45,6 +45,25 @@
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{
@@ -72,5 +91,21 @@
<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>;
};
};
};

View File

@@ -44,6 +44,10 @@
status = "disabled";
};
&hynitron {
status = "disabled";
};
&combphy0_us {
status = "okay";
};

View File

@@ -49,6 +49,10 @@
status = "disabled";
};
&hynitron {
status = "disabled";
};
&i2c0 {
status = "okay";

View File

@@ -49,6 +49,10 @@
status = "disabled";
};
&hynitron {
status = "disabled";
};
&i2c0 {
status = "okay";

View File

@@ -714,6 +714,26 @@
goodix,irq-gpio = <&gpio0 RK_PC5 IRQ_TYPE_LEVEL_LOW>;
power-supply = <&vcc3v3_lcd_n>;
};
hynitron: hynitron@5a {
status = "okay";
compatible = "hyn,3240";
reg = <0x5a>;
power-supply = <&vcc3v3_lcd_n>;
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_PC0 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>;
};
};
&i2c1 {
@@ -1210,6 +1230,22 @@
<0 RK_PC0 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_PC0 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_PC0 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
usb {

View File

@@ -83,6 +83,10 @@
status = "disabled";
};
&hynitron {
status = "disabled";
};
&i2c6 {
status = "disabled";
};

View File

@@ -496,6 +496,25 @@
goodix,irq-gpio = <&gpio0 RK_PD3 IRQ_TYPE_LEVEL_LOW>;
power-supply = <&vcc3v3_lcd_n>;
};
hynitron: hynitron@5a {
compatible = "hyn,3240";
reg = <0x5a>;
power-supply = <&vcc3v3_lcd_n>;
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_PD2 GPIO_ACTIVE_HIGH>;
irq-gpios = <&gpio0 RK_PD3 GPIO_ACTIVE_LOW>;
max-touch-number = <5>;
display-coords = <0 0 1080 1920>;
pos-swap = <0>;
posx-reverse = <0>;
posy-reverse = <0>;
};
};
&i2c7 {
@@ -634,6 +653,22 @@
<0 RK_PD2 RK_FUNC_GPIO &pcfg_pull_up>,
<0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_active: ts_int_active {
rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_reset_active: ts_reset_active {
rockchip,pins = <0 RK_PD2 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_suspend: ts_int_suspend {
rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_down>;
};
ts_reset_suspend: ts_reset_suspend {
rockchip,pins = <0 RK_PD2 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
usb {

View File

@@ -503,6 +503,25 @@
goodix,irq-gpio = <&gpio3 RK_PC0 IRQ_TYPE_LEVEL_LOW>;
power-supply = <&vcc3v3_lcd_n>;
};
hynitron: hynitron@5a {
compatible = "hyn,3240";
reg = <0x5a>;
power-supply = <&vcc3v3_lcd_n>;
pinctrl-names = "ts_active","ts_suspend";
pinctrl-0 = <&ts_int_active &ts_reset_active>;
pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
reset-gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>;
irq-gpios = <&gpio3 RK_PC0 GPIO_ACTIVE_LOW>;
max-touch-number = <5>;
display-coords = <0 0 1080 1920>;
pos-swap = <0>;
posx-reverse = <0>;
posy-reverse = <0>;
};
};
&i2c5m3_xfer {
@@ -795,6 +814,22 @@
<3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>,
<3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_active: ts_int_active {
rockchip,pins = <3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_reset_active: ts_reset_active {
rockchip,pins = <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_suspend: ts_int_suspend {
rockchip,pins = <3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_down>;
};
ts_reset_suspend: ts_reset_suspend {
rockchip,pins = <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
usb {

View File

@@ -118,6 +118,10 @@
status = "okay";
};
&hynitron {
status = "disabled";
};
&i2c6 {
clock-frequency = <400000>;
status = "okay";

View File

@@ -328,6 +328,25 @@
goodix,irq-gpio = <&gpio0 RK_PD3 IRQ_TYPE_LEVEL_LOW>;
power-supply = <&vcc3v3_lcd_n>;
};
hynitron: hynitron@5a {
compatible = "hyn,3240";
reg = <0x5a>;
power-supply = <&vcc3v3_lcd_n>;
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_PD2 GPIO_ACTIVE_HIGH>;
irq-gpios = <&gpio0 RK_PD3 GPIO_ACTIVE_LOW>;
max-touch-number = <5>;
display-coords = <0 0 1080 1920>;
pos-swap = <0>;
posx-reverse = <0>;
posy-reverse = <0>;
};
};
&i2c7 {
@@ -436,6 +455,22 @@
<0 RK_PD2 RK_FUNC_GPIO &pcfg_pull_up>,
<0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_active: ts_int_active {
rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_reset_active: ts_reset_active {
rockchip,pins = <0 RK_PD2 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_suspend: ts_int_suspend {
rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_down>;
};
ts_reset_suspend: ts_reset_suspend {
rockchip,pins = <0 RK_PD2 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
usb {

View File

@@ -87,6 +87,10 @@
status = "okay";
};
&hynitron {
status = "disabled";
};
&i2c5 {
clock-frequency = <400000>;
status = "okay";

View File

@@ -87,6 +87,10 @@
status = "okay";
};
&hynitron {
status = "disabled";
};
&i2c5 {
clock-frequency = <400000>;
status = "okay";

View File

@@ -984,6 +984,25 @@
goodix,irq-gpio = <&gpio4 RK_PB1 IRQ_TYPE_LEVEL_LOW>;
power-supply = <&vcc3v3_lcd_n>;
};
hynitron: hynitron@5a {
compatible = "hyn,3240";
reg = <0x5a>;
power-supply = <&vcc3v3_lcd_n>;
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_PB2 GPIO_ACTIVE_HIGH>;
irq-gpios = <&gpio4 RK_PB1 GPIO_ACTIVE_LOW>;
max-touch-number = <5>;
display-coords = <0 0 1080 1920>;
pos-swap = <0>;
posx-reverse = <0>;
posy-reverse = <0>;
};
};
&i2c7 {
@@ -1103,6 +1122,22 @@
<4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>,
<4 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
};
ts_int_active: ts_int_active {
rockchip,pins = <4 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_reset_active: ts_reset_active {
rockchip,pins = <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_suspend: ts_int_suspend {
rockchip,pins = <4 RK_PB1 RK_FUNC_GPIO &pcfg_pull_down>;
};
ts_reset_suspend: ts_reset_suspend {
rockchip,pins = <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
usb {

View File

@@ -268,6 +268,25 @@
goodix,irq-gpio = <&gpio0 RK_PC6 IRQ_TYPE_LEVEL_LOW>;
power-supply = <&vcc3v3_lcd_n>;
};
hynitron: hynitron@5a {
compatible = "hyn,3240";
reg = <0x5a>;
power-supply = <&vcc3v3_lcd_n>;
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_PD5 GPIO_ACTIVE_HIGH>;
irq-gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_LOW>;
max-touch-number = <5>;
display-coords = <0 0 1080 1920>;
pos-swap = <0>;
posx-reverse = <0>;
posy-reverse = <0>;
};
};
&i2c8 {
@@ -383,6 +402,22 @@
<0 RK_PD5 RK_FUNC_GPIO &pcfg_pull_up>,
<0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_active: ts_int_active {
rockchip,pins = <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_reset_active: ts_reset_active {
rockchip,pins = <0 RK_PD5 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_suspend: ts_int_suspend {
rockchip,pins = <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_down>;
};
ts_reset_suspend: ts_reset_suspend {
rockchip,pins = <0 RK_PD5 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
usb {

View File

@@ -341,6 +341,25 @@
goodix,irq-gpio = <&gpio0 RK_PD3 IRQ_TYPE_LEVEL_LOW>;
power-supply = <&vcc3v3_lcd_n>;
};
hynitron: hynitron@5a {
compatible = "hyn,3240";
reg = <0x5a>;
power-supply = <&vcc3v3_lcd_n>;
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_PD2 GPIO_ACTIVE_HIGH>;
irq-gpios = <&gpio0 RK_PD3 GPIO_ACTIVE_LOW>;
max-touch-number = <5>;
display-coords = <0 0 1080 1920>;
pos-swap = <0>;
posx-reverse = <0>;
posy-reverse = <0>;
};
};
&i2s5_8ch {
@@ -418,6 +437,22 @@
<0 RK_PD2 RK_FUNC_GPIO &pcfg_pull_up>,
<0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_active: ts_int_active {
rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_reset_active: ts_reset_active {
rockchip,pins = <0 RK_PD2 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_suspend: ts_int_suspend {
rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_down>;
};
ts_reset_suspend: ts_reset_suspend {
rockchip,pins = <0 RK_PD2 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
usb {

View File

@@ -87,6 +87,10 @@
status = "disabled";
};
&hynitron {
status = "disabled";
};
&i2c6 {
status = "disabled";
};

View File

@@ -549,6 +549,25 @@
goodix,irq-gpio = <&gpio3 RK_PC0 IRQ_TYPE_LEVEL_LOW>;
power-supply = <&vcc3v3_lcd_n>;
};
hynitron: hynitron@5a {
compatible = "hyn,3240";
reg = <0x5a>;
power-supply = <&vcc3v3_lcd_n>;
pinctrl-names = "ts_active","ts_suspend";
pinctrl-0 = <&ts_int_active &ts_reset_active>;
pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
reset-gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>;
irq-gpios = <&gpio3 RK_PC0 GPIO_ACTIVE_LOW>;
max-touch-number = <5>;
display-coords = <0 0 1080 1920>;
pos-swap = <0>;
posx-reverse = <0>;
posy-reverse = <0>;
};
};
&i2c6 {
@@ -707,6 +726,22 @@
<3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>,
<3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_active: ts_int_active {
rockchip,pins = <3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_reset_active: ts_reset_active {
rockchip,pins = <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_suspend: ts_int_suspend {
rockchip,pins = <3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_down>;
};
ts_reset_suspend: ts_reset_suspend {
rockchip,pins = <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
usb {

View File

@@ -560,6 +560,24 @@
goodix,irq-gpio = <&gpio3 RK_PC0 IRQ_TYPE_LEVEL_LOW>;
power-supply = <&vcc3v3_lcd_n>;
};
hynitron: hynitron@5a {
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 = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>;
irq-gpios = <&gpio3 RK_PC0 GPIO_ACTIVE_LOW>;
max-touch-number = <5>;
display-coords = <0 0 1080 1920>;
pos-swap = <0>;
posx-reverse = <0>;
posy-reverse = <0>;
};
};
&i2c6 {
@@ -774,6 +792,22 @@
<3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>,
<3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_active: ts_int_active {
rockchip,pins = <3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_reset_active: ts_reset_active {
rockchip,pins = <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_suspend: ts_int_suspend {
rockchip,pins = <3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_down>;
};
ts_reset_suspend: ts_reset_suspend {
rockchip,pins = <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
usb {

View File

@@ -518,6 +518,24 @@
irq_gpio_number = <&gpio1 RK_PA6 IRQ_TYPE_LEVEL_LOW>;
rst_gpio_number = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>;
};
hynitron: hynitron@5a {
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_PD5 GPIO_ACTIVE_HIGH>;
irq-gpios = <&gpio0 RK_PB0 GPIO_ACTIVE_LOW>;
max-touch-number = <5>;
display-coords = <0 0 1080 1920>;
pos-swap = <0>;
posx-reverse = <0>;
posy-reverse = <0>;
};
};
&i2c7 {
@@ -649,6 +667,22 @@
<0 RK_PD5 RK_FUNC_GPIO &pcfg_pull_up>,
<0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_active: ts_int_active {
rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_reset_active: ts_reset_active {
rockchip,pins = <0 RK_PD5 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_suspend: ts_int_suspend {
rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_down>;
};
ts_reset_suspend: ts_reset_suspend {
rockchip,pins = <0 RK_PD5 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
usb {
@@ -767,4 +801,3 @@
&usbhost_dwc3_0 {
status = "disabled";
};

View File

@@ -519,6 +519,25 @@
irq_gpio_number = <&gpio1 RK_PA6 IRQ_TYPE_LEVEL_LOW>;
rst_gpio_number = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>;
};
hynitron: hynitron@5a {
compatible = "hyn,3240";
reg = <0x5a>;
power-supply = <&vcc3v3_lcd_n>;
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_PD5 GPIO_ACTIVE_HIGH>;
irq-gpios = <&gpio0 RK_PB0 GPIO_ACTIVE_LOW>;
max-touch-number = <5>;
display-coords = <0 0 1080 1920>;
pos-swap = <0>;
posx-reverse = <0>;
posy-reverse = <0>;
};
};
&i2c7 {
@@ -622,6 +641,22 @@
<0 RK_PD5 RK_FUNC_GPIO &pcfg_pull_up>,
<0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_active: ts_int_active {
rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_reset_active: ts_reset_active {
rockchip,pins = <0 RK_PD5 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_suspend: ts_int_suspend {
rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_down>;
};
ts_reset_suspend: ts_reset_suspend {
rockchip,pins = <0 RK_PD5 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
usb {

View File

@@ -813,6 +813,25 @@
goodix,irq-gpio = <&gpio4 RK_PB4 IRQ_TYPE_LEVEL_LOW>;
power-supply = <&vcc3v3_lcd_n>;
};
hynitron: hynitron@5a {
compatible = "hyn,3240";
reg = <0x5a>;
power-supply = <&vcc3v3_lcd_n>;
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_PB2 GPIO_ACTIVE_HIGH>;
irq-gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_LOW>;
max-touch-number = <5>;
display-coords = <0 0 1080 1920>;
pos-swap = <0>;
posx-reverse = <0>;
posy-reverse = <0>;
};
};
&i2c3 {
@@ -892,6 +911,22 @@
<4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>,
<4 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_active: ts_int_active {
rockchip,pins = <4 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_reset_active: ts_reset_active {
rockchip,pins = <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_suspend: ts_int_suspend {
rockchip,pins = <4 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>;
};
ts_reset_suspend: ts_reset_suspend {
rockchip,pins = <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
usb {

View File

@@ -20,12 +20,16 @@
};
/*
* The pins of gt1x and sii9022 are multiplexed
* The pins of gt1x/hynitron and sii9022 are multiplexed
*/
&gt1x {
status = "disabled";
};
&hynitron {
status = "disabled";
};
&i2c4 {
clock-frequency = <400000>;
status = "okay";

View File

@@ -152,6 +152,25 @@
goodix,irq-gpio = <&gpio1 RK_PB5 IRQ_TYPE_LEVEL_LOW>;
power-supply = <&vcc3v3_lcd_n>;
};
hynitron: hynitron@5a {
compatible = "hyn,3240";
reg = <0x5a>;
power-supply = <&vcc3v3_lcd_n>;
pinctrl-names = "ts_active","ts_suspend";
pinctrl-0 = <&ts_int_active &ts_reset_active>;
pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
reset-gpios = <&gpio1 RK_PB4 GPIO_ACTIVE_HIGH>;
irq-gpios = <&gpio1 RK_PB5 GPIO_ACTIVE_LOW>;
max-touch-number = <5>;
display-coords = <0 0 1080 1920>;
pos-swap = <0>;
posx-reverse = <0>;
posy-reverse = <0>;
};
};
&i2c8 {
@@ -253,6 +272,22 @@
<1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>,
<1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_active: ts_int_active {
rockchip,pins = <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_reset_active: ts_reset_active {
rockchip,pins = <1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_suspend: ts_int_suspend {
rockchip,pins = <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_down>;
};
ts_reset_suspend: ts_reset_suspend {
rockchip,pins = <1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
usb-typec {

View File

@@ -494,6 +494,25 @@
goodix,irq-gpio = <&gpio1 RK_PB5 IRQ_TYPE_LEVEL_LOW>;
power-supply = <&vcc3v3_lcd_n>;
};
hynitron: hynitron@5a {
compatible = "hyn,3240";
reg = <0x5a>;
power-supply = <&vcc3v3_lcd_n>;
pinctrl-names = "ts_active","ts_suspend";
pinctrl-0 = <&ts_int_active &ts_reset_active>;
pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
reset-gpios = <&gpio1 RK_PB4 GPIO_ACTIVE_HIGH>;
irq-gpios = <&gpio1 RK_PB5 GPIO_ACTIVE_LOW>;
max-touch-number = <5>;
display-coords = <0 0 1080 1920>;
pos-swap = <0>;
posx-reverse = <0>;
posy-reverse = <0>;
};
};
&i2c5 {
@@ -688,6 +707,22 @@
<1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>,
<1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_active: ts_int_active {
rockchip,pins = <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_reset_active: ts_reset_active {
rockchip,pins = <1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_suspend: ts_int_suspend {
rockchip,pins = <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_down>;
};
ts_reset_suspend: ts_reset_suspend {
rockchip,pins = <1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
usb {

View File

@@ -319,6 +319,25 @@
goodix,rst-gpio = <&gpio7 RK_PA7 GPIO_ACTIVE_HIGH>;
goodix,irq-gpio = <&gpio7 RK_PA6 IRQ_TYPE_LEVEL_LOW>;
};
hynitron: hynitron@5a {
compatible = "hyn,3240";
reg = <0x5a>;
power-supply = <&vcc_mipi>;
pinctrl-names = "ts_active","ts_suspend";
pinctrl-0 = <&ts_int_active &ts_reset_active>;
pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
reset-gpios = <&gpio7 RK_PA7 GPIO_ACTIVE_HIGH>;
irq-gpios = <&gpio7 RK_PA6 GPIO_ACTIVE_LOW>;
max-touch-number = <5>;
display-coords = <0 0 1080 1920>;
pos-swap = <0>;
posx-reverse = <0>;
posy-reverse = <0>;
};
};
&mdio {
@@ -368,6 +387,22 @@
<7 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>,
<7 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_active: ts_int_active {
rockchip,pins = <7 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_reset_active: ts_reset_active {
rockchip,pins = <7 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_suspend: ts_int_suspend {
rockchip,pins = <7 RK_PA6 RK_FUNC_GPIO &pcfg_pull_down>;
};
ts_reset_suspend: ts_reset_suspend {
rockchip,pins = <7 RK_PA7 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
usb {

View File

@@ -301,6 +301,25 @@
goodix,rst-gpio = <&gpio5 RK_PD6 GPIO_ACTIVE_HIGH>;
goodix,irq-gpio = <&gpio3 RK_PB7 IRQ_TYPE_LEVEL_LOW>;
};
hynitron: hynitron@5a {
compatible = "hyn,3240";
reg = <0x5a>;
power-supply = <&vcc_lcd>;
pinctrl-names = "ts_active","ts_suspend";
pinctrl-0 = <&ts_int_active &ts_reset_active>;
pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
reset-gpios = <&gpio5 RK_PD6 GPIO_ACTIVE_HIGH>;
irq-gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
max-touch-number = <5>;
display-coords = <0 0 1080 1920>;
pos-swap = <0>;
posx-reverse = <0>;
posy-reverse = <0>;
};
};
&mdio {
@@ -340,6 +359,22 @@
<3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up>,
<5 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
};
ts_int_active: ts_int_active {
rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_reset_active: ts_reset_active {
rockchip,pins = <5 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_suspend: ts_int_suspend {
rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_down>;
};
ts_reset_suspend: ts_reset_suspend {
rockchip,pins = <5 RK_PD6 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
usb {

View File

@@ -324,6 +324,25 @@
goodix,rst-gpio = <&gpio5 RK_PD6 GPIO_ACTIVE_HIGH>;
goodix,irq-gpio = <&gpio3 RK_PB7 IRQ_TYPE_LEVEL_LOW>;
};
hynitron: hynitron@5a {
compatible = "hyn,3240";
reg = <0x5a>;
power-supply = <&vcc_mipi>;
pinctrl-names = "ts_active","ts_suspend";
pinctrl-0 = <&ts_int_active &ts_reset_active>;
pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
reset-gpios = <&gpio5 RK_PD6 GPIO_ACTIVE_HIGH>;
irq-gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
max-touch-number = <5>;
display-coords = <0 0 1080 1920>;
pos-swap = <0>;
posx-reverse = <0>;
posy-reverse = <0>;
};
};
&mipi2_csi2 {
@@ -485,6 +504,22 @@
<3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up>,
<5 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
};
ts_int_active: ts_int_active {
rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_reset_active: ts_reset_active {
rockchip,pins = <5 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_suspend: ts_int_suspend {
rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_down>;
};
ts_reset_suspend: ts_reset_suspend {
rockchip,pins = <5 RK_PD6 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
usb {

View File

@@ -362,6 +362,25 @@
goodix,rst-gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
goodix,irq-gpio = <&gpio0 RK_PA7 IRQ_TYPE_LEVEL_LOW>;
};
hynitron: hynitron@5a {
compatible = "hyn,3240";
reg = <0x5a>;
power-supply = <&vcc_mipi>;
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_PC5 GPIO_ACTIVE_HIGH>;
irq-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
max-touch-number = <5>;
display-coords = <0 0 1080 1920>;
pos-swap = <0>;
posx-reverse = <0>;
posy-reverse = <0>;
};
};
&mdio {
@@ -405,6 +424,24 @@
};
};
touch {
ts_int_active: ts_int_active {
rockchip,pins = <0 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_reset_active: ts_reset_active {
rockchip,pins = <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_suspend: ts_int_suspend {
rockchip,pins = <0 RK_PA7 RK_FUNC_GPIO &pcfg_pull_down>;
};
ts_reset_suspend: ts_reset_suspend {
rockchip,pins = <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
usb {
typec5v_pwren: typec5v-pwren {
rockchip,pins = <5 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;

View File

@@ -424,6 +424,25 @@
goodix,rst-gpio = <&gpio5 RK_PA4 GPIO_ACTIVE_HIGH>;
goodix,irq-gpio = <&gpio5 RK_PA6 IRQ_TYPE_LEVEL_LOW>;
};
hynitron: hynitron@5a {
compatible = "hyn,3240";
reg = <0x5a>;
power-supply = <&vcc_mipi>;
pinctrl-names = "ts_active","ts_suspend";
pinctrl-0 = <&ts_int_active &ts_reset_active>;
pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
reset-gpios = <&gpio5 RK_PA4 GPIO_ACTIVE_HIGH>;
irq-gpios = <&gpio5 RK_PA6 GPIO_ACTIVE_LOW>;
max-touch-number = <5>;
display-coords = <0 0 1080 1920>;
pos-swap = <0>;
posx-reverse = <0>;
posy-reverse = <0>;
};
};
&mdio {
@@ -457,6 +476,24 @@
};
};
touch {
ts_int_active: ts_int_active {
rockchip,pins = <5 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_reset_active: ts_reset_active {
rockchip,pins = <5 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>;
};
ts_int_suspend: ts_int_suspend {
rockchip,pins = <5 RK_PA6 RK_FUNC_GPIO &pcfg_pull_down>;
};
ts_reset_suspend: ts_reset_suspend {
rockchip,pins = <5 RK_PA4 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
wireless-bluetooth {
uart2_gpios: uart2-gpios {
rockchip,pins = <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;