soc: qcom: pmic_glink: Introduce base PMIC GLINK driver
authorBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 1 Feb 2023 04:18:51 +0000 (20:18 -0800)
committerBjorn Andersson <andersson@kernel.org>
Sat, 4 Feb 2023 18:54:30 +0000 (10:54 -0800)
commit58ef4ece1e41ac525db3e79529909683325d85df
tree9c0acfe7cb017a83c52c19129f6a9b27b834bba7
parent68d868adc121f68edde0f4c0e16923103b868945
soc: qcom: pmic_glink: Introduce base PMIC GLINK driver

The PMIC GLINK service runs on one of the co-processors of some modern
Qualcomm platforms and implements USB-C and battery managements. It uses
a message based protocol over GLINK for communication with the OS, hence
the name.

The driver implemented provides the rpmsg device for communication and
uses auxiliary bus to spawn off individual devices in respective
subsystem. The auxiliary devices are spawned off from a
platform_device, so that the drm_bridge is available early, to allow the
DisplayPort driver to probe even before the remoteproc has spun up.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Tested-by: Konrad Dybcio <konrad.dybcio@linaro.org> # SM8350 PDX215
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Tested-by: Neil Armstrong <neil.armstrong@linaro.org> # on SM8550-MTP & SM8450-HDK
Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230201041853.1934355-3-quic_bjorande@quicinc.com
drivers/soc/qcom/Kconfig
drivers/soc/qcom/Makefile
drivers/soc/qcom/pmic_glink.c [new file with mode: 0644]
include/linux/soc/qcom/pmic_glink.h [new file with mode: 0644]