[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <cover.1606410063.git.agx@sigxcpu.org>
Date: Thu, 26 Nov 2020 18:03:14 +0100
From: Guido Günther <agx@...xcpu.org>
To: Heikki Krogerus <heikki.krogerus@...ux.intel.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH v2 0/1] usb: typec: tps6598x: Export some power supply properties
This allows downstream supplies and userspace to detect whether external power
is supplied.
The Librem 5 has the tp65982 in front of bq25980 charge controller. Since that
is capable of sinking and sourcing power the online property helps to decide
what to do. It also makes upower happy.
There will be follow up patches providing more properties but these need some
more time to cook and i wanted to check if this is the right way to go?
changes from v1
- As per review comments from Heikki Krogerus
https://lore.kernel.org/linux-usb/20201126123552.GP1008337@kuha.fi.intel.com/
- select POWER_SUPPLY
- use POWER_SUPPLY_USB_TYPE_PD when a PD contract got negotiated
Guido Günther (1):
usb: typec: tps6598x: Export some power supply properties
drivers/usb/typec/Kconfig | 1 +
drivers/usb/typec/tps6598x.c | 105 +++++++++++++++++++++++++++++++++++
2 files changed, 106 insertions(+)
--
2.29.2
Powered by blists - more mailing lists