xref: /freebsd/sys/contrib/device-tree/Bindings/nvmem/qcom,spmi-sdam.yaml (revision 7d0873ebb83b19ba1e8a89e679470d885efe12e3)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/nvmem/qcom,spmi-sdam.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
78bab661aSEmmanuel Vadottitle: Qualcomm Technologies, Inc. SPMI SDAM
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10*7d0873ebSEmmanuel Vadot  - David Collins <quic_collinsd@quicinc.com>
11c66ec88fSEmmanuel Vadot
12c66ec88fSEmmanuel Vadotdescription: |
13c66ec88fSEmmanuel Vadot  The SDAM provides scratch register space for the PMIC clients. This
14c66ec88fSEmmanuel Vadot  memory can be used by software to store information or communicate
15c66ec88fSEmmanuel Vadot  to/from the PBUS.
16c66ec88fSEmmanuel Vadot
17c66ec88fSEmmanuel VadotallOf:
18fac71e4eSEmmanuel Vadot  - $ref: nvmem.yaml#
1984943d6fSEmmanuel Vadot  - $ref: nvmem-deprecated-cells.yaml#
20c66ec88fSEmmanuel Vadot
21c66ec88fSEmmanuel Vadotproperties:
22c66ec88fSEmmanuel Vadot  compatible:
23c66ec88fSEmmanuel Vadot    enum:
24c66ec88fSEmmanuel Vadot      - qcom,spmi-sdam
25c66ec88fSEmmanuel Vadot
26c66ec88fSEmmanuel Vadot  reg:
27c66ec88fSEmmanuel Vadot    maxItems: 1
28c66ec88fSEmmanuel Vadot
29c66ec88fSEmmanuel Vadot  ranges: true
30c66ec88fSEmmanuel Vadot
31c66ec88fSEmmanuel Vadotrequired:
32c66ec88fSEmmanuel Vadot  - compatible
33c66ec88fSEmmanuel Vadot  - reg
34c66ec88fSEmmanuel Vadot  - ranges
35c66ec88fSEmmanuel Vadot
366be33864SEmmanuel VadotunevaluatedProperties: false
376be33864SEmmanuel Vadot
38c66ec88fSEmmanuel Vadotexamples:
39c66ec88fSEmmanuel Vadot  - |
40fac71e4eSEmmanuel Vadot    pmic {
41fac71e4eSEmmanuel Vadot        #address-cells = <1>;
42fac71e4eSEmmanuel Vadot        #size-cells = <0>;
43fac71e4eSEmmanuel Vadot
44c66ec88fSEmmanuel Vadot        sdam_1: nvram@b000 {
45fac71e4eSEmmanuel Vadot            compatible = "qcom,spmi-sdam";
46fac71e4eSEmmanuel Vadot            reg = <0xb000>;
47c66ec88fSEmmanuel Vadot            #address-cells = <1>;
48c66ec88fSEmmanuel Vadot            #size-cells = <1>;
49c66ec88fSEmmanuel Vadot            ranges = <0 0xb000 0x100>;
50c66ec88fSEmmanuel Vadot
51c66ec88fSEmmanuel Vadot            /* Data cells */
52c66ec88fSEmmanuel Vadot            restart_reason: restart@50 {
53c66ec88fSEmmanuel Vadot                reg = <0x50 0x1>;
54c66ec88fSEmmanuel Vadot                bits = <6 2>;
55c66ec88fSEmmanuel Vadot            };
56c66ec88fSEmmanuel Vadot        };
57fac71e4eSEmmanuel Vadot    };
58c66ec88fSEmmanuel Vadot...
59