Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp705854ybv; Wed, 5 Feb 2020 13:01:58 -0800 (PST) X-Google-Smtp-Source: APXvYqzqbcv6UdOgqa0ydFELkb2XApDbb/W3i/z2JpE7xv6mmn0oRugGLl1ldUMeXHGkYi9GQGqz X-Received: by 2002:aca:1c09:: with SMTP id c9mr4589611oic.85.1580936518160; Wed, 05 Feb 2020 13:01:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580936518; cv=none; d=google.com; s=arc-20160816; b=aZZnpzN3dhglmc1wxUlk5XIkNjxHZOdFduJjoKKFRDBoxHFPNDV10rlcb+lqQzBuqD ixOI9lyRd+EWC6GW2AE5aCetCDi8vAYSpCI5u+ZIqFuo9x2BrNSBgrK4X7IqC9VQlePy Z1C87omhJKWO6qRm9HC/HxCxkWgvvU1Q1I8UEbKohx33Pt3b2Cj+ftMqP2ZcivbMpV47 KnHJ1kvHF+3Fqp/+5cn7pISMeTcZZfJC/lIAkDz9QIW9mMaSxQQuVh9NCOM1nPKKsbGp LiPsakonPsiPyORIuPZRzAnecn36yiXHgmV+X90swnDHvHEUkhcoxK+UcoB59Qvg42Z+ je3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=gkdK+w3U6i8S/R8ybgWONyXqyKhVQqPu9Z8fgYXJMtg=; b=NLAxmaJcq63cnlbbgho/eoieZN4nb1kvkfZs/GvqJqIPs5XyJUz4g+KUfwx0Ct6LAq f9jJOulwqS814NPykKWf17NK6VDfc6pCAmuIRa+NV8TeW9Juib9NlWZuGU1tyCS+ovEh m0bKBVTC1L4ZEhtD1LXwfkz3bB2JmIzU0NicbAvTTl+sCS4La06Kg9CCZXKMOPmdxsJd fLsf8KbbQ+M4Q1b1jqHWJGNoXNe02I1CqCtG68E+GTWyuay880qe1tcCB4nrTqVV8Za6 qLrmt+37kuRn29Jm5ylAHT+VgJ4Xj6d2XvldS4VPwpz9ZAHLYafUN9xAXKwbtFcjuljk Ah9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=lMUbxPAE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h18si461349otk.227.2020.02.05.13.01.45; Wed, 05 Feb 2020 13:01:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=lMUbxPAE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727307AbgBEVAH (ORCPT + 99 others); Wed, 5 Feb 2020 16:00:07 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:44656 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726534AbgBEVAH (ORCPT ); Wed, 5 Feb 2020 16:00:07 -0500 Received: by mail-pg1-f194.google.com with SMTP id g3so1544462pgs.11 for ; Wed, 05 Feb 2020 13:00:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gkdK+w3U6i8S/R8ybgWONyXqyKhVQqPu9Z8fgYXJMtg=; b=lMUbxPAEa6yxcDff7IbmI01EPoGO+TmSVV8ONWipypxT/qfJs95Zcchuv0LxjKAibz ykSsPcsXz3MZ/bOS5le+TaH8Tb3k+1PrvfCrts5hm9xue1/rA54dVkyDQPr6zhey7aBd 6we4l3NBgnNYhVcsbUXgj2/E+ht+w6kp3e1Ok= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gkdK+w3U6i8S/R8ybgWONyXqyKhVQqPu9Z8fgYXJMtg=; b=VD5OrW+t07ZAqukr3sZx+MY0HdvOsSyNmuCJ1fWuKebvupR+YLIYRd45B9olMJbMmf 7oOm4waNb81BDCG9kGw4LJUxTYKJoUN6FaRj6OY6zznX6+jD8tMEgYMN76xFRNsxFIE7 Kcl8M9jVIrbDe1SSaLSxL3u+trvF6jUrtkthot75z8muFhRoGU8MJzPMgWSSC2YAgDBl Y9WaTGrCjEA5UuWnm0y5PrlJXJdJ/ilgYDZy6TYEI3riOr61ELyupkEwVC9pkciSlBLZ /WZnSxiIBrB8fqaVTOchBDgo2YkVCzx2uJsCoDkVoyGBMsAPVD4FSmfRioX8o1k8GY+v 4AGQ== X-Gm-Message-State: APjAAAXBj3ntUTyYRS4wdmxQk8BA/ZQc+EvOWIEg+iC+xYnYsxtbhKHj qUW/qxFYrdGJ5bwGucMLd7PrsqGyoZg= X-Received: by 2002:a63:8a42:: with SMTP id y63mr24148745pgd.266.1580936406610; Wed, 05 Feb 2020 13:00:06 -0800 (PST) Received: from pmalani2.mtv.corp.google.com ([2620:15c:202:201:172e:4646:c089:ce59]) by smtp.gmail.com with ESMTPSA id f8sm648797pjg.28.2020.02.05.13.00.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Feb 2020 13:00:05 -0800 (PST) From: Prashant Malani To: linux-kernel@vger.kernel.org Cc: heikki.krogerus@intel.com, enric.balletbo@collabora.com, bleung@chromium.org, Prashant Malani , Guenter Roeck Subject: [PATCH 0/3] platform/chrome: Add Type C connector class driver Date: Wed, 5 Feb 2020 12:59:48 -0800 Message-Id: <20200205205954.84503-1-pmalani@chromium.org> X-Mailer: git-send-email 2.25.0.341.g760bfbb309-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following series introduces a Type C port driver for Chrome OS devices that have an EC (Embedded Controller). It derives port information from ACPI or DT entries. This patch series adds basic support, including registering ports, and setting certain basic attributes. Prashant Malani (3): platform/chrome: Add Type C connector class driver platform/chrome: typec: Get PD_CONTROL cmd version platform/chrome: typec: Update port info from EC drivers/platform/chrome/Kconfig | 11 + drivers/platform/chrome/Makefile | 1 + drivers/platform/chrome/cros_ec_typec.c | 346 ++++++++++++++++++++++++ 3 files changed, 358 insertions(+) create mode 100644 drivers/platform/chrome/cros_ec_typec.c -- 2.25.0.341.g760bfbb309-goog