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
20properties:
21  compatible:
22    enum:
23      - qcom,spmi-sdam
24
25  reg:
26    maxItems: 1
27
28  ranges: true
29
30required:
31  - compatible
32  - reg
33  - ranges
34
35unevaluatedProperties: false
36
37examples:
38  - |
39    pmic {
40        #address-cells = <1>;
41        #size-cells = <0>;
42
43        sdam_1: nvram@b000 {
44            compatible = "qcom,spmi-sdam";
45            reg = <0xb000>;
46            #address-cells = <1>;
47            #size-cells = <1>;
48            ranges = <0 0xb000 0x100>;
49
50            /* Data cells */
51            restart_reason: restart@50 {
52                reg = <0x50 0x1>;
53                bits = <6 2>;
54            };
55        };
56    };
57...
58