Qualcomm Technologies, Inc. SPMI SDAM

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/qcom,spmi-sdam.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "David Collins <quic_collinsd@quicinc.com>"

The SDAM provides scratch register space for the PMIC clients. This memory can be used by software to store information or communicate to/from the PBUS.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): nvmem.yaml#

Rule 2 #

Shared schema rule ($ref): nvmem-deprecated-cells.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "qcom,spmi-sdam"

reg — required here #

Maximum number of items (maxItems): 1

ranges — required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "reg", "ranges"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

pmic {
    #address-cells = <1>;
    #size-cells = <0>;

    sdam_1: nvram@b000 {
        compatible = "qcom,spmi-sdam";
        reg = <0xb000>;
        #address-cells = <1>;
        #size-cells = <1>;
        ranges = <0 0xb000 0x100>;

        /* Data cells */
        restart_reason: restart@50 {
            reg = <0x50 0x1>;
            bits = <6 2>;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page