11fbc6ec2SEnric Balletbo i SerraWhat: /sys/kernel/debug/<cros-ec-device>/console_log 21fbc6ec2SEnric Balletbo i SerraDate: September 2017 31fbc6ec2SEnric Balletbo i SerraKernelVersion: 4.13 41fbc6ec2SEnric Balletbo i SerraDescription: 51fbc6ec2SEnric Balletbo i Serra If the EC supports the CONSOLE_READ command type, this file 61fbc6ec2SEnric Balletbo i Serra can be used to grab the EC logs. The kernel polls for the log 71fbc6ec2SEnric Balletbo i Serra and keeps its own buffer but userspace should grab this and 81fbc6ec2SEnric Balletbo i Serra write it out to some logs. 91fbc6ec2SEnric Balletbo i Serra 101fbc6ec2SEnric Balletbo i SerraWhat: /sys/kernel/debug/<cros-ec-device>/panicinfo 111fbc6ec2SEnric Balletbo i SerraDate: September 2017 121fbc6ec2SEnric Balletbo i SerraKernelVersion: 4.13 131fbc6ec2SEnric Balletbo i SerraDescription: 141fbc6ec2SEnric Balletbo i Serra This file dumps the EC panic information from the previous 151fbc6ec2SEnric Balletbo i Serra reboot. This file will only exist if the PANIC_INFO command 161fbc6ec2SEnric Balletbo i Serra type is supported by the EC. 171fbc6ec2SEnric Balletbo i Serra 181fbc6ec2SEnric Balletbo i SerraWhat: /sys/kernel/debug/<cros-ec-device>/pdinfo 191fbc6ec2SEnric Balletbo i SerraDate: June 2018 201fbc6ec2SEnric Balletbo i SerraKernelVersion: 4.17 211fbc6ec2SEnric Balletbo i SerraDescription: 221fbc6ec2SEnric Balletbo i Serra This file provides the port role, muxes and power debug 231fbc6ec2SEnric Balletbo i Serra information for all the USB PD/type-C ports available. If 241fbc6ec2SEnric Balletbo i Serra the are no ports available, this file will be just an empty 251fbc6ec2SEnric Balletbo i Serra file. 261fbc6ec2SEnric Balletbo i Serra 27e90716a6STim WawrzynczakWhat: /sys/kernel/debug/<cros-ec-device>/uptime 28e90716a6STim WawrzynczakDate: June 2019 29e90716a6STim WawrzynczakKernelVersion: 5.3 30e90716a6STim WawrzynczakDescription: 31e90716a6STim Wawrzynczak A u32 providing the time since EC booted in ms. This is 32e90716a6STim Wawrzynczak is used for synchronizing the AP host time with the EC 33e90716a6STim Wawrzynczak log. An error is returned if the command is not supported 34e90716a6STim Wawrzynczak by the EC or there is a communication problem. 35