Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60124aae authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

dt-bindings: nvmem: Add DT bindings for QTI SDAM driver



QTI SDAM driver allows PMIC peripherals to access the shared
memory that is available on QTI PMICs. Add device tree bindings
for it.

This snapshot is taken as of msm-4.14
commit 9bb584ae3a9d ("msm/sde/rotator: Add rev checks for sdmmagpie").

Change-Id: Ia8ce10171f9cfa5249dc69c7edb4d66cb959ca80
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent b380e617
Loading
Loading
Loading
Loading
+49 −0
Original line number Diff line number Diff line
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:	<string>
  Definition:	Should be "qcom,spmi-sdam"

- reg
  Usage:	required
  Value type:	<prop-encoded-array>
  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";
	};