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]+$"
46 - description: MC general interrupt
58 "#interconnect-cells":
62 "^external-memory-controller@[0-9a-f]+$":
64 The bulk of the work involved in controlling the external memory
65 controller on NVIDIA Tegra186 and later is performed on the BPMP. This
66 coprocessor exposes the EMC clock that is used to set the frequency at
67 which the external memory is clocked and a remote procedure call that
68 can be used to obtain the set of available frequencies.
84 - description: EMC general interrupt
88 - description: external memory clock
94 "#interconnect-cells":
98 $ref: /schemas/types.yaml#/definitions/phandle
100 phandle of the node representing the BPMP
106 const: nvidia,tegra186-emc
115 const: nvidia,tegra194-emc
124 const: nvidia,tegra234-emc
130 additionalProperties: false
138 - "#interconnect-cells"
145 const: nvidia,tegra186-mc
150 description: 5 memory controller channels and 1 for stream-id registers
164 const: nvidia,tegra194-mc
169 description: 17 memory controller channels and 1 for stream-id registers
195 const: nvidia,tegra234-mc
200 description: 17 memory controller channels and 1 for stream-id registers
223 additionalProperties: false
235 #include <dt-bindings/clock/tegra186-clock.h>
236 #include <dt-bindings/interrupt-controller/arm-gic.h>
239 #address-cells = <2>;
242 memory-controller@2c00000 {
243 compatible = "nvidia,tegra186-mc";
244 reg = <0x0 0x02c00000 0x0 0x10000>, /* MC-SID */
245 <0x0 0x02c10000 0x0 0x10000>, /* Broadcast channel */
246 <0x0 0x02c20000 0x0 0x10000>, /* MC0 */
247 <0x0 0x02c30000 0x0 0x10000>, /* MC1 */
248 <0x0 0x02c40000 0x0 0x10000>, /* MC2 */
249 <0x0 0x02c50000 0x0 0x10000>; /* MC3 */
250 reg-names = "sid", "broadcast", "ch0", "ch1", "ch2", "ch3";
251 interrupts = <GIC_SPI 223 IRQ_TYPE_LEVEL_HIGH>;
253 #address-cells = <2>;
256 ranges = <0x0 0x02c00000 0x0 0x02c00000 0x0 0xb0000>;
259 * Memory clients have access to all 40 bits that the memory
260 * controller can address.
262 dma-ranges = <0x0 0x0 0x0 0x0 0x100 0x0>;
264 external-memory-controller@2c60000 {
265 compatible = "nvidia,tegra186-emc";
266 reg = <0x0 0x02c60000 0x0 0x50000>;
267 interrupts = <GIC_SPI 224 IRQ_TYPE_LEVEL_HIGH>;
268 clocks = <&bpmp TEGRA186_CLK_EMC>;
271 #interconnect-cells = <0>;
273 nvidia,bpmp = <&bpmp>;