arm64: dts: rockchip: Enable all 3 USBs on Turing RK1
authorSam Edwards <cfsworks@gmail.com>
Mon, 30 Sep 2024 21:06:52 +0000 (14:06 -0700)
committerHeiko Stuebner <heiko@sntech.de>
Wed, 2 Oct 2024 08:27:30 +0000 (10:27 +0200)
commit6d14287746d1b5783ee69b3841838e1af5e44dd1
treeed948cc35f853a9c09b7fbbec35bd5c8344d5b4e
parentde7e071ad5e46515e2d930862820c65fa53dbe2a
arm64: dts: rockchip: Enable all 3 USBs on Turing RK1

The Turing RK1 contains 3 different USBs:
- USB0: USB 2.0, OTG
- USB1: USB 3.0, host
- USB2: USB 2.0, host

This patch activates the necessary DT nodes to enable all 3 buses.

Future work will be needed on USB0: it is not USB3-capable, so the USB0
controller needs to be told that there is no USB3 port. Per Jonas's
suggestion, the USBDP0 node is given a `rockchip,dp-lane-mux` property
that tells the USBDP driver that USBDP0 is not involved in USB so that
it can make the necessary configuration changes in hardware.
Technically, this is USB *controller* configuration, not *PHY*
configuration, so the underlying code may be moved in the future to the
USB controller driver instead, freeing up the (software) dependency on
USBDP0. A TODO comment is added to explain this.

Signed-off-by: Sam Edwards <CFSworks@gmail.com>
Suggested-by: Jonas Karlman <jonas@kwiboo.se>
Link: https://lore.kernel.org/r/20240930210652.1232951-1-CFSworks@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3588-turing-rk1.dtsi