arm64: dts: rockchip: add Hynitron cst340 for Anbernic 353 series
Subsystems (2)
PATCH v2 1/1 arm64: dts: rockchip: add Hynitron cst340 for Anbernic 353 series
From: Chris Morgan <[email protected]>
Add support for the Hynitron cst340 touchscreen driver to the Anbernic RG353P and RG353V devices. Note the RG353VS device does not have a touchscreen.
https://lore.kernel.org/linux-input/Y1y9e9sgE%[email protected]/
Changes since V1:
- Removed 'status = "okay";', as it was never disabled.
--- .../dts/rockchip/rk3566-anbernic-rg353p.dts | 19 +++++++++++++++++++ .../dts/rockchip/rk3566-anbernic-rg353v.dts | 12 ++++++++++++ 2 files changed, 31 insertions(+)
arch/arm64/boot/dts/rockchip/rk3566-anbernic-rg353p.dts +19 -0
@@ -95,6 +95,18 @@ &i2c2 { pintctrl-names = "default"; pinctrl-0 = <&i2c2m1_xfer>; status = "okay"; + + touch@1a { + compatible = "hynitron,cst340"; + reg = <0x1a>; + interrupt-parent = <&gpio4>; + interrupts = <RK_PB1 IRQ_TYPE_EDGE_FALLING>; + pinctrl-0 = <&touch_rst>; + pinctrl-names = "default"; + reset-gpios = <&gpio4 RK_PA6 GPIO_ACTIVE_LOW>; + touchscreen-size-x = <640>; + touchscreen-size-y = <480>; + }; }; &pinctrl {
@@ -104,6 +116,13 @@ spk_amp_enable_h: spk-amp-enable-h { <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>; }; }; + + touch { + touch_rst: touch-rst { + rockchip,pins = + <4 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; }; &rk817 {
arch/arm64/boot/dts/rockchip/rk3566-anbernic-rg353v.dts +12 -0
@@ -82,6 +82,18 @@ &i2c2 { pintctrl-names = "default"; pinctrl-0 = <&i2c2m1_xfer>; status = "okay"; + + touch@1a { + compatible = "hynitron,cst340"; + reg = <0x1a>; + interrupt-parent = <&gpio4>; + interrupts = <RK_PB1 IRQ_TYPE_EDGE_FALLING>; + pinctrl-0 = <&touch_rst>; + pinctrl-names = "default"; + reset-gpios = <&gpio4 RK_PA6 GPIO_ACTIVE_LOW>; + touchscreen-size-x = <640>; + touchscreen-size-y = <480>; + }; }; &pinctrl {
Signature · 1 line
2.25.1
Quoted 9 lines · Chris Morgan
From: Chris Morgan <[email protected]>
Add support for the Hynitron cst340 touchscreen driver to the Anbernic RG353P and RG353V devices. Note the RG353VS device does not have a touchscreen.
https://lore.kernel.org/linux-input/Y1y9e9sgE%[email protected]/
[...]
Applied, thanks!
[1/1] arm64: dts: rockchip: add Hynitron cst340 for Anbernic 353 series
commit: 31a47014902d7fe1da9028336b6f189648ec28ac
Best regards,
Signature · 1 line
Heiko Stuebner <[email protected]>