linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/2] dt-bindings: input: sun4i-lradc-keys: Add A64 compatible
@ 2019-06-04 17:21 Luca Weiss
  2019-06-04 17:21 ` [PATCH v2 2/2] arm64: dts: allwinner: a64: Add lradc node Luca Weiss
  0 siblings, 1 reply; 3+ messages in thread
From: Luca Weiss @ 2019-06-04 17:21 UTC (permalink / raw)
  Cc: Luca Weiss, Hans de Goede, Dmitry Torokhov, Rob Herring,
	Mark Rutland, Maxime Ripard, Chen-Yu Tsai,
	open list:SUN4I LOW RES ADC ATTACHED TABLET KEYS DRIVER,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	moderated list:ARM/Allwinner sunXi SoC support, open list,
	~martijnbraam/pmos-upstream

Add the A64 compatible with a fallback to the A83T compatible.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
---
Changes from v1:
 - New patch. Document new compatible string.

 Documentation/devicetree/bindings/input/sun4i-lradc-keys.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/input/sun4i-lradc-keys.txt b/Documentation/devicetree/bindings/input/sun4i-lradc-keys.txt
index 496125c6bfb7..507b737612ea 100644
--- a/Documentation/devicetree/bindings/input/sun4i-lradc-keys.txt
+++ b/Documentation/devicetree/bindings/input/sun4i-lradc-keys.txt
@@ -5,6 +5,7 @@ Required properties:
  - compatible: should be one of the following string:
 		"allwinner,sun4i-a10-lradc-keys"
 		"allwinner,sun8i-a83t-r-lradc"
+		"allwinner,sun50i-a64-lradc", "allwinner,sun8i-a83t-r-lradc"
  - reg: mmio address range of the chip
  - interrupts: interrupt to which the chip is connected
  - vref-supply: powersupply for the lradc reference voltage
-- 
2.21.0


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

* [PATCH v2 2/2] arm64: dts: allwinner: a64: Add lradc node
  2019-06-04 17:21 [PATCH v2 1/2] dt-bindings: input: sun4i-lradc-keys: Add A64 compatible Luca Weiss
@ 2019-06-04 17:21 ` Luca Weiss
  2019-06-05 11:52   ` Maxime Ripard
  0 siblings, 1 reply; 3+ messages in thread
From: Luca Weiss @ 2019-06-04 17:21 UTC (permalink / raw)
  Cc: Luca Weiss, Hans de Goede, Dmitry Torokhov, Rob Herring,
	Mark Rutland, Maxime Ripard, Chen-Yu Tsai,
	open list:SUN4I LOW RES ADC ATTACHED TABLET KEYS DRIVER,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	moderated list:ARM/Allwinner sunXi SoC support, open list,
	~martijnbraam/pmos-upstream

Add a node describing the KEYADC on the A64.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
---
Changes since v1:
 - Use a a64 compatible with a fallback to the a83t one (the A64 also
   uses a 3/4 voltage divider, as is the case with the A83T)
 - Correct the reg property (size 0x100 => 0x400)

 arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
index 8c5b521e6389..ba0ab1045e00 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
@@ -730,6 +730,14 @@
 			status = "disabled";
 		};
 
+		lradc: lradc@1c21800 {
+			compatible = "allwinner,sun50i-a64-lradc",
+				     "allwinner,sun8i-a83t-r-lradc";
+			reg = <0x01c21800 0x400>;
+			interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
+			status = "disabled";
+		};
+
 		i2s0: i2s@1c22000 {
 			#sound-dai-cells = <0>;
 			compatible = "allwinner,sun50i-a64-i2s",
-- 
2.21.0


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

* Re: [PATCH v2 2/2] arm64: dts: allwinner: a64: Add lradc node
  2019-06-04 17:21 ` [PATCH v2 2/2] arm64: dts: allwinner: a64: Add lradc node Luca Weiss
@ 2019-06-05 11:52   ` Maxime Ripard
  0 siblings, 0 replies; 3+ messages in thread
From: Maxime Ripard @ 2019-06-05 11:52 UTC (permalink / raw)
  To: Luca Weiss
  Cc: Hans de Goede, Dmitry Torokhov, Rob Herring, Mark Rutland,
	Chen-Yu Tsai,
	open list:SUN4I LOW RES ADC ATTACHED TABLET KEYS DRIVER,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	moderated list:ARM/Allwinner sunXi SoC support, open list,
	~martijnbraam/pmos-upstream

[-- Attachment #1: Type: text/plain, Size: 269 bytes --]

On Tue, Jun 04, 2019 at 07:21:54PM +0200, Luca Weiss wrote:
> Add a node describing the KEYADC on the A64.
>
> Signed-off-by: Luca Weiss <luca@z3ntu.xyz>

Applied both, thanks

Maxime

--
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

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

end of thread, other threads:[~2019-06-05 11:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-04 17:21 [PATCH v2 1/2] dt-bindings: input: sun4i-lradc-keys: Add A64 compatible Luca Weiss
2019-06-04 17:21 ` [PATCH v2 2/2] arm64: dts: allwinner: a64: Add lradc node Luca Weiss
2019-06-05 11:52   ` Maxime Ripard

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).