From fb07193105941c721cb1af4e63455d741cdedba0 Mon Sep 17 00:00:00 2001 From: David Collins Date: Mon, 14 Oct 2019 17:24:41 -0700 Subject: [PATCH] dt-bindings: nvmem: add bindings for QTI SDAM devices Qualcomm Technologies, Inc. (QTI) SDAM devices provide an interface for other PMIC peripherals to access the shared memory found on QTI PMICs. Change-Id: Ia8ce10171f9cfa5249dc69c7edb4d66cb959ca80 --- bindings/nvmem/qcom-spmi-sdam.txt | 49 +++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 bindings/nvmem/qcom-spmi-sdam.txt diff --git a/bindings/nvmem/qcom-spmi-sdam.txt b/bindings/nvmem/qcom-spmi-sdam.txt new file mode 100644 index 000000000000..b849a22e2c20 --- /dev/null +++ b/bindings/nvmem/qcom-spmi-sdam.txt @@ -0,0 +1,49 @@ +Qualcomm Technologies, Inc. Shared Direct Access Memory (SDAM) + +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. + +Below are the DT bindings for this module + +Supported properties: + +- compatible + Usage: required + Value type: + Definition: Should be "qcom,spmi-sdam" + +- reg + Usage: required + Value type: + Definition: The base address and size of the sdam peripheral. + +- Data cells + Usage: required + Value type: Subnodes with bindings described in bindings/nvmem/nvmem.txt. + Definition: Cells defining the shared memory usage and configuration. + +Example: + + sdam_1: sdam@b000 { + compatible = "qcom,spmi-sdam"; + reg = <0xb000 0x100>; + + .... + /* Data cells */ + restart_reason: restart@50 { + reg = <0x50 0x1>; + bits = <7 2>; + }; + }; + += Data consumers = +Are device nodes which consume nvmem data cells. + +Example: + + { + ... + nvmem-cells = <&restart_reason>; + nvmem-cell-names = "pmic_restart_reason"; + };