From 2af13d3e79b67ca471d3538519db68a0b07d250c Mon Sep 17 00:00:00 2001 From: John Crispin Date: Tue, 2 Dec 2014 15:25:09 +0000 Subject: 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43496 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts | 9 +++++---- target/linux/oxnas/profiles/100-Generic.mk | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'target/linux') 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 e7ee5871c4..9f52f43f80 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 734b12376a..d5ec97d44e 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 -- cgit v1.2.3