* [PATCH] arm64: dts: rockchip: add adc joystick to Odroid Go Advance
@ 2020-07-03 22:14 Heiko Stuebner
2020-11-08 0:31 ` Heiko Stuebner
0 siblings, 1 reply; 3+ messages in thread
From: Heiko Stuebner @ 2020-07-03 22:14 UTC (permalink / raw)
To: linux-rockchip; +Cc: linux-kernel, heiko, linux-arm-kernel, Heiko Stuebner
From: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
Add the now usable adc-joystick node that describes the analog
joystick connected to two saradc channels from the rk3326 soc.
Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
---
This still needs the iio-joystick driver to get merged first.
See http://lore.kernel.org/r/20200517194904.34758-1-contact@artur-rojek.eu
.../boot/dts/rockchip/rk3326-odroid-go2.dts | 24 +++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2.dts b/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2.dts
index b3a8f936578f..91b6d1a1839d 100644
--- a/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2.dts
@@ -24,6 +24,30 @@ backlight: backlight {
pwms = <&pwm1 0 25000 0>;
};
+ adc-joystick {
+ compatible = "adc-joystick";
+ io-channels = <&saradc 1>,
+ <&saradc 2>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ axis@0 {
+ reg = <0>;
+ abs-range = <172 772>;
+ abs-fuzz = <10>;
+ abs-flat = <10>;
+ linux,code = <ABS_X>;
+ };
+
+ axis@1 {
+ reg = <1>;
+ abs-range = <278 815>;
+ abs-fuzz = <10>;
+ abs-flat = <10>;
+ linux,code = <ABS_Y>;
+ };
+ };
+
gpio-keys {
compatible = "gpio-keys";
pinctrl-names = "default";
--
2.26.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] arm64: dts: rockchip: add adc joystick to Odroid Go Advance
2020-07-03 22:14 [PATCH] arm64: dts: rockchip: add adc joystick to Odroid Go Advance Heiko Stuebner
@ 2020-11-08 0:31 ` Heiko Stuebner
2020-11-08 0:32 ` Heiko Stuebner
0 siblings, 1 reply; 3+ messages in thread
From: Heiko Stuebner @ 2020-11-08 0:31 UTC (permalink / raw)
To: Heiko Stuebner, linux-rockchip
Cc: Heiko Stuebner, linux-kernel, linux-arm-kernel
On Sat, 4 Jul 2020 00:14:13 +0200, Heiko Stuebner wrote:
> Add the now usable adc-joystick node that describes the analog
> joystick connected to two saradc channels from the rk3326 soc.
Applied, thanks!
[1/1] arm64: dts: rockchip: add adc joystick to Odroid Go Advance
commit: c20e6dd9a953d62f14399dabf457dce61dd5611f
Best regards,
--
Heiko Stuebner <heiko@sntech.de>
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] arm64: dts: rockchip: add adc joystick to Odroid Go Advance
2020-11-08 0:31 ` Heiko Stuebner
@ 2020-11-08 0:32 ` Heiko Stuebner
0 siblings, 0 replies; 3+ messages in thread
From: Heiko Stuebner @ 2020-11-08 0:32 UTC (permalink / raw)
To: linux-rockchip, Heiko Stuebner; +Cc: linux-kernel, linux-arm-kernel
Am Sonntag, 8. November 2020, 01:31:19 CET schrieb Heiko Stuebner:
> On Sat, 4 Jul 2020 00:14:13 +0200, Heiko Stuebner wrote:
> > Add the now usable adc-joystick node that describes the analog
> > joystick connected to two saradc channels from the rk3326 soc.
>
> Applied, thanks!
>
> [1/1] arm64: dts: rockchip: add adc joystick to Odroid Go Advance
> commit: c20e6dd9a953d62f14399dabf457dce61dd5611f
forgot to add, I fixed the things Johans commented on when applying
>
> Best regards,
>
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-11-08 0:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-03 22:14 [PATCH] arm64: dts: rockchip: add adc joystick to Odroid Go Advance Heiko Stuebner
2020-11-08 0:31 ` Heiko Stuebner
2020-11-08 0:32 ` 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).