All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lee Jones <lee.jones@linaro.org>
To: Daisuke Nojiri <dnojiri@chromium.org>
Cc: LKML <linux-kernel@vger.kernel.org>,
	vpalatin@chromium.org, guenter@chromium.org, bleung@chromium.org,
	Alex Levin <levinale@google.com>,
	Enric Balletbo i Serra <enric.balletbo@collabora.com>,
	Guenter Roeck <groeck@chromium.org>,
	"Gustavo A. R. Silva" <gustavoars@kernel.org>,
	Gwendal Grignou <gwendal@chromium.org>,
	Mark Brown <broonie@kernel.org>,
	Pi-Hsun Shih <pihsun@chromium.org>,
	Prashant Malani <pmalani@chromium.org>,
	Sebastian Reichel <sre@kernel.org>,
	Vijay Hiremath <vijay.p.hiremath@intel.com>,
	Yu-Hsuan Hsu <yuhsuan@chromium.org>,
	linux-pm@vger.kernel.org
Subject: Re: [PATCH] power: supply: PCHG: Peripheral device charger
Date: Tue, 15 Dec 2020 07:54:25 +0000	[thread overview]
Message-ID: <20201215075425.GJ5029@dell> (raw)
In-Reply-To: <20201215023120.2514920-1-dnojiri@chromium.org>

On Mon, 14 Dec 2020, Daisuke Nojiri wrote:

> This patch adds a driver for PCHG (Peripheral CHarGer). PCHG is a
> framework managing power supplies for peripheral devices.
> 
> This driver creates a sysfs node for each peripheral charge port:
> 
> 	/sys/class/power_supply/PCHGn
> 
> where <n> is the index of a charge port.
> 
> For example, when a stylus is connected to a NFC/WLC port, the node
> prints:
> 
> 	/sys/class/power_supply/PCHG0/
> 		capacity=50
> 		status=Charging
> 		type=Wireless
> 
> Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
> ---
> 
>  drivers/mfd/cros_ec_dev.c                     |   1 +

This should be a separate patch.

>  drivers/power/supply/Kconfig                  |  10 +
>  drivers/power/supply/Makefile                 |   1 +
>  .../power/supply/cros_peripheral_charger.c    | 346 ++++++++++++++++++
>  .../linux/platform_data/cros_ec_commands.h    |  48 +++
>  5 files changed, 406 insertions(+)
>  create mode 100644 drivers/power/supply/cros_peripheral_charger.c
> 
> diff --git a/drivers/mfd/cros_ec_dev.c b/drivers/mfd/cros_ec_dev.c
> index 6135321592b76c..945565fc46a319 100644
> --- a/drivers/mfd/cros_ec_dev.c
> +++ b/drivers/mfd/cros_ec_dev.c
> @@ -85,6 +85,7 @@ static const struct mfd_cell cros_ec_sensorhub_cells[] = {
>  static const struct mfd_cell cros_usbpd_charger_cells[] = {
>  	{ .name = "cros-usbpd-charger", },
>  	{ .name = "cros-usbpd-logger", },
> +	{ .name = "cros-pchg", },
>  };

-- 
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog

  reply	other threads:[~2020-12-15  7:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-15  2:31 [PATCH] power: supply: PCHG: Peripheral device charger Daisuke Nojiri
2020-12-15  7:54 ` Lee Jones [this message]
2020-12-15 21:43 ` [PATCH 1/2] " Daisuke Nojiri
2020-12-15 21:43   ` [PATCH 2/2] mfd: cros_ec: Add peripheral " Daisuke Nojiri
2020-12-16 14:40     ` Lee Jones

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201215075425.GJ5029@dell \
    --to=lee.jones@linaro.org \
    --cc=bleung@chromium.org \
    --cc=broonie@kernel.org \
    --cc=dnojiri@chromium.org \
    --cc=enric.balletbo@collabora.com \
    --cc=groeck@chromium.org \
    --cc=guenter@chromium.org \
    --cc=gustavoars@kernel.org \
    --cc=gwendal@chromium.org \
    --cc=levinale@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=pihsun@chromium.org \
    --cc=pmalani@chromium.org \
    --cc=sre@kernel.org \
    --cc=vijay.p.hiremath@intel.com \
    --cc=vpalatin@chromium.org \
    --cc=yuhsuan@chromium.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.