Skip to content

arm64: dts: qcom: PS8830 retimer clock fixes and typec0 enablement

Xin Liu linux-arm-msm linux-devicetree lkml 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest3 patches 7 repliesApplied

Changes in v3 from the cover letter

- Add purwa-iot-evk clock fix patch (1/3): replace RPMH RF clocks with per-retimer fixed-clock nodes inside a new clocks {} container node
- Add hamoa-iot-evk clock fix patch (2/3): same fix for the two existing PS8830 retimers on hamoa
- Replace RPMH RF clock in hamoa typec0 patch (3/3) with fixed-clock node inside the existing clocks {} container node
- Split previous single hamoa patch into a clock fix (2/3) and the typec0 feature patch (3/3)
- Link to v2: https://lore.kernel.org/all/[email protected]/

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/3arm64: dts: qcom: purwa-iot-evk: use on-board crystal for PS8830 retimersarch/arm64/boot/dts/qcom/purwa-iot-evk.dts+23 -42 replies
2/3arm64: dts: qcom: hamoa-iot-evk: use on-board crystal for PS8830 retimersarch/arm64/boot/dts/qcom/hamoa-iot-evk.dts+14 -22 replies
3/3arm64: dts: qcom: hamoa-iot-evk: switch typec0 to PS8830 retimerarch/arm64/boot/dts/qcom/hamoa-iot-evk.dts+66 -482 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchDmitry BaryshkovKonrad DybcioAbel Vesa
1/3R-b R-b
2/3R-b R-b
3/3R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/3] arm64: dts: qcom: PS8830 retimer clock fixes and typec0 enablement

The Hamoa IoT EVK hardware design uses a Parade PS8830 retimer on I2C3 for USB Type-C port 0. Describe the retimer and route typec0 through it to enable USB 3.0 SuperSpeed and DisplayPort Alt Mode.

Compared with v2, two new patches (1/3 and 2/3) are added. During the v2 review [1], Konrad pointed out a suspicious clock reference. Further checking confirmed that every PS8830 retimer on both Purwa and Hamoa has its own on-board 25 MHz crystal wired to its XI/XO pins, so the existing clock properties in the DTS are wrong and should be fixed.

[1] https://lore.kernel.org/all/[email protected]/

Patch 1/3: Purwa, switch the three PS8830 nodes to on-board crystals (Fixes). Patch 2/3: Hamoa, same for the two existing PS8830 nodes (Fixes). Patch 3/3: Hamoa, add the typec0 PS8830 on I2C3 and drop the unused FSUSB42.

Tested on the Hamoa IoT EVK:
- USB 3.0 SuperSpeed at 5 Gbps on typec0
- DisplayPort Alt Mode on typec0

This series is based on the qcom tree's for-next branch
(git://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux.git for-next).

BR,
Xin Liu

Changes in v3:
- Add purwa-iot-evk clock fix patch (1/3): replace RPMH RF clocks with per-retimer fixed-clock nodes inside a new clocks {} container node
- Add hamoa-iot-evk clock fix patch (2/3): same fix for the two existing PS8830 retimers on hamoa
- Replace RPMH RF clock in hamoa typec0 patch (3/3) with fixed-clock node inside the existing clocks {} container node
- Split previous single hamoa patch into a clock fix (2/3) and the typec0 feature patch (3/3)
- Link to v2: https://lore.kernel.org/all/[email protected]/

Changes in v2:
- Updated the commit message to clarify that FSUSB42 is present on PCB but with all signal lines unconnected (NC), rather than "won't be populated"

Note: Changes in v2 and the Link above apply to patch 3/3 only.

- Link to v1: https://lore.kernel.org/all/[email protected]/

Xin Liu (3):
arm64: dts: qcom: purwa-iot-evk: use on-board crystal for PS8830
retimers
arm64: dts: qcom: hamoa-iot-evk: use on-board crystal for PS8830
retimers
arm64: dts: qcom: hamoa-iot-evk: switch typec0 to PS8830 retimer

 arch/arm64/boot/dts/qcom/hamoa-iot-evk.dts | 130 +++++++++++++--------
 arch/arm64/boot/dts/qcom/purwa-iot-evk.dts |  27 ++++-
 2 files changed, 103 insertions(+), 54 deletions(-)

--
2.43.0

base-commit: a9d7ced84989ec05be09b4b8428759ef60450a0f