mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Aren Moynihan <aren@peacevolution.org>
To: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: "Aidan MacDonald" <aidanmacdonald.0x0@gmail.com>,
	"Ondřej Jirman" <megi@xff.cz>,
	"Aren Moynihan" <aren@peacevolution.org>,
	"Chen-Yu Tsai" <wens@csie.org>,
	"Quentin Schulz" <quentin.schulz@bootlin.com>,
	"Sebastian Reichel" <sre@kernel.org>
Subject: [PATCH 0/3] power: supply: axp20x_usb_power: prepare for external power delivery negotiation
Date: Sat, 20 Jan 2024 20:39:58 -0500	[thread overview]
Message-ID: <20240121014057.1042466-1-aren@peacevolution.org> (raw)

Being able to set the input current limit will be necessary to implement
usb power delivery on the Pine64 PinePhone. The PinePhone has a separate
chip (anx7688) that handles usb power delivery (among other things), so
we will need a way to apply the current limit which that negotiates.

The first two patches were originally based on code Ondřej Jirman
wrote[1], but I have almost completely rewritten them.

While working on this, I also discovered that the axp803 pmic sets a
current limit of 3A on the usb port without any negotiation if it
doesn't detect a battery.

1: https://xff.cz/git/linux/commit/?h=axp-6.7&id=3dcd33dfd1ae58db159427365dcb6d0d2b12f06d


Aren Moynihan (3):
  power: supply: axp20x_usb_power: add input current limit
  power: supply: axp20x_usb_power: enable usb_type reporting
  power: supply: axp20x_usb_power: set input current limit in probe

 drivers/power/supply/axp20x_usb_power.c | 192 +++++++++++++++++++++++-
 1 file changed, 190 insertions(+), 2 deletions(-)

-- 
2.43.0


             reply	other threads:[~2024-01-21  1:49 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-21  1:39 Aren Moynihan [this message]
2024-01-21  1:40 ` [PATCH 1/3] power: supply: axp20x_usb_power: add input current limit Aren Moynihan
2024-01-21 11:38   ` Ondřej Jirman
2024-01-23  1:50     ` Aren
2024-01-21 15:25   ` Chen-Yu Tsai
2024-01-23  0:52     ` Aren
2024-01-21  1:40 ` [PATCH 2/3] power: supply: axp20x_usb_power: enable usb_type reporting Aren Moynihan
2024-01-21 11:55   ` Ondřej Jirman
2024-01-23  2:41     ` Aren
2024-01-21  1:40 ` [PATCH 3/3] power: supply: axp20x_usb_power: set input current limit in probe Aren Moynihan
2024-01-21 11:08   ` Ondřej Jirman
2024-01-23  1:40     ` Aren

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=20240121014057.1042466-1-aren@peacevolution.org \
    --to=aren@peacevolution.org \
    --cc=aidanmacdonald.0x0@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=megi@xff.cz \
    --cc=quentin.schulz@bootlin.com \
    --cc=sre@kernel.org \
    --cc=wens@csie.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®