hc
2024-05-10 10ebd8556b7990499c896a550e3d416b444211e6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/memory-controllers/nvidia,tegra210-emc.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
 
title: NVIDIA Tegra210 SoC External Memory Controller
 
maintainers:
  - Thierry Reding <thierry.reding@gmail.com>
  - Jon Hunter <jonathanh@nvidia.com>
 
description: |
  The EMC interfaces with the off-chip SDRAM to service the request stream
  sent from the memory controller.
 
properties:
  compatible:
    const: nvidia,tegra210-emc
 
  reg:
    maxItems: 3
 
  clocks:
    items:
      - description: external memory clock
 
  clock-names:
    items:
      - const: emc
 
  interrupts:
    items:
      - description: EMC general interrupt
 
  memory-region:
    $ref: /schemas/types.yaml#/definitions/phandle
    description:
      phandle to a reserved memory region describing the table of EMC
      frequencies trained by the firmware
 
  nvidia,memory-controller:
    $ref: /schemas/types.yaml#/definitions/phandle
    description:
      phandle of the memory controller node
 
required:
  - compatible
  - reg
  - clocks
  - clock-names
  - nvidia,memory-controller
 
additionalProperties: false
 
examples:
  - |
    #include <dt-bindings/clock/tegra210-car.h>
    #include <dt-bindings/interrupt-controller/arm-gic.h>
 
    reserved-memory {
        #address-cells = <1>;
        #size-cells = <1>;
        ranges;
 
        emc_table: emc-table@83400000 {
            compatible = "nvidia,tegra210-emc-table";
            reg = <0x83400000 0x10000>;
        };
    };
 
    external-memory-controller@7001b000 {
        compatible = "nvidia,tegra210-emc";
        reg = <0x7001b000 0x1000>,
              <0x7001e000 0x1000>,
              <0x7001f000 0x1000>;
        clocks = <&tegra_car TEGRA210_CLK_EMC>;
        clock-names = "emc";
        interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
        memory-region = <&emc_table>;
        nvidia,memory-controller = <&mc>;
    };