soc: qcom: pmic_glink: Introduce altmode support
authorBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 1 Feb 2023 04:18:52 +0000 (20:18 -0800)
committerBjorn Andersson <andersson@kernel.org>
Sat, 4 Feb 2023 18:56:16 +0000 (10:56 -0800)
commit080b4e24852b1d5b66929f69344e6c3eeb963941
tree0812fd7853ce0dacc6208c7edc6e24bc7e192cdd
parent58ef4ece1e41ac525db3e79529909683325d85df
soc: qcom: pmic_glink: Introduce altmode support

With the PMIC GLINK service, the host OS subscribes to USB-C altmode
messages, which are sent by the firmware to notify the host OS about
state updates and HPD interrupts.

The pmic_glink_altmode driver registers for these notifications and
propagates the notifications as typec_mux, typec_switch and DRM OOB
notifications as necessary to implement DisplayPort altmode support.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Acked-by: Neil Armstrong <neil.armstrong@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-4-quic_bjorande@quicinc.com
drivers/soc/qcom/Makefile
drivers/soc/qcom/pmic_glink_altmode.c [new file with mode: 0644]