The RK3308 SoC features integrated USB controllers and PHYs. The USB
controller is compatible with the usual RK3066 USB controller, the phy is
in general compatible with the inno-usb2 phy structure but is not quite
the same as any of the phys supported yet.
This patchset adds USB support for the RK3308 SoC to both the RK3308 dtsi
and Rockchip inno-usb2 phy driver.
I've tested this patchset on a Rock Pi S, works flawlessly with HS, FS and
LS devices.
This patchset depends on grf.txt to YAML conversion [1] by Johan.
This is v2 of the patchset.
Cheers,
Tobias
Changelog:
v2:
- switch changes over to Johan's converted yaml documentation
- document "rockchip,rk3308-usb2phy-grf", "syscon", "simple-mfd"
compatible
- fix rockchip,rk3308-usb2phy documentation
[1] https://lkml.org/lkml/2021/5/12/464
Tobias Schramm (5):
dt-bindings: phy: rockchip-inno-usb2: add compatible for rk3308 USB
phy
phy: phy-rockchip-inno-usb2: add support for RK3308 USB phy
dt-bindings: usb: dwc2: add compatible for RK3308 USB controller
dt-bindings: soc: rockchip: grf: add compatible for RK3308 USB grf
arm64: dts: rockchip: add USB support to RK3308 dts
.../bindings/phy/phy-rockchip-inno-usb2.yaml | 1 +
.../devicetree/bindings/soc/rockchip/grf.yaml | 1 +
.../devicetree/bindings/usb/dwc2.yaml | 1 +
arch/arm64/boot/dts/rockchip/rk3308.dtsi | 73 +++++++++++++++++++
drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 44 +++++++++++
5 files changed, 120 insertions(+)
--
2.31.1
The RK3308 features a slightly different USB phy than other Rockchip SoCs.
This patch adds a compatible string for it.
Signed-off-by: Tobias Schramm <[email protected]>
---
.../devicetree/bindings/phy/phy-rockchip-inno-usb2.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/phy/phy-rockchip-inno-usb2.yaml b/Documentation/devicetree/bindings/phy/phy-rockchip-inno-usb2.yaml
index fb29ad807b68..a5b027a6e70f 100644
--- a/Documentation/devicetree/bindings/phy/phy-rockchip-inno-usb2.yaml
+++ b/Documentation/devicetree/bindings/phy/phy-rockchip-inno-usb2.yaml
@@ -14,6 +14,7 @@ properties:
enum:
- rockchip,px30-usb2phy
- rockchip,rk3228-usb2phy
+ - rockchip,rk3308-usb2phy
- rockchip,rk3328-usb2phy
- rockchip,rk3366-usb2phy
- rockchip,rk3399-usb2phy
--
2.31.1
On Fri, 14 May 2021 17:00:40 +0200, Tobias Schramm wrote:
> The RK3308 features a slightly different USB phy than other Rockchip SoCs.
> This patch adds a compatible string for it.
>
> Signed-off-by: Tobias Schramm <[email protected]>
> ---
> .../devicetree/bindings/phy/phy-rockchip-inno-usb2.yaml | 1 +
> 1 file changed, 1 insertion(+)
>
Acked-by: Rob Herring <[email protected]>
On 14-05-21, 17:00, Tobias Schramm wrote:
> The RK3308 features a slightly different USB phy than other Rockchip SoCs.
> This patch adds a compatible string for it.
Applied, thanks
--
~Vinod