linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/7] Add Apple Mac System Management Controller GPIOs
@ 2022-09-06 13:18 Russell King (Oracle)
  2022-09-06 13:19 ` [PATCH 1/7] dt-bindings: mfd: add binding for Apple Mac System Management Controller Russell King (Oracle)
                   ` (8 more replies)
  0 siblings, 9 replies; 26+ messages in thread
From: Russell King (Oracle) @ 2022-09-06 13:18 UTC (permalink / raw)
  To: Arnd Bergmann, Lee Jones, Linus Walleij
  Cc: Alyssa Rosenzweig, asahi, Bartosz Golaszewski, devicetree,
	Hector Martin, Jonathan Corbet, Krzysztof Kozlowski,
	linux-arm-kernel, linux-doc, linux-gpio, Petr Mladek,
	Rasmus Villemoes, Rob Herring, Sergey Senozhatsky,
	Steven Rostedt, Sven Peter

Hi,

[Andy dropped from the Cc lists; he's taking a break.]

This series adds support for the Apple Mac GPIO driver. These GPIOs
are hadled via the System Management Controller.

The first two patches add the DT binding documentation for the new
drivers. No changes from the first posting (I think there's still
some discussion going on about how best to handle these.)

Patch 3 adds apple_rtkit_poll() and has had no changes since v1.

Patch 4 is new, extending the existing FourCC format code to be able
to print other endian FourCC codes.

Patch 5 adds the SMC core and rtkit driver. Changes in v2 include
properly limiting the data size (since it is limited to the width of
the size fields in the mailbox messages, not the shmem size) and also
to properly cleanup after failure to send the initialisation message.

Patch 6 adds the SMC GPIO support. Changes in v2 include some of the
issues Andy pointed out,

Patch 7 is new, adding the SMC nodes to the dtsi.

Patches taken from the Asahi project.

 Documentation/core-api/printk-formats.rst          |  32 ++
 .../devicetree/bindings/gpio/gpio-macsmc.yaml      |  28 ++
 .../devicetree/bindings/mfd/apple,smc.yaml         |  65 +++
 arch/arm64/boot/dts/apple/t8103.dtsi               |  26 ++
 drivers/gpio/Kconfig                               |  11 +
 drivers/gpio/Makefile                              |   1 +
 drivers/gpio/gpio-macsmc.c                         | 242 +++++++++++
 drivers/platform/Kconfig                           |   2 +
 drivers/platform/Makefile                          |   1 +
 drivers/platform/apple/Kconfig                     |  49 +++
 drivers/platform/apple/Makefile                    |  11 +
 drivers/platform/apple/smc.h                       |  28 ++
 drivers/platform/apple/smc_core.c                  | 249 +++++++++++
 drivers/platform/apple/smc_rtkit.c                 | 453 +++++++++++++++++++++
 drivers/soc/apple/rtkit.c                          |   6 +
 include/linux/mfd/macsmc.h                         |  86 ++++
 include/linux/soc/apple/rtkit.h                    |  12 +
 lib/vsprintf.c                                     |  35 +-
 18 files changed, 1331 insertions(+), 6 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/gpio/gpio-macsmc.yaml
 create mode 100644 Documentation/devicetree/bindings/mfd/apple,smc.yaml
 create mode 100644 drivers/gpio/gpio-macsmc.c
 create mode 100644 drivers/platform/apple/Kconfig
 create mode 100644 drivers/platform/apple/Makefile
 create mode 100644 drivers/platform/apple/smc.h
 create mode 100644 drivers/platform/apple/smc_core.c
 create mode 100644 drivers/platform/apple/smc_rtkit.c
 create mode 100644 include/linux/mfd/macsmc.h

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!

_______________________________________________
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] 26+ messages in thread

end of thread, other threads:[~2022-10-24  4:55 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-06 13:18 [PATCH v2 0/7] Add Apple Mac System Management Controller GPIOs Russell King (Oracle)
2022-09-06 13:19 ` [PATCH 1/7] dt-bindings: mfd: add binding for Apple Mac System Management Controller Russell King (Oracle)
2022-09-06 14:04   ` Mark Kettenis
2022-09-07 15:41   ` Rob Herring
2022-09-06 13:19 ` [PATCH 2/7] dt-bindings: gpio: add binding for the GPIO block for Apple Mac SMC Russell King (Oracle)
2022-09-06 14:05   ` Mark Kettenis
2022-09-07 15:38   ` Rob Herring
2022-09-08 12:17   ` Krzysztof Kozlowski
2022-09-08 14:25     ` Russell King (Oracle)
2022-09-06 13:19 ` [PATCH 3/7] soc: apple: rtkit: Add apple_rtkit_poll Russell King
2022-09-06 13:19 ` [PATCH 4/7] lib/vsprintf: Add support for generic FOURCCs by extending %p4cc Russell King
2022-09-06 22:11   ` Rasmus Villemoes
2022-10-19 10:00   ` Petr Mladek
2022-10-19 11:20     ` Andy Shevchenko
2022-10-19 11:48     ` Russell King (Oracle)
2022-10-24  4:53       ` Hector Martin
2022-09-06 13:19 ` [PATCH 5/7] platform/apple: Add new Apple Mac SMC driver Russell King
2022-09-06 13:39   ` Sven Peter
2022-09-06 13:19 ` [PATCH 6/7] gpio: Add new gpio-macsmc driver for Apple Macs Russell King
2022-09-06 13:40   ` Sven Peter
2022-09-06 13:20 ` [PATCH 7/7] arm64: dts: apple: Add SMC node to t8103/t6001 devicetrees Russell King
2022-09-06 13:42   ` Sven Peter
2022-09-08 16:46     ` Russell King (Oracle)
2022-09-08  8:03   ` Janne Grunau
2022-09-06 13:38 ` [PATCH v2 0/7] Add Apple Mac System Management Controller GPIOs Linus Walleij
2022-09-07 10:02 ` Bartosz Golaszewski

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).