Skip to content

Commit 4833245

Browse files
WhatAmISupposedToPutHeregregkh
authored andcommitted
dt-bindings: spmi: Add Apple SPMI NVMEM
Add bindings for exposing SPMI registers of Apple PMICs as NVMEM cells Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Signed-off-by: Sasha Finkelstein <fnkl.kernel@gmail.com> Reviewed-by: "Rob Herring (Arm)" <robh@kernel.org> Reviewed-by: Neal Gompa <neal@gompa.dev> Signed-off-by: Srinivas Kandagatla <srini@kernel.org> Link: https://lore.kernel.org/r/20250509122452.11827-3-srini@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 01465f2 commit 4833245

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/nvmem/apple,spmi-nvmem.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Apple SPMI NVMEM
8+
9+
description: Exports a series of SPMI registers as NVMEM cells
10+
11+
maintainers:
12+
- Sasha Finkelstein <fnkl.kernel@gmail.com>
13+
14+
allOf:
15+
- $ref: nvmem.yaml#
16+
17+
properties:
18+
compatible:
19+
items:
20+
- enum:
21+
- apple,maverick-pmic
22+
- apple,sera-pmic
23+
- apple,stowe-pmic
24+
- const: apple,spmi-nvmem
25+
26+
reg:
27+
maxItems: 1
28+
29+
required:
30+
- compatible
31+
- reg
32+
33+
unevaluatedProperties: false
34+
35+
examples:
36+
- |
37+
#include <dt-bindings/spmi/spmi.h>
38+
39+
pmic@f {
40+
compatible = "apple,maverick-pmic", "apple,spmi-nvmem";
41+
reg = <0xf SPMI_USID>;
42+
43+
nvmem-layout {
44+
compatible = "fixed-layout";
45+
#address-cells = <1>;
46+
#size-cells = <1>;
47+
48+
boot_stage: boot-stage@6001 {
49+
reg = <0x6001 0x1>;
50+
};
51+
};
52+
};
53+
54+
...

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2277,6 +2277,7 @@ F: Documentation/devicetree/bindings/mailbox/apple,mailbox.yaml
22772277
F: Documentation/devicetree/bindings/net/bluetooth/brcm,bcm4377-bluetooth.yaml
22782278
F: Documentation/devicetree/bindings/nvme/apple,nvme-ans.yaml
22792279
F: Documentation/devicetree/bindings/nvmem/apple,efuses.yaml
2280+
F: Documentation/devicetree/bindings/nvmem/apple,spmi-nvmem.yaml
22802281
F: Documentation/devicetree/bindings/pci/apple,pcie.yaml
22812282
F: Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml
22822283
F: Documentation/devicetree/bindings/power/apple*

0 commit comments

Comments
 (0)