Generic SYSCON mapped register poweroff driver
Schema identifier ($id): "http://devicetree.org/schemas/power/reset/syscon-poweroff.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"
This is a generic poweroff driver using syscon to map the poweroff register. The poweroff is generally performed with a write to the poweroff register defined by the register map pointed by syscon reference plus the offset with the value and mask defined in the poweroff node. Default will be little endian mode, 32 bit access only. The SYSCON register map is normally retrieved from the parental dt-node. So the SYSCON poweroff node should be represented as a sub-node of a "syscon", "simple-mfd" node.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "syscon-poweroff"
reg — not listed as required here #
Maximum number of items (maxItems): 1
mask — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Update only the register bits defined by the mask (32 bit).
offset — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Offset in the register map for the poweroff register (in bytes).
regmap — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Deprecated (deprecated): true
Phandle to the register map node. This property is deprecated in favor of the syscon-poweroff node being a child of a system controller node.
value — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The poweroff value written to the poweroff register (32 bit access).
Required in this object (required): "compatible"
At least one of these rules must match (anyOf) #
Rule 1 #
Rule 2 #
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #This rule must not match (
not)When the condition matches (
then) #
Examples (examples) #
poweroff {
compatible = "syscon-poweroff";
offset = <0x0>;
mask = <0x7a>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0