Received: by 10.223.148.5 with SMTP id 5csp6146755wrq; Wed, 17 Jan 2018 10:01:02 -0800 (PST) X-Google-Smtp-Source: ACJfBovknHBuQ61BnvDeNhmYA8K/PkqIqqyAkyRT8nvKM+SpLPZtcTyeH9vulffZukrgSYKjbmXh X-Received: by 10.98.192.10 with SMTP id x10mr30599165pff.27.1516212062876; Wed, 17 Jan 2018 10:01:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516212062; cv=none; d=google.com; s=arc-20160816; b=OYbGTCimphLnMYdj1uCmAim+JNHfwZwneCD+k74qhG+9QKGfHckr2CwgqQZk6hrZ7C FKe3c6lslVhUynPOUYx8B2K7oBdmereP1z6Pw8ZKtjuKUQOCN12i7YhIc/Gp8mxVHloN 3yDe31+wLknlwgUHqjDgVxzbR04O+sJHPC4E38f02N0ajTl39UnLOtd2AiqVw0QowlfR NA72P58aTWkG9qk8N7yzBJikueSayhCQno44k8GD3TxA6urGMsMJGdJDwQcDDO0LX6pp 9Omk495xFGSyk5v+9oIBvCG9BR8G1cbb1ER1ODtwgMM1YhZH60SojfIcTNHCFyMrzysP xlwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=kOa8IG+Fnj0GZrYQYYEU7GLCQS/0wKIvCrOz2surQxo=; b=TVdL2TnIkfwBGZmQOx6+TSSg05QtnkD67PS6OHx764h12SZXAHQCif++Yox1Pexydq 2afkv1M75Lbuo0rYIjl9u6MUjqe0no1FmxliJFbqx4nqBnK2A18t1N57CMurmIsbatDN geifx8gtUpotkXuIDldMoRM7Ji66crP7yx3j6HadJJEx4V9ST9F0Qle0NbJseKaWd48u Ow/5FV3BteTAToXYQBAIxFnVzeArf+mn/eOWxf+cejCQj8bCZFQ3IKLl+0RIg5l05pSc 2OIpFO4vJrCy0tD6237xf0WMgUJbu5LFVMhnatC2EtfTSF3/mtcyhq3F3UjMPMMiSgVs S2gg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k196si4300986pgc.385.2018.01.17.10.00.46; Wed, 17 Jan 2018 10:01:02 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754251AbeAQR7n (ORCPT + 99 others); Wed, 17 Jan 2018 12:59:43 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:39962 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753669AbeAQR7m (ORCPT ); Wed, 17 Jan 2018 12:59:42 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id A327327259C From: Enric Balletbo i Serra To: Lee Jones , Sebastian Reichel Cc: Gwendal Grignou , Benson Leung , Guenter Roeck , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH 0/3] mfd: cros_ec: add support for USBPD charger driver. Date: Wed, 17 Jan 2018 18:59:29 +0100 Message-Id: <20180117175932.20636-1-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.15.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear all, These patches introduces the ChromeOS EC USBPD charger driver, the driver has been used on Chromebooks kernels and ported to mainline. The patches were tested succesfully with a Samsung Chromebook Plus device but depends on the for-next Benson Leung branch [1] to apply cleanly. This branch is supposed to be merged in next merge window. [1] https://git.kernel.org/pub/scm/linux/kernel/git/bleung/chrome-platform.git/log/?h=for-next Best regards, Enric Sameer Nanda (3): mfd: cros_ec: Add USBPD charger commands and struct definitions. power: supply: add cros-ec USB PD charger driver. mfd: cros_ec_dev: Register cros_usbpd-charger driver as a subdevice. drivers/mfd/cros_ec_dev.c | 25 + drivers/power/supply/Kconfig | 11 + drivers/power/supply/Makefile | 1 + drivers/power/supply/cros_usbpd-charger.c | 953 ++++++++++++++++++++++++++++++ include/linux/mfd/cros_ec.h | 3 + include/linux/mfd/cros_ec_commands.h | 135 ++++- 6 files changed, 1124 insertions(+), 4 deletions(-) create mode 100644 drivers/power/supply/cros_usbpd-charger.c -- 2.15.1