[PATCH v3 0/7] phy-rockchip-inno-usb2: add RK3588 support

From: Sebastian Reichel
Date: Mon May 22 2023 - 13:03:48 EST


Hi,

This adds RK3588 to the Rockchip Inno USB2 PHY driver. The RK3588 has four of
them. Two are used for USB2 and two are used by USB3 controllers (for USB2
fallback mode). All of them can be used with this patchset.

Changes since PATCHv2:
* https://lore.kernel.org/linux-phy/20230403202307.120562-1-sebastian.reichel@xxxxxxxxxxxxx/
* Dropped patch adding the syscon compatible to the DT binding (applied by Heiko)
* Collected Reviewed-by from Rob Herring for DT binding patch (DT binding)
* Rebased to v6.4-rc1
* Removed superfluous init found by Vinod Koul
* Added one additional patch improving the error message for missing phy-config
* Fixed address_cells=2 code to not break the PHY at offset 0. I didn't notice it with the
previous versions, since that PHY is used for USB3 on Rockchip evaluation board and I
only started working on that recently.

Changes since PATCHv1:
* https://lore.kernel.org/all/20230331163812.6124-1-sebastian.reichel@xxxxxxxxxxxxx/
* Added patch simplifying phyclk handling
* Added patch simplifying matchdata handling
* Added patches for reset handling and PHY tuning; after doing more
testing I noticed my previous patchset does not support hotplug and
USB devices need to be plugged in at boot time (more specifically
in PATCHv1 it had to be plugged before the PHY is suspended). This
fixes the issue.

-- Sebastian

Sebastian Reichel (7):
dt-bindings: phy: rockchip,inno-usb2phy: add rk3588
phy: phy-rockchip-inno-usb2: add rk3588 support
phy: phy-rockchip-inno-usb2: add reset support
phy: phy-rockchip-inno-usb2: add rk3588 phy tuning support
phy: phy-rockchip-inno-usb2: simplify phy clock handling
phy: phy-rockchip-inno-usb2: simplify getting match data
phy: phy-rockchip-inno-usb2: improve error message

.../bindings/phy/rockchip,inno-usb2phy.yaml | 21 +-
drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 357 ++++++++++++++++--
2 files changed, 339 insertions(+), 39 deletions(-)

--
2.39.2