Skip to contentSkip to conversation

arm64: dts: rockchip: add adc joystick to Odroid Go Advance

PATCH Applied Heiko Stuebner 1 participant 3 messages Jul 3, 2020 – Nov 8, 2020

Subsystems (2)
lore
Share & tools
lore

Heiko Stuebner

author maintainer
#0 lore raw

PATCH 1/1 arm64: dts: rockchip: add adc joystick to Odroid Go Advance

From: Heiko Stuebner <[email protected]>

Add the now usable adc-joystick node that describes the analog joystick connected to two saradc channels from the rk3326 soc.

---
This still needs the iio-joystick driver to get merged first. See http://lore.kernel.org/r/[email protected]

 .../boot/dts/rockchip/rk3326-odroid-go2.dts   | 24 +++++++++++++++++++
 1 file changed, 24 insertions(+)
arch/arm64/boot/dts/rockchip/rk3326-odroid-go2.dts +24 -0
index b3a8f936578f..91b6d1a1839d 100644
@@ -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";
Signature · 1 line
2.26.2
author maintainer Applied
#1 lore raw
Quoted 2 lines · Heiko Stuebner

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,

Signature · 1 line
Heiko Stuebner <[email protected]>
author maintainer
#2 lore raw

Am Sonntag, 8. November 2020, 01:31:19 CET schrieb Heiko Stuebner:

Quoted 8 lines · Heiko Stuebner
Quoted 2 lines

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

Quoted 3 lines

Best regards,