[PATCH 1/2] dt-bindings: input: sun4i-lradc-keys: add R329 LRADC binding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Icenowy Zheng <icenowy@xxxxxxxxxx>

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

Add binding for it.

Signed-off-by: Icenowy Zheng <icenowy@xxxxxxxxxx>
---
 .../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




[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux