public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/6] usb: typec: tipd: Add Apple M1 support
@ 2021-09-28 15:54 Sven Peter
  2021-09-28 15:54 ` [PATCH v3 1/6] dt-bindings: usb: tps6598x: Add Apple CD321x compatible Sven Peter
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Sven Peter @ 2021-09-28 15:54 UTC (permalink / raw)
  To: Heikki Krogerus
  Cc: Sven Peter, Greg Kroah-Hartman, Guido Günther,
	Bryan O'Donoghue, linux-usb, linux-kernel, Hector Martin,
	Mohamed Mediouni, Stan Skowronek, Mark Kettenis, Alexander Graf,
	Alyssa Rosenzweig

Hi,

v1: https://lore.kernel.org/linux-usb/20210918120934.28252-1-sven@svenpeter.dev/
v2: https://lore.kernel.org/linux-usb/20210923181321.3044-1-sven@svenpeter.dev/ 
Thanks again to Heikki for your review of v2!

This series adds initial support for the Apple CD3217/3218 chip which is also
known as Apple ACE1/2. These chips are used on Apple M1 machines.
They are based on the TI TPS6598x chips with a few differences:

	- The interrupt numbers have been changed
	- The secondary i2c bus and its interrupt controller are connected to the
	  system management controller and must not be disturbed
	- The chip comes up in a low power state and must be booted using the
	  "SPSS" (System Power State Switch maybe) command which is not
	  documented in the TI manual
	- The interrupt mask must be set up explicitly

The only difference to v2 is that now of_device_is_compatible instead of
of_device_get_match_data is used to switch to the CD321x logic as suggested
by Heikki.

Best,

Sven

Sven Peter (6):
  dt-bindings: usb: tps6598x: Add Apple CD321x compatible
  usb: typec: tipd: Split interrupt handler
  usb: typec: tipd: Add short-circuit for no irqs
  usb: typec: tipd: Add support for Apple CD321X
  usb: typec: tipd: Switch CD321X power state to S0
  usb: typec: tipd: Remove FIXME about testing with I2C_FUNC_I2C

 .../devicetree/bindings/usb/ti,tps6598x.yaml  |   4 +
 drivers/usb/typec/tipd/core.c                 | 206 +++++++++++++++---
 drivers/usb/typec/tipd/tps6598x.h             |  12 +
 drivers/usb/typec/tipd/trace.h                |  23 ++
 4 files changed, 209 insertions(+), 36 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2021-09-30 10:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-28 15:54 [PATCH v3 0/6] usb: typec: tipd: Add Apple M1 support Sven Peter
2021-09-28 15:54 ` [PATCH v3 1/6] dt-bindings: usb: tps6598x: Add Apple CD321x compatible Sven Peter
2021-09-28 15:54 ` [PATCH v3 2/6] usb: typec: tipd: Split interrupt handler Sven Peter
2021-09-30 10:08   ` Heikki Krogerus
2021-09-28 15:54 ` [PATCH v3 3/6] usb: typec: tipd: Add short-circuit for no irqs Sven Peter
2021-09-28 15:55 ` [PATCH v3 4/6] usb: typec: tipd: Add support for Apple CD321X Sven Peter
2021-09-30 10:09   ` Heikki Krogerus
2021-09-28 15:55 ` [PATCH v3 5/6] usb: typec: tipd: Switch CD321X power state to S0 Sven Peter
2021-09-30 10:10   ` Heikki Krogerus
2021-09-28 15:55 ` [PATCH v3 6/6] usb: typec: tipd: Remove FIXME about testing with I2C_FUNC_I2C Sven Peter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox