* [PATCH] arm64: dts: rockchip: Add Touch to Anbernic RG-ARC D
@ 2024-02-01 15:06 Chris Morgan
2024-02-04 11:17 ` Heiko Stuebner
0 siblings, 1 reply; 2+ messages in thread
From: Chris Morgan @ 2024-02-01 15:06 UTC (permalink / raw)
To: linux-rockchip
Cc: devicetree, heiko, conor+dt, krzysztof.kozlowski+dt, robh+dt,
Chris Morgan, Trooper_Max
From: Chris Morgan <macromorgan@hotmail.com>
Add the Goodix GT927 touchscreen to the Anbernic RG-ARC D.
Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Tested-by: Trooper_Max <troopermax@gmail.com>
---
.../dts/rockchip/rk3566-anbernic-rg-arc-d.dts | 26 ++++++++++++++++---
1 file changed, 22 insertions(+), 4 deletions(-)
diff --git a/arch/arm64/boot/dts/rockchip/rk3566-anbernic-rg-arc-d.dts b/arch/arm64/boot/dts/rockchip/rk3566-anbernic-rg-arc-d.dts
index 795fbedc3c1b..a4e68e82fc06 100644
--- a/arch/arm64/boot/dts/rockchip/rk3566-anbernic-rg-arc-d.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3566-anbernic-rg-arc-d.dts
@@ -19,14 +19,32 @@ aliases {
};
};
-/*
- * Unknown Goodix touchscreen at i2c2 0x14. Needs testing before it's
- * enabled.
- */
&i2c2 {
pinctrl-0 = <&i2c2m1_xfer>;
pinctrl-names = "default";
status = "okay";
+
+ gt927@14 {
+ compatible = "goodix,gt927";
+ reg = <0x14>;
+ interrupt-parent = <&gpio4>;
+ interrupts = <RK_PB1 IRQ_TYPE_EDGE_FALLING>;
+ irq-gpios = <&gpio4 RK_PB1 GPIO_ACTIVE_HIGH>;
+ pinctrl-0 = <&touch_int>;
+ pinctrl-names = "default";
+ reset-gpios = <&gpio4 RK_PA6 GPIO_ACTIVE_HIGH>;
+ touchscreen-inverted-y;
+ touchscreen-size-x = <640>;
+ touchscreen-size-y = <480>;
+ };
+};
+
+&pinctrl {
+ touchscreen {
+ touch_int: touch_int {
+ rockchip,pins = <4 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>;
+ };
+ };
};
&sdhci {
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] arm64: dts: rockchip: Add Touch to Anbernic RG-ARC D
2024-02-01 15:06 [PATCH] arm64: dts: rockchip: Add Touch to Anbernic RG-ARC D Chris Morgan
@ 2024-02-04 11:17 ` Heiko Stuebner
0 siblings, 0 replies; 2+ messages in thread
From: Heiko Stuebner @ 2024-02-04 11:17 UTC (permalink / raw)
To: Chris Morgan, linux-rockchip
Cc: Heiko Stuebner, conor+dt, krzysztof.kozlowski+dt, Chris Morgan,
robh+dt, devicetree, Trooper_Max
On Thu, 1 Feb 2024 09:06:20 -0600, Chris Morgan wrote:
> From: Chris Morgan <macromorgan@hotmail.com>
>
> Add the Goodix GT927 touchscreen to the Anbernic RG-ARC D.
>
>
Applied, thanks!
[1/1] arm64: dts: rockchip: Add Touch to Anbernic RG-ARC D
commit: 2ec7d42918f0170331cb4206d36d10837c815549
Best regards,
--
Heiko Stuebner <heiko@sntech.de>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-02-04 11:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-01 15:06 [PATCH] arm64: dts: rockchip: Add Touch to Anbernic RG-ARC D Chris Morgan
2024-02-04 11:17 ` Heiko Stuebner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).