1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/memory-controllers/nvidia,tegra186-mc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: NVIDIA Tegra186 (and later) SoC Memory Controller
10 - Jon Hunter <jonathanh@nvidia.com>
11 - Thierry Reding <thierry.reding@gmail.com>
14 The NVIDIA Tegra186 SoC features a 128 bit memory controller that is split
15 into four 32 bit channels to support LPDDR4 with x16 subpartitions. The MC
16 handles memory requests for 40-bit virtual addresses from internal clients
17 and arbitrates among them to allocate memory bandwidth.
19 Up to 15 GiB of physical memory can be supported. Security features such as
20 encryption of traffic to and from DRAM via general security apertures are
21 available for video and other secure applications, as well as DRAM ECC for
22 automotive safety applications (single bit error correction and double bit
27 pattern: "^memory-controller@[0-9a-f]+$"
52 "^external-memory-controller@[0-9a-f]+$":
54 The bulk of the work involved in controlling the external memory
55 controller on NVIDIA Tegra186 and later is performed on the BPMP. This
56 coprocessor exposes the EMC clock that is used to set the frequency at
57 which the external memory is clocked and a remote procedure call that
58 can be used to obtain the set of available frequencies.
75 - description: external memory clock
82 $ref: /schemas/types.yaml#/definitions/phandle
84 phandle of the node representing the BPMP
93 additionalProperties: false
97 #include <dt-bindings/clock/tegra186-clock.h>
98 #include <dt-bindings/interrupt-controller/arm-gic.h>
101 #address-cells = <2>;
104 memory-controller@2c00000 {
105 compatible = "nvidia,tegra186-mc";
106 reg = <0x0 0x02c00000 0x0 0xb0000>;
107 interrupts = <GIC_SPI 223 IRQ_TYPE_LEVEL_HIGH>;
109 #address-cells = <2>;
112 ranges = <0x0 0x02c00000 0x0 0x02c00000 0x0 0xb0000>;
115 * Memory clients have access to all 40 bits that the memory
116 * controller can address.
118 dma-ranges = <0x0 0x0 0x0 0x0 0x100 0x0>;
120 external-memory-controller@2c60000 {
121 compatible = "nvidia,tegra186-emc";
122 reg = <0x0 0x02c60000 0x0 0x50000>;
123 interrupts = <GIC_SPI 224 IRQ_TYPE_LEVEL_HIGH>;
124 clocks = <&bpmp TEGRA186_CLK_EMC>;
127 nvidia,bpmp = <&bpmp>;
133 compatible = "nvidia,tegra186-bpmp";