# SPDX-License-Identifier: BSD-2-Clause # Copyright 2018 Linaro Ltd. # Copyright 2021 Arm Ltd. %YAML 1.2 --- $id: http://devicetree.org/schemas/simple-bus.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: simple-bus nodes description: Common simple-bus binding maintainers: - Rob Herring properties: $nodename: pattern: "^([a-z][a-z0-9\\-]+-bus|bus|localbus|soc|axi|ahb|apb)(@.+)?$" compatible: contains: const: simple-bus ranges: true dma-ranges: true "#address-cells": enum: [ 1, 2 ] "#size-cells": enum: [ 1, 2 ] nonposted-mmio: $ref: /schemas/types.yaml#/definitions/flag description: If present, specifies that direct children of this bus should use non-posted memory accesses (i.e. a non-posted mapping mode) for MMIO ranges. patternProperties: # All other properties should be child nodes with unit-address and 'reg' "@(0|[1-9a-f][0-9a-f]*)$": type: object additionalProperties: true properties: reg: items: minItems: 2 maxItems: 4 minItems: 1 maxItems: 1024 ranges: oneOf: - items: minItems: 3 maxItems: 7 minItems: 1 maxItems: 1024 - $ref: types.yaml#/definitions/flag anyOf: - required: - reg - required: - ranges additionalProperties: description: Anything else must be a property or have empty 'ranges'. An empty 'ranges' is only appropriate if the child node is another 'simple-bus' or similar. if: type: object then: properties: ranges: type: boolean required: - ranges required: - compatible - "#address-cells" - "#size-cells" - ranges