Add EMC scaling support for Tegra210
Subsystems (5)
PATCH 8/8 arm64: tegra: Add EMC table of ram code 1 for Tegra210 Shield platform
In reply to Joseph LoAdd EMC table of ram code 1 and revision number 7 for Tegra210 Shield platform.
--- .../boot/dts/nvidia/tegra210-p2894-emc.dtsi | 12423 ++++++++++++++++ 1 file changed, 12423 insertions(+)
arch/arm64/boot/dts/nvidia/tegra210-p2894-emc.dtsi +12423 -0
@@ -12424,5 +12424,12428 @@ >; }; }; + emc-table@1 { + nvidia,ram-code = <1>; + emc-table@40800 { + compatible = "nvidia,tegra21-emc-table"; + nvidia,revision = <0x07>; + nvidia,dvfs-version = "02_40800_NoCfgVersion_V9.8.4_V1.6"; + clock-frequency = <40800>; + nvidia,emc-min-mv = <800>; + nvidia,gk20a-min-mv = <1100>; + nvidia,source = "pllp_out0"; + nvidia,src-sel-reg = <0x40188012>; + nvidia,needs-training = <0x00000000>; + nvidia,training_pattern = <0x00000000>; + nvidia,trained = <0x00000000>; + nvidia,periodic_training = <0x00000000>; + nvidia,trained_dram_clktree_c0d0u0 = <0x00000000>; + nvidia,trained_dram_clktree_c0d0u1 = <0x00000000>; + nvidia,trained_dram_clktree_c0d1u0 = <0x00000000>; + nvidia,trained_dram_clktree_c0d1u1 = <0x00000000>; + nvidia,trained_dram_clktree_c1d0u0 = <0x00000000>; + nvidia,trained_dram_clktree_c1d0u1 = <0x00000000>; + nvidia,trained_dram_clktree_c1d1u0 = <0x00000000>; + nvidia,trained_dram_clktree_c1d1u1 = <0x00000000>; + nvidia,current_dram_clktree_c0d0u0 = <0x00000000>; + nvidia,current_dram_clktree_c0d0u1 = <0x00000000>; + nvidia,current_dram_clktree_c0d1u0 = <0x00000000>; + nvidia,current_dram_clktree_c0d1u1 = <0x00000000>; + nvidia,current_dram_clktree_c1d0u0 = <0x00000000>; + nvidia,current_dram_clktree_c1d0u1 = <0x00000000>; + nvidia,current_dram_clktree_c1d1u0 = <0x00000000>; + nvidia,current_dram_clktree_c1d1u1 = <0x00000000>; + nvidia,run_clocks = <0x00000003>; + nvidia,tree_margin = <0x00000001>; + nvidia,burst-regs-num = <221>; + nvidia,burst-regs-per-ch-num = <8>; + nvidia,trim-regs-num = <138>; + nvidia,trim-regs-per-ch-num = <10>; + nvidia,burst-mc-regs-num = <33>; + nvidia,la-scale-regs-num = <24>; + nvidia,vref-regs-num = <4>; + nvidia,training-mod-regs-num = <20>; + nvidia,dram-timing-regs-num = <5>; + nvidia,min-mrs-wait = <0x00000015>; + nvidia,emc-mrw = <0x88010004>; + nvidia,emc-mrw2 = <0x88020000>; + nvidia,emc-mrw3 = <0x880d0000>; + nvidia,emc-mrw4 = <0xc0000000>; + nvidia,emc-mrw9 = <0x8c0e7272>; + nvidia,emc-mrs = <0x00000000>; + nvidia,emc-emrs = <0x00000000>; + nvidia,emc-emrs2 = <0x00000000>; + nvidia,emc-auto-cal-config = <0xa01a51d8>; + nvidia,emc-auto-cal-config2 = <0x05500000>; + nvidia,emc-auto-cal-config3 = <0x00770000>; + nvidia,emc-auto-cal-config4 = <0x00770000>; + nvidia,emc-auto-cal-config5 = <0x00770000>; + nvidia,emc-auto-cal-config6 = <0x00770000>; + nvidia,emc-auto-cal-config7 = <0x00770000>; + nvidia,emc-auto-cal-config8 = <0x00770404>; + nvidia,emc-cfg-2 = <0x00110805>; + nvidia,emc-sel-dpd-ctrl = <0x00040008>; + nvidia,emc-fdpd-ctrl-cmd-no-ramp = <0x00000001>; + nvidia,dll-clk-src = <0x40188012>; + nvidia,clk-out-enb-x-0-clk-enb-emc-dll = <0x00000001>; + nvidia,emc-clock-latency-change = <0x00005172>; + nvidia,ptfv = < + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x0000000a + 0x0000000a + 0x0000000a + 0x00000001 + >; + nvidia,emc-registers = < + 0x0000000c + 0x00000008 + 0x00000004 + 0x00000000 + 0x00000000 + 0x00000008 + 0x00000004 + 0x0000000a + 0x0000000d + 0x00000008 + 0x0000000b + 0x00000000 + 0x00000004 + 0x00000020 + 0x00000006 + 0x00000006 + 0x00000006 + 0x00000003 + 0x00000000 + 0x00000006 + 0x00000004 + 0x00000002 + 0x00000000 + 0x00000004 + 0x00000008 + 0x0000000d + 0x00000005 + 0x00000005 + 0x00000000 + 0x00000000 + 0x00000004 + 0x88037171 + 0x0000000a + 0x00000000 + 0x0000000a + 0x00010001 + 0x00000011 + 0x00000013 + 0x00000015 + 0x00000011 + 0x00000013 + 0x0000009a + 0x00000000 + 0x00000026 + 0x00000008 + 0x00000008 + 0x00000003 + 0x00000003 + 0x00000003 + 0x00000011 + 0x00000005 + 0x00000002 + 0x0000000d + 0x00000008 + 0x00000008 + 0x00000005 + 0x00000005 + 0x00000004 + 0x00000008 + 0x00000004 + 0x00000003 + 0x00000009 + 0xc8037171 + 0x000000a0 + 0x00000000 + 0x9160a00d + 0x00003bbf + 0x002c00a0 + 0x00008000 + 0x000000be + 0x0fff0fff + 0x0fff0fff + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x880b0000 + 0x00100010 + 0x00100010 + 0x0028002c + 0x002a002b + 0x002d002d + 0x00270028 + 0x00000000 + 0x00000000 + 0x0028002c + 0x002a002b + 0x002d002d + 0x00270028 + 0x00000000 + 0x00000000 + 0x00100010 + 0x00100010 + 0x00100010 + 0x00100010 + 0x00000010 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x8020221f + 0x0220f40f + 0x00000012 + 0x00064000 + 0x00090029 + 0x00290015 + 0x000b000a + 0xc1e00302 + 0x1f13412f + 0x00010014 + 0x00000804 + 0x00000550 + 0xf3200000 + 0x0fff0fff + 0x8000023a + 0x00000009 + 0x00000000 + 0x00000000 + 0x00000012 + 0x00000012 + 0x00020000 + 0x00050037 + 0x00000000 + 0x00000010 + 0x00003000 + 0x0a000000 + 0x02000111 + 0x00000008 + 0x00030808 + 0x00015c00 + 0x00100404 + 0x00001600 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000034 + 0x00000040 + 0x18000800 + 0x08000800 + 0x08000800 + 0x08000800 + 0x00400080 + 0x08801004 + 0x00000020 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0xefffefff + 0xc0c0c0c0 + 0xc0c0c0c0 + 0xdcdcdcdc + 0x0a0a0a0a + 0x0a0a0a0a + 0x0a0a0a0a + 0x0118600b + 0x00000000 + 0x00000000 + 0x00000013 + 0x00000009 + 0x00000015 + 0x88161414 + 0x00000011 + 0x00010001 + 0x00009080 + 0x07070404 + 0x00040014 + 0x0513801f + 0x1f101100 + 0x00000014 + 0x00107240 + 0x01124000 + 0x01125b6a + 0x0f081000 + 0x00105800 + 0x1110fc00 + 0x0f081300 + 0x00105800 + 0x1114fc00 + 0x07000300 + 0x00107240 + 0x55553c5a + 0xc8161414 + >; + nvidia,emc-burst-regs-per-ch = < + 0x880c7272 + 0x880c7272 + 0xc80c7272 + 0xc80c7272 + 0x8c0e7272 + 0x8c0e7272 + 0x4c0e7272 + 0x4c0e7272 + >; + nvidia,emc-shadow-regs-ca-train = < + 0x0000000c + 0x00000008 + 0x00000004 + 0x00000000 + 0x00000000 + 0x00000008 + 0x00000004 + 0x0000000a + 0x0000000d + 0x00000008 + 0x0000000b + 0x00000000 + 0x00000004 + 0x00000020 + 0x00000006 + 0x00000006 + 0x00000006 + 0x00000003 + 0x00000000 + 0x00000006 + 0x00000004 + 0x00000002 + 0x00000000 + 0x00000004 + 0x00000008 + 0x0000000d + 0x00000005 + 0x00000005 + 0x00000000 + 0x00000000 + 0x00000004 + 0x88037171 + 0x0000000a + 0x00000000 + 0x0000000a + 0x00010001 + 0x00000011 + 0x00000013 + 0x00000015 + 0x00000011 + 0x00000013 + 0x0000009a + 0x00000000 + 0x00000026 + 0x00000008 + 0x00000008 + 0x00000003 + 0x00000003 + 0x00000003 + 0x00000011 + 0x00000005 + 0x00000002 + 0x0000000d + 0x00000008 + 0x00000008 + 0x00000005 + 0x00000005 + 0x00000004 + 0x00000008 + 0x00000004 + 0x00000003 + 0x00000009 + 0xc8037171 + 0x000000a0 + 0x00000000 + 0x9960a00d + 0x00003bbf + 0x002c00a0 + 0x00008000 + 0x00000055 + 0x0fff0fff + 0x0fff0fff + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x880b0000 + 0x00100010 + 0x00100010 + 0x0028002c + 0x002a002b + 0x002d002d + 0x00270028 + 0x00000000 + 0x00000000 + 0x0028002c + 0x002a002b + 0x002d002d + 0x00270028 + 0x00000000 + 0x00000000 + 0x00100010 + 0x00100010 + 0x00100010 + 0x00100010 + 0x00000010 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x8020221f + 0x0220f40f + 0x00000012 + 0x00064000 + 0x00090029 + 0x00290015 + 0x000b000a + 0xc1e00302 + 0x1f13412f + 0x00010014 + 0x00000804 + 0x00000550 + 0xf3200000 + 0x0fff0fff + 0x8000023a + 0x00000009 + 0x00000000 + 0x00000000 + 0x00000012 + 0x00000012 + 0x00020000 + 0x05058033 + 0x05050000 + 0x00000000 + 0x00003000 + 0x0a000000 + 0x02000111 + 0x00000008 + 0x00030808 + 0x00015c00 + 0x00100404 + 0x00001600 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000034 + 0x00000040 + 0x18000800 + 0x08000800 + 0x08000800 + 0x08000800 + 0x00400080 + 0x08801004 + 0x00000020 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0xefffefff + 0xc0c0c0c0 + 0xc0c0c0c0 + 0xdcdcdcdc + 0x0a0a0a0a + 0x0a0a0a0a + 0x0a0a0a0a + 0x0118600b + 0x00000001 + 0x0000001f + 0x00000013 + 0x00000003 + 0x00000015 + 0x88161414 + 0x0000000b + 0x00010001 + 0x00009080 + 0x07070404 + 0x00040014 + 0x0513801f + 0x1f101100 + 0x00000014 + 0x00107240 + 0x01124000 + 0x01125b6a + 0x0f081000 + 0x00105800 + 0x1110fc00 + 0x0f081300 + 0x00105800 + 0x1114fc00 + 0x07000300 + 0x00107240 + 0x55553c5a + 0xc8161414 + >; + nvidia,emc-shadow-regs-quse-train = < + 0x0000000c + 0x00000008 + 0x00000004 + 0x00000000 + 0x00000000 + 0x00000008 + 0x00000004 + 0x00000009 + 0x0000000d + 0x00000008 + 0x0000000b + 0x00000000 + 0x00000004 + 0x00000020 + 0x00000006 + 0x00000006 + 0x00000006 + 0x00000003 + 0x00000000 + 0x00000006 + 0x00000004 + 0x00000002 + 0x00000000 + 0x00000004 + 0x00000008 + 0x0000000d + 0x00000002 + 0x00000002 + 0x00000000 + 0x00000000 + 0x00000005 + 0x88037171 + 0x00000008 + 0x00000001 + 0x80000000 + 0x00010002 + 0x00000011 + 0x00000013 + 0x00000015 + 0x00000011 + 0x00000013 + 0x0000009a + 0x00000000 + 0x00000026 + 0x00000008 + 0x00000008 + 0x00000003 + 0x00000003 + 0x00000003 + 0x00000011 + 0x00000005 + 0x00000002 + 0x0000000d + 0x00000008 + 0x00000008 + 0x00000005 + 0x00000005 + 0x00000004 + 0x00000008 + 0x00000004 + 0x00000003 + 0x00000009 + 0xc8037171 + 0x000000a0 + 0x00000000 + 0x9160400d + 0x00003bbf + 0x002c00a0 + 0x00008000 + 0x000000be + 0x0fff0fff + 0x0fff0fff + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x880b0000 + 0x00100010 + 0x00100010 + 0x0028002c + 0x002a002b + 0x002d002d + 0x00270028 + 0x00000000 + 0x00000000 + 0x0028002c + 0x002a002b + 0x002d002d + 0x00270028 + 0x00000000 + 0x00000000 + 0x00100010 + 0x00100010 + 0x00100010 + 0x00100010 + 0x00000010 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x8020221f + 0x0220f40f + 0x00000012 + 0x00064000 + 0x00090029 + 0x00290015 + 0x000b000a + 0xc1e00302 + 0x1f13412f + 0x00010014 + 0x00000804 + 0x00000550 + 0xf3200000 + 0x0fff0fff + 0x8000023a + 0x00000009 + 0x00000000 + 0x00000000 + 0x00000012 + 0x00000012 + 0x30020000 + 0x00058037 + 0x00000000 + 0x00000010 + 0x00003000 + 0x0a000000 + 0x02000111 + 0x00000008 + 0x00030808 + 0x00015c00 + 0x00100404 + 0x00001600 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000034 + 0x00000040 + 0x18000800 + 0x08000800 + 0x08000800 + 0x08000800 + 0x00400080 + 0x08801004 + 0x00000020 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0xefffefff + 0xc0c0c0c0 + 0xc0c0c0c0 + 0xdcdcdcdc + 0x0a0a0a0a + 0x0a0a0a0a + 0x0a0a0a0a + 0x0118600b + 0x00000001 + 0x0000001f + 0x0000001d + 0x00000013 + 0x0000001f + 0x88161414 + 0x0000001b + 0x00010002 + 0x00009080 + 0x07070404 + 0x00040014 + 0x0513801f + 0x1f101100 + 0x00000014 + 0x00107240 + 0x01124000 + 0x01125b6a + 0x0f081000 + 0x00105800 + 0x1110fc00 + 0x0f081300 + 0x00105800 + 0x1114fc00 + 0x07000300 + 0x00107240 + 0x55553c5a + 0xc8161414 + >; + nvidia,emc-shadow-regs-rdwr-train = < + 0x0000000c + 0x00000008 + 0x00000004 + 0x00000000 + 0x00000000 + 0x00000008 + 0x00000004 + 0x0000000d + 0x0000000d + 0x00000008 + 0x0000000b + 0x00000000 + 0x00000004 + 0x00000020 + 0x00000006 + 0x00000006 + 0x00000006 + 0x00000003 + 0x00000013 + 0x00000006 + 0x00000004 + 0x00000002 + 0x00000000 + 0x00000004 + 0x00000008 + 0x0000000d + 0x00000005 + 0x00000005 + 0x00000000 + 0x30000002 + 0x00000004 + 0x88037171 + 0x0000000a + 0x00000000 + 0x0000000a + 0x00010001 + 0x00000011 + 0x00000013 + 0x00000015 + 0x00000011 + 0x00000013 + 0x0000009a + 0x00000000 + 0x00000026 + 0x00000008 + 0x00000008 + 0x00000003 + 0x00000003 + 0x00000003 + 0x00000011 + 0x00000005 + 0x00000002 + 0x0000000d + 0x00000008 + 0x00000008 + 0x00000005 + 0x00000005 + 0x00000004 + 0x00000008 + 0x00000004 + 0x00000003 + 0x00000009 + 0xc8037171 + 0x000000a0 + 0x00000000 + 0x9160a00d + 0x00003bbf + 0x002c00a0 + 0x00008000 + 0x000000be + 0x0fff0fff + 0x0fff0fff + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x880b0000 + 0x00100010 + 0x00100010 + 0x0028002c + 0x002a002b + 0x002d002d + 0x00270028 + 0x00000000 + 0x00000000 + 0x0028002c + 0x002a002b + 0x002d002d + 0x00270028 + 0x00000000 + 0x00000000 + 0x00100010 + 0x00100010 + 0x00100010 + 0x00100010 + 0x00000010 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x8020221f + 0x0220f40f + 0x00000012 + 0x00064000 + 0x00090029 + 0x00290015 + 0x000b000a + 0xc1e00302 + 0x1f13412f + 0x00010014 + 0x00000804 + 0x00000550 + 0xf3200000 + 0x0fff0fff + 0x8000023a + 0x00000009 + 0x00000000 + 0x00000000 + 0x00000012 + 0x00000012 + 0x00020000 + 0x00050037 + 0x00000000 + 0x00000010 + 0x00003000 + 0x0a000000 + 0x02000111 + 0x00000008 + 0x00030808 + 0x00015c00 + 0x00100404 + 0x00001600 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000034 + 0x00000040 + 0x18000800 + 0x08000800 + 0x08000800 + 0x08000800 + 0x00400080 + 0x08801004 + 0x00000020 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0xefffefff + 0xc0c0c0c0 + 0xc0c0c0c0 + 0xdcdcdcdc + 0x0a0a0a0a + 0x0a0a0a0a + 0x0a0a0a0a + 0x0118600b + 0x00000001 + 0x00000000 + 0x00000013 + 0x00000009 + 0x00000015 + 0x88161414 + 0x00000011 + 0x00010001 + 0x0000b080 + 0x07070404 + 0x00040014 + 0x0513801f + 0x1f101100 + 0x00000014 + 0x00107240 + 0x01124000 + 0x01125b6a + 0x0f081000 + 0x00105800 + 0x1110fc00 + 0x0f081300 + 0x00105800 + 0x1114fc00 + 0x07000300 + 0x00107240 + 0x55553c5a + 0xc8161414 + >; + nvidia,emc-trim-regs = < + 0x01200120 + 0x01200120 + 0x01200120 + 0x01200120 + 0x01200120 + 0x01200120 + 0x01200120 + 0x01200120 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x11111111 + 0x11111111 + 0x28282828 + 0x28282828 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00100010 + 0x00100010 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + >; + nvidia,emc-trim-regs-per-ch = < + 0x00000000 + 0x00000000 + 0x00249249 + 0x00249249 + 0x00249249 + 0x00249249 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + >; + nvidia,emc-vref-regs = < + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + >; + nvidia,emc-dram-timing-regs = < + 0x00000049 + 0x00000104 + 0x000000b4 + 0x0000007a + 0x00000006 + >; + nvidia,emc-training-mod-regs = < + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + >; + nvidia,emc-save-restore-mod-regs = < + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + >; + nvidia,emc-burst-mc-regs = < + 0x40020001 + 0x80000013 + 0x000a1020 + 0x80001028 + 0x00000001 + 0x00000000 + 0x00000002 + 0x00000000 + 0x00000001 + 0x00000001 + 0x00000002 + 0x00000005 + 0x00000001 + 0x00000001 + 0x00000004 + 0x00000008 + 0x00000005 + 0x00000000 + 0x02020000 + 0x00030201 + 0x72c30303 + 0x70000f0f + 0x00000000 + 0x001f0000 + 0x0080001a + 0x0080001a + 0x0080001a + 0x0080001a + 0x0080001a + 0x0080001a + 0x0080001a + 0x0080001a + 0x0080001a + >; + nvidia,emc-la-scale-regs = < + 0x00000006 + 0x0080001a + 0x00000076 + 0x00ff00ff + 0x00ff00ff + 0x00ff00ff + 0x00ff00ff + 0x00ff003d + 0x00ff00ff + 0x00ff003d + 0x00ff0049 + 0x00ff0080 + 0x00ff0004 + 0x000800ff + 0x000000ff + 0x00ff0004 + 0x00ff00ff + 0x00ff00ff + 0x00ff00ff + 0x00ff00ff + 0x00ff00ff + 0x000000ff + 0x000000ff + 0x00ff00ff + >; + }; + emc-table@68000 { + compatible = "nvidia,tegra21-emc-table"; + nvidia,revision = <0x07>; + nvidia,dvfs-version = "02_68000_NoCfgVersion_V9.8.4_V1.6"; + clock-frequency = <68000>; + nvidia,emc-min-mv = <800>; + nvidia,gk20a-min-mv = <1100>; + nvidia,source = "pllp_out0"; + nvidia,src-sel-reg = <0x4018800a>; + nvidia,needs-training = <0x00000000>; + nvidia,training_pattern = <0x00000000>; + nvidia,trained = <0x00000000>; + nvidia,periodic_training = <0x00000000>; + nvidia,trained_dram_clktree_c0d0u0 = <0x00000000>; + nvidia,trained_dram_clktree_c0d0u1 = <0x00000000>; + nvidia,trained_dram_clktree_c0d1u0 = <0x00000000>; + nvidia,trained_dram_clktree_c0d1u1 = <0x00000000>; + nvidia,trained_dram_clktree_c1d0u0 = <0x00000000>; + nvidia,trained_dram_clktree_c1d0u1 = <0x00000000>; + nvidia,trained_dram_clktree_c1d1u0 = <0x00000000>; + nvidia,trained_dram_clktree_c1d1u1 = <0x00000000>; + nvidia,current_dram_clktree_c0d0u0 = <0x00000000>; + nvidia,current_dram_clktree_c0d0u1 = <0x00000000>; + nvidia,current_dram_clktree_c0d1u0 = <0x00000000>; + nvidia,current_dram_clktree_c0d1u1 = <0x00000000>; + nvidia,current_dram_clktree_c1d0u0 = <0x00000000>; + nvidia,current_dram_clktree_c1d0u1 = <0x00000000>; + nvidia,current_dram_clktree_c1d1u0 = <0x00000000>; + nvidia,current_dram_clktree_c1d1u1 = <0x00000000>; + nvidia,run_clocks = <0x00000005>; + nvidia,tree_margin = <0x00000001>; + nvidia,burst-regs-num = <221>; + nvidia,burst-regs-per-ch-num = <8>; + nvidia,trim-regs-num = <138>; + nvidia,trim-regs-per-ch-num = <10>; + nvidia,burst-mc-regs-num = <33>; + nvidia,la-scale-regs-num = <24>; + nvidia,vref-regs-num = <4>; + nvidia,training-mod-regs-num = <20>; + nvidia,dram-timing-regs-num = <5>; + nvidia,min-mrs-wait = <0x00000015>; + nvidia,emc-mrw = <0x88010004>; + nvidia,emc-mrw2 = <0x88020000>; + nvidia,emc-mrw3 = <0x880d0000>; + nvidia,emc-mrw4 = <0xc0000000>; + nvidia,emc-mrw9 = <0x8c0e7272>; + nvidia,emc-mrs = <0x00000000>; + nvidia,emc-emrs = <0x00000000>; + nvidia,emc-emrs2 = <0x00000000>; + nvidia,emc-auto-cal-config = <0xa01a51d8>; + nvidia,emc-auto-cal-config2 = <0x05500000>; + nvidia,emc-auto-cal-config3 = <0x00770000>; + nvidia,emc-auto-cal-config4 = <0x00770000>; + nvidia,emc-auto-cal-config5 = <0x00770000>; + nvidia,emc-auto-cal-config6 = <0x00770000>; + nvidia,emc-auto-cal-config7 = <0x00770000>; + nvidia,emc-auto-cal-config8 = <0x00770404>; + nvidia,emc-cfg-2 = <0x00110805>; + nvidia,emc-sel-dpd-ctrl = <0x00040008>; + nvidia,emc-fdpd-ctrl-cmd-no-ramp = <0x00000001>; + nvidia,dll-clk-src = <0x4018800a>; + nvidia,clk-out-enb-x-0-clk-enb-emc-dll = <0x00000001>; + nvidia,emc-clock-latency-change = <0x000029e0>; + nvidia,ptfv = < + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x0000000a + 0x0000000a + 0x0000000a + 0x00000001 + >; + nvidia,emc-registers = < + 0x0000000c + 0x0000000d + 0x00000007 + 0x00000000 + 0x00000000 + 0x00000008 + 0x00000004 + 0x0000000a + 0x0000000d + 0x00000008 + 0x0000000b + 0x00000000 + 0x00000004 + 0x00000020 + 0x00000006 + 0x00000006 + 0x00000006 + 0x00000003 + 0x00000000 + 0x00000006 + 0x00000004 + 0x00000002 + 0x00000000 + 0x00000004 + 0x00000008 + 0x0000000d + 0x00000005 + 0x00000005 + 0x00000000 + 0x00000000 + 0x00000004 + 0x88037171 + 0x0000000a + 0x00000000 + 0x0000000a + 0x00010001 + 0x00000011 + 0x00000013 + 0x00000015 + 0x00000011 + 0x00000013 + 0x00000101 + 0x00000000 + 0x00000040 + 0x00000008 + 0x00000008 + 0x00000003 + 0x00000003 + 0x00000003 + 0x00000011 + 0x00000005 + 0x00000002 + 0x0000000d + 0x0000000d + 0x0000000d + 0x00000005 + 0x00000005 + 0x00000004 + 0x00000008 + 0x00000004 + 0x00000003 + 0x00000009 + 0xc8037171 + 0x0000010a + 0x00000000 + 0x9160a00d + 0x00003bbf + 0x002c00a0 + 0x00008000 + 0x000000be + 0x0fff0fff + 0x0fff0fff + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x880b0000 + 0x00100010 + 0x00100010 + 0x0028002c + 0x002a002b + 0x002d002d + 0x00270028 + 0x00000000 + 0x00000000 + 0x0028002c + 0x002a002b + 0x002d002d + 0x00270028 + 0x00000000 + 0x00000000 + 0x00100010 + 0x00100010 + 0x00100010 + 0x00100010 + 0x00000010 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x8020221f + 0x0220f40f + 0x00000012 + 0x00064000 + 0x00090044 + 0x00440015 + 0x0011000a + 0xc1e00302 + 0x1f13412f + 0x00010014 + 0x00000804 + 0x00000550 + 0xf3200000 + 0x0fff0fff + 0x80000309 + 0x00000009 + 0x00000000 + 0x00000000 + 0x00000012 + 0x00000012 + 0x00020000 + 0x00050037 + 0x00000000 + 0x00000010 + 0x00003000 + 0x0a000000 + 0x02000111 + 0x00000008 + 0x00030808 + 0x00015c00 + 0x00100404 + 0x00001600 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000034 + 0x00000040 + 0x18000800 + 0x08000800 + 0x08000800 + 0x08000800 + 0x00400080 + 0x08801004 + 0x00000020 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0xefffefff + 0xc0c0c0c0 + 0xc0c0c0c0 + 0xdcdcdcdc + 0x0a0a0a0a + 0x0a0a0a0a + 0x0a0a0a0a + 0x01186011 + 0x00000000 + 0x00000000 + 0x00000013 + 0x00000009 + 0x00000015 + 0x88161414 + 0x00000011 + 0x00010001 + 0x00009080 + 0x07070404 + 0x00040022 + 0x0513801f + 0x1f101100 + 0x00000014 + 0x00107240 + 0x01124000 + 0x01125b6a + 0x0f081000 + 0x00105800 + 0x1110fc00 + 0x0f081300 + 0x00105800 + 0x1114fc00 + 0x07000300 + 0x00107240 + 0x55553c5a + 0xc8161414 + >; + nvidia,emc-burst-regs-per-ch = < + 0x880c7272 + 0x880c7272 + 0xc80c7272 + 0xc80c7272 + 0x8c0e7272 + 0x8c0e7272 + 0x4c0e7272 + 0x4c0e7272 + >; + nvidia,emc-shadow-regs-ca-train = < + 0x0000000c + 0x0000000d + 0x00000007 + 0x00000000 + 0x00000000 + 0x00000008 + 0x00000004 + 0x0000000a + 0x0000000d + 0x00000008 + 0x0000000b + 0x00000000 + 0x00000004 + 0x00000020 + 0x00000006 + 0x00000006 + 0x00000006 + 0x00000003 + 0x00000000 + 0x00000006 + 0x00000004 + 0x00000002 + 0x00000000 + 0x00000004 + 0x00000008 + 0x0000000d + 0x00000005 + 0x00000005 + 0x00000000 + 0x00000000 + 0x00000004 + 0x88037171 + 0x0000000a + 0x00000000 + 0x0000000a + 0x00010001 + 0x00000011 + 0x00000013 + 0x00000015 + 0x00000011 + 0x00000013 + 0x00000101 + 0x00000000 + 0x00000040 + 0x00000008 + 0x00000008 + 0x00000003 + 0x00000003 + 0x00000003 + 0x00000011 + 0x00000005 + 0x00000002 + 0x0000000d + 0x0000000d + 0x0000000d + 0x00000005 + 0x00000005 + 0x00000004 + 0x00000008 + 0x00000004 + 0x00000003 + 0x00000009 + 0xc8037171 + 0x0000010a + 0x00000000 + 0x9960a00d + 0x00003bbf + 0x002c00a0 + 0x00008000 + 0x00000055 + 0x0fff0fff + 0x0fff0fff + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x880b0000 + 0x00100010 + 0x00100010 + 0x0028002c + 0x002a002b + 0x002d002d + 0x00270028 + 0x00000000 + 0x00000000 + 0x0028002c + 0x002a002b + 0x002d002d + 0x00270028 + 0x00000000 + 0x00000000 + 0x00100010 + 0x00100010 + 0x00100010 + 0x00100010 + 0x00000010 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x8020221f + 0x0220f40f + 0x00000012 + 0x00064000 + 0x00090044 + 0x00440015 + 0x0011000a + 0xc1e00302 + 0x1f13412f + 0x00010014 + 0x00000804 + 0x00000550 + 0xf3200000 + 0x0fff0fff + 0x80000309 + 0x00000009 + 0x00000000 + 0x00000000 + 0x00000012 + 0x00000012 + 0x00020000 + 0x05058033 + 0x05050000 + 0x00000000 + 0x00003000 + 0x0a000000 + 0x02000111 + 0x00000008 + 0x00030808 + 0x00015c00 + 0x00100404 + 0x00001600 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000034 + 0x00000040 + 0x18000800 + 0x08000800 + 0x08000800 + 0x08000800 + 0x00400080 + 0x08801004 + 0x00000020 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0xefffefff + 0xc0c0c0c0 + 0xc0c0c0c0 + 0xdcdcdcdc + 0x0a0a0a0a + 0x0a0a0a0a + 0x0a0a0a0a + 0x01186011 + 0x00000001 + 0x0000001f + 0x00000014 + 0x00000004 + 0x00000016 + 0x88161414 + 0x0000000c + 0x00010001 + 0x00009080 + 0x07070404 + 0x00040022 + 0x0513801f + 0x1f101100 + 0x00000014 + 0x00107240 + 0x01124000 + 0x01125b6a + 0x0f081000 + 0x00105800 + 0x1110fc00 + 0x0f081300 + 0x00105800 + 0x1114fc00 + 0x07000300 + 0x00107240 + 0x55553c5a + 0xc8161414 + >; + nvidia,emc-shadow-regs-quse-train = < + 0x0000000c + 0x0000000d + 0x00000007 + 0x00000000 + 0x00000000 + 0x00000008 + 0x00000004 + 0x00000009 + 0x0000000d + 0x00000008 + 0x0000000b + 0x00000000 + 0x00000004 + 0x00000020 + 0x00000006 + 0x00000006 + 0x00000006 + 0x00000003 + 0x00000000 + 0x00000006 + 0x00000004 + 0x00000002 + 0x00000000 + 0x00000004 + 0x00000008 + 0x0000000d + 0x00000003 + 0x00000002 + 0x00000000 + 0x00000000 + 0x00000005 + 0x88037171 + 0x00000009 + 0x00000001 + 0x80000000 + 0x00010002 + 0x00000011 + 0x00000013 + 0x00000015 + 0x00000011 + 0x00000013 + 0x00000101 + 0x00000000 + 0x00000040 + 0x00000008 + 0x00000008 + 0x00000003 + 0x00000003 + 0x00000003 + 0x00000011 + 0x00000005 + 0x00000002 + 0x0000000d + 0x0000000d + 0x0000000d + 0x00000005 + 0x00000005 + 0x00000004 + 0x00000008 + 0x00000004 + 0x00000003 + 0x00000009 + 0xc8037171 + 0x0000010a + 0x00000000 + 0x9160400d + 0x00003bbf + 0x002c00a0 + 0x00008000 + 0x000000be + 0x0fff0fff + 0x0fff0fff + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x880b0000 + 0x00100010 + 0x00100010 + 0x0028002c + 0x002a002b + 0x002d002d + 0x00270028 + 0x00000000 + 0x00000000 + 0x0028002c + 0x002a002b + 0x002d002d + 0x00270028 + 0x00000000 + 0x00000000 + 0x00100010 + 0x00100010 + 0x00100010 + 0x00100010 + 0x00000010 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x8020221f + 0x0220f40f + 0x00000012 + 0x00064000 + 0x00090044 + 0x00440015 + 0x0011000a + 0xc1e00302 + 0x1f13412f + 0x00010014 + 0x00000804 + 0x00000550 + 0xf3200000 + 0x0fff0fff + 0x80000309 + 0x00000009 + 0x00000000 + 0x00000000 + 0x00000012 + 0x00000012 + 0x30020000 + 0x00058037 + 0x00000000 + 0x00000010 + 0x00003000 + 0x0a000000 + 0x02000111 + 0x00000008 + 0x00030808 + 0x00015c00 + 0x00100404 + 0x00001600 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000034 + 0x00000040 + 0x18000800 + 0x08000800 + 0x08000800 + 0x08000800 + 0x00400080 + 0x08801004 + 0x00000020 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0xefffefff + 0xc0c0c0c0 + 0xc0c0c0c0 + 0xdcdcdcdc + 0x0a0a0a0a + 0x0a0a0a0a + 0x0a0a0a0a + 0x01186011 + 0x00000001 + 0x0000001f + 0x0000001d + 0x00000013 + 0x0000001f + 0x88161414 + 0x0000001b + 0x00010002 + 0x00009080 + 0x07070404 + 0x00040022 + 0x0513801f + 0x1f101100 + 0x00000014 + 0x00107240 + 0x01124000 + 0x01125b6a + 0x0f081000 + 0x00105800 + 0x1110fc00 + 0x0f081300 + 0x00105800 + 0x1114fc00 + 0x07000300 + 0x00107240 + 0x55553c5a + 0xc8161414 + >; + nvidia,emc-shadow-regs-rdwr-train = < + 0x0000000c + 0x0000000d + 0x00000007 + 0x00000000 + 0x00000000 + 0x00000008 + 0x00000004 + 0x0000000d + 0x0000000d + 0x00000008 + 0x0000000b + 0x00000000 + 0x00000004 + 0x00000020 + 0x00000006 + 0x00000006 + 0x00000006 + 0x00000003 + 0x00000013 + 0x00000006 + 0x00000004 + 0x00000002 + 0x00000000 + 0x00000004 + 0x00000008 + 0x0000000d + 0x00000005 + 0x00000005 + 0x00000000 + 0x30000002 + 0x00000004 + 0x88037171 + 0x0000000a + 0x00000000 + 0x0000000a + 0x00010001 + 0x00000011 + 0x00000013 + 0x00000015 + 0x00000011 + 0x00000013 + 0x00000101 + 0x00000000 + 0x00000040 + 0x00000008 + 0x00000008 + 0x00000003 + 0x00000003 + 0x00000003 + 0x00000011 + 0x00000005 + 0x00000002 + 0x0000000d + 0x0000000d + 0x0000000d + 0x00000005 + 0x00000005 + 0x00000004 + 0x00000008 + 0x00000004 + 0x00000003 + 0x00000009 + 0xc8037171 + 0x0000010a + 0x00000000 + 0x9160a00d + 0x00003bbf + 0x002c00a0 + 0x00008000 + 0x000000be + 0x0fff0fff + 0x0fff0fff + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x880b0000 + 0x00100010 + 0x00100010 + 0x0028002c + 0x002a002b + 0x002d002d + 0x00270028 + 0x00000000 + 0x00000000 + 0x0028002c + 0x002a002b + 0x002d002d + 0x00270028 + 0x00000000 + 0x00000000 + 0x00100010 + 0x00100010 + 0x00100010 + 0x00100010 + 0x00000010 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x8020221f + 0x0220f40f + 0x00000012 + 0x00064000 + 0x00090044 + 0x00440015 + 0x0011000a + 0xc1e00302 + 0x1f13412f + 0x00010014 + 0x00000804 + 0x00000550 + 0xf3200000 + 0x0fff0fff + 0x80000309 + 0x00000009 + 0x00000000 + 0x00000000 + 0x00000012 + 0x00000012 + 0x00020000 + 0x00050037 + 0x00000000 + 0x00000010 + 0x00003000 + 0x0a000000 + 0x02000111 + 0x00000008 + 0x00030808 + 0x00015c00 + 0x00100404 + 0x00001600 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000034 + 0x00000040 + 0x18000800 + 0x08000800 + 0x08000800 + 0x08000800 + 0x00400080 + 0x08801004 + 0x00000020 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0xefffefff + 0xc0c0c0c0 + 0xc0c0c0c0 + 0xdcdcdcdc + 0x0a0a0a0a + 0x0a0a0a0a + 0x0a0a0a0a + 0x01186011 + 0x00000001 + 0x00000000 + 0x00000013 + 0x00000009 + 0x00000015 + 0x88161414 + 0x00000011 + 0x00010001 + 0x0000b080 + 0x07070404 + 0x00040022 + 0x0513801f + 0x1f101100 + 0x00000014 + 0x00107240 + 0x01124000 + 0x01125b6a + 0x0f081000 + 0x00105800 + 0x1110fc00 + 0x0f081300 + 0x00105800 + 0x1114fc00 + 0x07000300 + 0x00107240 + 0x55553c5a + 0xc8161414 + >; + nvidia,emc-trim-regs = < + 0x01200120 + 0x01200120 + 0x01200120 + 0x01200120 + 0x01200120 + 0x01200120 + 0x01200120 + 0x01200120 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x11111111 + 0x11111111 + 0x28282828 + 0x28282828 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00100010 + 0x00100010 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + >; + nvidia,emc-trim-regs-per-ch = < + 0x00000000 + 0x00000000 + 0x00249249 + 0x00249249 + 0x00249249 + 0x00249249 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + >; + nvidia,emc-vref-regs = < + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + >; + nvidia,emc-dram-timing-regs = < + 0x0000002c + 0x00000104 + 0x000000b4 + 0x00000049 + 0x00000006 + >; + nvidia,emc-training-mod-regs = < + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + >; + nvidia,emc-save-restore-mod-regs = < + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + >; + nvidia,emc-burst-mc-regs = < + 0xf0000001 + 0x80000024 + 0x000a1020 + 0x80001028 + 0x00000001 + 0x00000000 + 0x00000002 + 0x00000000 + 0x00000001 + 0x00000001 + 0x00000002 + 0x00000005 + 0x00000001 + 0x00000001 + 0x00000004 + 0x00000008 + 0x00000005 + 0x00000001 + 0x02020000 + 0x00030201 + 0x72630303 + 0x70000f0f + 0x00000000 + 0x001f0000 + 0x0080001a + 0x0080001a + 0x0080001a + 0x0080001a + 0x0080001a + 0x0080001a + 0x0080001a + 0x0080001a + 0x0080001a + >; + nvidia,emc-la-scale-regs = < + 0x00000009 + 0x0080001a + 0x000000c4 + 0x00ff00ff + 0x00ff00ff + 0x00ff00ff + 0x00ff00ff + 0x00ff0025 + 0x00ff00ff + 0x00ff0025 + 0x00ff0049 + 0x00ff0080 + 0x00ff0004 + 0x000800ff + 0x000000ff + 0x00ff0004 + 0x00ff00ff + 0x00ff00ff + 0x00ff00ff + 0x00ff00ff + 0x00ff00ff + 0x000000ff + 0x000000ff + 0x00ff00ff + >; + }; + emc-table@102000 { + compatible = "nvidia,tegra21-emc-table"; + nvidia,revision = <0x07>; + nvidia,dvfs-version = "02_102000_NoCfgVersion_V9.8.4_V1.6"; + clock-frequency = <102000>; + nvidia,emc-min-mv = <800>; + nvidia,gk20a-min-mv = <1100>; + nvidia,source = "pllp_out0"; + nvidia,src-sel-reg = <0x40188006>; + nvidia,needs-training = <0x00000000>; + nvidia,training_pattern = <0x00000000>; + nvidia,trained = <0x00000000>; + nvidia,periodic_training = <0x00000000>; + nvidia,trained_dram_clktree_c0d0u0 = <0x00000000>; + nvidia,trained_dram_clktree_c0d0u1 = <0x00000000>; + nvidia,trained_dram_clktree_c0d1u0 = <0x00000000>; + nvidia,trained_dram_clktree_c0d1u1 = <0x00000000>; + nvidia,trained_dram_clktree_c1d0u0 = <0x00000000>; + nvidia,trained_dram_clktree_c1d0u1 = <0x00000000>; + nvidia,trained_dram_clktree_c1d1u0 = <0x00000000>; + nvidia,trained_dram_clktree_c1d1u1 = <0x00000000>; + nvidia,current_dram_clktree_c0d0u0 = <0x00000000>; + nvidia,current_dram_clktree_c0d0u1 = <0x00000000>; + nvidia,current_dram_clktree_c0d1u0 = <0x00000000>; + nvidia,current_dram_clktree_c0d1u1 = <0x00000000>; + nvidia,current_dram_clktree_c1d0u0 = <0x00000000>; + nvidia,current_dram_clktree_c1d0u1 = <0x00000000>; + nvidia,current_dram_clktree_c1d1u0 = <0x00000000>; + nvidia,current_dram_clktree_c1d1u1 = <0x00000000>; + nvidia,run_clocks = <0x00000007>; + nvidia,tree_margin = <0x00000001>; + nvidia,burst-regs-num = <221>; + nvidia,burst-regs-per-ch-num = <8>; + nvidia,trim-regs-num = <138>; + nvidia,trim-regs-per-ch-num = <10>; + nvidia,burst-mc-regs-num = <33>; + nvidia,la-scale-regs-num = <24>; + nvidia,vref-regs-num = <4>; + nvidia,training-mod-regs-num = <20>; + nvidia,dram-timing-regs-num = <5>; + nvidia,min-mrs-wait = <0x00000015>; + nvidia,emc-mrw = <0x88010004>; + nvidia,emc-mrw2 = <0x88020000>; + nvidia,emc-mrw3 = <0x880d0000>; + nvidia,emc-mrw4 = <0xc0000000>; + nvidia,emc-mrw9 = <0x8c0e7272>; + nvidia,emc-mrs = <0x00000000>; + nvidia,emc-emrs = <0x00000000>; + nvidia,emc-emrs2 = <0x00000000>; + nvidia,emc-auto-cal-config = <0xa01a51d8>; + nvidia,emc-auto-cal-config2 = <0x05500000>; + nvidia,emc-auto-cal-config3 = <0x00770000>; + nvidia,emc-auto-cal-config4 = <0x00770000>; + nvidia,emc-auto-cal-config5 = <0x00770000>; + nvidia,emc-auto-cal-config6 = <0x00770000>; + nvidia,emc-auto-cal-config7 = <0x00770000>; + nvidia,emc-auto-cal-config8 = <0x00770404>; + nvidia,emc-cfg-2 = <0x00110805>; + nvidia,emc-sel-dpd-ctrl = <0x00040008>; + nvidia,emc-fdpd-ctrl-cmd-no-ramp = <0x00000001>; + nvidia,dll-clk-src = <0x40188006>; + nvidia,clk-out-enb-x-0-clk-enb-emc-dll = <0x00000001>; + nvidia,emc-clock-latency-change = <0x00001aea>; + nvidia,ptfv = < + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x0000000a + 0x0000000a + 0x0000000a + 0x00000001 + >; + nvidia,emc-registers = < + 0x0000000c + 0x00000013 + 0x0000000a + 0x00000000 + 0x00000000 + 0x00000008 + 0x00000004 + 0x0000000a + 0x0000000d + 0x00000008 + 0x0000000b + 0x00000000 + 0x00000004 + 0x00000020 + 0x00000006 + 0x00000006 + 0x00000006 + 0x00000003 + 0x00000000 + 0x00000006 + 0x00000004 + 0x00000002 + 0x00000000 + 0x00000004 + 0x00000008 + 0x0000000d + 0x00000005 + 0x00000005 + 0x00000000 + 0x00000000 + 0x00000003 + 0x88037171 + 0x0000000b + 0x00000000 + 0x0000000a + 0x00010000 + 0x00000011 + 0x00000013 + 0x00000015 + 0x00000011 + 0x00000013 + 0x00000182 + 0x00000000 + 0x00000060 + 0x00000008 + 0x00000008 + 0x00000003 + 0x00000003 + 0x00000003 + 0x00000011 + 0x00000005 + 0x00000002 + 0x0000000d + 0x00000014 + 0x00000014 + 0x00000005 + 0x00000005 + 0x00000004 + 0x00000008 + 0x00000004 + 0x00000003 + 0x00000009 + 0xc8037171 + 0x0000018e + 0x00000000 + 0x9160a00d + 0x00003bbf + 0x002c00a0 + 0x00008000 + 0x000000be + 0x0fff0fff + 0x0fff0fff + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x880b0000 + 0x00100010 + 0x00100010 + 0x0028002c + 0x002a002b + 0x002d002d + 0x00270028 + 0x00000000 + 0x00000000 + 0x0028002c + 0x002a002b + 0x002d002d + 0x00270028 + 0x00000000 + 0x00000000 + 0x00100010 + 0x00100010 + 0x00100010 + 0x00100010 + 0x00000010 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x8020221f + 0x0220f40f + 0x00000012 + 0x00064000 + 0x00090066 + 0x00660015 + 0x001a000a + 0xc1e00302 + 0x1f13412f + 0x00010014 + 0x00000804 + 0x00000550 + 0xf3200000 + 0x0fff0fff + 0x8000040b + 0x00000009 + 0x00000000 + 0x00000000 + 0x00000012 + 0x00000012 + 0x00020000 + 0x00050037 + 0x00000000 + 0x00000010 + 0x00003000 + 0x0a000000 + 0x02000111 + 0x00000008 + 0x00030808 + 0x00015c00 + 0x00100404 + 0x00001600 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000034 + 0x00000040 + 0x18000800 + 0x08000800 + 0x08000800 + 0x08000800 + 0x00400080 + 0x08801004 + 0x00000020 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0xefffefff + 0xc0c0c0c0 + 0xc0c0c0c0 + 0xdcdcdcdc + 0x0a0a0a0a + 0x0a0a0a0a + 0x0a0a0a0a + 0x0118601a + 0x00000000 + 0x00000000 + 0x00000013 + 0x00000009 + 0x00000015 + 0x88161414 + 0x00000011 + 0x00010000 + 0x00009080 + 0x07070404 + 0x00040032 + 0x0513801f + 0x1f101100 + 0x00000014 + 0x00107240 + 0x01124000 + 0x01125b6a + 0x0f081000 + 0x00105800 + 0x1110fc00 + 0x0f081300 + 0x00105800 + 0x1114fc00 + 0x07000300 + 0x00107240 + 0x55553c5a + 0xc8161414 + >; + nvidia,emc-burst-regs-per-ch = < + 0x880c7272 + 0x880c7272 + 0xc80c7272 + 0xc80c7272 + 0x8c0e7272 + 0x8c0e7272 + 0x4c0e7272 + 0x4c0e7272 + >; + nvidia,emc-shadow-regs-ca-train = < + 0x0000000c + 0x00000013 + 0x0000000a + 0x00000000 + 0x00000000 + 0x00000008 + 0x00000004 + 0x0000000a + 0x0000000d + 0x00000008 + 0x0000000b + 0x00000000 + 0x00000004 + 0x00000020 + 0x00000006 + 0x00000006 + 0x00000006 + 0x00000003 + 0x00000000 + 0x00000006 + 0x00000004 + 0x00000002 + 0x00000000 + 0x00000004 + 0x00000008 + 0x0000000d + 0x00000005 + 0x00000005 + 0x00000000 + 0x00000000 + 0x00000003 + 0x88037171 + 0x0000000b + 0x00000000 + 0x0000000a + 0x00010000 + 0x00000011 + 0x00000013 + 0x00000015 + 0x00000011 + 0x00000013 + 0x00000182 + 0x00000000 + 0x00000060 + 0x00000008 + 0x00000008 + 0x00000003 + 0x00000003 + 0x00000003 + 0x00000011 + 0x00000005 + 0x00000002 + 0x0000000d + 0x00000014 + 0x00000014 + 0x00000005 + 0x00000005 + 0x00000004 + 0x00000008 + 0x00000004 + 0x00000003 + 0x00000009 + 0xc8037171 + 0x0000018e + 0x00000000 + 0x9960a00d + 0x00003bbf + 0x002c00a0 + 0x00008000 + 0x00000055 + 0x0fff0fff + 0x0fff0fff + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x880b0000 + 0x00100010 + 0x00100010 + 0x0028002c + 0x002a002b + 0x002d002d + 0x00270028 + 0x00000000 + 0x00000000 + 0x0028002c + 0x002a002b + 0x002d002d + 0x00270028 + 0x00000000 + 0x00000000 + 0x00100010 + 0x00100010 + 0x00100010 + 0x00100010 + 0x00000010 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x8020221f + 0x0220f40f + 0x00000012 + 0x00064000 + 0x00090066 + 0x00660015 + 0x001a000a + 0xc1e00302 + 0x1f13412f + 0x00010014 + 0x00000804 + 0x00000550 + 0xf3200000 + 0x0fff0fff + 0x8000040b + 0x00000009 + 0x00000000 + 0x00000000 + 0x00000012 + 0x00000012 + 0x00020000 + 0x05058033 + 0x05050000 + 0x00000000 + 0x00003000 + 0x0a000000 + 0x02000111 + 0x00000008 + 0x00030808 + 0x00015c00 + 0x00100404 + 0x00001600 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000034 + 0x00000040 + 0x18000800 + 0x08000800 + 0x08000800 + 0x08000800 + 0x00400080 + 0x08801004 + 0x00000020 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 + 0xefffefff + 0xc0c0c0c0 + 0xc0c0c0c0 + 0xdcdcdcdc + 0x0a0a0a0a + 0x0a0a0a0a + 0x0a0a0a0a + 0x0118601a + 0x00000001 + 0x0000001f + 0x00000015 + 0x00000005 + 0x00000017 + 0x88161414
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.21.0
Part of the diff is not shown here. View the raw message.
Looks ok to me.
Quoted 75 lines · Joseph Lo
This series introduces the EMC clock scaling support for Tegra210. There are three parts of this series.
i. The DT bindings of the EMC table and how to deal with them. To support LPDDR4 DRAM devices, the EMC table with timing data must be trained before it can be used. The bootloader firmware will help to do that at the early boot stage. And help to merge the trained timing data into the DTB that EMC driver in the kernel will use later for EMC clock scaling.
And for backward compatibility to support the upstreaming devices, like Jetson TX1 and Shield, the bindings should remain the same. Which means we may not able to change the bindings currently.
ii. The EMC driver will use the trained EMC table with the ram code that the platform used to update the EMC registers for clock scaling. And to support higher rates (above 800MHz), periodic training is needed. This will be done by a timer. And two EMC sources will be used (
PLL_Mand
PLL_MB) for the rate switching above or equal to 665MHz.
It will check the current source and switch to another one dynamically.iii. The detail sequence for EMC scaling support, this includes how we update the table to EMC registers and the periodic training support.
Here are the details and dependency of these patches.
Patch 1 is the binding document of the EMC node and table. Patch 2 is the clock driver update for EMC scaling support. Need to note that with the update of the MC clock, the patch 3 (EMC clock driver) and patch 6 (EMC node in DT) will be needed to make MC clock to work normally.
Patch 3 is the EMC clock driver. It can get the trained table from the firmware and know the current EMC status, like the rate and source clock.
Patch 4 adds more APIs and support code. Tha will be needed for the EMC scaling sequence.
Patch 5 adds the EMC scaling sequence code. With this, we can support EMC clock scaling now.
Patch 6 introduces the EMC node in DT.
Patch 7 adds EMC table of ram code 0.
Patch 8 adds EMC table of ram code 1.Joseph Lo (8):
dt-bindings: memory: tegra: Add Tegra210 EMC bindings
clk: tegra: clock changes for emc scaling support on Tegra210
memory: tegra: Add Tegra210 EMC clock driver
memory: tegra: add EMC scaling support code for Tegra210
memory: tegra: Add EMC scaling sequence code for Tegra210
arm64: tegra: Add external memory controller node for Tegra210
arm64: tegra: Add EMC table of ram code 0 for Tegra210 Shield platform
arm64: tegra: Add EMC table of ram code 1 for Tegra210 Shield platform.../nvidia,tegra210-emc.txt | 605 + .../boot/dts/nvidia/tegra210-p2894-emc.dtsi | 24851 ++++++++++++++++ .../arm64/boot/dts/nvidia/tegra210-p2894.dtsi | 1 + arch/arm64/boot/dts/nvidia/tegra210.dtsi | 23 + drivers/clk/tegra/clk-tegra210.c | 112 +- drivers/memory/tegra/Kconfig | 10 + drivers/memory/tegra/Makefile | 1 + drivers/memory/tegra/tegra210-dt-parse.c | 340 + drivers/memory/tegra/tegra210-emc-cc-r21021.c | 1962 ++ drivers/memory/tegra/tegra210-emc-reg.h | 1482 + drivers/memory/tegra/tegra210-emc.c | 1814 ++ include/dt-bindings/clock/tegra210-car.h | 4 +- include/linux/clk/tegra.h | 5 + 13 files changed, 31192 insertions(+), 18 deletions(-) create mode 100644 Documentation/devicetree/bindings/memory-controllers/nvidia,tegra210-emc.txt create mode 100644 arch/arm64/boot/dts/nvidia/tegra210-p2894-emc.dtsi create mode 100644 drivers/memory/tegra/tegra210-dt-parse.c create mode 100644 drivers/memory/tegra/tegra210-emc-cc-r21021.c create mode 100644 drivers/memory/tegra/tegra210-emc-reg.h create mode 100644 drivers/memory/tegra/tegra210-emc.cSignature · 1 line
2.21.0