mirror of
https://github.com/Evolution-X-Devices/kernel_xiaomi_sm8450-devicetrees
synced 2026-02-01 08:51:30 +00:00
Add devicetree bindings snapshot to the devicetree project.
This snapshot is taken as of the
'commit 5fba1b18cfc72e264e5f3ce49020ed322aa6ac9f ("Merge 5.6-rc3
into android-mainline")' of the kernel project.
Change-Id: Ia087ab2b7d4a2616ea446a69683a8b5b821d0448
25 lines
502 B
Plaintext
25 lines
502 B
Plaintext
* PWM beeper device tree bindings
|
|
|
|
Registers a PWM device as beeper.
|
|
|
|
Required properties:
|
|
- compatible: should be "pwm-beeper"
|
|
- pwms: phandle to the physical PWM device
|
|
|
|
Optional properties:
|
|
- amp-supply: phandle to a regulator that acts as an amplifier for the beeper
|
|
- beeper-hz: bell frequency in Hz
|
|
|
|
Example:
|
|
|
|
beeper_amp: amplifier {
|
|
compatible = "fixed-regulator";
|
|
gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
beeper {
|
|
compatible = "pwm-beeper";
|
|
pwms = <&pwm0>;
|
|
amp-supply = <&beeper_amp>;
|
|
};
|