From 476e684da61894f3a6495d9e656c7a5e19cfe66f Mon Sep 17 00:00:00 2001 From: Caesar Wang Date: Mon, 24 Mar 2025 16:10:16 +0800 Subject: [PATCH] arm64: dts: rockchip: Enable Goodix GT1X touch for rv1126b evb1 Change-Id: I8d9ca82b48bdc2ed9ce082e32bc26f467c60c0a4 Signed-off-by: Caesar Wang --- .../boot/dts/rockchip/rv1126b-evb1-v10.dts | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rv1126b-evb1-v10.dts b/arch/arm64/boot/dts/rockchip/rv1126b-evb1-v10.dts index f674ec3bb54f..47b16c38b5eb 100644 --- a/arch/arm64/boot/dts/rockchip/rv1126b-evb1-v10.dts +++ b/arch/arm64/boot/dts/rockchip/rv1126b-evb1-v10.dts @@ -297,6 +297,22 @@ }; }; +&i2c4 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&i2c4m3_pins>; + + gt1x: gt1x@14 { + compatible = "goodix,gt1x"; + reg = <0x14>; + pinctrl-names = "default"; + pinctrl-0 = <&touch_gpio>; + power-supply = <&vcc_mipi>; + goodix,rst-gpio = <&gpio7 RK_PA7 GPIO_ACTIVE_HIGH>; + goodix,irq-gpio = <&gpio7 RK_PA6 IRQ_TYPE_LEVEL_LOW>; + }; +}; + &mdio { rmii_phy: ethernet-phy@2 { compatible = "ethernet-phy-id0680.8101", "ethernet-phy-ieee802.3-c22"; @@ -338,6 +354,14 @@ }; }; + touch { + touch_gpio: touch-gpio { + rockchip,pins = + <7 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>, + <7 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; + usb { typec5v_pwren: typec5v-pwren { rockchip,pins = <5 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;