[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <BYAPR20MB2472D625C876D97E95CB6078BCF79@BYAPR20MB2472.namprd20.prod.outlook.com>
Date: Sat, 23 Apr 2022 00:07:43 +0800
From: icenowy@...look.com
To: Hans de Goede <hdegoede@...hat.com>,
Dmitry Torokhov <dmitry.torokhov@...il.com>,
Rob Herring <robh+dt@...nel.org>, Chen-Yu Tsai <wens@...e.org>,
Jernej Skrabec <jernej.skrabec@...il.com>,
Samuel Holland <samuel@...lland.org>,
Maxime Ripard <mripard@...nel.org>
Cc: linux-input@...r.kernel.org, devicetree@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-sunxi@...ts.linux.dev,
linux-kernel@...r.kernel.org, Icenowy Zheng <icenowy@...eed.com>
Subject: [PATCH 1/2] dt-bindings: input: sun4i-lradc-keys: add R329 LRADC binding
From: Icenowy Zheng <icenowy@...eed.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@...eed.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
Powered by blists - more mailing lists