public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: input: sun4i-lradc-keys: add R329 LRADC binding
@ 2022-04-22 16:07 icenowy
  2022-04-22 21:10 ` Rob Herring
  2022-04-22 23:28 ` Samuel Holland
  0 siblings, 2 replies; 3+ messages in thread
From: icenowy @ 2022-04-22 16:07 UTC (permalink / raw)
  To: Hans de Goede, Dmitry Torokhov, Rob Herring, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Maxime Ripard
  Cc: linux-input, devicetree, linux-arm-kernel, linux-sunxi,
	linux-kernel, Icenowy Zheng

From: Icenowy Zheng <icenowy@sipeed.com>

R329 has similar LRADC with previous Allwinner SoCs, but with bus clock
and reset.

Add binding for it.

Signed-off-by: Icenowy Zheng <icenowy@sipeed.com>
---
 .../input/allwinner,sun4i-a10-lradc-keys.yaml | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/Documentation/devicetree/bindings/input/allwinner,sun4i-a10-lradc-keys.yaml b/Documentation/devicetree/bindings/input/allwinner,sun4i-a10-lradc-keys.yaml
index d74f2002409e..e16f01510ea7 100644
--- a/Documentation/devicetree/bindings/input/allwinner,sun4i-a10-lradc-keys.yaml
+++ b/Documentation/devicetree/bindings/input/allwinner,sun4i-a10-lradc-keys.yaml
@@ -15,6 +15,7 @@ properties:
     oneOf:
       - const: allwinner,sun4i-a10-lradc-keys
       - const: allwinner,sun8i-a83t-r-lradc
+      - const: allwinner,sun50i-r329-lradc
       - items:
           - const: allwinner,sun50i-a64-lradc
           - const: allwinner,sun8i-a83t-r-lradc
@@ -31,6 +32,26 @@ properties:
 
   wakeup-source: true
 
+if:
+  properties:
+    compatible:
+      const: allwinner,sun50i-r329-lradc
+then:
+  properties:
+    clocks:
+      description:
+        Bus clock gate for LRADC.
+      maxItems: 1
+
+    resets:
+      description:
+        Bus reset for LRADC.
+      maxItems: 1
+
+    required:
+      - clocks
+      - resets
+
 patternProperties:
   "^button-[0-9]+$":
     type: object
-- 
2.35.1


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

end of thread, other threads:[~2022-04-22 23:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-22 16:07 [PATCH 1/2] dt-bindings: input: sun4i-lradc-keys: add R329 LRADC binding icenowy
2022-04-22 21:10 ` Rob Herring
2022-04-22 23:28 ` Samuel Holland

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