Commit 72738fde authored by Peter De Schrijver's avatar Peter De Schrijver Committed by Thierry Reding

dt-bindings: firmware: Add support for tegra186-bpmp DRAM MRQ GSCs

Add memory-region property to the tegra186-bpmp binding to support
DRAM MRQ GSCs.
Co-developed-by: default avatarStefan Kristiansson <stefank@nvidia.com>
Signed-off-by: default avatarStefan Kristiansson <stefank@nvidia.com>
Signed-off-by: default avatarPeter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-by: default avatarConor Dooley <conor.dooley@microchip.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent e2c09648
...@@ -57,8 +57,11 @@ description: | ...@@ -57,8 +57,11 @@ description: |
"#address-cells" or "#size-cells" property. "#address-cells" or "#size-cells" property.
The shared memory area for the IPC TX and RX between CPU and BPMP are The shared memory area for the IPC TX and RX between CPU and BPMP are
predefined and work on top of sysram, which is an SRAM inside the predefined and work on top of either sysram, which is an SRAM inside the
chip. See ".../sram/sram.yaml" for the bindings. chip, or in normal SDRAM.
See ".../sram/sram.yaml" for the bindings for the SRAM case.
See "../reserved-memory/nvidia,tegra264-bpmp-shmem.yaml" for bindings for
the SDRAM case.
properties: properties:
compatible: compatible:
...@@ -81,6 +84,11 @@ properties: ...@@ -81,6 +84,11 @@ properties:
minItems: 2 minItems: 2
maxItems: 2 maxItems: 2
memory-region:
description: phandle to reserved memory region used for IPC between
CPU-NS and BPMP.
maxItems: 1
"#clock-cells": "#clock-cells":
const: 1 const: 1
...@@ -115,10 +123,15 @@ properties: ...@@ -115,10 +123,15 @@ properties:
additionalProperties: false additionalProperties: false
oneOf:
- required:
- memory-region
- required:
- shmem
required: required:
- compatible - compatible
- mboxes - mboxes
- shmem
- "#clock-cells" - "#clock-cells"
- "#power-domain-cells" - "#power-domain-cells"
- "#reset-cells" - "#reset-cells"
...@@ -165,8 +178,7 @@ examples: ...@@ -165,8 +178,7 @@ examples:
<&mc TEGRA186_MEMORY_CLIENT_BPMPDMAW &emc>; <&mc TEGRA186_MEMORY_CLIENT_BPMPDMAW &emc>;
interconnect-names = "read", "write", "dma-mem", "dma-write"; interconnect-names = "read", "write", "dma-mem", "dma-write";
iommus = <&smmu TEGRA186_SID_BPMP>; iommus = <&smmu TEGRA186_SID_BPMP>;
mboxes = <&hsp_top0 TEGRA_HSP_MBOX_TYPE_DB mboxes = <&hsp_top0 TEGRA_HSP_MBOX_TYPE_DB TEGRA_HSP_DB_MASTER_BPMP>;
TEGRA_HSP_DB_MASTER_BPMP>;
shmem = <&cpu_bpmp_tx>, <&cpu_bpmp_rx>; shmem = <&cpu_bpmp_tx>, <&cpu_bpmp_rx>;
#clock-cells = <1>; #clock-cells = <1>;
#power-domain-cells = <1>; #power-domain-cells = <1>;
...@@ -184,3 +196,20 @@ examples: ...@@ -184,3 +196,20 @@ examples:
#thermal-sensor-cells = <1>; #thermal-sensor-cells = <1>;
}; };
}; };
- |
#include <dt-bindings/mailbox/tegra186-hsp.h>
bpmp {
compatible = "nvidia,tegra186-bpmp";
interconnects = <&mc TEGRA186_MEMORY_CLIENT_BPMPR &emc>,
<&mc TEGRA186_MEMORY_CLIENT_BPMPW &emc>,
<&mc TEGRA186_MEMORY_CLIENT_BPMPDMAR &emc>,
<&mc TEGRA186_MEMORY_CLIENT_BPMPDMAW &emc>;
interconnect-names = "read", "write", "dma-mem", "dma-write";
mboxes = <&hsp_top1 TEGRA_HSP_MBOX_TYPE_DB TEGRA_HSP_DB_MASTER_BPMP>;
memory-region = <&dram_cpu_bpmp_mail>;
#clock-cells = <1>;
#power-domain-cells = <1>;
#reset-cells = <1>;
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment