NVIDIA Tegra20 SoC External Memory Controller
Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/nvidia,tegra20-emc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Dmitry Osipenko <digetx@gmail.com>", "Jon Hunter <jonathanh@nvidia.com>", "Thierry Reding <thierry.reding@gmail.com>"
The External Memory Controller (EMC) interfaces with the off-chip SDRAM to service the request stream sent from Memory Controller. The EMC also has various performance-affecting settings beyond the obvious SDRAM configuration parameters and initialization settings. Tegra20 EMC supports multiple JEDEC standard protocols: DDR1, LPDDR2 and DDR2.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "nvidia,tegra20-emc"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
#interconnect-cells — required here #
Exact value (const): 0
nvidia,memory-controller — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle of the Memory Controller node.
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
Phandle of the SoC "core" power domain.
operating-points-v2 — required here #
Should contain freqs and voltages and opp-supported-hw property, which is a bitfield indicating SoC process ID mask.
nvidia,use-ram-code — not listed as required here #
Value type (type): "boolean"
If present, the emc-tables@ sub-nodes will be addressed.
Reusable definitions ($defs) #
emc-table #
Value type (type): "object"
Properties and child nodes (properties) #
compatible — required here
Exact value (const): "nvidia,tegra20-emc-table"
clock-frequency — required here
Memory clock rate in kHz.
Minimum value (minimum): 1000
Maximum value (maximum): 900000
reg — required here
Maximum number of items (maxItems): 1
Either an opaque enumerator to tell different tables apart, or the valid frequency for which the table should be used (in kHz).
nvidia,emc-registers — required here
EMC timing characterization data. These are the registers (see section "15.4.1 EMC Registers" in the TRM) whose values need to be specified, according to the board documentation.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array item rules (items)
Item 1
EMC_RC
Item 2
EMC_RFC
Item 3
EMC_RAS
Item 4
EMC_RP
Item 5
EMC_R2W
Item 6
EMC_W2R
Item 7
EMC_R2P
Item 8
EMC_W2P
Item 9
EMC_RD_RCD
Item 10
EMC_WR_RCD
Item 11
EMC_RRD
Item 12
EMC_REXT
Item 13
EMC_WDV
Item 14
EMC_QUSE
Item 15
EMC_QRST
Item 16
EMC_QSAFE
Item 17
EMC_RDV
Item 18
EMC_REFRESH
Item 19
EMC_BURST_REFRESH_NUM
Item 20
EMC_PDEX2WR
Item 21
EMC_PDEX2RD
Item 22
EMC_PCHG2PDEN
Item 23
EMC_ACT2PDEN
Item 24
EMC_AR2PDEN
Item 25
EMC_RW2PDEN
Item 26
EMC_TXSR
Item 27
EMC_TCKE
Item 28
EMC_TFAW
Item 29
EMC_TRPAB
Item 30
EMC_TCLKSTABLE
Item 31
EMC_TCLKSTOP
Item 32
EMC_TREFBW
Item 33
EMC_QUSE_EXTRA
Item 34
EMC_FBIO_CFG6
Item 35
EMC_ODT_WRITE
Item 36
EMC_ODT_READ
Item 37
EMC_FBIO_CFG5
Item 38
EMC_CFG_DIG_DLL
Item 39
EMC_DLL_XFORM_DQS
Item 40
EMC_DLL_XFORM_QUSE
Item 41
EMC_ZCAL_REF_CNT
Item 42
EMC_ZCAL_WAIT_CNT
Item 43
EMC_AUTO_CAL_INTERVAL
Item 44
EMC_CFG_CLKTRIM_0
Item 45
EMC_CFG_CLKTRIM_1
Item 46
EMC_CFG_CLKTRIM_2
Required in this object (required): "clock-frequency", "compatible", "reg", "nvidia,emc-registers"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties matching a name pattern (patternProperties) #
^emc-table@[0-9]+$ — name matches this regular expression #
Shared schema rule ($ref): #/$defs/emc-table
^emc-tables@[a-f0-9-]+$ — name matches this regular expression #
Value type (type): "object"
Properties and child nodes (properties) #
reg — not listed as required here
Maximum number of items (maxItems): 1
An opaque enumerator to tell different tables apart.
nvidia,ram-code — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Value of RAM_CODE this timing set is used for.
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
lpddr2 — not listed as required here
Shared schema rule ($ref): ddr/jedec,lpddr2.yaml#
Value type (type): "object"
Properties matching a name pattern (patternProperties) #
^emc-table@[0-9]+$ — name matches this regular expression
Shared schema rule ($ref): #/$defs/emc-table
Exactly one of these rules must match (oneOf) #
Rule 1
Rule 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", "nvidia,memory-controller", "#interconnect-cells", "operating-points-v2"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
external-memory-controller@7000f400 {
compatible = "nvidia,tegra20-emc";
reg = <0x7000f400 0x400>;
interrupts = <0 78 4>;
clocks = <&clock_controller 57>;
nvidia,memory-controller = <&mc>;
operating-points-v2 = <&dvfs_opp_table>;
power-domains = <&domain>;
#interconnect-cells = <0>;
#address-cells = <1>;
#size-cells = <0>;
nvidia,use-ram-code;
emc-tables@0 {
nvidia,ram-code = <0>;
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
emc-table@333000 {
reg = <333000>;
compatible = "nvidia,tegra20-emc-table";
clock-frequency = <333000>;
nvidia,emc-registers = <0x00000018 0x00000033
0x00000012 0x00000004 0x00000004 0x00000005
0x00000003 0x0000000c 0x00000006 0x00000006
0x00000003 0x00000001 0x00000004 0x00000005
0x00000004 0x00000009 0x0000000d 0x00000bff
0x00000000 0x00000003 0x00000003 0x00000006
0x00000006 0x00000001 0x00000011 0x000000c8
0x00000003 0x0000000e 0x00000007 0x00000008
0x00000002 0x00000000 0x00000000 0x00000002
0x00000000 0x00000000 0x00000083 0xf0440303
0x007fe010 0x00001414 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000>;
};
};
emc-tables@1 {
reg = <1>;
lpddr2 {
compatible = "elpida,B8132B2PB-6D-F", "jedec,lpddr2-s4";
revision-id1 = <1>;
density = <2048>;
io-width = <16>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)