* [PATCH v5] dt-bindings: nvmem: add binding for QTI SPMI SDAM
@ 2020-01-14 7:08 Shyam Kumar Thella
2020-01-14 14:21 ` Rob Herring
2020-01-16 16:12 ` Srinivas Kandagatla
0 siblings, 2 replies; 3+ messages in thread
From: Shyam Kumar Thella @ 2020-01-14 7:08 UTC (permalink / raw)
To: agross, srinivas.kandagatla, robh+dt, mark.rutland
Cc: Shyam Kumar Thella, linux-arm-msm, devicetree, linux-kernel
QTI SDAM allows PMIC peripherals to access the shared memory that is
available on QTI PMICs. Add documentation for it.
Signed-off-by: Shyam Kumar Thella <sthella@codeaurora.org>
---
.../devicetree/bindings/nvmem/qcom,spmi-sdam.yaml | 84 ++++++++++++++++++++++
1 file changed, 84 insertions(+)
create mode 100644 Documentation/devicetree/bindings/nvmem/qcom,spmi-sdam.yaml
diff --git a/Documentation/devicetree/bindings/nvmem/qcom,spmi-sdam.yaml b/Documentation/devicetree/bindings/nvmem/qcom,spmi-sdam.yaml
new file mode 100644
index 0000000..7bbd4e6
--- /dev/null
+++ b/Documentation/devicetree/bindings/nvmem/qcom,spmi-sdam.yaml
@@ -0,0 +1,84 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/nvmem/qcom,spmi-sdam.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm Technologies, Inc. SPMI SDAM DT bindings
+
+maintainers:
+ - Shyam Kumar Thella <sthella@codeaurora.org>
+
+description: |
+ 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.
+
+allOf:
+ - $ref: "nvmem.yaml#"
+
+properties:
+ compatible:
+ enum:
+ - qcom,spmi-sdam
+
+ reg:
+ maxItems: 1
+
+ "#address-cells":
+ const: 1
+
+ "#size-cells":
+ const: 1
+
+ ranges: true
+
+required:
+ - compatible
+ - reg
+ - ranges
+
+patternProperties:
+ "^.*@[0-9a-f]+$":
+ type: object
+
+ properties:
+ reg:
+ maxItems: 1
+ description:
+ Offset and size in bytes within the storage device.
+
+ bits:
+ $ref: /schemas/types.yaml#/definitions/uint32-array
+ maxItems: 1
+ items:
+ items:
+ - minimum: 0
+ maximum: 7
+ description:
+ Offset in bit within the address range specified by reg.
+ - minimum: 1
+ description:
+ Size in bit within the address range specified by reg.
+
+ required:
+ - reg
+
+ additionalProperties: false
+
+examples:
+ - |
+ sdam_1: nvram@b000 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "qcom,spmi-sdam";
+ reg = <0xb000 0x100>;
+ ranges = <0 0xb000 0x100>;
+
+ /* Data cells */
+ restart_reason: restart@50 {
+ reg = <0x50 0x1>;
+ bits = <6 2>;
+ };
+ };
+...
--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v5] dt-bindings: nvmem: add binding for QTI SPMI SDAM
2020-01-14 7:08 [PATCH v5] dt-bindings: nvmem: add binding for QTI SPMI SDAM Shyam Kumar Thella
@ 2020-01-14 14:21 ` Rob Herring
2020-01-16 16:12 ` Srinivas Kandagatla
1 sibling, 0 replies; 3+ messages in thread
From: Rob Herring @ 2020-01-14 14:21 UTC (permalink / raw)
To: Shyam Kumar Thella
Cc: Andy Gross, Srinivas Kandagatla, Mark Rutland, linux-arm-msm,
devicetree, linux-kernel
On Tue, Jan 14, 2020 at 1:08 AM Shyam Kumar Thella
<sthella@codeaurora.org> wrote:
>
> QTI SDAM allows PMIC peripherals to access the shared memory that is
> available on QTI PMICs. Add documentation for it.
>
> Signed-off-by: Shyam Kumar Thella <sthella@codeaurora.org>
> ---
> .../devicetree/bindings/nvmem/qcom,spmi-sdam.yaml | 84 ++++++++++++++++++++++
> 1 file changed, 84 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/nvmem/qcom,spmi-sdam.yaml
Reviewed-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v5] dt-bindings: nvmem: add binding for QTI SPMI SDAM
2020-01-14 7:08 [PATCH v5] dt-bindings: nvmem: add binding for QTI SPMI SDAM Shyam Kumar Thella
2020-01-14 14:21 ` Rob Herring
@ 2020-01-16 16:12 ` Srinivas Kandagatla
1 sibling, 0 replies; 3+ messages in thread
From: Srinivas Kandagatla @ 2020-01-16 16:12 UTC (permalink / raw)
To: Shyam Kumar Thella, agross, robh+dt, mark.rutland
Cc: linux-arm-msm, devicetree, linux-kernel
On 14/01/2020 07:08, Shyam Kumar Thella wrote:
> QTI SDAM allows PMIC peripherals to access the shared memory that is
> available on QTI PMICs. Add documentation for it.
>
> Signed-off-by: Shyam Kumar Thella <sthella@codeaurora.org>
Applied Thanks,
--srini
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-01-16 16:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-14 7:08 [PATCH v5] dt-bindings: nvmem: add binding for QTI SPMI SDAM Shyam Kumar Thella
2020-01-14 14:21 ` Rob Herring
2020-01-16 16:12 ` Srinivas Kandagatla
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).