[PATCH v3 00/12] soc: qcom: add UCSI function to PMIC GLINK

From: Neil Armstrong
Date: Thu Mar 09 2023 - 08:28:11 EST


The PMIC GLINK interface offers an UCSI endpoint for newer
SoCs, the UCSI exchange is necessary to configure the USB-C
port USB role and altmode on the SM8450 HDK and SM8550 MTP
boards.
Since the DT description is the same, support for SM8350 HDK
is also added.

This patchset focuses on USB and disables altmode support
on those 2 SoCs until DP altmode over the combo phy is
supported.

Depends on PMIC Glink patchset at [1].

[1] https://lore.kernel.org/all/20230130042003.577063-1-quic_bjorande@xxxxxxxxxxx/

Signed-off-by: Neil Armstrong <neil.armstrong@xxxxxxxxxx>
---
Changes in v3:
- Fixed patch 1 by moving mask to pmic_glink_of_match
- Fixed patch 8 by adding back hsphy
- Add bindings change to dwc3 to support separate HS & SS OF graph links
- Link to v2: https://lore.kernel.org/r/20230130-topic-sm8450-upstream-pmic-glink-v2-0-71fea256474f@xxxxxxxxxx

Changes in v2:
- Moved the dwc3 port subnodes to dtsi
- Added SM8350 HDK support
- Added help about ucsi module name
- Added bindings acks
- Fixed sm8550 pmic glink compatible
- Added more description in config update patch
- Link to v1: https://lore.kernel.org/r/20230130-topic-sm8450-upstream-pmic-glink-v1-0-0b0acfad301e@xxxxxxxxxx

---
Neil Armstrong (12):
usb: typec: ucsi: add PMIC Glink UCSI driver
dt-bindings: soc: qcom: qcom,pmic-glink: document SM8450 compatible
dt-bindings: soc: qcom: qcom,pmic-glink: document SM8550 compatible
soc: qcom: pmic_glink: register ucsi aux device
dt-bindings: usb: snps,dwc3: document HS & SS OF graph ports
arm64: dts: qcom: sm8350: add port subnodes in dwc3 node
arm64: dts: qcom: sm8450: add port subnodes in dwc3 node
arm64: dts: qcom: sm8550: add port subnodes in dwc3 node
arm64: dts: qcom: sm8350-hdk: add pmic glink node
arm64: dts: qcom: sm8450-hdk: add pmic glink node
arm64: dts: qcom: sm8550-mtp: add pmic glink node
arm64: defconfig: add PMIC GLINK modules

.../bindings/soc/qcom/qcom,pmic-glink.yaml | 2 +
.../devicetree/bindings/usb/snps,dwc3.yaml | 16 ++
arch/arm64/boot/dts/qcom/sm8350-hdk.dts | 67 ++++-
arch/arm64/boot/dts/qcom/sm8350.dtsi | 19 ++
arch/arm64/boot/dts/qcom/sm8450-hdk.dts | 45 ++-
arch/arm64/boot/dts/qcom/sm8450.dtsi | 19 ++
arch/arm64/boot/dts/qcom/sm8550-mtp.dts | 45 ++-
arch/arm64/boot/dts/qcom/sm8550.dtsi | 19 ++
arch/arm64/configs/defconfig | 4 +
drivers/soc/qcom/pmic_glink.c | 63 +++-
drivers/usb/typec/ucsi/Kconfig | 10 +
drivers/usb/typec/ucsi/Makefile | 1 +
drivers/usb/typec/ucsi/ucsi_glink.c | 320 +++++++++++++++++++++
13 files changed, 616 insertions(+), 14 deletions(-)
---
base-commit: fe15c26ee26efa11741a7b632e9f23b01aca4cc6
change-id: 20230130-topic-sm8450-upstream-pmic-glink-3b3a0b7bcd33

Best regards,
--
Neil Armstrong <neil.armstrong@xxxxxxxxxx>