summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2023-06-15 12:58:25 +0200
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2023-08-16 01:27:01 +0200
commitab246c897be0bdf981f776399ca62b5ec4b8138f (patch)
treed43dff1a2366777127a52d74c74f3bc9b5c36c09 /Documentation/devicetree
parentrtc: isl12022: trigger battery level detection during probe (diff)
downloadlinux-ab246c897be0bdf981f776399ca62b5ec4b8138f.tar.xz
linux-ab246c897be0bdf981f776399ca62b5ec4b8138f.zip
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 <linux@rasmusvillemoes.dk> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20230615105826.411953-8-linux@rasmusvillemoes.dk Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'Documentation/devicetree')
-rw-r--r--Documentation/devicetree/bindings/rtc/intersil,isl12022.yaml10
1 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/rtc/intersil,isl12022.yaml b/Documentation/devicetree/bindings/rtc/intersil,isl12022.yaml
index 3c6c07aaa78f..c2d1441ef273 100644
--- a/Documentation/devicetree/bindings/rtc/intersil,isl12022.yaml
+++ b/Documentation/devicetree/bindings/rtc/intersil,isl12022.yaml
@@ -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
@@ -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