]> www.infradead.org Git - users/hch/misc.git/commitdiff
dt-bindings: bus: renesas-bsc: allow additional properties
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 9 Oct 2025 18:34:53 +0000 (20:34 +0200)
committerRob Herring (Arm) <robh@kernel.org>
Fri, 10 Oct 2025 18:51:15 +0000 (13:51 -0500)
Allow additional properties to enable devices attached to the bus.
Fixes warnings like these:

arch/arm/boot/dts/renesas/sh73a0-kzm9g.dtb: bus@fec10000 (renesas,bsc-sh73a0): Unevaluated properties are not allowed ('ethernet@10000000' was unexpected)
arch/arm/boot/dts/renesas/r8a73a4-ape6evm.dtb: bus@fec10000 (renesas,bsc-r8a73a4): Unevaluated properties are not allowed ('ethernet@8000000', 'flash@0' were unexpected)

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Documentation/devicetree/bindings/bus/renesas,bsc.yaml

index f53a37785413501103c9efe2f5715823429504dc..ff3c78317d28334617ef99e1b6046bcce6a34716 100644 (file)
@@ -41,6 +41,18 @@ properties:
   interrupts:
     maxItems: 1
 
+patternProperties:
+  # All other properties should be child nodes with unit-address and 'reg'
+  "@[0-9a-f]+$":
+    type: object
+    additionalProperties: true
+    properties:
+      reg:
+        maxItems: 1
+
+    required:
+      - reg
+
 required:
   - reg