xref: /linux/Documentation/devicetree/bindings/nvmem/qcom,spmi-sdam.yaml (revision 3df692169e8486fc3dd91fcd5ea81c27a0bac033)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/nvmem/qcom,spmi-sdam.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm Technologies, Inc. SPMI SDAM
8
9maintainers:
10  - Shyam Kumar Thella <sthella@codeaurora.org>
11
12description: |
13  The SDAM provides scratch register space for the PMIC clients. This
14  memory can be used by software to store information or communicate
15  to/from the PBUS.
16
17allOf:
18  - $ref: nvmem.yaml#
19  - $ref: nvmem-deprecated-cells.yaml#
20
21properties:
22  compatible:
23    enum:
24      - qcom,spmi-sdam
25
26  reg:
27    maxItems: 1
28
29  ranges: true
30
31required:
32  - compatible
33  - reg
34  - ranges
35
36unevaluatedProperties: false
37
38examples:
39  - |
40    pmic {
41        #address-cells = <1>;
42        #size-cells = <0>;
43
44        sdam_1: nvram@b000 {
45            compatible = "qcom,spmi-sdam";
46            reg = <0xb000>;
47            #address-cells = <1>;
48            #size-cells = <1>;
49            ranges = <0 0xb000 0x100>;
50
51            /* Data cells */
52            restart_reason: restart@50 {
53                reg = <0x50 0x1>;
54                bits = <6 2>;
55            };
56        };
57    };
58...
59