Loongson-2 Power Manager controller
Schema identifier ($id): "http://devicetree.org/schemas/soc/loongson/loongson,ls2k-pmc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Yinbo Zhu <zhuyinbo@loongson.cn>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"loongson,ls2k0500-pmc"Item 2
Exact value (
const):"syscon"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"loongson,ls2k1000-pmc","loongson,ls2k2000-pmc"Item 2
Exact value (
const):"loongson,ls2k0500-pmc"Item 3
Exact value (
const):"syscon"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
loongson,suspend-address — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint64
The "loongson,suspend-address" is a deep sleep state (Suspend To RAM) firmware entry address which was jumped from kernel and it's value was dependent on specific platform firmware code. In addition, the PM need according to it to indicate that current SoC whether support Suspend To RAM.
syscon-poweroff — not listed as required here #
Shared schema rule ($ref): /schemas/power/reset/syscon-poweroff.yaml#
Value type (type): "object"
Node for power off method
syscon-reboot — not listed as required here #
Shared schema rule ($ref): /schemas/power/reset/syscon-reboot.yaml#
Value type (type): "object"
Node for reboot method
Required in this object (required): "compatible", "reg", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
power-management@1fe27000 {
compatible = "loongson,ls2k1000-pmc", "loongson,ls2k0500-pmc", "syscon";
reg = <0x1fe27000 0x58>;
interrupt-parent = <&liointc1>;
interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
loongson,suspend-address = <0x0 0x1c000500>;
syscon-reboot {
compatible = "syscon-reboot";
offset = <0x30>;
mask = <0x1>;
};
syscon-poweroff {
compatible = "syscon-poweroff";
regmap = <&pmc>;
offset = <0x14>;
mask = <0x3c00>;
value = <0x3c00>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)