]> git.dujemihanovic.xyz Git - u-boot.git/commit
rockchip: rk3588-rock-5b: Add USB-C controller to u-boot.dtsi
authorSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 15 Oct 2024 15:26:46 +0000 (17:26 +0200)
committerMarek Vasut <marex@denx.de>
Thu, 17 Oct 2024 01:12:47 +0000 (03:12 +0200)
commit12049db764378c92d9cbec72b48f2a6df4e6ae27
tree093ac9ac652a03e95802e77996fe01be4efb8bc5
parent64002d0cb00f81b214f5144aebb80aead92d9818
rockchip: rk3588-rock-5b: Add USB-C controller to u-boot.dtsi

Add USB-C controller (fusb302), which will be used by U-Boot to
initialize USB-PD. This is needed, because USB-PD communication
must happen within 5 seconds after the USB-C connector got plugged.
On my Rock 5B it often takes 5 seconds to jump to the Linux binary,
so it must happen before Linux is initialized.

This adds the DT node to the U-Boot specific file, since the Linux
kernel DT currently does not describe it to avoid a system reset.
The plan is to add it to the Linux DT with status = 'fail' and then
let U-Boot mark it as status = 'okay' if it properly dealt with
early USB-PD initialization. Until the Kernel DT has the node, let's
add it in U-Boot to get things going.

Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Tested-by: Soeren Moch <smoch@web.de>
Tested-by: Anand Moon <linux.amoon@gmail.com>
Reviewed-by: Jonas Karlman <jonas@kwiboo.se>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
arch/arm/dts/rk3588-rock-5b-u-boot.dtsi