Skip to content

Commit

Permalink
dt-bindings: rtc: isl12022: add #clock-cells property
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Villemoes authored and alexandrebelloni committed Aug 15, 2023
1 parent a11b6c4 commit ab246c8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Documentation/devicetree/bindings/rtc/intersil,isl12022.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ properties:
interrupts:
maxItems: 1

'#clock-cells':
const: 0

isil,battery-trip-levels-microvolt:
description:
The battery voltages at which the first alarm and second alarm
Expand All @@ -33,6 +36,13 @@ required:

allOf:
- $ref: rtc.yaml#
# If #clock-cells is present, interrupts must not be present
- if:
required:
- '#clock-cells'
then:
properties:
interrupts: false

unevaluatedProperties: false

Expand Down

0 comments on commit ab246c8

Please sign in to comment.