1f193f798SVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/ 2f193f798SVadim Pasternak asic_health 3f193f798SVadim Pasternak 4f193f798SVadim PasternakDate: June 2018 5f193f798SVadim PasternakKernelVersion: 4.19 6f193f798SVadim PasternakContact: Vadim Pasternak <vadimpmellanox.com> 7f193f798SVadim PasternakDescription: This file shows ASIC health status. The possible values are: 8f193f798SVadim Pasternak 0 - health failed, 2 - health OK, 3 - ASIC in booting state. 9f193f798SVadim Pasternak 10f193f798SVadim Pasternak The files are read only. 11f193f798SVadim Pasternak 12f193f798SVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/ 13f193f798SVadim Pasternak cpld1_version 14f193f798SVadim Pasternak cpld2_version 15f193f798SVadim PasternakDate: June 2018 16f193f798SVadim PasternakKernelVersion: 4.19 17f193f798SVadim PasternakContact: Vadim Pasternak <vadimpmellanox.com> 18f193f798SVadim PasternakDescription: These files show with which CPLD versions have been burned 19f193f798SVadim Pasternak on carrier and switch boards. 20f193f798SVadim Pasternak 21f193f798SVadim Pasternak The files are read only. 22f193f798SVadim Pasternak 2352675da1SVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/ 2452675da1SVadim Pasternak cpld3_version 2552675da1SVadim Pasternak 2652675da1SVadim PasternakDate: November 2018 2752675da1SVadim PasternakKernelVersion: 4.21 2852675da1SVadim PasternakContact: Vadim Pasternak <vadimpmellanox.com> 2952675da1SVadim PasternakDescription: These files show with which CPLD versions have been burned 3052675da1SVadim Pasternak on LED board. 3152675da1SVadim Pasternak 3252675da1SVadim Pasternak The files are read only. 3352675da1SVadim Pasternak 3452675da1SVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/ 3552675da1SVadim Pasternak jtag_enable 3652675da1SVadim Pasternak 3752675da1SVadim PasternakDate: November 2018 3852675da1SVadim PasternakKernelVersion: 4.21 3952675da1SVadim PasternakContact: Vadim Pasternak <vadimpmellanox.com> 4052675da1SVadim PasternakDescription: These files enable and disable the access to the JTAG domain. 4152675da1SVadim Pasternak By default access to the JTAG domain is disabled. 4252675da1SVadim Pasternak 4352675da1SVadim Pasternak The file is read/write. 4452675da1SVadim Pasternak 45f193f798SVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/select_iio 46f193f798SVadim PasternakDate: June 2018 47f193f798SVadim PasternakKernelVersion: 4.19 48f193f798SVadim PasternakContact: Vadim Pasternak <vadimpmellanox.com> 49f193f798SVadim PasternakDescription: This file allows iio devices selection. 50f193f798SVadim Pasternak 51f193f798SVadim Pasternak Attribute select_iio can be written with 0 or with 1. It 52f193f798SVadim Pasternak selects which one of iio devices can be accessed. 53f193f798SVadim Pasternak 54f193f798SVadim Pasternak The file is read/write. 55f193f798SVadim Pasternak 56f193f798SVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/psu1_on 57f193f798SVadim Pasternak /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/psu2_on 58f193f798SVadim Pasternak /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/pwr_cycle 59f193f798SVadim Pasternak /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/pwr_down 60f193f798SVadim PasternakDate: June 2018 61f193f798SVadim PasternakKernelVersion: 4.19 62f193f798SVadim PasternakContact: Vadim Pasternak <vadimpmellanox.com> 63f193f798SVadim PasternakDescription: These files allow asserting system power cycling, switching 64f193f798SVadim Pasternak power supply units on and off and system's main power domain 65f193f798SVadim Pasternak shutdown. 66f193f798SVadim Pasternak Expected behavior: 67f193f798SVadim Pasternak When pwr_cycle is written 1: auxiliary power domain will go 68f193f798SVadim Pasternak down and after short period (about 1 second) up. 69f193f798SVadim Pasternak When psu1_on or psu2_on is written 1, related unit will be 70f193f798SVadim Pasternak disconnected from the power source, when written 0 - connected. 71f193f798SVadim Pasternak If both are written 1 - power supplies main power domain will 72f193f798SVadim Pasternak go down. 73f193f798SVadim Pasternak When pwr_down is written 1, system's main power domain will go 74f193f798SVadim Pasternak down. 75f193f798SVadim Pasternak 76f193f798SVadim Pasternak The files are write only. 77f193f798SVadim Pasternak 78f193f798SVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/ 79f193f798SVadim Pasternak reset_aux_pwr_or_ref 80f193f798SVadim Pasternak reset_asic_thermal 81a34e1343SVadim Pasternak reset_hotswap_or_halt 82f193f798SVadim Pasternak reset_hotswap_or_wd 83f193f798SVadim Pasternak reset_fw_reset 84f193f798SVadim Pasternak reset_long_pb 85f193f798SVadim Pasternak reset_main_pwr_fail 86f193f798SVadim Pasternak reset_short_pb 87f193f798SVadim Pasternak reset_sw_reset 88f193f798SVadim PasternakDate: June 2018 89f193f798SVadim PasternakKernelVersion: 4.19 90f193f798SVadim PasternakContact: Vadim Pasternak <vadimpmellanox.com> 91f193f798SVadim PasternakDescription: These files show the system reset cause, as following: power 92a34e1343SVadim Pasternak auxiliary outage or power refresh, ASIC thermal shutdown, halt, 93a34e1343SVadim Pasternak hotswap, watchdog, firmware reset, long press power button, 94f193f798SVadim Pasternak short press power button, software reset. Value 1 in file means 95f193f798SVadim Pasternak this is reset cause, 0 - otherwise. Only one of the above 96f193f798SVadim Pasternak causes could be 1 at the same time, representing only last 97f193f798SVadim Pasternak reset cause. 98f193f798SVadim Pasternak 99f193f798SVadim Pasternak The files are read only. 10052675da1SVadim Pasternak 10152675da1SVadim PasternakWhat: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/ 10252675da1SVadim Pasternak reset_comex_pwr_fail 10352675da1SVadim Pasternak reset_from_comex 10452675da1SVadim Pasternak reset_system 10552675da1SVadim Pasternak reset_voltmon_upgrade_fail 10652675da1SVadim Pasternak 10752675da1SVadim PasternakDate: November 2018 10852675da1SVadim PasternakKernelVersion: 4.21 10952675da1SVadim PasternakContact: Vadim Pasternak <vadimpmellanox.com> 11052675da1SVadim PasternakDescription: These files show the system reset cause, as following: ComEx 11152675da1SVadim Pasternak power fail, reset from ComEx, system platform reset, reset 11252675da1SVadim Pasternak due to voltage monitor devices upgrade failure, 11352675da1SVadim Pasternak Value 1 in file means this is reset cause, 0 - otherwise. 11452675da1SVadim Pasternak Only one bit could be 1 at the same time, representing only 11552675da1SVadim Pasternak the last reset cause. 11652675da1SVadim Pasternak 11752675da1SVadim Pasternak The files are read only. 118