@@ -9,13 +9,11 @@ title: Maxim MAX17201 fuel gauge
maintainers:
- Dimitri Fedrau <dima.fedrau@gmail.com>
-allOf:
- - $ref: power-supply.yaml#
-
properties:
compatible:
oneOf:
- const: maxim,max17201
+ - const: maxim,max77759-fg
- items:
- enum:
- maxim,max17205
@@ -39,6 +37,36 @@ required:
- reg
- reg-names
+allOf:
+ - $ref: power-supply.yaml#
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - maxim,max17201
+ then:
+ properties:
+ reg:
+ minItems: 2
+ maxItems: 2
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - maxim,max77759-fg
+ then:
+ properties:
+ reg:
+ items:
+ minItems: 1
+ maxItems: 1
+ shunt-resistor-micro-ohms:
+ description: The value of current sense resistor in microohms.
+ required:
+ - shunt-resistor-micro-ohms
+
unevaluatedProperties: false
examples: