mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-02 08:32:55 +00:00

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>
55 lines
1.0 KiB
YAML
55 lines
1.0 KiB
YAML
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/nvmem/apple,spmi-nvmem.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Apple SPMI NVMEM
|
|
|
|
description: Exports a series of SPMI registers as NVMEM cells
|
|
|
|
maintainers:
|
|
- Sasha Finkelstein <fnkl.kernel@gmail.com>
|
|
|
|
allOf:
|
|
- $ref: nvmem.yaml#
|
|
|
|
properties:
|
|
compatible:
|
|
items:
|
|
- enum:
|
|
- apple,maverick-pmic
|
|
- apple,sera-pmic
|
|
- apple,stowe-pmic
|
|
- const: apple,spmi-nvmem
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
|
|
unevaluatedProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/spmi/spmi.h>
|
|
|
|
pmic@f {
|
|
compatible = "apple,maverick-pmic", "apple,spmi-nvmem";
|
|
reg = <0xf SPMI_USID>;
|
|
|
|
nvmem-layout {
|
|
compatible = "fixed-layout";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
boot_stage: boot-stage@6001 {
|
|
reg = <0x6001 0x1>;
|
|
};
|
|
};
|
|
};
|
|
|
|
...
|