2023-05-15 21:05:47

by Jakob Hauser

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

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 <[email protected]>
---
.../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



2023-05-15 21:37:12

by Sebastian Reichel

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

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 <[email protected]>

Acked-by: Sebastian Reichel <[email protected]>

-- 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
>


Attachments:
(No filename) (1.18 kB)
signature.asc (849.00 B)
Download all attachments

2023-05-16 21:40:56

by Conor Dooley

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

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 <[email protected]>

Acked-by: Conor Dooley <[email protected]>

Thanks,
Conor.


Attachments:
(No filename) (498.00 B)
signature.asc (235.00 B)
Download all attachments