Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1339114ybc; Tue, 12 Nov 2019 19:14:17 -0800 (PST) X-Google-Smtp-Source: APXvYqyLNeRnS+xAeEOkseYAg7rcRg9qV3sJ6g2xiuEIUOKwHluiphn77Mc4CtlgbZx6Wq/KOGoT X-Received: by 2002:a17:906:95c1:: with SMTP id n1mr689025ejy.158.1573614857165; Tue, 12 Nov 2019 19:14:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573614857; cv=none; d=google.com; s=arc-20160816; b=Icu1E8pK44OtMJghDjsUUXXgJK1ANOXK4yEmTjq13neNoIe3QPJIabDQHlOBucFsXv RBRAxno6opAN+jmqA6Tf6WR2TnEMsywagWBD9ikbTElbsnyM9H8SX/tK0SG99XiqOTD5 n817F3GIRpW1/QoNDRjBbGZpfGZE+AFkjhf5Anfau/MnQ5CUSNgzo0/1A3F1aOmOF8WE +8Q3l1KP90OBwo+JKSQGOJ7h3tMq4AZYem+0wlrCjIowRkt2H7xqkwo+6Ral5Sy6zc3R ifsIfYhVd61+1AJIViwfiJ0PC0QuNa8GQ0bPVfGVTppzeaelgkrPf/gckFF479taFEaR 1pNQ== 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=sWZ8UzAkmxA1TAREML/yWr8V/ErFe78gOEVCjRO2y50=; b=RBwu/8bGbxw5A9sbKeZ6VcVcCQ4iOIxTtMf6o2fEWMGzLfM+/wnO0WsSk4zKp0KEm2 1gsyaGfE9fPPv2PmJHAvIJaZB4PKpMURLjiqYbHJW/TjZQ9aIbVOKen3IF7zh6zFxkHC ny/t7UaG6DaiMV8x5CAJZKFMQ0OBhR7fNPNvKEcxArgCf+zyKxUaj/lnmdsDZfmI7AMg PmmtUhyOTX3+52EMU8XwMy9Q74I+FBEAWMNBZe7VCkTXig+eFw/keI9E/aIkOTb0JL96 F+Kxr7J8nassQw9B2j2hWMqFo3pPUtZtBEABvhu5J4eRcNklnsMI850ZrBIyQBy7JFje SJMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=aFbml+xE; 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 t8si310193ejj.328.2019.11.12.19.13.52; Tue, 12 Nov 2019 19:14:17 -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=aFbml+xE; 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 S1727310AbfKMDLH (ORCPT + 99 others); Tue, 12 Nov 2019 22:11:07 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:33561 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727100AbfKMDLG (ORCPT ); Tue, 12 Nov 2019 22:11:06 -0500 Received: by mail-pl1-f196.google.com with SMTP id ay6so444972plb.0 for ; Tue, 12 Nov 2019 19:11:06 -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=sWZ8UzAkmxA1TAREML/yWr8V/ErFe78gOEVCjRO2y50=; b=aFbml+xEPqzFTppazdrW9+EGIhJYoLtsB9COq1t0eFNJOZA55aCbyJoZp5klGvtSw9 CRSaqDpl1aIVcONOZGB2Eoslo6hkToL06F4Tpv2rEahCNq0QZWk7sYnww7nBs37Rcqd5 FN6wzMBtvNVojMFkYwcg96ZTuUzXLiMA1Fme4= 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=sWZ8UzAkmxA1TAREML/yWr8V/ErFe78gOEVCjRO2y50=; b=Wfr3F5Eomswvv0FJWXlwTo+E80zMkjG8tGXkvHG+Mra+QnYUz7F/26TKGc1o5+K6yD f1r2urRWdKGfEL6O30x5kCNC9CBUNAimg3qWNG45BA2Uo7NYns0c8hm17t0vYlN4Vf1f kcx2qThCIRD3zfn0tBZjbt3+PJ5VeUh30PQUXcnacG3mJR5Ohq3HRed+R/Y6YX3UOg7b IYUrWviKR15NMuWNHqVteoO0cPOvCOcLLvCo8QRsxUZHd7ckjMtMOJUy/+Bhigkp+TPo /vcDUZEdfQixhAdAVa69jF74OnHNIda3h7Htjzf1tDmTlOvZdjnVANTapPY2FrL4ESm0 NPgA== X-Gm-Message-State: APjAAAXk5gSuki8fwxtsb6+dtlqH2h8qJykld6fXp/LF3jglGHzteGNL o8o70AkIqSFwttVDzfWWj8jc02RZE34= X-Received: by 2002:a17:902:b48d:: with SMTP id y13mr1274188plr.290.1573614665827; Tue, 12 Nov 2019 19:11:05 -0800 (PST) Received: from localhost ([2620:15c:202:201:1b1f:9c69:179b:de9a]) by smtp.gmail.com with ESMTPSA id q26sm404984pgk.60.2019.11.12.19.11.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 Nov 2019 19:11:05 -0800 (PST) From: Jon Flatley To: linux-kernel@vger.kernel.org Cc: bleung@chromium.org, groeck@chromium.org, sre@kernel.org, jflat@chromium.org Subject: [PATCH 0/3] ChromeOS EC USB-C Connector Class Date: Tue, 12 Nov 2019 19:10:41 -0800 Message-Id: <20191113031044.136232-1-jflat@chromium.org> X-Mailer: git-send-email 2.24.0.432.g9d3f5f5b63-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 This patch set adds a basic implementation of the USB-C connector class for devices using the ChromeOS EC. On ACPI devices an additional ACPI driver is necessary to receive USB-C PD host events from the PD EC device "GOOG0003". Incidentally, this ACPI driver adds notifications for events that cros-usbpd-charger has been missing, so fix that while we're at it. Jon Flatley (3): platform: chrome: Add cros-ec-usbpd-notify driver power: supply: cros-ec-usbpd-charger: Fix host events platform: chrome: Added cros-ec-typec driver drivers/mfd/cros_ec_dev.c | 7 +- drivers/platform/chrome/Kconfig | 20 + drivers/platform/chrome/Makefile | 2 + drivers/platform/chrome/cros_ec_typec.c | 457 ++++++++++++++++++ .../platform/chrome/cros_ec_usbpd_notify.c | 156 ++++++ drivers/power/supply/Kconfig | 2 +- drivers/power/supply/cros_usbpd-charger.c | 45 +- .../platform_data/cros_ec_usbpd_notify.h | 40 ++ 8 files changed, 696 insertions(+), 33 deletions(-) create mode 100644 drivers/platform/chrome/cros_ec_typec.c create mode 100644 drivers/platform/chrome/cros_ec_usbpd_notify.c create mode 100644 include/linux/platform_data/cros_ec_usbpd_notify.h -- 2.24.0.432.g9d3f5f5b63-goog