NVIDIA Tegra30 SoC External Memory Controller
Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/nvidia,tegra30-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 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. Tegra30 EMC supports multiple JEDEC standard protocols: LPDDR2, LPDDR3, and DDR3.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "nvidia,tegra30-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
#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 speedo ID mask.
Properties matching a name pattern (patternProperties) #
^emc-timings-[0-9]+$ — name matches this regular expression #
Value type (type): "object"
Properties and child nodes (properties) #
nvidia,ram-code — required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Value of RAM_CODE this timing set is used for.
Properties matching a name pattern (patternProperties) #
^timing-[0-9]+$ — name matches this regular expression
Value type (type): "object"
Properties and child nodes (properties)
clock-frequency — required here
Memory clock rate in Hz.
Minimum value (minimum): 1000000
Maximum value (maximum): 900000000
nvidia,emc-auto-cal-interval — required here
Pad calibration interval in microseconds.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 2097151
nvidia,emc-mode-1 — required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Mode Register 1.
nvidia,emc-mode-2 — required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Mode Register 2.
nvidia,emc-mode-reset — required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Mode Register 0.
nvidia,emc-zcal-cnt-long — required here
Number of EMC clocks to wait before issuing any commands after sending ZCAL_MRW_CMD.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 1023
nvidia,emc-cfg-dyn-self-ref — not listed as required here
Value type (type): "boolean"
Dynamic self-refresh enabled.
nvidia,emc-cfg-periodic-qrst — not listed as required here
Value type (type): "boolean"
FBIO "read" FIFO periodic resetting enabled.
nvidia,emc-configuration — required here
EMC timing characterization data. These are the registers (see section "18.13.2 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_WEXT
Item 14
EMC_WDV
Item 15
EMC_QUSE
Item 16
EMC_QRST
Item 17
EMC_QSAFE
Item 18
EMC_RDV
Item 19
EMC_REFRESH
Item 20
EMC_BURST_REFRESH_NUM
Item 21
EMC_PRE_REFRESH_REQ_CNT
Item 22
EMC_PDEX2WR
Item 23
EMC_PDEX2RD
Item 24
EMC_PCHG2PDEN
Item 25
EMC_ACT2PDEN
Item 26
EMC_AR2PDEN
Item 27
EMC_RW2PDEN
Item 28
EMC_TXSR
Item 29
EMC_TXSRDLL
Item 30
EMC_TCKE
Item 31
EMC_TFAW
Item 32
EMC_TRPAB
Item 33
EMC_TCLKSTABLE
Item 34
EMC_TCLKSTOP
Item 35
EMC_TREFBW
Item 36
EMC_QUSE_EXTRA
Item 37
EMC_FBIO_CFG6
Item 38
EMC_ODT_WRITE
Item 39
EMC_ODT_READ
Item 40
EMC_FBIO_CFG5
Item 41
EMC_CFG_DIG_DLL
Item 42
EMC_CFG_DIG_DLL_PERIOD
Item 43
EMC_DLL_XFORM_DQS0
Item 44
EMC_DLL_XFORM_DQS1
Item 45
EMC_DLL_XFORM_DQS2
Item 46
EMC_DLL_XFORM_DQS3
Item 47
EMC_DLL_XFORM_DQS4
Item 48
EMC_DLL_XFORM_DQS5
Item 49
EMC_DLL_XFORM_DQS6
Item 50
EMC_DLL_XFORM_DQS7
Item 51
EMC_DLL_XFORM_QUSE0
Item 52
EMC_DLL_XFORM_QUSE1
Item 53
EMC_DLL_XFORM_QUSE2
Item 54
EMC_DLL_XFORM_QUSE3
Item 55
EMC_DLL_XFORM_QUSE4
Item 56
EMC_DLL_XFORM_QUSE5
Item 57
EMC_DLL_XFORM_QUSE6
Item 58
EMC_DLL_XFORM_QUSE7
Item 59
EMC_DLI_TRIM_TXDQS0
Item 60
EMC_DLI_TRIM_TXDQS1
Item 61
EMC_DLI_TRIM_TXDQS2
Item 62
EMC_DLI_TRIM_TXDQS3
Item 63
EMC_DLI_TRIM_TXDQS4
Item 64
EMC_DLI_TRIM_TXDQS5
Item 65
EMC_DLI_TRIM_TXDQS6
Item 66
EMC_DLI_TRIM_TXDQS7
Item 67
EMC_DLL_XFORM_DQ0
Item 68
EMC_DLL_XFORM_DQ1
Item 69
EMC_DLL_XFORM_DQ2
Item 70
EMC_DLL_XFORM_DQ3
Item 71
EMC_XM2CMDPADCTRL
Item 72
EMC_XM2DQSPADCTRL2
Item 73
EMC_XM2DQPADCTRL2
Item 74
EMC_XM2CLKPADCTRL
Item 75
EMC_XM2COMPPADCTRL
Item 76
EMC_XM2VTTGENPADCTRL
Item 77
EMC_XM2VTTGENPADCTRL2
Item 78
EMC_XM2QUSEPADCTRL
Item 79
EMC_XM2DQSPADCTRL3
Item 80
EMC_CTT_TERM_CTRL
Item 81
EMC_ZCAL_INTERVAL
Item 82
EMC_ZCAL_WAIT_CNT
Item 83
EMC_MRS_WAIT_CNT
Item 84
EMC_AUTO_CAL_CONFIG
Item 85
EMC_CTT
Item 86
EMC_CTT_DURATION
Item 87
EMC_DYN_SELF_REF_CONTROL
Item 88
EMC_FBIO_SPARE
Item 89
EMC_CFG_RSV
Required in this object (required): "clock-frequency", "nvidia,emc-auto-cal-interval", "nvidia,emc-mode-1", "nvidia,emc-mode-2", "nvidia,emc-mode-reset", "nvidia,emc-zcal-cnt-long", "nvidia,emc-configuration"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Required in this object (required): "nvidia,ram-code"
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,tegra30-emc";
reg = <0x7000f400 0x400>;
interrupts = <0 78 4>;
clocks = <&tegra_car 57>;
nvidia,memory-controller = <&mc>;
operating-points-v2 = <&dvfs_opp_table>;
power-domains = <&domain>;
#interconnect-cells = <0>;
emc-timings-1 {
nvidia,ram-code = <1>;
timing-667000000 {
clock-frequency = <667000000>;
nvidia,emc-auto-cal-interval = <0x001fffff>;
nvidia,emc-mode-1 = <0x80100002>;
nvidia,emc-mode-2 = <0x80200018>;
nvidia,emc-mode-reset = <0x80000b71>;
nvidia,emc-zcal-cnt-long = <0x00000040>;
nvidia,emc-cfg-periodic-qrst;
nvidia,emc-configuration = <
0x00000020 /* EMC_RC */
0x0000006a /* EMC_RFC */
0x00000017 /* EMC_RAS */
0x00000007 /* EMC_RP */
0x00000005 /* EMC_R2W */
0x0000000c /* EMC_W2R */
0x00000003 /* EMC_R2P */
0x00000011 /* EMC_W2P */
0x00000007 /* EMC_RD_RCD */
0x00000007 /* EMC_WR_RCD */
0x00000002 /* EMC_RRD */
0x00000001 /* EMC_REXT */
0x00000000 /* EMC_WEXT */
0x00000007 /* EMC_WDV */
0x0000000a /* EMC_QUSE */
0x00000009 /* EMC_QRST */
0x0000000b /* EMC_QSAFE */
0x00000011 /* EMC_RDV */
0x00001412 /* EMC_REFRESH */
0x00000000 /* EMC_BURST_REFRESH_NUM */
0x00000504 /* EMC_PRE_REFRESH_REQ_CNT */
0x00000002 /* EMC_PDEX2WR */
0x0000000e /* EMC_PDEX2RD */
0x00000001 /* EMC_PCHG2PDEN */
0x00000000 /* EMC_ACT2PDEN */
0x0000000c /* EMC_AR2PDEN */
0x00000016 /* EMC_RW2PDEN */
0x00000072 /* EMC_TXSR */
0x00000200 /* EMC_TXSRDLL */
0x00000005 /* EMC_TCKE */
0x00000015 /* EMC_TFAW */
0x00000000 /* EMC_TRPAB */
0x00000006 /* EMC_TCLKSTABLE */
0x00000007 /* EMC_TCLKSTOP */
0x00001453 /* EMC_TREFBW */
0x0000000b /* EMC_QUSE_EXTRA */
0x00000006 /* EMC_FBIO_CFG6 */
0x00000000 /* EMC_ODT_WRITE */
0x00000000 /* EMC_ODT_READ */
0x00005088 /* EMC_FBIO_CFG5 */
0xf00b0191 /* EMC_CFG_DIG_DLL */
0x00008000 /* EMC_CFG_DIG_DLL_PERIOD */
0x00000008 /* EMC_DLL_XFORM_DQS0 */
0x00000008 /* EMC_DLL_XFORM_DQS1 */
0x00000008 /* EMC_DLL_XFORM_DQS2 */
0x00000008 /* EMC_DLL_XFORM_DQS3 */
0x0000000a /* EMC_DLL_XFORM_DQS4 */
0x0000000a /* EMC_DLL_XFORM_DQS5 */
0x0000000a /* EMC_DLL_XFORM_DQS6 */
0x0000000a /* EMC_DLL_XFORM_DQS7 */
0x00018000 /* EMC_DLL_XFORM_QUSE0 */
0x00018000 /* EMC_DLL_XFORM_QUSE1 */
0x00018000 /* EMC_DLL_XFORM_QUSE2 */
0x00018000 /* EMC_DLL_XFORM_QUSE3 */
0x00000000 /* EMC_DLL_XFORM_QUSE4 */
0x00000000 /* EMC_DLL_XFORM_QUSE5 */
0x00000000 /* EMC_DLL_XFORM_QUSE6 */
0x00000000 /* EMC_DLL_XFORM_QUSE7 */
0x00000000 /* EMC_DLI_TRIM_TXDQS0 */
0x00000000 /* EMC_DLI_TRIM_TXDQS1 */
0x00000000 /* EMC_DLI_TRIM_TXDQS2 */
0x00000000 /* EMC_DLI_TRIM_TXDQS3 */
0x00000000 /* EMC_DLI_TRIM_TXDQS4 */
0x00000000 /* EMC_DLI_TRIM_TXDQS5 */
0x00000000 /* EMC_DLI_TRIM_TXDQS6 */
0x00000000 /* EMC_DLI_TRIM_TXDQS7 */
0x0000000a /* EMC_DLL_XFORM_DQ0 */
0x0000000a /* EMC_DLL_XFORM_DQ1 */
0x0000000a /* EMC_DLL_XFORM_DQ2 */
0x0000000a /* EMC_DLL_XFORM_DQ3 */
0x000002a0 /* EMC_XM2CMDPADCTRL */
0x0800013d /* EMC_XM2DQSPADCTRL2 */
0x22220000 /* EMC_XM2DQPADCTRL2 */
0x77fff884 /* EMC_XM2CLKPADCTRL */
0x01f1f501 /* EMC_XM2COMPPADCTRL */
0x07077404 /* EMC_XM2VTTGENPADCTRL */
0x54000000 /* EMC_XM2VTTGENPADCTRL2 */
0x080001e8 /* EMC_XM2QUSEPADCTRL */
0x0c000021 /* EMC_XM2DQSPADCTRL3 */
0x00000802 /* EMC_CTT_TERM_CTRL */
0x00020000 /* EMC_ZCAL_INTERVAL */
0x00000100 /* EMC_ZCAL_WAIT_CNT */
0x0155000c /* EMC_MRS_WAIT_CNT */
0xa0f10000 /* EMC_AUTO_CAL_CONFIG */
0x00000000 /* EMC_CTT */
0x00000000 /* EMC_CTT_DURATION */
0x800028a5 /* EMC_DYN_SELF_REF_CONTROL */
0xe8000000 /* EMC_FBIO_SPARE */
0xff00ff49 /* EMC_CFG_RSV */
>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0)