xref: /linux/Documentation/devicetree/bindings/power/reset/apple,smc-reboot.yaml (revision e7e86d7697c6ed1dbbde18d7185c35b6967945ed)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/power/reset/apple,smc-reboot.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Apple SMC Reboot Controller
8
9description:
10  The Apple System Management Controller (SMC) provides reboot functionality
11  on Apple Silicon SoCs. It uses NVMEM cells to store and track various
12  system state information related to boot, shutdown, and panic events.
13
14maintainers:
15  - Sven Peter <sven@kernel.org>
16
17properties:
18  compatible:
19    const: apple,smc-reboot
20
21  nvmem-cells:
22    items:
23      - description: Flag indicating shutdown (as opposed to reboot)
24      - description: Stage at which the boot process stopped (0x30 for normal boot)
25      - description: Counter for boot errors
26      - description: Counter for system panics
27
28  nvmem-cell-names:
29    items:
30      - const: shutdown_flag
31      - const: boot_stage
32      - const: boot_error_count
33      - const: panic_count
34
35required:
36  - compatible
37  - nvmem-cells
38  - nvmem-cell-names
39
40additionalProperties: false
41