dt-bindings: rtc: abx80x: Improve checks on trickle charger constraints
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 5 Mar 2024 08:09:44 +0000 (10:09 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 8 Mar 2024 11:03:18 +0000 (12:03 +0100)
commit32a6be0858356190ac3bce4b75693549e1da2f16
treeef0dc484759dac5884b77ee4adb6ec1665c077ca
parent1e60ac6b8b571be31d5bfe3dae08f384a720b1e5
dt-bindings: rtc: abx80x: Improve checks on trickle charger constraints

The abracon,tc-diode and abracon,tc-resistor DT properties are only
valid for the ABx0804 and ABx0805. Furthermore, they must both be
present, or neither of them must be specified. Add rules to check this.

The generic abracon,abx08x compatible string doesn't indicate which chip
variant is used, but performs auto-detection at runtime. It must this
also allow the two above properties.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20240305080944.17991-1-laurent.pinchart@ideasonboard.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Documentation/devicetree/bindings/rtc/abracon,abx80x.yaml