[PATCH] dt-bindings: arm: nvidia,tegra20-pmc: Move fixed string property names under 'properties'

Rob Herring posted 1 patch 3 years, 9 months ago
.../devicetree/bindings/arm/tegra/nvidia,tegra20-pmc.yaml       | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] dt-bindings: arm: nvidia,tegra20-pmc: Move fixed string property names under 'properties'
Posted by Rob Herring 3 years, 9 months ago
Fixed string property names should be under 'properties' rather than
'patternProperties'. Additionally, without beginning and end of line
anchors, any prefix or suffix is allowed on the specified property names.

As all the nvidia,tegra20-pmc powergates child node properties are fixed
strings, change 'patternProperties' to 'properties'.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 .../devicetree/bindings/arm/tegra/nvidia,tegra20-pmc.yaml       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/arm/tegra/nvidia,tegra20-pmc.yaml b/Documentation/devicetree/bindings/arm/tegra/nvidia,tegra20-pmc.yaml
index 564ae6aaccf7..7fd8d47b1be4 100644
--- a/Documentation/devicetree/bindings/arm/tegra/nvidia,tegra20-pmc.yaml
+++ b/Documentation/devicetree/bindings/arm/tegra/nvidia,tegra20-pmc.yaml
@@ -208,7 +208,7 @@ properties:
       "^[a-z0-9]+$":
         type: object
 
-        patternProperties:
+        properties:
           clocks:
             minItems: 1
             maxItems: 8
-- 
2.34.1
Re: [PATCH] dt-bindings: arm: nvidia,tegra20-pmc: Move fixed string property names under 'properties'
Posted by Rob Herring 3 years, 9 months ago
On Wed, 06 Jul 2022 15:20:34 -0600, Rob Herring wrote:
> Fixed string property names should be under 'properties' rather than
> 'patternProperties'. Additionally, without beginning and end of line
> anchors, any prefix or suffix is allowed on the specified property names.
> 
> As all the nvidia,tegra20-pmc powergates child node properties are fixed
> strings, change 'patternProperties' to 'properties'.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
>  .../devicetree/bindings/arm/tegra/nvidia,tegra20-pmc.yaml       | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Applied, thanks!
Re: [PATCH] dt-bindings: arm: nvidia,tegra20-pmc: Move fixed string property names under 'properties'
Posted by Thierry Reding 3 years, 9 months ago
On Wed, Jul 06, 2022 at 03:20:34PM -0600, Rob Herring wrote:
> Fixed string property names should be under 'properties' rather than
> 'patternProperties'. Additionally, without beginning and end of line
> anchors, any prefix or suffix is allowed on the specified property names.
> 
> As all the nvidia,tegra20-pmc powergates child node properties are fixed
> strings, change 'patternProperties' to 'properties'.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
>  .../devicetree/bindings/arm/tegra/nvidia,tegra20-pmc.yaml       | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

This is part of a local patch that I have that cleans up other aspects
of this schema as well.

However, I don't know when I'll get around to send that out, so if you
want to apply this in the meantime:

Acked-by: Thierry Reding <treding@nvidia.com>