mirror of https://github.com/Qortal/Brooklyn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
502 B
24 lines
502 B
* 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>; |
|
};
|
|
|