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

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
---
Changes in v2:
- power-opmode DT property description updated.
---
 .../bindings/connector/usb-connector.yaml     |  20 +
 .../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, 1056 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/usb/st,stusb160x.yaml
 create mode 100644 drivers/usb/typec/stusb160x.c

-- 
2.17.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2020-09-23 10:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-02  7:57 [RESEND PATCH v2 0/6] Add STUSB160x Type-C port controller support Amelie Delaunay
2020-09-02  7:57 ` [RESEND PATCH v2 1/6] dt-bindings: connector: add power-opmode optional property to usb-connector Amelie Delaunay
2020-09-23  9:08   ` Jun Li
2020-09-23  9:31     ` Amelie DELAUNAY
2020-09-23 10:33       ` Jun Li
2020-09-02  7:57 ` [RESEND PATCH v2 2/6] usb: typec: add typec_find_pwr_opmode Amelie Delaunay
2020-09-02  7:57 ` [RESEND PATCH v2 3/6] dt-bindings: usb: Add DT bindings for STUSB160x Type-C controller Amelie Delaunay
2020-09-02  7:57 ` [RESEND PATCH v2 4/6] usb: typec: add support for STUSB160x Type-C controller family Amelie Delaunay
2020-09-02  7:57 ` [RESEND PATCH v2 5/6] ARM: dts: stm32: add STUSB1600 Type-C using I2C4 on stm32mp15xx-dkx Amelie Delaunay
2020-09-02  7:57 ` [RESEND PATCH v2 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).