Skip to content

Commit 61f19f6

Browse files
smaeuldtor
authored andcommitted
dt-bindings: input: sun4i-lradc-keys: Add R329 and D1 compatibles
The R329 and D1 SoCs each contain an LRADC with a programming interface compatible to earlier LRADCs. However, the LRADC now has its own clock gate and reset line, instead of being always active. To support this, add clock/reset properties to the binding, and require them for the variant in the new SoCs. Acked-by: Maxime Ripard <maxime@cerno.tech> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Samuel Holland <samuel@sholland.org> Link: https://lore.kernel.org/r/20220414002349.24332-1-samuel@sholland.org Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent b243018 commit 61f19f6

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Documentation/devicetree/bindings/input/allwinner,sun4i-a10-lradc-keys.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,20 @@ properties:
1818
- items:
1919
- const: allwinner,sun50i-a64-lradc
2020
- const: allwinner,sun8i-a83t-r-lradc
21+
- const: allwinner,sun50i-r329-lradc
22+
- items:
23+
- const: allwinner,sun20i-d1-lradc
24+
- const: allwinner,sun50i-r329-lradc
2125

2226
reg:
2327
maxItems: 1
2428

29+
clocks:
30+
maxItems: 1
31+
32+
resets:
33+
maxItems: 1
34+
2535
interrupts:
2636
maxItems: 1
2737

@@ -68,6 +78,18 @@ required:
6878
- interrupts
6979
- vref-supply
7080

81+
if:
82+
properties:
83+
compatible:
84+
contains:
85+
enum:
86+
- allwinner,sun50i-r329-lradc
87+
88+
then:
89+
required:
90+
- clocks
91+
- resets
92+
7193
additionalProperties: false
7294

7395
examples:

0 commit comments

Comments
 (0)