Shared binding definitions
Single-page view · as markdown
Common i2c-controller class
Peios Kernel / Hardware and drivers / Device-tree binding reference / Shared binding definitions / i2c
Schema identifier ($id): "http://devicetree.org/schemas/i2c/i2c-controller.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Rob Herring <robh@kernel.org>"
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^i2c(@.+|-[a-z0-9]+)?$"
i2c-bus — not listed as required here #
Value type (type): "object"
Shared schema rule ($ref): #
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
clock-frequency — not listed as required here #
Minimum value (minimum): 1
Maximum value (maximum): 5000000
label — not listed as required here #
true — No constraints added by this property rule.
i2c-scl-falling-time-ns — not listed as required here #
Number of nanoseconds the SCL signal takes to fall; t(f) in the I2C specification.
i2c-scl-internal-delay-ns — not listed as required here #
Number of nanoseconds the IP core additionally needs to setup SCL.
i2c-scl-rising-time-ns — not listed as required here #
Number of nanoseconds the SCL signal takes to rise; t(r) in the I2C specification.
i2c-scl-clk-low-timeout-us — not listed as required here #
Number of microseconds the clock line needs to be pulled down in order to force a waiting state.
i2c-transfer-timeout-us — not listed as required here #
Number of microseconds to wait before considering an I2C transfer has failed.
i2c-scl-has-clk-low-timeout — not listed as required here #
Value type (type): "boolean"
Indicates whether the controller implements the feature of wait induction through SCL low, with the timeout being implemented internally by the controller.
i2c-sda-falling-time-ns — not listed as required here #
Number of nanoseconds the SDA signal takes to fall; t(f) in the I2C specification.
i2c-analog-filter — not listed as required here #
Value type (type): "boolean"
Enable analog filter for i2c lines.
i2c-digital-filter — not listed as required here #
Value type (type): "boolean"
Enable digital filter for i2c lines.
i2c-digital-filter-width-ns — not listed as required here #
Width of spikes which can be filtered by digital filter (i2c-digital-filter). This width is specified in nanoseconds.
i2c-analog-filter-cutoff-frequency — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Frequency that the analog filter (i2c-analog-filter) uses to distinguish which signal to filter. Signal with higher frequency than specified will be filtered out. Only lower frequency will pass (this is applicable to a low-pass analog filter). Typical value should be above the normal i2c bus clock frequency (clock-frequency). Specified in Hz.
interrupts — not listed as required here #
If not using interrupt-names, the first interrupt will be treated as the primary interrupt for the controller.
interrupt-names — not listed as required here #
At least one of these rules must match (anyOf) #
Rule 1
This rule adds no constraints.
Rule 2
Rule for matching array elements (
contains)Generic name is "smbus_alert" for the SMBusAlert signal. Other names are left to individual bindings.
mctp-controller — not listed as required here #
Value type (type): "boolean"
Indicates that the system is accessible via this bus as an endpoint for MCTP over I2C transport.
multi-master — not listed as required here #
Value type (type): "boolean"
States that there is another controller active on this bus. The OS can use this information to adapt power management to keep the arbitration awake all the time, for example. Can not be combined with 'single-master'.
scl-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Specifies the GPIO related to SCL pin. Used for GPIO bus recovery.
sda-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Specifies the GPIO related to SDA pin. Optional for GPIO bus recovery.
single-master — not listed as required here #
Value type (type): "boolean"
States that there is no other controller active on this bus. The OS can use this information to detect a stalled bus more reliably, for example. Can not be combined with 'multi-master'.
smbalert-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Specifies the GPIO used for the SMBALERT# line. Optional.
smbus — not listed as required here #
Value type (type): "boolean"
States that additional SMBus restrictions and features apply to this bus. An example of feature is SMBusHostNotify. Examples of restrictions are more reserved addresses and timeout definitions.
smbus-alert — not listed as required here #
Value type (type): "boolean"
states that the optional SMBus-Alert feature apply to this bus.
All of these rules must match (allOf) #
Rule 1 #
This rule must not match (
not) #Required in this object (
required):"i2c-scl-clk-low-timeout-us","i2c-scl-has-clk-low-timeout"
Properties matching a name pattern (patternProperties) #
@[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
Properties and child nodes (properties) #
reg — required here
Array item rules (items)
Array item rules (
items)Item 1
Exactly one of these rules must match (
oneOf)Rule 1
Maximum value (
maximum):127Rule 2
Minimum value (
minimum):1073741824Maximum value (
maximum):1073741951Rule 3
Minimum value (
minimum):2147483648Maximum value (
maximum):2147484671Rule 4
Minimum value (
minimum):3221225472Maximum value (
maximum):3221226495
One or many I2C target addresses. These are usually 7 bit addresses. However, flags can be attached to an address. I2C_TEN_BIT_ADDRESS is used to mark a 10 bit address. It is needed to avoid the ambiguity between e.g. a 7 bit address of 0x50 and a 10 bit address of 0x050 which, in theory, can be on the same bus. Another flag is I2C_OWN_SLAVE_ADDRESS to mark addresses on which we listen to be devices ourselves.
host-notify — not listed as required here
Value type (type): "boolean"
Device uses SMBus host notify protocol instead of interrupt line. Requires being connected to an adapter that supports this feature.
interrupts — not listed as required here
If not using interrupt-names, the first interrupt will be treated as the primary interrupt for the target.
interrupt-names — not listed as required here
At least one of these rules must match (anyOf)
Rule 1
This rule adds no constraints.
Rule 2
Rule for matching array elements (
contains)Generic names are "irq" for the primary interrupt and "wakeup" for the wakeup interrupt. Other names are left to individual bindings.
wakeup-source — not listed as required here
Device can be used as a wakeup source. The device should also have "wakeup" interrupt for the device. If "wakeup" interrupt name is not present in the binding, then primary interrupt will be used as wakeup interrupt.
Required in this object (required): "reg"
Requirements triggered by another property (dependentRequired): { i2c-analog-filter-cutoff-frequency: "i2c-analog-filter", i2c-digital-filter-width-ns: "i2c-digital-filter" }
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: BSD-2-Clause
Line 2: Copyright 2018 Linaro Ltd.
Line 3: Copyright 2015,2020 Wolfram Sang <wsa@sang-engineering.com>
Line 4: Copyright 2022 Arm Ltd.
Line 102: Any name is allowed.
Line 201: Any name is allowed.
IIO Provider Common Properties
Peios Kernel / Hardware and drivers / Device-tree binding reference / Shared binding definitions / iio
Schema identifier ($id): "http://devicetree.org/schemas/iio/iio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Automatic schema selection (select) #
true
This selection rule always matches.
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
This binding describes generic properties that can be applied to an IIO device binding. As well, direct readings of channels on an IIO Device, an IIO device can provide services in the form of readings and properties for channels to consumer devices. For example, an ADC might provide 3 channels to an analog accelerometer so that an accelerometer driver can use them to read the voltages that correspond to the accelerations on the 3 axis.
Properties and child nodes (properties) #
#io-channel-cells — not listed as required here #
Allowed values (enum): 0, 1, 2
Number of cells in an IIO specifier; Typically 0 for nodes with a single IIO output and 1 for nodes with multiple IIO outputs. A few unusual devices have a 2 level mapping.
#io-backend-cells — not listed as required here #
Number of cells in an IIO backend; Typically 0 for nodes with a single backend and 1 for nodes with multiple backends.
label — not listed as required here #
Unique name to identify which IIO channel or device this is.
mount-matrix — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array
Minimum number of items (minItems): 9
Maximum number of items (maxItems): 9
3x3 matrix specifying the sensor orientation wrt to a reference plane.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
PCI Bus Common Properties
Peios Kernel / Hardware and drivers / Device-tree binding reference / Shared binding definitions / pci
Schema identifier ($id): "http://devicetree.org/schemas/pci/pci-bus-common.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/base.yaml#"
Common properties for PCI bus structure.
PCI bus bridges have standardized Device Tree bindings:
PCI Bus Binding to: IEEE Std 1275-1994 http://www.devicetree.org/open-firmware/bindings/pci/pci2_1.pdf
And for the interrupt mapping part:
Open Firmware Recommended Practice: Interrupt Mapping http://www.devicetree.org/open-firmware/practice/imap/imap0_9d.pdf
Maintainers (maintainers): "Rob Herring <robh@kernel.org>"
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^pcie?@"
ranges — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Value type (
type):"boolean"
Rule 2
Minimum number of items (
minItems):1Maximum number of items (
maxItems):32Array item rules (
items)Minimum number of items (
minItems):5Maximum number of items (
maxItems):8Array items beyond the listed positions (
additionalItems)
trueAllowed by this rule.
Array item rules (
items)Item 1
Allowed values (
enum):16777216,33554432,50331648,1107296256,1124073472,2164260864,2181038080,2197815296,3254779904,3271557120
dma-ranges — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Value type (
type):"boolean"
Rule 2
Minimum number of items (
minItems):1Maximum number of items (
maxItems):32Array item rules (
items)Minimum number of items (
minItems):5Maximum number of items (
maxItems):8Array items beyond the listed positions (
additionalItems)
trueAllowed by this rule.
Array item rules (
items)Item 1
Allowed values (
enum):33554432,50331648,1107296256,1124073472
#address-cells — required here #
Exact value (const): 3
#size-cells — required here #
Exact value (const): 2
device_type — required here #
Exact value (const): "pci"
bus-range — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 2
Array item rules (items) #
Maximum value (
maximum):255
external-facing — not listed as required here #
When present, the port is externally facing. All bridges and endpoints downstream of this port are external to the machine. The OS can, for example, use this information to identify devices that cannot be trusted with relaxed DMA protection, as users could easily attach malicious devices to this port.
Value type (type): "boolean"
#interrupt-cells — not listed as required here #
Exact value (const): 1
interrupt-map — not listed as required here #
true — No constraints added by this property rule.
interrupt-map-mask — not listed as required here #
Array item rules (items) #
Item 1
PCI high address cell
Minimum value (
minimum):0Maximum value (
maximum):65280
Item 2
PCI mid address cell
Exact value (
const):0
Item 3
PCI low address cell
Exact value (
const):0
Item 4
PCI IRQ cell
Minimum value (
minimum):0Maximum value (
maximum):7
max-link-speed — not listed as required here #
If present this property specifies PCI generation number for link capability. Host drivers could add this as a strategy to avoid unnecessary operation for unsupported link speed, for instance, trying to do training for unsupported link speed, etc.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 1, 2, 3, 4
num-lanes — not listed as required here #
The number of PCIe lanes
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 1, 2, 4, 8, 16, 32
n-fts — not listed as required here #
The number of Fast Training Sequences (N_FTS) required by the Receiver (this component) when transitioning the Link from L0s to L0; advertised during initial Link training. Each entry in the array specifies a PCIe data rate
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 5
reset-gpios — not listed as required here #
GPIO controlled connection to PERST# signal
Maximum number of items (maxItems): 1
wake-gpios — not listed as required here #
GPIO controlled connection to WAKE# signal
Maximum number of items (maxItems): 1
slot-power-limit-milliwatt — not listed as required here #
If present, specifies slot power limit in milliwatts. This property is invalid in host bridge nodes.
Maximum number of items (maxItems): 1
supports-clkreq — not listed as required here #
If present this property specifies that CLKREQ signal routing exists from root port to downstream device and host bridge drivers can do programming which depends on CLKREQ signal existence. For example, programming root port not to advertise ASPM L1 Sub-States support if there is no CLKREQ signal.
Value type (type): "boolean"
aspm-no-l0s — not listed as required here #
Disables ASPM L0s capability
Value type (type): "boolean"
aspm-no-l1 — not listed as required here #
Disables ASPM L1 capability
Value type (type): "boolean"
aspm-no-l1ss — not listed as required here #
Disables ASPM L1 PM Substates capability
Value type (type): "boolean"
aspm-l0s-entry-delay-ns — not listed as required here #
ASPM L0s entry delay
aspm-l1-entry-delay-ns — not listed as required here #
ASPM L1 entry delay
vpcie12v-supply — not listed as required here #
12v regulator phandle for the slot
vpcie1v8-supply — not listed as required here #
1.8v VIO regulator phandle for M.2 slot
vpcie3v3-supply — not listed as required here #
3.3v regulator phandle for the slot
vpcie3v3aux-supply — not listed as required here #
3.3v AUX regulator phandle for the slot
eq-presets-8gts — not listed as required here #
Contains the equalization preset values for PCIe data rates 8.0 GT/s. Each preset value is used to adjust the transmitter settings to improve signal quality and meet the electrical requirements. These preset values go in Lane Equalization Control registers (PCIe r6.0, sec 7.7.3.4).
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 16
eq-presets-16gts — not listed as required here #
Contains the equalization preset values for PCIe data rates 16.0 GT/s. Each preset value is used to adjust the transmitter settings to improve signal quality and meet the electrical requirements. These preset values go in Lane Equalization Control registers (PCIe r6.0, sec 7.7.5.9).
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 16
eq-presets-32gts — not listed as required here #
Contains the equalization preset values for PCIe data rates 32.0 GT/s. Each preset value is used to adjust the transmitter settings to improve signal quality and meet the electrical requirements. These preset values go in Lane Equalization Control registers (PCIe r6.0, sec 7.7.6.9).
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 16
eq-presets-64gts — not listed as required here #
Contains the equalization preset values for PCIe data rates 64.0 GT/s. Each preset value is used to adjust the transmitter settings to improve signal quality and meet the electrical requirements. These preset values go in Lane Equalization Control registers (PCIe r6.0, sec 7.7.7.5).
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 16
Properties matching a name pattern (patternProperties) #
@1?[0-9a-f](,[0-7])?$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): pci-device.yaml#
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Required in this object (required): "device_type", "ranges", "#address-cells", "#size-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL2.0-only OR BSD-2-Clause)
Line 2: Copyright 2018 Linaro Ltd.
Line 3: Copyright 2024 Arm Ltd.
Line 35: Should be enough
Line 57: Should be enough
Line 98: minItems: 1
Line 99: maxItems: 88 # 22 IDSEL x 4 IRQs
Line 100: items:
Line 101: minItems: 6 # 3 addr cells, 1 PCI IRQ cell, 1 phandle, 1+ parent addr and IRQ cells
Line 102: maxItems: 16
PCI Host Bridge nodes
Peios Kernel / Hardware and drivers / Device-tree binding reference / Shared binding definitions / pci
Schema identifier ($id): "http://devicetree.org/schemas/pci/pci-bus.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/base.yaml#"
For compatibility with existing references from host bridge bindings. New users should reference pci-host-bridge.yaml instead.
Maintainers (maintainers): "Rob Herring <robh@kernel.org>"
Shared schema rule ($ref): pci-host-bridge.yaml#
Properties and child nodes (properties) #
reg — not listed as required here #
true — No constraints added by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL2.0-only OR BSD-2-Clause)
Line 2: Copyright 2018 Linaro Ltd.
Line 3: Copyright 2024 Arm Ltd.
Line 21: Remove when existing users fixed
PCI Device Node Common Properties
Peios Kernel / Hardware and drivers / Device-tree binding reference / Shared binding definitions / pci
Schema identifier ($id): "http://devicetree.org/schemas/pci/pci-device.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/base.yaml#"
Common properties for PCI device nodes. Based on:
PCI Bus Binding to: IEEE Std 1275-1994 http://www.devicetree.org/open-firmware/bindings/pci/pci2_1.pdf
Maintainers (maintainers): "Rob Herring <robh@kernel.org>"
Properties and child nodes (properties) #
compatible — not listed as required here #
Rule for matching array elements (contains) #
String pattern (
pattern):"^(pci[0-9a-f]{2,4},[0-9a-f]{1,4}|pciclass,[01][0-9a-f]{3}([0-9a-f]{2})?)$"
reg — required here #
The first entry must be the configuration space. The bus number generally 0/ignored for FDT. See section 4.1.1 in PCI bus binding for further information.
Array items beyond the listed positions (additionalItems) #
true
Allowed by this rule.
Array item rules (items) #
Item 1
Configuration Space for the device
Array item rules (
items)Item 1
Maximum value (
maximum):16776960Multiple of (
multipleOf):256Item 2
Exact value (
const):0Item 3
Exact value (
const):0Item 4
Exact value (
const):0Item 5
Exact value (
const):0
interrupts-extended — not listed as required here #
Occasionally PCI devices have interrupts which are not PCI interrupts. In these cases, use "interrupts-extended" so it is not ambiguous.
interrupts — not listed as required here #
Array item rules (items) #
Item 1
Array item rules (
items)Item 1
assigned-addresses — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
vendor-id — not listed as required here #
The PCI vendor ID
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
device-id — not listed as required here #
The PCI device ID
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
wake-gpios — not listed as required here #
GPIO controlled connection to WAKE# signal
Maximum number of items (maxItems): 1
t-power-on-us — not listed as required here #
Maximum value (maximum): 3100
The minimum amount of time that each component must wait in L1.2.Exit after sampling CLKREQ# asserted before actively driving the interface to ensure no device is ever actively driving into an unpowered component. This value is based on the components and AC coupling capacitors used in the connection linking the two components (PCIe r7.0, sec 5.5.4).
Required in this object (required): "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL2.0-only OR BSD-2-Clause)
Line 2: Copyright 2018 Linaro Ltd.
Line 3: Copyright 2024 Arm Ltd.
Line 34: Should be 0xff00
Line 49: INTA, INTB, INTC, INTD
PCI Host Bridge Nodes
Peios Kernel / Hardware and drivers / Device-tree binding reference / Shared binding definitions / pci
Schema identifier ($id): "http://devicetree.org/schemas/pci/pci-host-bridge.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/base.yaml#"
Common properties for PCI host bridge nodes. PCI host bridges implement the PCI bus binding plus additional properties for mapping host resources into PCI space.
Maintainers (maintainers): "Rob Herring <robh@kernel.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):pci-bus-common.yaml#
Rule 2 #
Shared schema rule (
$ref):pci-iommu.yaml#
Properties and child nodes (properties) #
linux,pci-domain — not listed as required here #
If present this property assigns a fixed PCI domain number to a host bridge, otherwise an unstable (across boots) unique number will be assigned. It is required to either not set this property at all or set it for all host bridges in the system, otherwise potentially conflicting domain numbers may be assigned to root buses behind different host bridges. The domain number for each host bridge in the system must be unique.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
msi-map — not listed as required here #
Maps a Requester ID (AKA RID) to an MSI controller and associated msi-specifier data. Each PCI device under a root complex is uniquely identified by its Requester ID. A Requester ID is a triplet of a Bus number, Device number, and Function number. For the purpose of this document, when treated as a numeric value, a RID is formatted such that:
* Bits [15:8] are the Bus number.
* Bits [7:3] are the Device number.
* Bits [2:0] are the Function number.
* Any other bits required for padding must be zero.
MSIs may be distinguished in part through the use of sideband data accompanying writes. In the case of PCI devices, this sideband data may be derived from the Requester ID. A mechanism is required to associate a device with both the MSI controllers it can address, and the sideband data that will be associated with its writes to those controllers. Any RID r in the interval [rid-base, rid-base + length) is associated with the listed msi-controller, with the msi-specifier (r - rid-base + msi-base).
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-matrix
Array item rules (items) #
Array item rules (
items)Item 1
The RID base matched by the entry
Item 2
phandle to msi-controller node
Item 3
(optional) The msi-specifier produced for the first RID matched by the entry. Currently, msi-specifier is 0 or 1 cells.
Item 4
The length of consecutive RIDs following the RID base
msi-map-mask — not listed as required here #
A mask to be applied to each Requester ID prior to being mapped to an msi-specifier per the msi-map property.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
vendor-id — not listed as required here #
The PCI vendor ID
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
device-id — not listed as required here #
The PCI device ID
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Requirements triggered by another property (dependentRequired): { msi-map-mask: "msi-map" }
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL2.0-only OR BSD-2-Clause)
Line 2: Copyright 2018 Linaro Ltd.
Line 3: Copyright 2024 Arm Ltd.
PCI IOMMU Mapping Properties
Peios Kernel / Hardware and drivers / Device-tree binding reference / Shared binding definitions / pci
Schema identifier ($id): "http://devicetree.org/schemas/pci/pci-iommu.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
This document describes the generic device tree binding for describing the relationship between PCI(e) devices and IOMMU(s).
Each PCI(e) device under a root complex is uniquely identified by its Requester ID (AKA RID). A Requester ID is a triplet of a Bus number, Device number, and Function number.
For the purpose of this document, when treated as a numeric value, a RID is formatted such that:
* Bits [15:8] are the Bus number. * Bits [7:3] are the Device number. * Bits [2:0] are the Function number. * Any other bits required for padding must be zero.
IOMMUs may distinguish PCI devices through sideband data derived from the Requester ID. While a given PCI device can only master through one IOMMU, a root complex may split masters across a set of IOMMUs (e.g. with one IOMMU per bus).
The generic 'iommus' property is insufficient to describe this relationship, and a mechanism is required to map from a PCI device to its IOMMU and sideband data.
Maintainers (maintainers): "Rob Herring <robh@kernel.org>"
Automatic schema selection (select) #
true
This selection rule always matches.
Properties and child nodes (properties) #
iommu-map — not listed as required here #
Maps a Requester ID to an IOMMU and associated IOMMU specifier data.
The property is an arbitrary number of tuples of (rid-base, iommu, iommu-specifier, rid-length).
The length of the iommu-specifier is determined by the #iommu-cells property of the associated IOMMU node.
Any RID r in the interval [rid-base, rid-base + length) is associated with the listed IOMMU, with the IOMMU specifier (r - rid-base + iommu-base).
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-matrix
iommu-map-mask — not listed as required here #
A mask to be applied to each Requester ID prior to being mapped to an IOMMU specifier per the iommu-map property.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Maximum value (maximum): 65535
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Examples (examples) #
/ {
#address-cells = <1>;
#size-cells = <1>;
iommu: iommu@a {
reg = <0xa 0x1>;
compatible = "foo,some-iommu";
#iommu-cells = <1>;
};
pci: pci@f {
reg = <0xf 0x1>;
compatible = "foo,pcie-root-complex";
device_type = "pci";
/*
* The sideband data provided to the IOMMU is the RID,
* identity-mapped.
*/
iommu-map = <0x0 &iommu 0x0 0x10000>;
};
};
/ {
#address-cells = <1>;
#size-cells = <1>;
iommu: iommu@a {
reg = <0xa 0x1>;
compatible = "foo,some-iommu";
#iommu-cells = <1>;
};
pci: pci@f {
reg = <0xf 0x1>;
compatible = "foo,pcie-root-complex";
device_type = "pci";
/*
* The sideband data provided to the IOMMU is the RID with the
* function bits masked out.
*/
iommu-map = <0x0 &iommu 0x0 0x10000>;
iommu-map-mask = <0xfff8>;
};
};
/ {
#address-cells = <1>;
#size-cells = <1>;
iommu: iommu@a {
reg = <0xa 0x1>;
compatible = "foo,some-iommu";
#iommu-cells = <1>;
};
pci: pci@f {
reg = <0xf 0x1>;
compatible = "foo,pcie-root-complex";
device_type = "pci";
/*
* The sideband data provided to the IOMMU is the RID,
* but the high bits of the bus number are flipped.
*/
iommu-map = <0x0000 &iommu 0x8000 0x8000>,
<0x8000 &iommu 0x0000 0x8000>;
};
};
/ {
#address-cells = <1>;
#size-cells = <1>;
iommu_a: iommu@a {
reg = <0xa 0x1>;
compatible = "foo,some-iommu";
#iommu-cells = <1>;
};
iommu_b: iommu@b {
reg = <0xb 0x1>;
compatible = "foo,some-iommu";
#iommu-cells = <1>;
};
iommu_c: iommu@c {
reg = <0xc 0x1>;
compatible = "foo,some-iommu";
#iommu-cells = <1>;
};
pci: pci@f {
reg = <0xf 0x1>;
compatible = "foo,pcie-root-complex";
device_type = "pci";
/*
* Devices with bus number 0-127 are mastered via IOMMU
* a, with sideband data being RID[14:0].
* Devices with bus number 128-255 are mastered via
* IOMMU b, with sideband data being RID[14:0].
* No devices master via IOMMU c.
*/
iommu-map = <0x0000 &iommu_a 0x0000 0x8000>,
<0x8000 &iommu_b 0x0000 0x8000>;
};
};
/ {
#address-cells = <1>;
#size-cells = <1>;
iommu: iommu@a {
reg = <0xa 0x1>;
compatible = "foo,some-iommu";
#iommu-cells = <2>;
};
pci: pci@f {
reg = <0xf 0x1>;
compatible = "foo,pcie-root-complex";
device_type = "pci";
/*
* The IOMMU uses 2-cell specifiers (#iommu-cells = <2>).
* Each iommu-map entry has 5 cells:
* (rid-base, iommu, iommu-specifier[0], iommu-specifier[1], length)
* Multiple entries are supported.
*/
iommu-map = <0x0000 &iommu 0x0 0x0 0x8000>,
<0x8000 &iommu 0x0 0x1 0x8000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: BSD-2-Clause
Line 2: Copyright 2016,2022 Arm Ltd.
PCI-PCI Bridge Nodes
Peios Kernel / Hardware and drivers / Device-tree binding reference / Shared binding definitions / pci
Schema identifier ($id): "http://devicetree.org/schemas/pci/pci-pci-bridge.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/base.yaml#"
PCI-PCI Bridge nodes are both a PCI device and a PCI bus.
PCI-PCI bridges have standardized Device Tree bindings:
PCI Bus Binding to: IEEE Std 1275-1994 http://www.devicetree.org/open-firmware/bindings/pci/pci2_1.pdf
Maintainers (maintainers): "Rob Herring <robh@kernel.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):pci-device.yaml#
Rule 2 #
Shared schema rule (
$ref):pci-bus-common.yaml#
Properties and child nodes (properties) #
compatible — not listed as required here #
Rule for matching array elements (contains) #
Exact value (
const):"pciclass,0604"
port — not listed as required here #
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL2.0-only OR BSD-2-Clause)
Line 2: Copyright 2018 Linaro Ltd.
Line 3: Copyright 2024 Arm Ltd.
/reserved-memory Child Node Common
Peios Kernel / Hardware and drivers / Device-tree binding reference / Shared binding definitions / reserved-memory
Schema identifier ($id): "http://devicetree.org/schemas/reserved-memory/reserved-memory.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "devicetree-spec@vger.kernel.org"
Reserved memory is specified as a node under the /reserved-memory node. The operating system shall exclude reserved memory from normal usage one can create child nodes describing particular reserved (excluded from normal use) memory regions. Such memory regions are usually designed for the special usage by various device drivers. Each child of the reserved-memory node specifies one region of reserved memory. Each child node may either use a 'reg' property to specify a specific range of reserved memory, or a 'size' property with optional constraints to request a dynamically allocated block of memory. Following the generic-names recommended practice, node names should reflect the purpose of the node (ie. "framebuffer" or "dma-pool"). Unit address (@<address>) should be appended to the name if the node is a static allocation.
Properties and child nodes (properties) #
reg — not listed as required here #
Maximum number of items (maxItems): 1
size — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Shared schema rule (
$ref):/schemas/types.yaml#/definitions/uint32
Rule 2
Shared schema rule (
$ref):/schemas/types.yaml#/definitions/uint64
Length based on parent's \#size-cells. Size in bytes of memory to reserve.
alignment — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Shared schema rule (
$ref):/schemas/types.yaml#/definitions/uint32
Rule 2
Shared schema rule (
$ref):/schemas/types.yaml#/definitions/uint64
Length based on parent's \#size-cells. Address boundary for alignment of allocation.
alloc-ranges — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Address and Length pairs. Specifies regions of memory that are acceptable to allocate from.
iommu-addresses — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
A list of phandle and specifier pairs that describe static IO virtual address space mappings and carveouts associated with a given reserved memory region. The phandle in the first cell refers to the device for which the mapping or carveout is to be created. The specifier consists of an address/size pair and denotes the IO virtual address range of the region for the given device. The exact format depends on the values of the "#address-cells" and "#size-cells" properties of the device referenced via the phandle. When used in combination with a "reg" property, an IOVA mapping is to be established for this memory region. One example where this can be useful is to create an identity mapping for physical memory that the firmware has configured some hardware to access (such as a bootsplash framebuffer). If no "reg" property is specified, the "iommu-addresses" property defines carveout regions in the IOVA space for the given device. This can be useful if a certain memory region should not be mapped through the IOMMU.
no-map — not listed as required here #
Value type (type): "boolean"
Indicates the operating system must not create a virtual mapping of the region as part of its standard mapping of system memory, nor permit speculative access to it under any circumstances other than under the control of the device driver using the region.
reusable — not listed as required here #
Value type (type): "boolean"
The operating system can use the memory in this region with the limitation that the device driver(s) owning the region need to be able to reclaim it back. Typically that means that the operating system can use that region to store volatile or cached data that can be otherwise regenerated or migrated elsewhere.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #When the condition matches (
then) #This rule must not match (
not)
Rule 2 #
Condition (
if) #When the condition matches (
then) #This rule must not match (
not)
Exactly one of these rules must match (oneOf) #
Rule 1 #
Exactly one of these rules must match (
oneOf) #Rule 1
Rule 2
Rule 2 #
Exactly one of these rules must match (
oneOf) #Rule 1
Rule 2
Required in this object (
required):"reg","iommu-addresses"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Examples (examples) #
/ {
compatible = "foo";
model = "foo";
#address-cells = <2>;
#size-cells = <2>;
reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;
adsp_resv: reservation-adsp {
/*
* Restrict IOVA mappings for ADSP buffers to the 512 MiB region
* from 0x40000000 - 0x5fffffff. Anything outside is reserved by
* the ADSP for I/O memory and private memory allocations.
*/
iommu-addresses = <&adsp 0x0 0x00000000 0x00 0x40000000>,
<&adsp 0x0 0x60000000 0xff 0xa0000000>;
};
fb: framebuffer@90000000 {
reg = <0x0 0x90000000 0x0 0x00800000>;
iommu-addresses = <&dc0 0x0 0x90000000 0x0 0x00800000>;
};
};
bus@0 {
#address-cells = <1>;
#size-cells = <1>;
ranges = <0x0 0x0 0x0 0x40000000>;
adsp: adsp@2990000 {
reg = <0x2990000 0x2000>;
memory-region = <&adsp_resv>;
};
dc0: display@15200000 {
reg = <0x15200000 0x10000>;
memory-region = <&fb>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 125: IOMMU reservations
Line 129: IOMMU mappings
Reset Common Properties
Peios Kernel / Hardware and drivers / Device-tree binding reference / Shared binding definitions / reset
Schema identifier ($id): "http://devicetree.org/schemas/reset/reset.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/base.yaml#"
This binding is intended to represent the hardware reset signals present internally in most IC (SoC, FPGA, ...) designs. Reset signals for whole standalone chips are most likely better represented as GPIOs, although there are likely to be exceptions to this rule. Hardware blocks typically receive a reset signal. This signal is generated by a reset provider (e.g. power management or clock module) and received by a reset consumer (the module being reset, or a module managing when a sub- ordinate module is reset). This binding exists to represent the provider and consumer, and provide a way to couple the two together. A reset signal is represented by the phandle of the provider, plus a reset specifier - a list of DT cells that represents the reset signal within the provider. The length (number of cells) and semantics of the reset specifier are dictated by the binding of the reset provider, although common schemes are described below. A word on where to place reset signal consumers in device tree: It is possible in hardware for a reset signal to affect multiple logically separate HW blocks at once. In this case, it would be unwise to represent this reset signal in the DT node of each affected HW block, since if activated, an unrelated block may be reset. Instead, reset signals should be represented in the DT node where it makes most sense to control it; this may be a bus node if all children of the bus are affected by the reset signal, or an individual HW block node for dedicated reset signals. The intent of this binding is to give appropriate software access to the reset signals in order to manage the HW, rather than to slavishly enumerate the reset signal that affects each HW block.
Maintainers (maintainers): "Rob Herring <robh@kernel.org>"
Automatic schema selection (select) #
true
This selection rule always matches.
Properties and child nodes (properties) #
#reset-cells — not listed as required here #
Maximum value (maximum): 2
Number of cells in a reset specifier; Typically 0 for nodes with a single reset output and 1 for nodes with multiple reset outputs.
resets — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
reset-names — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string-array
Property dependencies (dependencies) #
reset-names — applies when this property is present #
Also requires: "resets"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: BSD-2-Clause
Line 2: Copyright 2012 NVIDIA CORPORATION
Line 3: Copyright 2019 Linaro Ltd.
Line 44: always select the core schema
Common Cache Properties
Peios Kernel / Hardware and drivers / Device-tree binding reference / Shared binding definitions
Schema identifier ($id): "http://devicetree.org/schemas/cache-controller.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/base.yaml#"
Maintainers (maintainers): "Rob Herring <robh@kernel.org>"
Properties and child nodes (properties) #
cache-level — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 2
Maximum value (maximum): 32
cache-unified — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
next-level-cache — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Properties matching a name pattern (patternProperties) #
^(i-|d-|)cache-size$ — name matches this regular expression #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
^(i-|d-|)cache-sets$ — name matches this regular expression #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
^(i-|d-|)cache-block-size$ — name matches this regular expression #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
^(i-|d-|)cache-line-size$ — name matches this regular expression #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Requirements triggered by another property (dependentRequired): { cache-size: "cache-unified", cache-sets: "cache-unified", cache-block-size: "cache-unified", cache-line-size: "cache-unified", cache-level: "compatible" }
Rules triggered by another property (dependentSchemas) #
cache-unified — applies when this property is present #
Properties matching a name pattern (patternProperties) #
^[id]-cache- — name matches this regular expression
false — Not permitted by this property rule.
Condition (if) #
This rule must not match (
not) #Properties and child nodes (
properties) #
device_type— required hereExact value (
const):"cpu"
When the condition matches (then) #
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: BSD-2-Clause
Line 2: Copyright 2019 Linaro Ltd.
Line 3: Copyright 2022 Arm Ltd.
CPU node common properties
Peios Kernel / Hardware and drivers / Device-tree binding reference / Shared binding definitions
Schema identifier ($id): "http://devicetree.org/schemas/cpu.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/base.yaml#"
Maintainers (maintainers): "Devicetree Specification Mailing List <devicetree-spec@vger.kernel.org>"
In Devicetree data files, the layout of CPUs is described in the "cpus" node. This node in turn contains a number of subnodes representing CPUs, which define properties for every cpu.
Bindings for CPU nodes follow the Devicetree Specification, available from:
https://www.devicetree.org/specifications/
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):cache-controller.yaml#
Properties and child nodes (properties) #
device_type — not listed as required here #
Exact value (const): "cpu"
reg — not listed as required here #
Defines a unique CPU/thread ID for the CPU/threads represented by the CPU node.
compatible — not listed as required here #
true — No constraints added by this property rule.
#cooling-cells — not listed as required here #
Exact value (const): 2
clock-frequency — not listed as required here #
Specifies the current clock speed of the CPU in Hertz.
clocks — not listed as required here #
true — No constraints added by this property rule.
clock-names — not listed as required here #
true — No constraints added by this property rule.
cpu-supply — not listed as required here #
true — No constraints added by this property rule.
timebase-frequency — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Shared schema rule (
$ref):/schemas/types.yaml#/definitions/uint32
Rule 2
Shared schema rule (
$ref):/schemas/types.yaml#/definitions/uint64
Minimum value (minimum): 1
Specifies the current frequency at which the timebase and the decrementer registers are updated (in Hertz).
status — not listed as required here #
Shared schema rule ($ref): types.yaml#/definitions/string
Allowed values (enum): "okay", "disabled", "fail"
A standard property describing the state of a CPU. A CPU may be running ("okay"), in a quiescent state ("disabled") or be not operational or not exist ("fail").
enable-method — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string-array
Describes the method by which a CPU in a disabled state is enabled. This property is required for CPUs with a status property with a value of "disabled". The value consists of one or more strings that define the method to release this CPU. If a client program recognizes any of the methods, it may use it.
cpu-release-addr — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Shared schema rule (
$ref):/schemas/types.yaml#/definitions/uint64
Rule 2
Shared schema rule (
$ref):/schemas/types.yaml#/definitions/uint32Deprecated (
deprecated):true
This value specifies the physical address of a spin table entry that releases a secondary CPU from its spin loop.
cache-op-block-size — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Specifies the block size in bytes upon which cache block instructions operate. Required if different than the L1 cache block size.
reservation-granule-size — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Specifies the reservation granule size supported by this processor in bytes.
numa-node-id — not listed as required here #
true — No constraints added by this property rule.
mmu-type — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Specifies the CPU's MMU type.
operating-points-v2 — not listed as required here #
true — No constraints added by this property rule.
tlb-split — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
If present, specifies that the TLB has a split configuration, with separate TLBs for instructions and data. If absent, specifies that the TLB has a unified configuration. Required for a CPU with a TLB in a split configuration.
l2-cache — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Value type (
type):"object"
Rule 2
Shared schema rule (
$ref):/schemas/types.yaml#/definitions/phandleDeprecated (
deprecated):true
Properties matching a name pattern (patternProperties) #
^(i-|d-|)tlb-(size|sets)$ — name matches this regular expression #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 1
At least one of these rules must match (anyOf) #
Rule 1 #
Rule 2 #
Rule 3 #
Property dependencies (dependencies) #
cpu-release-addr — applies when this property is present #
Also requires: "enable-method"
d-tlb-size — applies when this property is present #
Also requires: "tlb-split"
d-tlb-sets — applies when this property is present #
Also requires: "tlb-split"
i-tlb-size — applies when this property is present #
Also requires: "tlb-split"
i-tlb-sets — applies when this property is present #
Also requires: "tlb-split"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0 OR BSD-2-clause
Line 2: Copyright (C) 2018-2019 SiFive, Inc.
Line 3:
Line 4: Description text is from the Devicetree Specification at
Line 5: https://www.devicetree.org/specifications/
Line 6: which is
Line 7: Copyright 2008,2011 Power.org, Inc.
Line 8: Copyright 2008,2011 Freescale Semiconductor, Inc.
Line 9: Copyright 2008,2011 International Business Machines Corporation
Line 10: Copyright 2016,2017 Linaro,Ltd.
Line 11: Copyright 2016,2017 Arm,Ltd.
Line 12:
Line 88: Needed for some 32-bit Arm systems
Device Graphs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Shared binding definitions
Schema identifier ($id): "http://devicetree.org/schemas/graph.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/base.yaml#"
The hierarchical organisation of the device tree is well suited to describe control flow to devices, but there can be more complex connections between devices that work together to form a logical compound device, following an arbitrarily complex graph. There already is a simple directed graph between devices tree nodes using phandle properties pointing to other nodes to describe connections that can not be inferred from device tree parent-child relationships. The device tree graph bindings described herein abstract more complex devices that can have multiple specifiable ports, each of which can be linked to one or more ports of other devices.
These common bindings do not contain any information about the direction or type of the connections, they just map their existence. Specific properties may be described by specialized bindings depending on the type of connection.
To see how this binding applies to video pipelines, for example, see Documentation/devicetree/bindings/media/video-interfaces.txt. Here the ports describe data interfaces, and the links between them are the connecting data buses. A single port with multiple connections can correspond to multiple devices being connected to the same physical bus.
Maintainers (maintainers): "Philipp Zabel <p.zabel@pengutronix.de>"
Reusable definitions ($defs) #
endpoint-base #
Value type (type): "object"
Properties and child nodes (properties) #
reg — not listed as required here
Maximum number of items (maxItems): 1
remote-endpoint — not listed as required here
phandle to an 'endpoint' subnode of a remote device node.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
port-base #
Value type (type): "object"
If there is more than one endpoint node or 'reg' property present in endpoint nodes then '#address-cells' and '#size-cells' properties are required.
Properties and child nodes (properties) #
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
reg — not listed as required here
Maximum number of items (maxItems): 1
endpoint — not listed as required here
Value type (type): "object"
Properties matching a name pattern (patternProperties) #
^endpoint@[0-9a-f]+$ — name matches this regular expression
Shared schema rule ($ref): #/$defs/endpoint-base
Required in this object (required): "reg"
Properties and child nodes (properties) #
endpoint — not listed as required here #
Shared schema rule ($ref): #/$defs/endpoint-base
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
port — not listed as required here #
Shared schema rule ($ref): #/$defs/port-base
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties matching a name pattern (patternProperties) #
^endpoint(@[0-9a-f]+)?$ — name matches this regular expression
Shared schema rule ($ref): #/properties/endpoint
ports — not listed as required here #
Value type (type): "object"
If there is more than one port node or 'reg' property present in port nodes then '#address-cells' and '#size-cells' properties are required. In such cases all port nodes can be grouped under 'ports' independently from any other child device nodes a device might have.
Properties and child nodes (properties) #
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
port — not listed as required here
Value type (type): "object"
Properties matching a name pattern (patternProperties) #
^port@[0-9a-f]+$ — name matches this regular expression
Value type (type): "object"
Required in this object (required): "reg"
Exactly one of these rules must match (oneOf) #
Rule 1
Rule 2
Required in this object (
required):"#address-cells","#size-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Examples (examples) #
device {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;
endpoint@0 {
reg = <0>;
// ...
};
endpoint@1 {
reg = <1>;
// ...
};
};
port@1 {
reg = <1>;
endpoint {
// ...
};
};
};
device {
// ...
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;
// ...
endpoint@0 {
reg = <0>;
// ...
};
endpoint@1 {
reg = <1>;
// ...
};
};
port@1 {
#address-cells = <1>;
#size-cells = <0>;
reg = <1>;
// ...
};
};
};
device-1 {
port {
device_1_output: endpoint {
remote-endpoint = <&device_2_input>;
};
};
};
device-2 {
port {
device_2_input: endpoint {
remote-endpoint = <&device_1_output>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 121: Organisation of ports and endpoints:
Line 122:
Line 123: Ports are described by child 'port' nodes contained in the device node.
Line 124: Each port node contains an 'endpoint' subnode for each remote device port
Line 125: connected to this port. If a single port is connected to more than one
Line 126: remote device, an 'endpoint' child node must be provided for each link.
Line 127: If more than one port is present in a device node or there is more than
Line 128: one endpoint at a port, or a port node needs to be associated with a
Line 129: selected hardware interface, a common scheme using '#address-cells',
Line 130: '#size-cells' and 'reg' properties is used to number the nodes.
Line 160: All 'port' nodes can be grouped under an optional 'ports' node, which
Line 161: allows to specify #address-cells, #size-cells properties for the 'port'
Line 162: nodes independently from any other child device nodes a device might
Line 163: have.
Line 196: Links between endpoints:
Line 197:
Line 198: Each endpoint should contain a 'remote-endpoint' phandle property that
Line 199: points to the corresponding endpoint in the port of the remote device.
Line 200: In turn, the remote endpoint should contain a 'remote-endpoint' property.
Line 201: If it has one, it must not point to anything other than the local endpoint.
Line 202: Two endpoints with their 'remote-endpoint' phandles pointing at each other
Line 203: form a link between the containing ports.
Interrupt Controller Common Properties
Peios Kernel / Hardware and drivers / Device-tree binding reference / Shared binding definitions
Schema identifier ($id): "http://devicetree.org/schemas/interrupt-controller.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/base.yaml#"
Maintainers (maintainers): "Rob Herring <robh@kernel.org>"
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^interrupt-controller(@[0-9a-f,]+)*$"
#interrupt-cells — not listed as required here #
true — No constraints added by this property rule.
#address-cells — not listed as required here #
true — No constraints added by this property rule.
interrupt-controller — not listed as required here #
Shared schema rule ($ref): types.yaml#/definitions/flag
interrupt-map — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-matrix
interrupt-map-mask — not listed as required here #
Shared schema rule ($ref): types.yaml#/definitions/uint32-array
wakeup-parent — not listed as required here #
Shared schema rule ($ref): types.yaml#/definitions/phandle
Some interrupt controllers in a SoC, are always powered on and have a select interrupts routed to them, so that they can wakeup the SoC from suspend. These interrupt controllers do not fall into the category of a parent interrupt controller and can be specified by the "wakeup-parent" property and contain a single phandle referring to the wakeup capable interrupt controller.
Property dependencies (dependencies) #
interrupt-controller — applies when this property is present #
Also requires: "#interrupt-cells"
interrupt-map — applies when this property is present #
Also requires: "#interrupt-cells"
interrupt-map-mask — applies when this property is present #
Also requires: "interrupt-map"
#interrupt-cells — applies when this property is present #
At least one of these rules must match (anyOf) #
Rule 1
Rule 2
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: BSD-2-Clause
Line 2: Copyright 2018 Linaro Ltd.
Line 3: Copyright 2018 Arm Ltd.
simple-bus nodes
Peios Kernel / Hardware and drivers / Device-tree binding reference / Shared binding definitions
Schema identifier ($id): "http://devicetree.org/schemas/simple-bus.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Common simple-bus binding
Maintainers (maintainers): "Rob Herring <robh@kernel.org>"
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^([a-z][a-z0-9\\-]+-bus|bus|localbus|soc|axi|ahb|apb)(@.+)?$"
compatible — required here #
Rule for matching array elements (contains) #
Exact value (
const):"simple-bus"
ranges — required here #
true — No constraints added by this property rule.
dma-ranges — not listed as required here #
true — No constraints added by this property rule.
#address-cells — required here #
#size-cells — required here #
nonposted-mmio — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
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.
Properties matching a name pattern (patternProperties) #
@([0-9a-f],)?(0|[1-9a-f][0-9a-f]*)$ — name matches this regular expression #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Properties and child nodes (properties) #
reg — not listed as required here
Array item rules (items)
Minimum number of items (
minItems):2Maximum number of items (
maxItems):4
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 1024
ranges — not listed as required here
Exactly one of these rules must match (oneOf)
Rule 1
Array item rules (
items)Minimum number of items (
minItems):3Maximum number of items (
maxItems):7Minimum number of items (
minItems):1Maximum number of items (
maxItems):1024
Rule 2
Shared schema rule (
$ref):types.yaml#/definitions/flag
At least one of these rules must match (anyOf) #
Rule 1
Rule 2
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
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.
Condition (
if) #Value type (
type):"object"When the condition matches (
then) #Properties and child nodes (
properties) #
ranges— required hereValue type (
type):"boolean"
Required in this object (required): "compatible", "#address-cells", "#size-cells", "ranges"
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: BSD-2-Clause
Line 2: Copyright 2018 Linaro Ltd.
Line 3: Copyright 2021 Arm Ltd.
Line 35: All other properties should be child nodes with unit-address and 'reg'
Core devicetree property data types
Peios Kernel / Hardware and drivers / Device-tree binding reference / Shared binding definitions
Schema identifier ($id): "http://devicetree.org/schemas/types.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/base.yaml#"
Schema for core devicetree data types. Binding schema can reference these types.
Maintainers (maintainers): "Rob Herring <robh@kernel.org>"
Reusable definitions (definitions) #
flag #
Exactly one of these rules must match (oneOf) #
Rule 1
Value type (
type):"boolean"Exact value (
const):true
Rule 2
Value type (
type):"null"
non-unique-string-array #
Value type (type): "array"
Array item rules (items) #
Value type (
type):"string"
Minimum number of items (minItems): 1
string-array #
All of these rules must match (allOf) #
Rule 1
Shared schema rule (
$ref):#/definitions/non-unique-string-array
Rule 2
Items must be unique (
uniqueItems):true
string #
All of these rules must match (allOf) #
Rule 1
Shared schema rule (
$ref):#/definitions/string-array
Rule 2
Maximum number of items (
maxItems):1
uint8 #
Value type (type): "integer"
Integer width in bits (typeSize): 8
Minimum value (minimum): 0
Maximum value (maximum): 255
uint8-array #
Value type (type): "array"
Minimum number of items (minItems): 1
Array item rules (items) #
Shared schema rule (
$ref):#/definitions/uint8
uint8-matrix #
Value type (type): "array"
Minimum number of items (minItems): 1
Array item rules (items) #
Shared schema rule (
$ref):#/definitions/uint8-array
int8 #
Value type (type): "integer"
Integer width in bits (typeSize): 8
Minimum value (minimum): -128
Maximum value (maximum): 127
int8-array #
Value type (type): "array"
Minimum number of items (minItems): 1
Array item rules (items) #
Shared schema rule (
$ref):#/definitions/int8
int8-matrix #
Value type (type): "array"
Minimum number of items (minItems): 1
Array item rules (items) #
Shared schema rule (
$ref):#/definitions/int8-array
uint16 #
Value type (type): "integer"
Integer width in bits (typeSize): 16
Minimum value (minimum): 0
Maximum value (maximum): 65535
uint16-array #
Value type (type): "array"
Minimum number of items (minItems): 1
Array item rules (items) #
Shared schema rule (
$ref):#/definitions/uint16
uint16-matrix #
Value type (type): "array"
Minimum number of items (minItems): 1
Array item rules (items) #
Shared schema rule (
$ref):#/definitions/uint16-array
int16 #
Value type (type): "integer"
Integer width in bits (typeSize): 16
Minimum value (minimum): -8192
Maximum value (maximum): 8191
int16-array #
Value type (type): "array"
Minimum number of items (minItems): 1
Array item rules (items) #
Shared schema rule (
$ref):#/definitions/int16
int16-matrix #
Value type (type): "array"
Minimum number of items (minItems): 1
Array item rules (items) #
Shared schema rule (
$ref):#/definitions/int16-array
uint32 #
Value type (type): "integer"
Integer width in bits (typeSize): 32
Minimum value (minimum): 0
Maximum value (maximum): 4294967295
uint32-array #
Value type (type): "array"
Minimum number of items (minItems): 1
Array item rules (items) #
Shared schema rule (
$ref):#/definitions/uint32
uint32-matrix #
Value type (type): "array"
Minimum number of items (minItems): 1
Array item rules (items) #
Shared schema rule (
$ref):#/definitions/uint32-array
int32 #
Value type (type): "integer"
Minimum value (minimum): -2147483648
Maximum value (maximum): 2147483647
int32-array #
Value type (type): "array"
Minimum number of items (minItems): 1
Array item rules (items) #
Shared schema rule (
$ref):#/definitions/int32
int32-matrix #
Value type (type): "array"
Minimum number of items (minItems): 1
Array item rules (items) #
Shared schema rule (
$ref):#/definitions/int32-array
int64 #
Value type (type): "integer"
Integer width in bits (typeSize): 64
Minimum value (minimum): -9223372036854775808
Maximum value (maximum): 9223372036854775807
int64-array #
Value type (type): "array"
Minimum number of items (minItems): 1
Array item rules (items) #
Shared schema rule (
$ref):#/definitions/int64
int64-matrix #
Value type (type): "array"
Minimum number of items (minItems): 1
Array item rules (items) #
Shared schema rule (
$ref):#/definitions/int64-array
uint64 #
Value type (type): "integer"
Integer width in bits (typeSize): 64
Minimum value (minimum): 0
Maximum value (maximum): 18446744073709551615
uint64-array #
Value type (type): "array"
Minimum number of items (minItems): 1
Array item rules (items) #
Shared schema rule (
$ref):#/definitions/uint64
uint64-matrix #
Value type (type): "array"
Minimum number of items (minItems): 1
Array item rules (items) #
Shared schema rule (
$ref):#/definitions/uint64-array
phandle #
Shared schema rule ($ref): #/definitions/phandle-array
Maximum number of items (maxItems): 1
Array item rules (items) #
Maximum number of items (
maxItems):1
phandle-array #
Value type (type): "array"
Minimum number of items (minItems): 1
Array item rules (items) #
Value type (
type):"array"Minimum number of items (
minItems):1Maximum number of items (
maxItems):1024Array item rules (
items)Item 1
Exactly one of these rules must match (
oneOf)Rule 1
Value type (
type):"integer"Minimum value (
minimum):1Maximum value (
maximum):4294967295Rule 2
Value type (
type):"integer"Exact value (
const):0Array items beyond the listed positions (
additionalItems)Shared schema rule (
$ref):#/definitions/uint32
address #
Shared schema rule ($ref): #/definitions/uint32-matrix
Array item rules (items) #
Minimum number of items (
minItems):1Maximum number of items (
maxItems):5
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: BSD-2-Clause
Line 2: Copyright 2018 Linaro Ltd.
Line 187: At most 3 address cells and 2 size cells