1 diff --git a/eeprom/decode-dimms b/eeprom/decode-dimms
2 index 787b6f5..87af7e8 100755
3 --- a/eeprom/decode-dimms
4 +++ b/eeprom/decode-dimms
6 # the legacy eeprom driver (in the kernel tree since v2.6.0). For kernels
7 # older than 2.6.0, the eeprom driver can be found in the lm-sensors 2
8 # package. For DDR4, you need the ee1004 driver (in the kernel tree since
10 +# kernel v4.20). For DDR5 you need the spd5118 driver.
13 # PC SDRAM Serial Presence
14 @@ -2622,7 +2622,8 @@ sub get_dimm_list
22 @drivers = ('eeprom');
23 $dir = '/proc/sys/dev/sensors';
24 @@ -2647,7 +2648,8 @@ sub get_dimm_list
25 next unless defined $attr &&
28 - $attr eq "ee1004"); # DDR4
29 + $attr eq "ee1004" || # DDR4
30 + $attr eq "spd5118"); # DDR5
32 next unless $file =~ /^eeprom-/;
34 @@ -2659,7 +2661,7 @@ sub get_dimm_list
38 - print STDERR "No EEPROM found, try loading the eeprom, at24 or ee1004 module\n";
39 + print STDERR "No EEPROM found, try loading the eeprom, at24, ee1004 or spd5118 module\n";