mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-02 16:44:59 +00:00

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> Acked-by: Peng Fan <peng.fan@nxp.com> Link: https://lore.kernel.org/r/20250203213027.8284-1-robh@kernel.org
53 lines
948 B
YAML
53 lines
948 B
YAML
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/soc/imx/fsl,aips-bus.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: i.MX AHB to IP Bridge
|
|
|
|
maintainers:
|
|
- Peng Fan <peng.fan@nxp.com>
|
|
|
|
description: |
|
|
This particular peripheral is designed as the bridge between
|
|
AHB bus and peripherals with the lower bandwidth IP Slave (IPS)
|
|
buses.
|
|
|
|
select:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
const: fsl,aips-bus
|
|
required:
|
|
- compatible
|
|
|
|
allOf:
|
|
- $ref: /schemas/simple-bus.yaml#
|
|
|
|
properties:
|
|
compatible:
|
|
items:
|
|
- const: fsl,aips-bus
|
|
- const: simple-bus
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
|
|
unevaluatedProperties: false
|
|
|
|
examples:
|
|
- |
|
|
bus@30000000 {
|
|
compatible = "fsl,aips-bus", "simple-bus";
|
|
reg = <0x30000000 0x400000>;
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
ranges;
|
|
};
|
|
...
|