Generic SYSCON mapped register reset driver

Schema identifier ($id): "http://devicetree.org/schemas/power/reset/syscon-reboot.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

This is a generic reset driver using syscon to map the reset register. The reset is generally performed with a write to the reset register defined by the SYSCON register map base plus the offset with the value and mask defined in the reboot node. Default will be little endian mode, 32 bit access only. The SYSCON registers map is normally retrieved from the parental dt-node. So the SYSCON reboot node should be represented as a sub-node of a "syscon", "simple-mfd" node. Though the regmap property pointing to the system controller node is also supported.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "syscon-reboot", "google,gs101-reboot"

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 reboot register (in bytes).

reg — not listed as required here #

Maximum number of items (maxItems): 1

Base address and size for the reboot register.

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-reboot node been a child of a system controller node.

value — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

The reset value written to the reboot register (32 bit access).

priority — not listed as required here #

Default value (default): 192

Required in this object (required): "compatible"

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 #

Shared schema rule ($ref): restart-handler.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "google,gs101-reboot"

When the condition matches (then) #

Properties and child nodes (properties)

mask — not listed as required here

false — Not permitted by this property rule.

offset — not listed as required here

false — Not permitted by this property rule.

reg — not listed as required here

false — Not permitted by this property rule.

value — not listed as required here

false — Not permitted by this property rule.

When the condition does not match (else) #

Condition (if)

This rule must not match (not)

Required in this object (required): "mask"

When the condition matches (then)

Required in this object (required): "value"

At least one of these rules must match (anyOf)

Rule 1

Required in this object (required): "offset"

Rule 2

Required in this object (required): "reg"

Examples (examples) #

reboot {
    compatible = "syscon-reboot";
    regmap = <&regmapnode>;
    offset = <0x0>;
    mask = <0x1>;
};
reboot {
    compatible = "google,gs101-reboot";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Edit this page