Skip to content

Commit ab246c8

Browse files
Villemoesalexandrebelloni
authored andcommitted
dt-bindings: rtc: isl12022: add #clock-cells property
The isl12022 has a dual-purpose irq/f_out pin, which can either be used as an interrupt or clock output. Signed-off-by: Rasmus Villemoes <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent a11b6c4 commit ab246c8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Documentation/devicetree/bindings/rtc/intersil,isl12022.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ properties:
1919
interrupts:
2020
maxItems: 1
2121

22+
'#clock-cells':
23+
const: 0
24+
2225
isil,battery-trip-levels-microvolt:
2326
description:
2427
The battery voltages at which the first alarm and second alarm
@@ -33,6 +36,13 @@ required:
3336

3437
allOf:
3538
- $ref: rtc.yaml#
39+
# If #clock-cells is present, interrupts must not be present
40+
- if:
41+
required:
42+
- '#clock-cells'
43+
then:
44+
properties:
45+
interrupts: false
3646

3747
unevaluatedProperties: false
3848

0 commit comments

Comments
 (0)