Skip to content

input: pwm-beeper: add feature to set volume level

Manuel Traut linux-devicetree linux-input lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v10 Latest4 patches 1 replyIn review
  2. v94 patches 3 repliesSuperseded
  3. v85 patches 7 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v75 patches5 repliesSuperseded
v63 patches3 repliesSuperseded

Patches in v10 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4dt-bindings: input: pwm-beeper: Convert txt bindings to yamlDocumentation/devicetree/bindings/input/pwm-beeper.txt Documentation/devicetree/bindings/input/pwm-beeper.yaml+39 -240 replies
2/4input: pwm-beeper: add feature to set volume via sysfsDocumentation/ABI/testing/sysfs-devices-pwm-beeper drivers/input/misc/pwm-beeper.c+112 -10 replies
3/4dt-bindings: input: pwm-beeper: add volumeDocumentation/devicetree/bindings/input/pwm-beeper.yaml+17 -03 replies
4/4input: pwm-beeper: set volume levels by devicetreedrivers/input/misc/pwm-beeper.c+55 -180 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchRob HerringManuel Traut
1/4R-b
2/4T-b
3/4
4/4T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v10 thread

Cover letter [PATCH v10 0/4] input: pwm-beeper: add feature to set volume level

This implements volume control for the pwm-beeper via sysfs.

The first patch changes the devicetree documentation from txt to yaml.

The original author of the volume support patches is Frieder Schrempf. I picked them from this [0] LKML thread from 2017. Since it looks like his email address changed in the meantime I changed it in the Author and Signed-off-by, as well as in the copyright statements. I did some minor changes on the patches that they apply and work with the current kernel.

checkpatch still reports warnings regarding the changes:
* from txt to yaml of the devicetree documentation:
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
WARNING: DT binding docs and includes should be a separate patch.
* and the introduction of Documentation/ABI/testing/sysfs-devices-pwm-beeper:
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
I am not sure how to fix these warnings. So any suggestion would be helpful.

Changes since v9 [1]:
* [1/4] dt-bindings: input: pwm-beeper: Convert txt bindings to yaml
* added Reviewed-by tag from Rob Herring
* [3/4] dt-bindings: input: pwm-beeper: add volume
* Added missing unit specifier in examples

Changes since v8 [2]:
* yaml devicetree doc:
* reordered patches to introduce dt-bindings before usage
* drop quotes from $id and $schema references
* amp-supply: simplify description
* examples: remove unneeded amp device node
* use -bp suffix for volume-levels and default-volume
* specify default-volume as value instead of pointer into volume-array

* fixup to work with new dt-binding specification
* squash patches as suggested by Frieder

Changes since v7 [3]:
* yaml devicetree doc:
* Use shorter subject
* Fix indent
* Use units
* 'make dt_binding_check' succeeds
* 'make dtbs_check' does not report new errors

* Reworded commit messages avoiding 'this patch' phrase
* Fix wrong indent in [PATCH 5/5 v7] input: pwm-beeper: handle module unloading properly
* Use current date in Documentation/ABI/testing/sysfs-devices-pwm-beeper

* Hopefully fixed my setup that
* mails are CC'ed correctly
* patches are sent as replies to the cover letter

Changes since v6 [4]:
* Convert devicetree binding documentation from txt to yaml
* Use DEVICE_ATTR_[RO|RW] properly
* Change Frieders Mail address
* Added Signed-off and Tested-by statements
* Fix module unloading

Frieder Schrempf (2):
input: pwm-beeper: add feature to set volume via sysfs
input: pwm-beeper: set volume levels by devicetree

Manuel Traut (2):
dt-bindings: input: pwm-beeper: Convert txt bindings to yaml
dt-bindings: input: pwm-beeper: add volume

 .../ABI/testing/sysfs-devices-pwm-beeper      |  17 +++
 .../devicetree/bindings/input/pwm-beeper.txt  |  24 ----
 .../devicetree/bindings/input/pwm-beeper.yaml |  56 ++++++++
 drivers/input/misc/pwm-beeper.c               | 135 +++++++++++++++++-
 4 files changed, 206 insertions(+), 26 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-devices-pwm-beeper
 delete mode 100644 Documentation/devicetree/bindings/input/pwm-beeper.txt
 create mode 100644 Documentation/devicetree/bindings/input/pwm-beeper.yaml

[0] https://lore.kernel.org/all/[email protected]/
[1] https://lore.kernel.org/lkml/[email protected]/
[2] https://lore.kernel.org/lkml/[email protected]/
[3] https://lore.kernel.org/all/Y9AIq3cSNzI9T%[email protected]/
[4] https://lkml.org/lkml/2023/1/24/379

Signature · 1 line
2.39.1