public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] arm64: dts: allwinner: H616: Add LRADC
@ 2024-04-26  9:29 James McGregor
  2024-04-26  9:29 ` [PATCH v2 1/2] dt-bindings: input: sun4i-lradc-keys: Add H616 compatible James McGregor
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: James McGregor @ 2024-04-26  9:29 UTC (permalink / raw)
  To: Hans de Goede, Dmitry Torokhov, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Andre Przywara
  Cc: linux-input, devicetree, linux-arm-kernel, linux-sunxi

Version 2 moves the LRADC DT node to the right place. It was out of
order before.

The Allwinner H616 series of SoCs have a low-rate ADC (LRADC) with
6-bit resolution and one input channel. They're compatible with the
existing drivers, so it only needs to be enabled in the DT.

Add an LRADC node to the H616 .dtsi, so board DTs can use them by
adding 'status = "okay";'.

This was tested on an OrangePi Zero 2W by attaching an expansion board
with two key buttons connected to the LRADC, and adding them to the DT.
/dev/input/event0 then properly reported the button presses. The patches
are based off sunxi/for-next.

James McGregor (2):
  dt-bindings: input: sun4i-lradc-keys: Add H616 compatible
  ARM: dts: sun50i: Add LRADC node

 .../bindings/input/allwinner,sun4i-a10-lradc-keys.yaml |  4 +++-
 arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi         | 10 ++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

-- 
2.34.1



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-05-28 16:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-26  9:29 [PATCH v2 0/2] arm64: dts: allwinner: H616: Add LRADC James McGregor
2024-04-26  9:29 ` [PATCH v2 1/2] dt-bindings: input: sun4i-lradc-keys: Add H616 compatible James McGregor
2024-04-26 15:36   ` Rob Herring
2024-04-26  9:29 ` [PATCH v2 2/2] ARM: dts: sun50i: Add LRADC node James McGregor
2024-04-26 14:20   ` Jernej Škrabec
2024-05-28 15:42 ` [PATCH v2 0/2] arm64: dts: allwinner: H616: Add LRADC Chen-Yu Tsai
2024-05-28 16:18   ` Chen-Yu Tsai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox