[PATCH v6 09/10 RESEND] dt-bindings: power: supply: rt5033-battery: Apply unevaluatedProperties

Jakob Hauser posted 10 patches 2 years, 7 months ago
[PATCH v6 09/10 RESEND] dt-bindings: power: supply: rt5033-battery: Apply unevaluatedProperties
Posted by Jakob Hauser 2 years, 7 months ago
Additionally to the already available ref "power-supply.yaml", replace
"additionalProperties: false" by "unevaluatedProperties: false". Otherwise,
when referencing rt5033-battery in an example, message "'power-supplies' does
not match any of the regexes: 'pinctrl-[0-9]+'" will be returned.

Signed-off-by: Jakob Hauser <jahau@rocketmail.com>
---
 .../bindings/power/supply/richtek,rt5033-battery.yaml           | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/power/supply/richtek,rt5033-battery.yaml b/Documentation/devicetree/bindings/power/supply/richtek,rt5033-battery.yaml
index 756c16d1727d..b5d8888d03d2 100644
--- a/Documentation/devicetree/bindings/power/supply/richtek,rt5033-battery.yaml
+++ b/Documentation/devicetree/bindings/power/supply/richtek,rt5033-battery.yaml
@@ -26,7 +26,7 @@ required:
   - compatible
   - reg
 
-additionalProperties: false
+unevaluatedProperties: false
 
 examples:
   - |
-- 
2.39.2
Re: [PATCH v6 09/10 RESEND] dt-bindings: power: supply: rt5033-battery: Apply unevaluatedProperties
Posted by Conor Dooley 2 years, 7 months ago
On Mon, May 15, 2023 at 10:57:18PM +0200, Jakob Hauser wrote:
> Additionally to the already available ref "power-supply.yaml", replace
> "additionalProperties: false" by "unevaluatedProperties: false". Otherwise,
> when referencing rt5033-battery in an example, message "'power-supplies' does
> not match any of the regexes: 'pinctrl-[0-9]+'" will be returned.
> 
> Signed-off-by: Jakob Hauser <jahau@rocketmail.com>

Acked-by: Conor Dooley <conor.dooley@microchip.com>

Thanks,
Conor.
Re: [PATCH v6 09/10 RESEND] dt-bindings: power: supply: rt5033-battery: Apply unevaluatedProperties
Posted by Sebastian Reichel 2 years, 7 months ago
Hi,

On Mon, May 15, 2023 at 10:57:18PM +0200, Jakob Hauser wrote:
> Additionally to the already available ref "power-supply.yaml", replace
> "additionalProperties: false" by "unevaluatedProperties: false". Otherwise,
> when referencing rt5033-battery in an example, message "'power-supplies' does
> not match any of the regexes: 'pinctrl-[0-9]+'" will be returned.
> 
> Signed-off-by: Jakob Hauser <jahau@rocketmail.com>

Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com>

-- Sebastian

> ---
>  .../bindings/power/supply/richtek,rt5033-battery.yaml           | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/power/supply/richtek,rt5033-battery.yaml b/Documentation/devicetree/bindings/power/supply/richtek,rt5033-battery.yaml
> index 756c16d1727d..b5d8888d03d2 100644
> --- a/Documentation/devicetree/bindings/power/supply/richtek,rt5033-battery.yaml
> +++ b/Documentation/devicetree/bindings/power/supply/richtek,rt5033-battery.yaml
> @@ -26,7 +26,7 @@ required:
>    - compatible
>    - reg
>  
> -additionalProperties: false
> +unevaluatedProperties: false
>  
>  examples:
>    - |
> -- 
> 2.39.2
>