summaryrefslogtreecommitdiff
path: root/target/linux/oxnas
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-12-02 15:25:09 +0000
committerJohn Crispin <john@openwrt.org>2014-12-02 15:25:09 +0000
commit46814be2a8800738cbd7b90d8b0fb538d0e862d1 (patch)
treee8d4cd4192005d2554114581e59641aad0cea208 /target/linux/oxnas
parentc2e57fcb2fa7c552765bafedf11c53c1b1b8f103 (diff)
downloadmtk-20170518-46814be2a8800738cbd7b90d8b0fb538d0e862d1.zip
mtk-20170518-46814be2a8800738cbd7b90d8b0fb538d0e862d1.tar.gz
mtk-20170518-46814be2a8800738cbd7b90d8b0fb538d0e862d1.tar.bz2
oxnas/kd20: use gpio-beeper
gpio-beeper module was added to the kernel recently. Make use of it to drive the piezoelectric buzzer of the kd20. Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 43496
Diffstat (limited to 'target/linux/oxnas')
-rw-r--r--target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts9
-rw-r--r--target/linux/oxnas/profiles/100-Generic.mk2
2 files changed, 6 insertions, 5 deletions
diff --git a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts
index e7ee587..9f52f43 100644
--- a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts
+++ b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts
@@ -123,10 +123,11 @@
label = "kd20:blue:usb";
gpios = <&GPIOB 8 0>;
};
- buzzer {
- label = "kd20:buzzer";
- gpios = <&GPIOB 11 0>;
- };
+ };
+
+ beeper: beeper {
+ compatible = "gpio-beeper";
+ gpios = <&GPIOB 11 0>;
};
gpio-fan {
diff --git a/target/linux/oxnas/profiles/100-Generic.mk b/target/linux/oxnas/profiles/100-Generic.mk
index 734b123..d5ec97d 100644
--- a/target/linux/oxnas/profiles/100-Generic.mk
+++ b/target/linux/oxnas/profiles/100-Generic.mk
@@ -40,7 +40,7 @@ endef
define Profile/KD20
NAME:=Shuttle KD20
PACKAGES:= \
- uboot-envtools kmod-usb2-oxnas kmod-usb3 kmod-rtc-pcf8563
+ uboot-envtools kmod-usb2-oxnas kmod-usb3 kmod-rtc-pcf8563 kmod-gpio-beeper
endef
define Profile/KD20/Description