diff options
author | Caveh Jalali <caveh@chromium.org> | 2022-01-28 01:35:48 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-02-14 22:30:05 +0000 |
commit | b0aa99495d8230ff6b56088ceb51b9ac8b80069a (patch) | |
tree | d37c32499a897977873fc5eb4068825739635b06 | |
parent | a015c68801138acf90ce963a0f2cea6d99673019 (diff) | |
download | chrome-ec-b0aa99495d8230ff6b56088ceb51b9ac8b80069a.tar.gz |
brya: Add genvif overrides
This adds VIF overrides to describe brya's USB setup. The override
values are largely based on
https://issuetracker.google.com/214339085#comment4
BRANCH=none
BUG=b:214191903
TEST=buildall passes
imported resulting build/brya/brya_vif.xml into VifEditor
3.2.3.0. there were no highlighted (error) fields. exported file
and compared against input: there were no material differences.
the only strangeness is that due to how genvif is implemented,
it places SrcPdoList, SnkPdoList toward the end of component
elements instead of in the middle - this needs to be taken into
account when comparing the output of these utilities.
Change-Id: I3776b4fae7b614dba61ca0c57e69701add75b502
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3428926
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Boris Mittelberg <bmbm@google.com>
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
-rw-r--r-- | board/brya/vif_override.xml | 151 |
1 files changed, 148 insertions, 3 deletions
diff --git a/board/brya/vif_override.xml b/board/brya/vif_override.xml index 32736caf64..6ade5d2f92 100644 --- a/board/brya/vif_override.xml +++ b/board/brya/vif_override.xml @@ -1,3 +1,148 @@ -<!-- Add VIF field overrides here. See genvif.c and the Vendor Info File - Definition from the USB-IF. ---> +<?xml version="1.0" encoding="utf-8"?> +<vif:VIF xmlns="http://usb.org/VendorInfoFile.xsd"> + <vif:Product_Revision>2</vif:Product_Revision> + <vif:TID>0</vif:TID> + <vif:Product> + <vif:USB4_Num_Internal_Host_Controllers value="1" /> + <vif:USB4_Num_PCIe_DN_Bridges value="0" /> + <vif:USB4RouterList> + <vif:Usb4Router> + <!--USB4 Router 0--> + <vif:USB4_Router_ID value="0" /> + <vif:USB4_Silicon_VID value="32903">8087</vif:USB4_Silicon_VID> + <vif:USB4_Num_Lane_Adapters value="4" /> + <vif:USB4_Num_USB3_DN_Adapters value="1" /> + <vif:USB4_Num_DP_IN_Adapters value="1" /> + <vif:USB4_Num_DP_OUT_Adapters value="0" /> + <vif:USB4_Num_PCIe_DN_Adapters value="4" /> + <vif:USB4_TBT3_Not_Supported value="0">TBT3 Compatible</vif:USB4_TBT3_Not_Supported> + <vif:USB4_PCIe_Wake_Supported value="true" /> + <vif:USB4_USB3_Wake_Supported value="false" /> + <vif:USB4_Num_Unused_Adapters value="0" /> + <vif:USB4_TBT3_VID value="32903">8087</vif:USB4_TBT3_VID> + <vif:USB4_PCIe_Switch_Vendor_ID value="32902">8086</vif:USB4_PCIe_Switch_Vendor_ID> + <vif:USB4_PCIe_Switch_Device_ID value="39451">9A1B</vif:USB4_PCIe_Switch_Device_ID> + </vif:Usb4Router> + </vif:USB4RouterList> + </vif:Product> + + <vif:Component> + <vif:USB4_Max_Speed value="1">Gen 3 (40Gb)</vif:USB4_Max_Speed> + + <!--;USB Host--> + + <vif:Host_Speed value="4">USB 3.2 Gen 2x2</vif:Host_Speed> + <vif:Host_Contains_Captive_Retimer value="true" /> + <vif:Host_Truncates_DP_For_tDHPResponse value="false" /> + <vif:Host_Suspend_Supported value="true" /> + + <!--;PD Source--> + <!-- will we ever clear USB_Suspend_Supported? --> + <vif:USB_Suspend_May_Be_Cleared value="true" /> + + <!-- remove FR_Swap_* when we enable CONFIG_USB_PD_FRS --> + <!--;Dual Role--> + <vif:FR_Swap_Supported_As_Initial_Sink value="true" /> + <!--;PD Source--> + <vif:FR_Swap_Type_C_Current_Capability_As_Initial_Sink value="3">3A @ 5V</vif:FR_Swap_Type_C_Current_Capability_As_Initial_Sink> + <vif:SrcPdoList> + <vif:SrcPDO> + <!--Source PDO 1--> + <vif:Src_PD_OCP_OC_Debounce value="50">50 msec</vif:Src_PD_OCP_OC_Debounce> + <vif:Src_PD_OCP_OC_Threshold value="360">3600 mA</vif:Src_PD_OCP_OC_Threshold> + </vif:SrcPDO> + </vif:SrcPdoList> + + <!-- SOP Discover ID --> + <vif:Product_Type_UFP_SOP value="2">PDUSB Peripheral</vif:Product_Type_UFP_SOP> + <vif:Product_Type_DFP_SOP value="2">PDUSB Host</vif:Product_Type_DFP_SOP> + + <!-- USB4 Port --> + <vif:USB4_Lane_0_Adapter value="1" /> + <vif:USB4_UFP_Supported value="false" /> + <vif:USB4_DFP_Supported value="true" /> + <vif:USB4_USB3_Tunneling_Supported value="true" /> + <vif:USB4_DP_Tunneling_Supported value="true" /> + <vif:USB4_CL1_State_Supported value="true" /> + <vif:USB4_CL2_State_Supported value="true" /> + <vif:USB4_Num_Retimers value="1" /> + <vif:USB4_DP_Bit_Rate value="3">HBR3</vif:USB4_DP_Bit_Rate> + <vif:USB4_Num_DP_Lanes value="4">4 Lanes</vif:USB4_Num_DP_Lanes> + + </vif:Component> + + <vif:Component> + <vif:USB4_Supported value="false" /> + + <!--;USB Host--> + <vif:Host_Speed value="2">USB 3.2 Gen 2x1</vif:Host_Speed> + <vif:Host_Contains_Captive_Retimer value="true" /> + <vif:Host_Truncates_DP_For_tDHPResponse value="false" /> + <vif:Host_Suspend_Supported value="true" /> + + <!--;PD Source--> + <!-- will we ever clear USB_Suspend_Supported? --> + <vif:USB_Suspend_May_Be_Cleared value="true" /> + + <!-- remove FR_Swap_* when we enable CONFIG_USB_PD_FRS --> + <!--;Dual Role--> + <vif:FR_Swap_Supported_As_Initial_Sink value="true" /> + <!--;PD Source--> + <vif:FR_Swap_Type_C_Current_Capability_As_Initial_Sink value="3">3A @ 5V</vif:FR_Swap_Type_C_Current_Capability_As_Initial_Sink> + <vif:SrcPdoList> + <vif:SrcPDO> + <!--Source PDO 1--> + <vif:Src_PD_OCP_OC_Debounce value="50">50 msec</vif:Src_PD_OCP_OC_Debounce> + <vif:Src_PD_OCP_OC_Threshold value="360">3600 mA</vif:Src_PD_OCP_OC_Threshold> + </vif:SrcPDO> + </vif:SrcPdoList> + + <!-- SOP Discover ID --> + <vif:Product_Type_UFP_SOP value="3">PSD</vif:Product_Type_UFP_SOP> + <vif:Product_Type_DFP_SOP value="2">PDUSB Host</vif:Product_Type_DFP_SOP> + + </vif:Component> + + <vif:Component> + <vif:USB4_Max_Speed value="1">Gen 3 (40Gb)</vif:USB4_Max_Speed> + <!--;USB Host--> + <vif:Host_Speed value="4">USB 3.2 Gen 2x2</vif:Host_Speed> + <vif:Host_Contains_Captive_Retimer value="true" /> + <vif:Host_Truncates_DP_For_tDHPResponse value="false" /> + <vif:Host_Suspend_Supported value="true" /> + + <!--;PD Source--> + <!-- will we ever clear USB_Suspend_Supported? --> + <vif:USB_Suspend_May_Be_Cleared value="true" /> + + <!-- remove FR_Swap_* when we enable CONFIG_USB_PD_FRS --> + <!--;Dual Role--> + <vif:FR_Swap_Supported_As_Initial_Sink value="true" /> + <!--;PD Source--> + <vif:FR_Swap_Type_C_Current_Capability_As_Initial_Sink value="3">3A @ 5V</vif:FR_Swap_Type_C_Current_Capability_As_Initial_Sink> + <vif:SrcPdoList> + <vif:SrcPDO> + <!--Source PDO 1--> + <vif:Src_PD_OCP_OC_Debounce value="50">50 msec</vif:Src_PD_OCP_OC_Debounce> + <vif:Src_PD_OCP_OC_Threshold value="360">3600 mA</vif:Src_PD_OCP_OC_Threshold> + </vif:SrcPDO> + </vif:SrcPdoList> + + <!-- SOP Discover ID --> + <vif:Product_Type_UFP_SOP value="2">PDUSB Peripheral</vif:Product_Type_UFP_SOP> + <vif:Product_Type_DFP_SOP value="2">PDUSB Host</vif:Product_Type_DFP_SOP> + + <!-- USB4 Port --> + <vif:USB4_Lane_0_Adapter value="1" /> + <vif:USB4_UFP_Supported value="false" /> + <vif:USB4_DFP_Supported value="true" /> + <vif:USB4_USB3_Tunneling_Supported value="true" /> + <vif:USB4_DP_Tunneling_Supported value="true" /> + <vif:USB4_CL1_State_Supported value="true" /> + <vif:USB4_CL2_State_Supported value="true" /> + <vif:USB4_Num_Retimers value="1" /> + <vif:USB4_DP_Bit_Rate value="3">HBR3</vif:USB4_DP_Bit_Rate> + <vif:USB4_Num_DP_Lanes value="4">4 Lanes</vif:USB4_Num_DP_Lanes> + + </vif:Component> +</vif:VIF> |