Skip to content

Commit 51bb1f6

Browse files
svenpeter42lag-linaro
authored andcommitted
dt-bindings: power: reboot: Add Apple Mac SMC Reboot Controller
On Apple Silicon machines a clean shutdown or reboot requires talking to SMC and writing to NVMEM cells. Add a binding for this MFD sub-device. Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Neal Gompa <neal@gompa.dev> Reviewed-by: "Rob Herring (Arm)" <robh@kernel.org> Signed-off-by: Sven Peter <sven@kernel.org> Link: https://lore.kernel.org/r/20250610-smc-6-15-v7-2-556cafd771d3@kernel.org Signed-off-by: Lee Jones <lee@kernel.org>
1 parent 0f0a7bd commit 51bb1f6

2 files changed

Lines changed: 41 additions & 0 deletions

File tree

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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+
7+
title: Apple SMC Reboot Controller
8+
9+
description:
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+
14+
maintainers:
15+
- Sven Peter <sven@kernel.org>
16+
17+
properties:
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+
35+
required:
36+
- compatible
37+
- nvmem-cells
38+
- nvmem-cell-names
39+
40+
additionalProperties: false

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2346,6 +2346,7 @@ F: Documentation/devicetree/bindings/nvmem/apple,spmi-nvmem.yaml
23462346
F: Documentation/devicetree/bindings/pci/apple,pcie.yaml
23472347
F: Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml
23482348
F: Documentation/devicetree/bindings/power/apple*
2349+
F: Documentation/devicetree/bindings/power/reset/apple,smc-reboot.yaml
23492350
F: Documentation/devicetree/bindings/pwm/apple,s5l-fpwm.yaml
23502351
F: Documentation/devicetree/bindings/spi/apple,spi.yaml
23512352
F: Documentation/devicetree/bindings/spmi/apple,spmi.yaml

0 commit comments

Comments
 (0)