soc: qcom: add ADSP PDCharger ULOG driver
authorNeil Armstrong <neil.armstrong@linaro.org>
Fri, 8 Sep 2023 10:53:49 +0000 (12:53 +0200)
committerBjorn Andersson <andersson@kernel.org>
Tue, 14 Nov 2023 17:06:24 +0000 (11:06 -0600)
commit086fdb48bc65d6fde0f0e7d42dbfb3c00ea52628
tree0a99b2fc0e84d15e6042528f9ef3786825825a2a
parentb85ea95d086471afb4ad062012a4d73cd328fa86
soc: qcom: add ADSP PDCharger ULOG driver

The Qualcomm PMIC PDCharger ULOG driver provides access to logs of
the ADSP firmware PDCharger module in charge of Battery and Power
Delivery on modern systems.

Implement trace events as a simple rpmsg driver with an 1s interval
to retrieve the messages.

The interface allows filtering the messages by subsystem and priority
level, this could be implemented later on.

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20230908-topic-sm8550-upstream-pdcharge-ulog-v1-1-d1b16b02ced2@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/soc/qcom/Kconfig
drivers/soc/qcom/Makefile
drivers/soc/qcom/pmic_pdcharger_ulog.c [new file with mode: 0644]
drivers/soc/qcom/pmic_pdcharger_ulog.h [new file with mode: 0644]