From patchwork Tue Feb 2 16:17:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kyle Tso X-Patchwork-Id: 374936 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=unavailable 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 669D0C433E6 for ; Tue, 2 Feb 2021 16:20:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 36BCD64F65 for ; Tue, 2 Feb 2021 16:20:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236228AbhBBQU2 (ORCPT ); Tue, 2 Feb 2021 11:20:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236136AbhBBQSZ (ORCPT ); Tue, 2 Feb 2021 11:18:25 -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 B33DAC061793 for ; Tue, 2 Feb 2021 08:17:39 -0800 (PST) Received: by mail-pg1-x54a.google.com with SMTP id 33so14403162pgv.0 for ; Tue, 02 Feb 2021 08:17:39 -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=iwkSPDu8+GCJtZMCgGxCvy6RYjdYTFAwWafltAfL22E=; b=j+OrsPqfI2I28/iLg0WIy4Rb9Ckar70srGuUc4Zfskq71ped2Ij4JaNsEthFBNR4+U 1QwMrVSz3FuYPFkp1xfG1qz+P6bm/GYAOTZ01sud30A3wimTYlHjDu5ALg/2tKCH4La3 7OtKqdqrkgkSDlZZPhcM76stoIGT5zfRnonQ4bw0TYdYgoiVkNRJbgUTG95Eoi7WSzT/ U/bFD25Gvk5twsbvMh/fMOF21dIgOIxmWtCoq3fRsNZTask9OZ1XCZT5LKhFT1fajTNa 7OFpXPfvBBXa/BCE7Jzo0mAAH00KfbveVFo+BsolCw1YcIqXtYvdd4j4fWZSfX447tUF sNHg== 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=iwkSPDu8+GCJtZMCgGxCvy6RYjdYTFAwWafltAfL22E=; b=hLVC/2qSsC17+qlXa46Px0xiwOEqAWozfUzcsJERoVoZpo7q69i3psRIYMcRxND+4L 9Fyyr6am8N5kqAKh/01nHt0f6HXBiTaoaQKn7hDGyQnDIC7GGqFs4tHGMdYpJwM8dCG1 4q/Z7xkIltUPWt06gZxpaNbnT4vsZEjo/gS0uD0RyKA1v07XMWK7/u5dbJqJE9Fcerwb 0OOJsR7GMI/RlBO5JKsNhBIJFv6+NXhGlnx+VYLMolqWhE9qsLsU148TsJeYpwDI1u9j 5C4qWrqXThihYORZTP1qtih6S0ML+ZN22EoW9nPjcS6elmC7FhehDLqfJg4qWX18MLa0 9ikw== X-Gm-Message-State: AOAM531YwvZVw3u4OHatDdu4kAdM1yMBxpebsT42/RZ6rKUwngUZlqdL 6LiJ7U9SqfqrCYhPqvh38eWVIcOr8K9l X-Google-Smtp-Source: ABdhPJzyFdCQAvJN3cdQcHtYsB1Ey3cwtyGZMbsMNsjUiAZ4K6I8OxfTNzeaKP5quIUEzuh5JRLH6YYzt5XB Sender: "kyletso via sendgmr" X-Received: from kyletso.ntc.corp.google.com ([2401:fa00:fc:202:dd94:c753:a81d:c855]) (user=kyletso job=sendgmr) by 2002:a62:75c1:0:b029:1b6:b71a:a369 with SMTP id q184-20020a6275c10000b02901b6b71aa369mr22323886pfc.27.1612282658846; Tue, 02 Feb 2021 08:17:38 -0800 (PST) Date: Wed, 3 Feb 2021 00:17:25 +0800 Message-Id: <20210202161733.932215-1-kyletso@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.30.0.365.g02bc693789-goog Subject: [PATCH v5 0/8] 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: linux-usb@vger.kernel.org v4 is here: https://patchwork.kernel.org/project/linux-usb/cover/20210202093342.738691-1-kyletso@google.com/ Changes since v4: ================= usb: pd: Make SVDM Version configurable in VDM header - modified the code who uses VDO(), set the ver field to SVDM_VER_1_0 Kyle Tso (8): usb: typec: Manage SVDM version usb: pd: Update VDO definitions usb: pd: Make SVDM Version configurable in VDM header usb: typec: tcpm: Detemine common SVDM Version usb: typec: ucsi: Detemine common SVDM Version usb: typec: displayport: Fill the negotiated SVDM Version in the header 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 | 8 +- drivers/usb/typec/class.c | 21 +- drivers/usb/typec/tcpm/tcpm.c | 61 +++- drivers/usb/typec/ucsi/displayport.c | 12 +- 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, 661 insertions(+), 90 deletions(-)