ramips: use gpio-export for Mikrotik RouterBOARD 750Gr3 beeper

This beeper hardware requires a PWM driver for frequency selection.
Since the GPIO driver does not provide that, revert the beeper
support to a simple gpio-export.

This effectively reverts the corresponding changes from
6ba58b7b02 ("ramips: cleanup the RB750Gr3 support")

Signed-off-by: John Thomson <git@johnthomson.fastmail.com.au>
[commit title/message facelift]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
John Thomson 2020-08-10 19:40:55 +10:00 committed by Adrian Schmutzler
parent 87e92d50e5
commit 2d9db93397
2 changed files with 8 additions and 6 deletions

View File

@ -52,15 +52,17 @@
};
};
beeper {
compatible = "gpio-beeper";
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
};
gpio_export {
compatible = "gpio-export";
#size-cells = <0>;
buzzer {
/* Beeper requires PWM for frequency selection */
gpio-export,name = "buzzer";
gpio-export,output = <0>;
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
};
usb_power {
gpio-export,name = "usb_power";
gpio-export,output = <1>;

View File

@ -703,7 +703,7 @@ endef
define Device/mikrotik_routerboard-750gr3
$(Device/MikroTik)
DEVICE_MODEL := RouterBOARD 750Gr3
DEVICE_PACKAGES += kmod-gpio-beeper -wpad-basic
DEVICE_PACKAGES += -wpad-basic
SUPPORTED_DEVICES += mikrotik,rb750gr3
endef
TARGET_DEVICES += mikrotik_routerboard-750gr3