linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] Add STUSB160x Type-C port controller support
@ 2020-06-15 16:15 Amelie Delaunay
  2020-06-15 16:15 ` [PATCH 1/6] dt-bindings: connector: add power-opmode optional property to usb-connector Amelie Delaunay
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Amelie Delaunay @ 2020-06-15 16:15 UTC (permalink / raw)
  To: Rob Herring, Greg Kroah-Hartman, Maxime Coquelin,
	Alexandre Torgue, Russell King, Heikki Krogerus
  Cc: devicetree, linux-kernel, linux-usb, linux-stm32,
	linux-arm-kernel, Amelie Delaunay, Fabrice Gasnier

This series adds support for STMicroelectronics STUSB160x Type-C port
controllers [1].
STUSB160x driver requires to get power operation mode via device tree,
that's why this series also adds the optional DT property power-opmode
for usb-c-connector to select the power operation mode capability and
a function to convert the power operation mode string into power
operation mode value.
This driver has been tested on stm32mp157c-dk2 [2], which has a Type-C
connector managed by STUSB1600, and connected to USB OTG controller. 

[1] https://www.st.com/en/interfaces-and-transceivers/usb-type-c-and-power-delivery-controllers.html
[2] https://www.st.com/en/evaluation-tools/stm32mp157c-dk2.html

Amelie Delaunay (6):
  dt-bindings: connector: add power-opmode optional property to
    usb-connector
  usb: typec: add typec_find_pwr_opmode
  dt-bindings: usb: Add DT bindings for STUSB160x Type-C controller
  usb: typec: add support for STUSB160x Type-C controller family
  ARM: dts: stm32: add STUSB1600 Type-C using I2C4 on stm32mp15xx-dkx
  ARM: multi_v7_defconfig: enable STUSB160X Type-C port controller
    support

 .../bindings/connector/usb-connector.yaml     |  11 +
 .../devicetree/bindings/usb/st,stusb160x.yaml |  85 ++
 arch/arm/boot/dts/stm32mp15-pinctrl.dtsi      |   7 +
 arch/arm/boot/dts/stm32mp15xx-dkx.dtsi        |  38 +
 arch/arm/configs/multi_v7_defconfig           |   2 +
 drivers/usb/typec/Kconfig                     |  12 +
 drivers/usb/typec/Makefile                    |   1 +
 drivers/usb/typec/class.c                     |  15 +
 drivers/usb/typec/stusb160x.c                 | 875 ++++++++++++++++++
 include/linux/usb/typec.h                     |   1 +
 10 files changed, 1047 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/usb/st,stusb160x.yaml
 create mode 100644 drivers/usb/typec/stusb160x.c

-- 
2.17.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-07-16  9:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-15 16:15 [PATCH 0/6] Add STUSB160x Type-C port controller support Amelie Delaunay
2020-06-15 16:15 ` [PATCH 1/6] dt-bindings: connector: add power-opmode optional property to usb-connector Amelie Delaunay
2020-07-15 18:19   ` Rob Herring
2020-07-16  9:20     ` Amelie DELAUNAY
2020-06-15 16:15 ` [PATCH 2/6] usb: typec: add typec_find_pwr_opmode Amelie Delaunay
2020-06-16 10:56   ` Heikki Krogerus
2020-06-15 16:15 ` [PATCH 3/6] dt-bindings: usb: Add DT bindings for STUSB160x Type-C controller Amelie Delaunay
2020-06-15 16:15 ` [PATCH 4/6] usb: typec: add support for STUSB160x Type-C controller family Amelie Delaunay
2020-06-16 12:50   ` Heikki Krogerus
2020-06-15 16:15 ` [PATCH 5/6] ARM: dts: stm32: add STUSB1600 Type-C using I2C4 on stm32mp15xx-dkx Amelie Delaunay
2020-06-15 16:15 ` [PATCH 6/6] ARM: multi_v7_defconfig: enable STUSB160X Type-C port controller support Amelie Delaunay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).