From patchwork Sun Jan 31 15:18:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kyle Tso X-Patchwork-Id: 374087 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-21.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT, USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2468AC433E0 for ; Sun, 31 Jan 2021 15:20:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EE47064E42 for ; Sun, 31 Jan 2021 15:20:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231449AbhAaPTs (ORCPT ); Sun, 31 Jan 2021 10:19:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231560AbhAaPTg (ORCPT ); Sun, 31 Jan 2021 10:19:36 -0500 Received: from mail-pg1-x549.google.com (mail-pg1-x549.google.com [IPv6:2607:f8b0:4864:20::549]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE557C061573 for ; Sun, 31 Jan 2021 07:18:55 -0800 (PST) Received: by mail-pg1-x549.google.com with SMTP id w15so9624856pgt.13 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=Qt7BYSR26dv2bLUhwTlsnF6OFRiu7hkanVfxW4Al5+Qe/kezwDHkNkeaiws0zdw5e7 OdARrI2G+qrYgbdSYv7c4eiq7RvwpgSaBgSIhsYYjNf6vCQQMsRvFDBfph2h25zfMqCS cksPpm1KPcMfyuj5kxew0F6UITNXFkaj0IFiZ/fPxf9vdvTTJWI29gjFegg0VUngtD0t eA7PZIOaC1rj0kTpJmqjB6fJ0/JqLAuoxiaa84TfZTgRluyU5krmh8e0FeXonCRr05xk iCjWIUOopLi5qxLRoBxMX0lOEn/YHxvEhWBG0Rp91bFuM9mBanuH7MEiZrzt6wRup2Jl FsVA== X-Gm-Message-State: AOAM531y3ZQdZVoSgsPpwD7N8KcOyKsSPrNLF7fdFfdfZXZceXJMwlnw WhR3Ld150qZRTkOA5V8+3DhtoY8EeInc X-Google-Smtp-Source: ABdhPJywFKKoP2bv0t61mkd7QNeIMNNNaNVtp5gAUYkkOnYtoFhNJw0USKf/elBk7HmgEQqF2OBoi4neN7bE 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@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(-)