Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3328803pxb; Sun, 31 Jan 2021 12:05:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJxltUm+B6JPl4KNYh4dQLSC9Aq7ntpvIusaomIIHp76GEB/Wr8mnxW21K1Y1vNJRV0s1xsp X-Received: by 2002:aa7:d54c:: with SMTP id u12mr15158543edr.338.1612123527150; Sun, 31 Jan 2021 12:05:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612123527; cv=none; d=google.com; s=arc-20160816; b=VF8jPZ4Ys1vpRPFqXIrki0bPIonmepnnrdnlFowbayCVXEovaymxre26Q0BD73FuQD CDECQvLThD0g0fnGIpFTnGaQ6lK+7sZrHyI1gFWiAr3XU9HBVhuXdXm+fOOekVhHkVe+ vI3peE8Fd915p7jcHu/uJBeuNjNh+nmfZuhl657Glcz/l11iYU/VPr7R5bJPvb8Lpfe4 2X+izpJXWwKckMdcFecjJyasSui/pJCYO3DB1CF/34WMFBwj/+copkxDuoiWU2XHGFiM o4MfYcMJ/jmJS/1SdouPoZAlsQ2OrSAxIWk/RjmeY61zMuqcjUx48rD2RQj53wDLbX0m 03qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :sender:dkim-signature; bh=pWaLe0rxHbHoPOLQnEvoezPzhzm6i0a3yIHNzO6Spxk=; b=I++zrXxMNHhMPuykYnL2+Lv0JE0CqrQ5dTJJuAx7loIojhWMtNxi4ARXkTqOVIW7GQ k/88Lye8IJp39Jc+8t7gMZKsg8esRzQLJRrO2QK1XqSdH3qzZLqPSSMJcp3OMMfbdX25 jz7xXhWHH2GFoiKAYq9I771LKIT8Ws5R8G0Y1GogX+ZHJ4q6U2MMt81a/39LHeyyT9kq 7g2c9jA0uAG4SE2jaUwT0DRqXAcl+k5whpu/anBYD92kOpwQiyy229cGezs+2UWnMjjr hfYdhAHkiL1zMD5tGT4iNksfAg9CpEN5j5tFMGuUPMAaZFFeHwP3F2pZoNzsJYRB0mDo VnhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=mDzEma25; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g13si9774040edk.250.2021.01.31.12.05.01; Sun, 31 Jan 2021 12:05:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=mDzEma25; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232405AbhAaPUG (ORCPT + 99 others); Sun, 31 Jan 2021 10:20:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231598AbhAaPTg (ORCPT ); Sun, 31 Jan 2021 10:19:36 -0500 Received: from mail-pg1-x54a.google.com (mail-pg1-x54a.google.com [IPv6:2607:f8b0:4864:20::54a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD86FC06174A for ; Sun, 31 Jan 2021 07:18:55 -0800 (PST) Received: by mail-pg1-x54a.google.com with SMTP id s17so9606009pgv.14 for ; Sun, 31 Jan 2021 07:18:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:message-id:mime-version:subject:from:to:cc; bh=pWaLe0rxHbHoPOLQnEvoezPzhzm6i0a3yIHNzO6Spxk=; b=mDzEma259JaxNYPUJkK9uxCS0LAAZ9LXdKSP3LVU12Vi8V7H6sp0T7rSJv7hryYsJG rwNH94ZeWqUo9blERZI9sZBbyOvPMsCJTLmWAq0TB10TvkpQgpS1do0PXiaAdObX3uh0 ykGTav9EiPmQRgEjySssbVR/VdXnw1pKv6y7Xi/OMrCRQaep1RAqszstj7zrcImUntBk oXVqIHptfuWhlTCm3FDLebHEXCRW5OCCA/ft8yTUUVT/1YO8J8n63MV9Kfc8SKIoB48e xQH/QJan5fT3xDlbTzKJr6jMTm/0lbBf4Qcc5p5GbM4wvqd/UDR7cvO70clPJa+pakTC SFoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:message-id:mime-version:subject:from :to:cc; bh=pWaLe0rxHbHoPOLQnEvoezPzhzm6i0a3yIHNzO6Spxk=; b=csZ8+D+lvcB4MYySi/+PpX6LILmD7WfjStl+AKZ/zRRKk1wTd4lE+DOGsrL4lKzX18 nFyybpKdMJzMOI58ZRKF4w3O/N1Em8cwy2+Zl+vrN7m8XRt2dDqSBv9YTDorEf3s5xVo JwJwJ/jNkHKc/6h7ir0APB2Y+fEOLNJNJMiPE4kEZ8ZczHy2wLfrwH4SST1fDupWojDy 9+XBeTNo+tOfq2UQSd1S8kwLVzoUr6rs5kd9HMnulApiYUzmuhlaMTLUNrprGO3o5EH6 nWy/kAzXzhwNcvxI7llzbbTOG/DiypMc3spsBzVIFRUHsWpBa1pcxLzmmmNzRXPf1P1J fSYg== X-Gm-Message-State: AOAM532Na+6X+0hAcQhVDhpuHTgR/Jksp1KHGS1jdIUzPVQqji6KbzZ6 xxBETLen5gEW94uO+yEp5R7bOyol/dW/ Sender: "kyletso via sendgmr" X-Received: from kyletso.ntc.corp.google.com ([2401:fa00:fc:202:5d70:9e45:7deb:72a7]) (user=kyletso job=sendgmr) by 2002:a17:902:26a:b029:da:af47:77c7 with SMTP id 97-20020a170902026ab02900daaf4777c7mr14027694plc.10.1612106335130; Sun, 31 Jan 2021 07:18:55 -0800 (PST) Date: Sun, 31 Jan 2021 23:18:29 +0800 Message-Id: <20210131151832.215931-1-kyletso@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.30.0.365.g02bc693789-goog Subject: [PATCH v2 0/3] common SVDM version and VDO from dt From: Kyle Tso To: linux@roeck-us.net, heikki.krogerus@linux.intel.com, gregkh@linuxfoundation.org, hdegoede@redhat.com, robh+dt@kernel.org Cc: badhri@google.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Kyle Tso Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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