Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3815962pxb; Mon, 1 Feb 2021 05:36:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJyr/O9xHSfKpCq5OALJwpKT57xQSrf1RqMA4UhgQYktPeKW28ef2VhtJRBFohXwL5yTQOUO X-Received: by 2002:a17:906:c7d2:: with SMTP id dc18mr17390448ejb.149.1612186596237; Mon, 01 Feb 2021 05:36:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612186596; cv=none; d=google.com; s=arc-20160816; b=qiZX9yHd0EkBxCOphNvnqsuTt4wc5/wFiU4vvJPr9dQ5M4vyfNWFYsnwDj5PTrd994 eXuPSLaRLjgHSOkZcGwXBJ7/I8dLKWIxTP9A+vIcYwGRnymWDetBCtPhMyiPkIkUafNR iLU+8CnROEBXwdCeh68ebbu0msX+sdY+gGww4GRm4Ohy/7VyM6zJKCxcB9zKygA1wv4v bAX6O8BErMo5RZbYWdKfP0Ic6f7WrcszmtHlHgBwgtgp9s7XLaZmBGFRfZAPuGsYti6j 4uFaRVhqalrSh8ijUhIVWn/I/LcYl5GSeWYu3IOh2u4EON7/6JuzFmcz2O7MhYFcaN5E T/Rg== 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=JRWaNv8CUyRtnGhAv2UGsIw+4RM2ET9YxEDAkb3Ls7Y=; b=Yrhv1ComqdimPu8Ad1tlh21H899tZemNTHhGIIE2l1JiJhftO/XPGZDNP8ZWaS5DAF 9YgfdlguXCCE9P/TLacsFVAd/YhK0KN6RxMMJ+42yuu2Ixw5L+MxhwbowhiJJStGXY3b EUiArEDux1L+4G+YjVuPahJXPhRwiCC0FiJaUK9r++IZe+yQ4JfUr7jO/0SQeBlMF4uJ rSbT7oXTjFpP6l1l46EWEH8OS7+tzzWstKQW9LPOXzfgNy+95Yh3Ryxz52u0ycbeAtgk Vla9PUytyFQEl7qrBTqkgawYzLomfL2BFucVh34egkJ9aX5CC0TjRxbENRd0p9Cmed9C R+zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=aek5t0dP; 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 l11si11603432ejx.382.2021.02.01.05.36.11; Mon, 01 Feb 2021 05:36:36 -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=aek5t0dP; 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 S232102AbhBANfW (ORCPT + 99 others); Mon, 1 Feb 2021 08:35:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232031AbhBANfS (ORCPT ); Mon, 1 Feb 2021 08:35:18 -0500 Received: from mail-qv1-xf49.google.com (mail-qv1-xf49.google.com [IPv6:2607:f8b0:4864:20::f49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C220CC0613D6 for ; Mon, 1 Feb 2021 05:34:37 -0800 (PST) Received: by mail-qv1-xf49.google.com with SMTP id l3so11228032qvz.12 for ; Mon, 01 Feb 2021 05:34:37 -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=JRWaNv8CUyRtnGhAv2UGsIw+4RM2ET9YxEDAkb3Ls7Y=; b=aek5t0dPTVzznvKfKlb3j+JOm4kKQh9WdrHHkSe4ZxoC1T6EcGVy7ZjSU8WGloOGpO hN8NSUjcSgMbaaZMR15YDwA1hCNwJEU/46Nid5XFo10dyvRoKTJqlM/XkafslXXhLzWb RixP6l9My0D1EEaPwKo1C68wKWCLL70RNjLyG6SYJZcNGG6/sn9mldfLmUJrFCgNBnvT jzvE+PuZyU4R1YZL77CiI7ljfpJmO3gGqU2w6ydVPRKDtAIEu4txF1P9fPoh84r4gYzS +M3QFbqsycbjavuo+Z+gHdA1JZYhckVfTyEdgekU+K6DdM2AeEf0xBIwEUTavbE4p6zU t91Q== 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=JRWaNv8CUyRtnGhAv2UGsIw+4RM2ET9YxEDAkb3Ls7Y=; b=bLV0iXthfAAc1aVTYAzxhCCsJynXUE6b5jav2v1WEtVxjmPCAgtYy+kOVDSvIr0g2a 0n3ao+72FsQxT1zK/HD2ZBDPZd+3wgZ2hOfrgXUKziwXTYSE4FtAvSousHdc9j+mTk+y xbI2XTselVYx5VPzDgzHMFnMrl07BfF7gLdNcEoEk8DG75jZ12qtQaHvh0xVq0RAo2Hd kR8MHSZGV2j/DsoWRP9PdkmOfznkzuhv1CzqEZJfD0ZeZvCjSYfVd2W3n3UFW3GFLIHh plpOKGgk0nqV8RnLc9xpc7WOOoxHDQtUl0qMcdzlZw+bhZMzy0iGruxJ2ql7MxI8gEC4 Wwvg== X-Gm-Message-State: AOAM531C6XTAmS8j1zNW8vhi340JTaHMe9uIpz7KPc/r05Y2bc0ZQxsO i350ae65tIebvb9Zbn9lEdXllqg6Bj72 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:a0c:b989:: with SMTP id v9mr15179560qvf.42.1612186476917; Mon, 01 Feb 2021 05:34:36 -0800 (PST) Date: Mon, 1 Feb 2021 21:34:18 +0800 Message-Id: <20210201133421.408508-1-kyletso@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.30.0.365.g02bc693789-goog Subject: [PATCH v3 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 v2: https://lore.kernel.org/linux-devicetree/20210131151832.215931-1-kyletso@google.com/ Changes since v2: ================= usb: typec: Determine common SVDM Versions - rename the variable and the functions (remove the text "common") - remove the macro dt-bindings: connector: Add SVDM VDO properties - no change usb: typec: tcpm: Get Sink VDO from fwnode - use fwnode_property_count_u32 instead to get the count - revise the error handling 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 | 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(-) -- 2.30.0.365.g02bc693789-goog