System Controller Registers R/W Common Properties
Schema identifier ($id): "http://devicetree.org/schemas/mfd/syscon-common.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
System controller node represents a register region containing a set of miscellaneous registers. The registers are not cohesive enough to represent as any specific type of device. The typical use-case is for some other node's driver, or platform-specific code, to acquire a reference to the syscon node (e.g. by phandle, node path, or search using a specific compatible value), interrogate the node (or associated OS driver) to determine the location of the registers, and access the registers directly.
Maintainers (maintainers): "Lee Jones <lee@kernel.org>"
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)Exact value (
const):"syscon"
Properties and child nodes (properties) #
compatible — required here #
Rule for matching array elements (contains) #
Exact value (
const):"syscon"
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 5
reg-io-width — not listed as required here #
The size (in bytes) of the IO accesses that should be performed on the device.
Allowed values (enum): 1, 2, 4, 8
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"simple-mfd"When the condition matches (
then) #Properties and child nodes (
properties)
compatible— not listed as required hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):5
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Examples (examples) #
syscon: syscon@1c00000 {
compatible = "allwinner,sun8i-h3-system-controller", "syscon";
reg = <0x01c00000 0x1000>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 36: Should be enough