[lkml]   [2020]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[PATCH v4 0/2] 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 v3
- As per review comments from Andy Shevchenko
- Use positive conditionals
- Add reviewed by from Heikki Krogerus
- Fix typc vs typec typo in commit message

changes from v2
- As per kernel test robot
- Flip USB_ROLE_SWITCH and REGMAP_I2C from 'depends on' to 'select'
This matches tcpm and avoids a config symbol recursion which went
unnoticed on my arm64 build but trips up x86_64.

changes from v1
- As per review comments from Heikki Krogerus
- use POWER_SUPPLY_USB_TYPE_PD when a PD contract got negotiated

To: Heikki Krogerus <>,Greg Kroah-Hartman <>,,,Andy Shevchenko <>

Guido Günther (2):
usb: typec: tps6598x: Select USB_ROLE_SWITCH and REGMAP_I2C
usb: typec: tps6598x: Export some power supply properties

drivers/usb/typec/Kconfig | 5 +-
drivers/usb/typec/tps6598x.c | 105 +++++++++++++++++++++++++++++++++++
2 files changed, 108 insertions(+), 2 deletions(-)


 \ /
  Last update: 2020-12-01 14:03    [W:0.041 / U:1.480 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site