Skip to content

Commit 24245b9

Browse files
michalpiekosjic23
authored andcommitted
dt-bindings: iio: adc: Add GPADC for Allwinner A523
Add support for the GPADC for the Allwinner A523. It differs from the D1/T113s/R329/T507 by having two clocks. Acked-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Michal Piekos <michal.piekos@mmpsystems.pl> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
1 parent 9ad241c commit 24245b9

1 file changed

Lines changed: 31 additions & 1 deletion

File tree

Documentation/devicetree/bindings/iio/adc/allwinner,sun20i-d1-gpadc.yaml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ properties:
1414
oneOf:
1515
- enum:
1616
- allwinner,sun20i-d1-gpadc
17+
- allwinner,sun55i-a523-gpadc
1718
- items:
1819
- enum:
1920
- allwinner,sun50i-h616-gpadc
@@ -29,7 +30,12 @@ properties:
2930
const: 0
3031

3132
clocks:
32-
maxItems: 1
33+
minItems: 1
34+
maxItems: 2
35+
36+
clock-names:
37+
minItems: 1
38+
maxItems: 2
3339

3440
interrupts:
3541
maxItems: 1
@@ -40,6 +46,30 @@ properties:
4046
resets:
4147
maxItems: 1
4248

49+
allOf:
50+
- if:
51+
properties:
52+
compatible:
53+
enum:
54+
- allwinner,sun55i-a523-gpadc
55+
then:
56+
properties:
57+
clocks:
58+
items:
59+
- description: Bus clock
60+
- description: Module clock
61+
clock-names:
62+
items:
63+
- const: bus
64+
- const: mod
65+
required:
66+
- clock-names
67+
else:
68+
properties:
69+
clocks:
70+
maxItems: 1
71+
clock-names: false
72+
4373
patternProperties:
4474
"^channel@[0-9a-f]+$":
4575
$ref: adc.yaml

0 commit comments

Comments
 (0)