# \[PATCH v2 0/3\] common SVDM version and VDO from dt

- From: Kyle Tso \<hidden\>
- Date: 2021-01-31 15:20:35 
- List: linux-usb
- Page: https://ratatoskr.run/linux-usb/2021/01/6252926
- Thread: https://ratatoskr.run/linux-usb/2021/01/6252926/t.md

```text
patch v1 is here:                                                               
https://lore.kernel.org/linux-devicetree/20210126084544.682641-1-kyletso@google.com/
                                                                                
Changes from v1:                                                                
=================                                                               
usb: typec: Determine common SVDM Versions                                      
- removed the "local" variables (svdm_version) in tcpm.c and                    
  (altmodes/ucsi)/displayport.c                                                 
- added a member "svdm_version" in struct typec_capabilities indicating         
  the default SVDM version of the port                                          
- added a member "common_svdm_ver" in struct typec_port indicating the          
  common SVDM version between the port and the partner                          
- implemented the get/set API of the common_svdm_ver in typec/class.c so        
  that clients can read/update the common SVDM version                          
- added more definitions of Product Type VDOs                                   
                                                                                
dt-bindings: connector: Add SVDM VDO properties                                 
- updated the dt-bindings documentations                                        
- added more definitions of Product Type VDOs                                   
                                                                                
usb: typec: tcpm: Get Sink VDO from fwnode                                      
- updated the commit message

Kyle Tso (3):
  usb: typec: Determine common SVDM Versions
  dt-bindings: connector: Add SVDM VDO properties
  usb: typec: tcpm: Get Sink VDO from fwnode

 .../bindings/connector/usb-connector.yaml     |  11 +
 drivers/usb/typec/altmodes/displayport.c      |   5 +-
 drivers/usb/typec/class.c                     |  21 +-
 drivers/usb/typec/tcpm/tcpm.c                 |  61 +++-
 drivers/usb/typec/ucsi/displayport.c          |  10 +-
 drivers/usb/typec/ucsi/ucsi.c                 |   2 +
 include/dt-bindings/usb/pd.h                  | 311 ++++++++++++++++-
 include/linux/usb/pd_vdo.h                    | 315 ++++++++++++++----
 include/linux/usb/typec.h                     |  10 +
 9 files changed, 656 insertions(+), 90 deletions(-)

-- 
2.30.0.365.g02bc693789-goog

```
