Hi,
I found an old patchset on the ML that enables setting the volume of a
pwm-beeper via sysfs here [0].
This is an updated version of the patches that they apply to the current
version of the driver.
[0] https://lore.kernel.org/all/cover.1487323753.git.frieder.schrempf@exceet.de/