All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Add vibration motor support to U-Boot
@ 2021-12-22 22:36 Samuel Dionne-Riel
  2021-12-22 22:36 ` [PATCH 1/4] drivers: Introduce vibrator uclass Samuel Dionne-Riel
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Samuel Dionne-Riel @ 2021-12-22 22:36 UTC (permalink / raw)
  To: u-boot; +Cc: Samuel Dionne-Riel

This series of patch adds support for vibration motors (often called
vibrators) to U-Boot.

The support adds the necessary plumbing to support SPL usage of
vibration motors. This can be used to vibrate the device, like a phone,
as early as possible during the boot process.

A `vibrator` command allows scripts, or customised boot commands, to
vibrate the device. This can be used to provide feedback to the end-user
about failure state, or boot stage.

An example use case of the command is, in a customized boot command, to
signify that an error happend, by synchronizing red LED flashes with a
few short vibrations.

Samuel Dionne-Riel (4):
  drivers: Introduce vibrator uclass
  vibrator: Add vibrator_gpio driver
  cmd: Add vibrator command
  pinephone_defconfig: Add gpio vibrator support

 arch/sandbox/dts/test.dts          |  10 ++
 cmd/Kconfig                        |  10 ++
 cmd/Makefile                       |   1 +
 cmd/vibrator.c                     | 148 +++++++++++++++++++++++++++++
 configs/pinephone_defconfig        |   2 +
 configs/sandbox_defconfig          |   2 +
 drivers/Kconfig                    |   2 +
 drivers/Makefile                   |   1 +
 drivers/vibrator/Kconfig           |  37 ++++++++
 drivers/vibrator/Makefile          |   6 ++
 drivers/vibrator/vibrator-uclass.c |  62 ++++++++++++
 drivers/vibrator/vibrator_gpio.c   | 122 ++++++++++++++++++++++++
 include/dm/uclass-id.h             |   1 +
 include/vibrator.h                 |  87 +++++++++++++++++
 test/dm/Makefile                   |   1 +
 test/dm/vibrator.c                 |  97 +++++++++++++++++++
 16 files changed, 589 insertions(+)
 create mode 100644 cmd/vibrator.c
 create mode 100644 drivers/vibrator/Kconfig
 create mode 100644 drivers/vibrator/Makefile
 create mode 100644 drivers/vibrator/vibrator-uclass.c
 create mode 100644 drivers/vibrator/vibrator_gpio.c
 create mode 100644 include/vibrator.h
 create mode 100644 test/dm/vibrator.c

-- 
2.34.0


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

end of thread, other threads:[~2022-01-28 22:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-22 22:36 [PATCH 0/4] Add vibration motor support to U-Boot Samuel Dionne-Riel
2021-12-22 22:36 ` [PATCH 1/4] drivers: Introduce vibrator uclass Samuel Dionne-Riel
2021-12-28  8:34   ` Simon Glass
2022-01-28 22:39   ` Tom Rini
2021-12-22 22:36 ` [PATCH 2/4] vibrator: Add vibrator_gpio driver Samuel Dionne-Riel
2021-12-28  8:34   ` Simon Glass
2021-12-22 22:36 ` [PATCH 3/4] cmd: Add vibrator command Samuel Dionne-Riel
2021-12-28  8:34   ` Simon Glass
2021-12-22 22:36 ` [PATCH 4/4] pinephone_defconfig: Add gpio vibrator support Samuel Dionne-Riel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.