Skip to content

Commit

Permalink
board: rock5b-rk3588: enable USB-C in operating system
Browse files Browse the repository at this point in the history
Since older U-Boot releases do not negotiate USB PD, the kernel
DT may not enable the USB-C controller by default to avoid a
regression. The plan is to upstream it with 'status = "fail";'
instead. U-Boot should then mark it as 'status = "okay";' if
it negotiated USB PD. Currently existing upstream kernel DTs do
not yet have the USB-C controller at all, so we ignore any
failures.

Reviewed-by: Kever Yang <[email protected]>
Tested-by: Soeren Moch <[email protected]>
Tested-by: Anand Moon <[email protected]>
Reviewed-by: Jonas Karlman <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
  • Loading branch information
sre authored and Marek Vasut committed Oct 17, 2024
1 parent 43fdd31 commit 64002d0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions board/radxa/rock5b-rk3588/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# SPDX-License-Identifier: GPL-2.0+
#
# Copyright (c) 2022 Collabora Ltd.
#

obj-y += rock5b-rk3588.o
16 changes: 16 additions & 0 deletions board/radxa/rock5b-rk3588/rock5b-rk3588.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (c) 2023-2024 Collabora Ltd.
*/

#include <fdtdec.h>
#include <fdt_support.h>

#ifdef CONFIG_OF_BOARD_SETUP
int ft_board_setup(void *blob, struct bd_info *bd)
{
if (IS_ENABLED(CONFIG_TYPEC_FUSB302))
fdt_status_okay_by_compatible(blob, "fcs,fusb302");
return 0;
}
#endif

0 comments on commit 64002d0

Please sign in to comment.