19664a6b5SShyam Kumar Thella# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
29664a6b5SShyam Kumar Thella%YAML 1.2
39664a6b5SShyam Kumar Thella---
49664a6b5SShyam Kumar Thella$id: http://devicetree.org/schemas/nvmem/qcom,spmi-sdam.yaml#
59664a6b5SShyam Kumar Thella$schema: http://devicetree.org/meta-schemas/core.yaml#
69664a6b5SShyam Kumar Thella
79664a6b5SShyam Kumar Thellatitle: Qualcomm Technologies, Inc. SPMI SDAM DT bindings
89664a6b5SShyam Kumar Thella
99664a6b5SShyam Kumar Thellamaintainers:
109664a6b5SShyam Kumar Thella  - Shyam Kumar Thella <sthella@codeaurora.org>
119664a6b5SShyam Kumar Thella
129664a6b5SShyam Kumar Thelladescription: |
139664a6b5SShyam Kumar Thella  The SDAM provides scratch register space for the PMIC clients. This
149664a6b5SShyam Kumar Thella  memory can be used by software to store information or communicate
159664a6b5SShyam Kumar Thella  to/from the PBUS.
169664a6b5SShyam Kumar Thella
179664a6b5SShyam Kumar ThellaallOf:
189664a6b5SShyam Kumar Thella  - $ref: "nvmem.yaml#"
199664a6b5SShyam Kumar Thella
209664a6b5SShyam Kumar Thellaproperties:
219664a6b5SShyam Kumar Thella  compatible:
229664a6b5SShyam Kumar Thella    enum:
239664a6b5SShyam Kumar Thella      - qcom,spmi-sdam
249664a6b5SShyam Kumar Thella
259664a6b5SShyam Kumar Thella  reg:
269664a6b5SShyam Kumar Thella    maxItems: 1
279664a6b5SShyam Kumar Thella
289664a6b5SShyam Kumar Thella  "#address-cells":
299664a6b5SShyam Kumar Thella    const: 1
309664a6b5SShyam Kumar Thella
319664a6b5SShyam Kumar Thella  "#size-cells":
329664a6b5SShyam Kumar Thella    const: 1
339664a6b5SShyam Kumar Thella
349664a6b5SShyam Kumar Thella  ranges: true
359664a6b5SShyam Kumar Thella
369664a6b5SShyam Kumar Thellarequired:
379664a6b5SShyam Kumar Thella  - compatible
389664a6b5SShyam Kumar Thella  - reg
399664a6b5SShyam Kumar Thella  - ranges
409664a6b5SShyam Kumar Thella
419664a6b5SShyam Kumar ThellapatternProperties:
429664a6b5SShyam Kumar Thella  "^.*@[0-9a-f]+$":
439664a6b5SShyam Kumar Thella    type: object
449664a6b5SShyam Kumar Thella
459664a6b5SShyam Kumar Thella    properties:
469664a6b5SShyam Kumar Thella      reg:
479664a6b5SShyam Kumar Thella        maxItems: 1
489664a6b5SShyam Kumar Thella        description:
499664a6b5SShyam Kumar Thella          Offset and size in bytes within the storage device.
509664a6b5SShyam Kumar Thella
519664a6b5SShyam Kumar Thella      bits:
529664a6b5SShyam Kumar Thella        $ref: /schemas/types.yaml#/definitions/uint32-array
539664a6b5SShyam Kumar Thella        maxItems: 1
549664a6b5SShyam Kumar Thella        items:
559664a6b5SShyam Kumar Thella          items:
569664a6b5SShyam Kumar Thella            - minimum: 0
579664a6b5SShyam Kumar Thella              maximum: 7
589664a6b5SShyam Kumar Thella              description:
599664a6b5SShyam Kumar Thella                Offset in bit within the address range specified by reg.
609664a6b5SShyam Kumar Thella            - minimum: 1
619664a6b5SShyam Kumar Thella              description:
629664a6b5SShyam Kumar Thella                Size in bit within the address range specified by reg.
639664a6b5SShyam Kumar Thella
649664a6b5SShyam Kumar Thella    required:
659664a6b5SShyam Kumar Thella      - reg
669664a6b5SShyam Kumar Thella
679664a6b5SShyam Kumar Thella    additionalProperties: false
689664a6b5SShyam Kumar Thella
696fdc6e23SRob HerringunevaluatedProperties: false
706fdc6e23SRob Herring
719664a6b5SShyam Kumar Thellaexamples:
729664a6b5SShyam Kumar Thella  - |
739664a6b5SShyam Kumar Thella      sdam_1: nvram@b000 {
749664a6b5SShyam Kumar Thella          #address-cells = <1>;
759664a6b5SShyam Kumar Thella          #size-cells = <1>;
769664a6b5SShyam Kumar Thella          compatible = "qcom,spmi-sdam";
779664a6b5SShyam Kumar Thella          reg = <0xb000 0x100>;
789664a6b5SShyam Kumar Thella          ranges = <0 0xb000 0x100>;
799664a6b5SShyam Kumar Thella
809664a6b5SShyam Kumar Thella          /* Data cells */
819664a6b5SShyam Kumar Thella          restart_reason: restart@50 {
829664a6b5SShyam Kumar Thella              reg = <0x50 0x1>;
839664a6b5SShyam Kumar Thella              bits = <6 2>;
849664a6b5SShyam Kumar Thella          };
859664a6b5SShyam Kumar Thella      };
869664a6b5SShyam Kumar Thella...
87