[PATCH] dt-bindings: imx: fsl,aips-bus: Ensure all properties are defined

Rob Herring (Arm) posted 1 patch 1 year ago
Documentation/devicetree/bindings/soc/imx/fsl,aips-bus.yaml | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
[PATCH] dt-bindings: imx: fsl,aips-bus: Ensure all properties are defined
Posted by Rob Herring (Arm) 1 year ago
Device specific schemas should not allow undefined properties which is
what 'additionalProperties: true' allows. Add a reference to
simple-bus.yaml which has the additional properties used, and fix this
constraint.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
---
 Documentation/devicetree/bindings/soc/imx/fsl,aips-bus.yaml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/soc/imx/fsl,aips-bus.yaml b/Documentation/devicetree/bindings/soc/imx/fsl,aips-bus.yaml
index 80d99861fec5..70a4af650110 100644
--- a/Documentation/devicetree/bindings/soc/imx/fsl,aips-bus.yaml
+++ b/Documentation/devicetree/bindings/soc/imx/fsl,aips-bus.yaml
@@ -22,6 +22,9 @@ select:
   required:
     - compatible
 
+allOf:
+  - $ref: /schemas/simple-bus.yaml#
+
 properties:
   compatible:
     items:
@@ -35,7 +38,7 @@ required:
   - compatible
   - reg
 
-additionalProperties: true
+unevaluatedProperties: false
 
 examples:
   - |
-- 
2.47.2
Re: [PATCH] dt-bindings: imx: fsl,aips-bus: Ensure all properties are defined
Posted by Rob Herring (Arm) 12 months ago
On Mon, 03 Feb 2025 15:30:26 -0600, Rob Herring (Arm) wrote:
> Device specific schemas should not allow undefined properties which is
> what 'additionalProperties: true' allows. Add a reference to
> simple-bus.yaml which has the additional properties used, and fix this
> constraint.
> 
> Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
> ---
>  Documentation/devicetree/bindings/soc/imx/fsl,aips-bus.yaml | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 

Applied, thanks!
Re: [PATCH] dt-bindings: imx: fsl,aips-bus: Ensure all properties are defined
Posted by Conor Dooley 1 year ago
On Mon, Feb 03, 2025 at 03:30:26PM -0600, Rob Herring (Arm) wrote:
> Device specific schemas should not allow undefined properties which is
> what 'additionalProperties: true' allows. Add a reference to
> simple-bus.yaml which has the additional properties used, and fix this
> constraint.
> 
> Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

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