From c9d7a7d62fe12c1609a31c54272534ac664396ac Mon Sep 17 00:00:00 2001 From: Tomasz Michalec Date: Wed, 20 Jul 2022 14:03:38 +0200 Subject: zephyr: brya: usb_mux: Split struct usb_mux in brya board Update brya board to use new struct usb_mux_chain. BUG=b:236274003 TEST=zmake build -a TEST=./twister -T zephyr/test BRANCH=None Cq-Depend: chromium:3779618 Signed-off-by: Tomasz Michalec Change-Id: Icccb0299cea28c21656ab2faf8dac10309ae07ea Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3780418 Tested-by: Tomasz Michalec Reviewed-by: Keith Short Commit-Queue: Tomasz Michalec --- zephyr/projects/brya/usbc.dts | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/zephyr/projects/brya/usbc.dts b/zephyr/projects/brya/usbc.dts index d5f5ea5440..84c1560542 100644 --- a/zephyr/projects/brya/usbc.dts +++ b/zephyr/projects/brya/usbc.dts @@ -14,7 +14,11 @@ bc12 = <&bc12_port0>; tcpc = <&tcpc_port0>; chg = <&charger>; - usb-muxes = <&usb_c0_bb_retimer &virtual_mux_c0>; + usb-mux-chain-0 { + compatible = "cros-ec,usb-mux-chain"; + usb-muxes = <&usb_c0_bb_retimer + &virtual_mux_c0>; + }; }; port0-muxes { virtual_mux_c0: virtual-mux-c0 { @@ -27,7 +31,10 @@ reg = <1>; bc12 = <&bc12_port1>; tcpc = <&tcpc_port1>; - usb-muxes = <&virtual_mux_c1 &tcpci_mux_c1>; + usb-mux-chain-1 { + compatible = "cros-ec,usb-mux-chain"; + usb-muxes = <&virtual_mux_c1 &tcpci_mux_c1>; + }; }; port1-muxes { tcpci_mux_c1: tcpci-mux-c1 { @@ -44,7 +51,11 @@ reg = <2>; bc12 = <&bc12_port2>; tcpc = <&tcpc_port2>; - usb-muxes = <&usb_c2_bb_retimer &virtual_mux_c2>; + usb-mux-chain-2 { + compatible = "cros-ec,usb-mux-chain"; + usb-muxes = <&usb_c2_bb_retimer + &virtual_mux_c2>; + }; }; port2-muxes { virtual_mux_c2: virtual-mux-c2 { -- cgit v1.2.1