From c84ccde22d9d3070a9ee144e825270a7a784c570 Mon Sep 17 00:00:00 2001 From: Vincent Cloutier Date: Sun, 26 Jul 2026 21:13:09 -0400 Subject: [PATCH] dt-bindings: power: supply: max17042: Allow generic power-supply properties The MAX17042 family binding references the generic power-supply schema, but additionalProperties only recognizes properties declared directly by this schema. Use unevaluatedProperties so generic properties such as monitored-battery are accepted while unknown properties remain rejected. Remove the local power-supplies declaration because it is already inherited from power-supply.yaml. Assisted-by: OpenCode:gpt-5.6-sol Signed-off-by: Vincent Cloutier Reviewed-by: Krzysztof Kozlowski Link: https://patch.msgid.link/20260727011319.621794-12-vincent.cloutier@icloud.com Signed-off-by: Sebastian Reichel --- .../devicetree/bindings/power/supply/maxim,max17042.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/power/supply/maxim,max17042.yaml b/Documentation/devicetree/bindings/power/supply/maxim,max17042.yaml index 242b33f2bcba..b2e5ddc5c580 100644 --- a/Documentation/devicetree/bindings/power/supply/maxim,max17042.yaml +++ b/Documentation/devicetree/bindings/power/supply/maxim,max17042.yaml @@ -67,13 +67,11 @@ properties: Voltage threshold to report battery as over voltage (in mV). Default is not to report over-voltage events. - power-supplies: true - required: - compatible - reg -additionalProperties: false +unevaluatedProperties: false examples: - |