Message ID | 20250421-b4-gs101_max77759_fg-v3-3-50cd8caf9017@uclouvain.be |
---|---|
State | New |
Headers | show |
Series | Google Pixel 6 (oriole): max77759 fuel gauge enablement and driver support | expand |
On 23/04/2025 10:05, Thomas Antoine wrote: > On 4/22/25 12:05, Krzysztof Kozlowski wrote: >> On Mon, Apr 21, 2025 at 08:13:34PM GMT, Thomas Antoine wrote: >>> +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 >> If there is going to be resend, drop minItems. >> > Will drop it in v4. > One more thing - your reg-names are now incorrectly constrained - where are their constraints? You need to test your bindings and DTS before you post. If by any chance community robots found more issues (e.g. you sent something untested), you should address it. Best regards, Krzysztof
diff --git a/Documentation/devicetree/bindings/power/supply/maxim,max17201.yaml b/Documentation/devicetree/bindings/power/supply/maxim,max17201.yaml index fe3dd9bd5585618e45220c51023391a5b21acfd2..4823021ff16b170db83abd0b974986a307c05089 100644 --- a/Documentation/devicetree/bindings/power/supply/maxim,max17201.yaml +++ b/Documentation/devicetree/bindings/power/supply/maxim,max17201.yaml @@ -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: