Commit c3859c14 authored by Thierry Reding's avatar Thierry Reding

dt-bindings: memory: tegra: Add Tegra234 support

Document the variant of the memory controller and external memory
controllers found on Tegra234 and add some memory client and SMMU
stream ID definitions for use in device tree files.
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 8c970e7e
...@@ -31,6 +31,7 @@ properties: ...@@ -31,6 +31,7 @@ properties:
- enum: - enum:
- nvidia,tegra186-mc - nvidia,tegra186-mc
- nvidia,tegra194-mc - nvidia,tegra194-mc
- nvidia,tegra234-mc
reg: reg:
minItems: 1 minItems: 1
...@@ -68,6 +69,7 @@ patternProperties: ...@@ -68,6 +69,7 @@ patternProperties:
- enum: - enum:
- nvidia,tegra186-emc - nvidia,tegra186-emc
- nvidia,tegra194-emc - nvidia,tegra194-emc
- nvidia,tegra234-emc
reg: reg:
minItems: 1 minItems: 1
...@@ -112,6 +114,15 @@ patternProperties: ...@@ -112,6 +114,15 @@ patternProperties:
reg: reg:
minItems: 2 minItems: 2
- if:
properties:
compatible:
const: nvidia,tegra234-emc
then:
properties:
reg:
minItems: 2
additionalProperties: false additionalProperties: false
required: required:
...@@ -142,6 +153,15 @@ allOf: ...@@ -142,6 +153,15 @@ allOf:
reg: reg:
minItems: 3 minItems: 3
- if:
properties:
compatible:
const: nvidia,tegra234-mc
then:
properties:
reg:
minItems: 3
additionalProperties: false additionalProperties: false
required: required:
......
...@@ -9,6 +9,15 @@ ...@@ -9,6 +9,15 @@
* @defgroup bpmp_clock_ids Clock ID's * @defgroup bpmp_clock_ids Clock ID's
* @{ * @{
*/ */
/**
* @brief controls the EMC clock frequency.
* @details Doing a clk_set_rate on this clock will select the
* appropriate clock source, program the source rate and execute a
* specific sequence to switch to the new clock source for both memory
* controllers. This can be used to control the balance between memory
* throughput and memory controller power.
*/
#define TEGRA234_CLK_EMC 31U
/** @brief output of gate CLK_ENB_FUSE */ /** @brief output of gate CLK_ENB_FUSE */
#define TEGRA234_CLK_FUSE 40U #define TEGRA234_CLK_FUSE 40U
/** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_SDMMC4 */ /** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_SDMMC4 */
......
/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */
#ifndef DT_BINDINGS_MEMORY_TEGRA234_MC_H
#define DT_BINDINGS_MEMORY_TEGRA234_MC_H
/* special clients */
#define TEGRA234_SID_INVALID 0x00
#define TEGRA234_SID_PASSTHROUGH 0x7f
/* NISO1 stream IDs */
#define TEGRA234_SID_SDMMC4 0x02
#define TEGRA234_SID_BPMP 0x10
/*
* memory client IDs
*/
/* sdmmcd memory read client */
#define TEGRA234_MEMORY_CLIENT_SDMMCRAB 0x63
/* sdmmcd memory write client */
#define TEGRA234_MEMORY_CLIENT_SDMMCWAB 0x67
/* BPMP read client */
#define TEGRA234_MEMORY_CLIENT_BPMPR 0x93
/* BPMP write client */
#define TEGRA234_MEMORY_CLIENT_BPMPW 0x94
/* BPMPDMA read client */
#define TEGRA234_MEMORY_CLIENT_BPMPDMAR 0x95
/* BPMPDMA write client */
#define TEGRA234_MEMORY_CLIENT_BPMPDMAW 0x96
#endif
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