Getting the Mellanox chip revision

Try this

HowTo Find Mellanox Adapter Type and Firmware/Driver version (Linux) https://community.mellanox.com/s/article/howto-find-mellanox-adapter-type-and-firmware-driver-version--linux-x