Message ID | 20230612113059.247275-8-linux@rasmusvillemoes.dk |
---|---|
State | Superseded |
Headers | show |
Series | rtc: isl12022: battery backup voltage and clock support | expand |
On 12/06/2023 13:30, Rasmus Villemoes wrote: > 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> > --- > + > isil,trip-level85-microvolt: > description: | > The battery voltage at which the first alarm should trigger > @@ -35,6 +38,13 @@ required: > - compatible > - reg > > +if: > + properties: > + '#clock-cells' > +then: > + properties: > + interrupts: false https://elixir.bootlin.com/linux/v6.2-rc3/source/Documentation/devicetree/bindings/net/qcom,ipa.yaml#L174 Best regards, Krzysztof
diff --git a/Documentation/devicetree/bindings/rtc/intersil,isl12022.yaml b/Documentation/devicetree/bindings/rtc/intersil,isl12022.yaml index 1e85a9c8945b..345abed9234f 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,trip-level85-microvolt: description: | The battery voltage at which the first alarm should trigger @@ -35,6 +38,13 @@ required: - compatible - reg +if: + properties: + '#clock-cells' +then: + properties: + interrupts: false + unevaluatedProperties: false examples:
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> --- I've tried to express the fact that the pin can either be used for interrupts or as a clock source, so that at most one of "interrupts" and "#clock-cells" can be present, but I don't really have any idea if this is the proper way to do that. .../devicetree/bindings/rtc/intersil,isl12022.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+)