Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) * PWM beeper device tree bindings
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) Registers a PWM device as beeper.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) - compatible: should be "pwm-beeper"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) - pwms: phandle to the physical PWM device
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) Optional properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) - amp-supply: phandle to a regulator that acts as an amplifier for the beeper
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) - beeper-hz:  bell frequency in Hz
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) Example:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) beeper_amp: amplifier {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	compatible = "fixed-regulator";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 	gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) beeper {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 	compatible = "pwm-beeper";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 	pwms = <&pwm0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 	amp-supply = <&beeper_amp>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) };