NVIDIA Tegra186 (and later) SoC Memory Controller
Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/nvidia,tegra186-mc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jon Hunter <jonathanh@nvidia.com>", "Thierry Reding <thierry.reding@gmail.com>"
The NVIDIA Tegra186 SoC features a 128 bit memory controller that is split into four 32 bit channels to support LPDDR4 with x16 subpartitions. The MC handles memory requests for 40-bit virtual addresses from internal clients and arbitrates among them to allocate memory bandwidth.
Up to 15 GiB of physical memory can be supported. Security features such as encryption of traffic to and from DRAM via general security apertures are available for video and other secure applications, as well as DRAM ECC for automotive safety applications (single bit error correction and double bit error detection).
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^memory-controller@[0-9a-f]+$"
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"nvidia,tegra186-mc","nvidia,tegra194-mc","nvidia,tegra234-mc","nvidia,tegra264-mc"
reg — required here #
Minimum number of items (minItems): 6
Maximum number of items (maxItems): 18
reg-names — required here #
Minimum number of items (minItems): 6
Maximum number of items (maxItems): 18
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
#address-cells — required here #
Exact value (const): 2
#size-cells — required here #
Exact value (const): 2
ranges — not listed as required here #
true — No constraints added by this property rule.
dma-ranges — not listed as required here #
true — No constraints added by this property rule.
#interconnect-cells — not listed as required here #
Exact value (const): 1
Properties matching a name pattern (patternProperties) #
^external-memory-controller@[0-9a-f]+$ — name matches this regular expression #
The bulk of the work involved in controlling the external memory controller on NVIDIA Tegra186 and later is performed on the BPMP. This coprocessor exposes the EMC clock that is used to set the frequency at which the external memory is clocked and a remote procedure call that can be used to obtain the set of available frequencies.
Value type (type): "object"
Properties and child nodes (properties) #
compatible — required here
Array item rules (items)
Item 1
Allowed values (
enum):"nvidia,tegra186-emc","nvidia,tegra194-emc","nvidia,tegra234-emc","nvidia,tegra264-emc"
reg — required here
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupts — required here
Array item rules (items)
Item 1
EMC general interrupt
clocks — required here
Array item rules (items)
Item 1
external memory clock
Item 2
data backbone clock
Minimum number of items (minItems): 1
clock-names — required here
Array item rules (items)
Item 1
Exact value (
const):"emc"
Item 2
Exact value (
const):"dbb"
Minimum number of items (minItems): 1
#interconnect-cells — required here
Exact value (const): 0
nvidia,bpmp — required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
phandle of the node representing the BPMP
All of these rules must match (allOf) #
Rule 1
Condition (
if)Properties and child nodes (
properties)
compatible— not listed as required hereExact value (
const):"nvidia,tegra186-emc"When the condition matches (
then)Properties and child nodes (
properties)
reg— not listed as required hereMaximum number of items (
maxItems):1
clocks— not listed as required hereMaximum number of items (
maxItems):1
Rule 2
Condition (
if)Properties and child nodes (
properties)
compatible— not listed as required hereExact value (
const):"nvidia,tegra194-emc"When the condition matches (
then)Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):2
clocks— not listed as required hereMaximum number of items (
maxItems):1
Rule 3
Condition (
if)Properties and child nodes (
properties)
compatible— not listed as required hereExact value (
const):"nvidia,tegra234-emc"When the condition matches (
then)Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):2
clocks— not listed as required hereMaximum number of items (
maxItems):1
Rule 4
Condition (
if)Properties and child nodes (
properties)
compatible— not listed as required hereExact value (
const):"nvidia,tegra264-emc"When the condition matches (
then)Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):2
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "#interconnect-cells", "nvidia,bpmp"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereExact value (
const):"nvidia,tegra186-mc"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMaximum number of items (
maxItems):65 memory controller channels and 1 for stream-id registers
reg-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"sid"Item 2
Exact value (
const):"broadcast"Item 3
Exact value (
const):"ch0"Item 4
Exact value (
const):"ch1"Item 5
Exact value (
const):"ch2"Item 6
Exact value (
const):"ch3"
interrupts— not listed as required hereArray item rules (
items)Item 1
MC general interrupt
interrupt-names— not listed as required here
false— Not permitted by this property rule.
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereExact value (
const):"nvidia,tegra194-mc"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):1817 memory controller channels and 1 for stream-id registers
reg-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"sid"Item 2
Exact value (
const):"broadcast"Item 3
Exact value (
const):"ch0"Item 4
Exact value (
const):"ch1"Item 5
Exact value (
const):"ch2"Item 6
Exact value (
const):"ch3"Item 7
Exact value (
const):"ch4"Item 8
Exact value (
const):"ch5"Item 9
Exact value (
const):"ch6"Item 10
Exact value (
const):"ch7"Item 11
Exact value (
const):"ch8"Item 12
Exact value (
const):"ch9"Item 13
Exact value (
const):"ch10"Item 14
Exact value (
const):"ch11"Item 15
Exact value (
const):"ch12"Item 16
Exact value (
const):"ch13"Item 17
Exact value (
const):"ch14"Item 18
Exact value (
const):"ch15"
interrupts— not listed as required hereArray item rules (
items)Item 1
MC general interrupt
interrupt-names— not listed as required here
false— Not permitted by this property rule.
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereExact value (
const):"nvidia,tegra234-mc"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):1817 memory controller channels and 1 for stream-id registers
reg-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"sid"Item 2
Exact value (
const):"broadcast"Item 3
Exact value (
const):"ch0"Item 4
Exact value (
const):"ch1"Item 5
Exact value (
const):"ch2"Item 6
Exact value (
const):"ch3"Item 7
Exact value (
const):"ch4"Item 8
Exact value (
const):"ch5"Item 9
Exact value (
const):"ch6"Item 10
Exact value (
const):"ch7"Item 11
Exact value (
const):"ch8"Item 12
Exact value (
const):"ch9"Item 13
Exact value (
const):"ch10"Item 14
Exact value (
const):"ch11"Item 15
Exact value (
const):"ch12"Item 16
Exact value (
const):"ch13"Item 17
Exact value (
const):"ch14"Item 18
Exact value (
const):"ch15"
interrupts— not listed as required hereArray item rules (
items)Item 1
MC general interrupt
interrupt-names— not listed as required here
false— Not permitted by this property rule.
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereExact value (
const):"nvidia,tegra264-mc"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):17Maximum number of items (
maxItems):1717 memory controller channels
reg-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"broadcast"Item 2
Exact value (
const):"ch0"Item 3
Exact value (
const):"ch1"Item 4
Exact value (
const):"ch2"Item 5
Exact value (
const):"ch3"Item 6
Exact value (
const):"ch4"Item 7
Exact value (
const):"ch5"Item 8
Exact value (
const):"ch6"Item 9
Exact value (
const):"ch7"Item 10
Exact value (
const):"ch8"Item 11
Exact value (
const):"ch9"Item 12
Exact value (
const):"ch10"Item 13
Exact value (
const):"ch11"Item 14
Exact value (
const):"ch12"Item 15
Exact value (
const):"ch13"Item 16
Exact value (
const):"ch14"Item 17
Exact value (
const):"ch15"
interrupts— not listed as required hereMinimum number of items (
minItems):8Maximum number of items (
maxItems):8One interrupt line for each MC component
interrupt-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"mcf"Item 2
Exact value (
const):"hub1"Item 3
Exact value (
const):"hub2"Item 4
Exact value (
const):"hub3"Item 5
Exact value (
const):"hub4"Item 6
Exact value (
const):"hub5"Item 7
Exact value (
const):"sbs"Item 8
Exact value (
const):"channel"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "#address-cells", "#size-cells"
Examples (examples) #
#include <dt-bindings/clock/tegra186-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
bus {
#address-cells = <2>;
#size-cells = <2>;
memory-controller@2c00000 {
compatible = "nvidia,tegra186-mc";
reg = <0x0 0x02c00000 0x0 0x10000>, /* MC-SID */
<0x0 0x02c10000 0x0 0x10000>, /* Broadcast channel */
<0x0 0x02c20000 0x0 0x10000>, /* MC0 */
<0x0 0x02c30000 0x0 0x10000>, /* MC1 */
<0x0 0x02c40000 0x0 0x10000>, /* MC2 */
<0x0 0x02c50000 0x0 0x10000>; /* MC3 */
reg-names = "sid", "broadcast", "ch0", "ch1", "ch2", "ch3";
interrupts = <GIC_SPI 223 IRQ_TYPE_LEVEL_HIGH>;
#address-cells = <2>;
#size-cells = <2>;
ranges = <0x0 0x02c00000 0x0 0x02c00000 0x0 0xb0000>;
/*
* Memory clients have access to all 40 bits that the memory
* controller can address.
*/
dma-ranges = <0x0 0x0 0x0 0x0 0x100 0x0>;
external-memory-controller@2c60000 {
compatible = "nvidia,tegra186-emc";
reg = <0x0 0x02c60000 0x0 0x50000>;
interrupts = <GIC_SPI 224 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&bpmp TEGRA186_CLK_EMC>;
clock-names = "emc";
#interconnect-cells = <0>;
nvidia,bpmp = <&bpmp>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)