[PATCH] usb: onboard-hub: Make i2c-bus option

Marek Vasut marek.vasut at mailbox.org
Tue Sep 16 10:10:07 CEST 2025


On 9/16/25 9:57 AM, Michal Simek wrote:
> DT binding doesn't mandate i2c-bus as required property because hub itself
> doesn't need to have i2c connected.
> It can be in standalone mode that only power regulator and reset should be
> handled.
> Or hub should be configured via spi interface.
> 
> Signed-off-by: Michal Simek <michal.simek at amd.com>
> ---
> 
>   common/usb_onboard_hub.c | 7 ++++++-
>   1 file changed, 6 insertions(+), 1 deletion(-)
> 
> diff --git a/common/usb_onboard_hub.c b/common/usb_onboard_hub.c
> index 70fa349a8817..c025200ca71b 100644
> --- a/common/usb_onboard_hub.c
> +++ b/common/usb_onboard_hub.c
> @@ -62,7 +62,12 @@ static int usb5744_i2c_init(struct udevice *dev)
>   
>   	ret = dev_read_phandle_with_args(dev, "i2c-bus", NULL, 0, 0, &phandle);

if (ret == -ENOENT)
   return 0;

if (ret) {
   ... handle errors ...
...

Also keep Fabrice on CC


More information about the U-Boot mailing list