All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: arm: vexpress-config: Drop ineffective label limits
@ 2026-11-04 14:44 Sudeep Holla
  2026-11-04 14:52 ` sashiko-bot
  2026-11-04 23:35 ` Conor Dooley
  0 siblings, 2 replies; 3+ messages in thread
From: Sudeep Holla @ 2026-11-04 14:44 UTC (permalink / raw)
  To: devicetree; +Cc: Sudeep Holla, Andre Przywara, Rob Herring, Sashiko

The core Devicetree schema defines label as a scalar string. The
vexpress-config regulator, amp, temp, power and energy child schemas
apply maxItems: 1 to label. This keyword constrains arrays and has no
effect on a string value.

Remove these ineffective constraints from the child schemas.

Reported-by: Sashiko <sashiko-bot@kernel.org>
Closes: https://sashiko.dev/#/bug/linux-3b655691-26dd-4398-a647-eb878395b929
Signed-off-by: Sudeep Holla <sudeep.holla@kernel.org>
---
 .../devicetree/bindings/arm/vexpress-config.yaml  | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/Documentation/devicetree/bindings/arm/vexpress-config.yaml b/Documentation/devicetree/bindings/arm/vexpress-config.yaml
index b04e8e052181..2d4eff19292b 100644
--- a/Documentation/devicetree/bindings/arm/vexpress-config.yaml
+++ b/Documentation/devicetree/bindings/arm/vexpress-config.yaml
@@ -154,9 +154,6 @@ additionalProperties: false
           - const: 2
           - description: device number
 
-      label:
-        maxItems: 1
-
     unevaluatedProperties: false
     required:
       - compatible
@@ -175,9 +172,6 @@ additionalProperties: false
           - const: 3
           - description: device number
 
-      label:
-        maxItems: 1
-
     additionalProperties: false
     required:
       - compatible
@@ -196,9 +190,6 @@ additionalProperties: false
           - const: 4
           - description: device number
 
-      label:
-        maxItems: 1
-
     additionalProperties: false
     required:
       - compatible
@@ -235,9 +226,6 @@ additionalProperties: false
           - const: 12
           - description: device number
 
-      label:
-        maxItems: 1
-
     additionalProperties: false
     required:
       - compatible
@@ -262,9 +250,6 @@ additionalProperties: false
               - const: 13
               - description: second device number
 
-      label:
-        maxItems: 1
-
     additionalProperties: false
     required:
       - compatible
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] dt-bindings: arm: vexpress-config: Drop ineffective label limits
  2026-11-04 14:44 [PATCH] dt-bindings: arm: vexpress-config: Drop ineffective label limits Sudeep Holla
@ 2026-11-04 14:52 ` sashiko-bot
  2026-11-04 23:35 ` Conor Dooley
  1 sibling, 0 replies; 3+ messages in thread
From: sashiko-bot @ 2026-11-04 14:52 UTC (permalink / raw)
  To: Sudeep Holla, devicetree; +Cc: robh, conor+dt

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dt-bindings: arm: vexpress-config: removing label disallows valid DT property
--

commit 4a11da8feaabaee63d050894e37aa89a526904b2
Author: Sudeep Holla <sudeep.holla@kernel.org>

dt-bindings: arm: vexpress-config: Drop ineffective label limits

This commit removes the label property definitions with maxItems: 1 from
the regulator, amp, temp, power, and energy child node schemas in
Documentation/devicetree/bindings/arm/vexpress-config.yaml.

> diff --git a/Documentation/devicetree/bindings/arm/vexpress-config.yaml b/Documentation/devicetree/bindings/arm/vexpress-config.yaml
> index b04e8e0521815..2d4eff19292b8 100644
> --- a/Documentation/devicetree/bindings/arm/vexpress-config.yaml
> +++ b/Documentation/devicetree/bindings/arm/vexpress-config.yaml
> @@ -154,9 +154,6 @@ patternProperties:
>            - const: 2
>            - description: device number
>  
> -      label:
> -        maxItems: 1
> -
>      unevaluatedProperties: false
>      required:
>        - compatible
> @@ -175,9 +172,6 @@ patternProperties:
>            - const: 3
>            - description: device number
>  
> -      label:
> -        maxItems: 1
> -
>      additionalProperties: false
>      required:
>        - compatible
> @@ -196,9 +190,6 @@ patternProperties:
>            - const: 4
>            - description: device number
>  
> -      label:
> -        maxItems: 1
> -
>      additionalProperties: false
>      required:
>        - compatible
> @@ -235,9 +226,6 @@ patternProperties:
>            - const: 12
>            - description: device number
>  
> -      label:
> -        maxItems: 1
> -
>      additionalProperties: false
>      required:
>        - compatible
> @@ -262,9 +250,6 @@ patternProperties:
>                - const: 13
>                - description: second device number
>  
> -      label:
> -        maxItems: 1
> -
>      additionalProperties: false

[Severity: Medium]
Does removing the label entries entirely instead of replacing them with
label: true disallow the label property on these child nodes and break
dtbs_check?

Although the core dtschema defines the type of label when present,
^regulator-.+$ specifies unevaluatedProperties: false (and references
/schemas/regulator/regulator.yaml#, which does not define label), while
^amp-.+$, ^temp-.+$, ^power-.+$, and ^energy(-.+)?$ specify
additionalProperties: false. Without label listed in properties, any label
property on these nodes will be rejected as an unexpected property.

In-tree Versatile Express device trees (such as
arch/arm/boot/dts/arm/vexpress-v2p-ca15-tc1.dts and
arch/arm/boot/dts/arm/vexpress-v2m.dtsi) define label on these child nodes,
and drivers/hwmon/vexpress-hwmon.c reads it in vexpress_hwmon_label_show()
and vexpress_hwmon_attr_is_visible():

    const char *label = of_get_property(dev->of_node, "label", NULL);

Should these five entries be changed to label: true so that the property
remains permitted while dropping the ineffective maxItems: 1 constraint?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261104144456.2763775-1-sudeep.holla@kernel.org?part=1

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] dt-bindings: arm: vexpress-config: Drop ineffective label limits
  2026-11-04 14:44 [PATCH] dt-bindings: arm: vexpress-config: Drop ineffective label limits Sudeep Holla
  2026-11-04 14:52 ` sashiko-bot
@ 2026-11-04 23:35 ` Conor Dooley
  1 sibling, 0 replies; 3+ messages in thread
From: Conor Dooley @ 2026-11-04 23:35 UTC (permalink / raw)
  To: Sudeep Holla; +Cc: devicetree, Andre Przywara, Rob Herring, Sashiko

[-- Attachment #1: Type: text/plain, Size: 647 bytes --]

On Wed, Nov 04, 2026 at 02:44:56PM +0000, Sudeep Holla wrote:
> The core Devicetree schema defines label as a scalar string. The
> vexpress-config regulator, amp, temp, power and energy child schemas
> apply maxItems: 1 to label. This keyword constrains arrays and has no
> effect on a string value.
> 
> Remove these ineffective constraints from the child schemas.
> 
> Reported-by: Sashiko <sashiko-bot@kernel.org>
> Closes: https://sashiko.dev/#/bug/linux-3b655691-26dd-4398-a647-eb878395b929
> Signed-off-by: Sudeep Holla <sudeep.holla@kernel.org>

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

Also, incomplete CC list?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-04 23:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-04 14:44 [PATCH] dt-bindings: arm: vexpress-config: Drop ineffective label limits Sudeep Holla
2026-11-04 14:52 ` sashiko-bot
2026-11-04 23:35 ` Conor Dooley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.