Author: blogic
Date: 2014-12-02 16:25:09 +0100 (Tue, 02 Dec 2014)
New Revision: 43496

Modified:
   trunk/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts
   trunk/target/linux/oxnas/profiles/100-Generic.mk
Log:
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 <[email protected]>

Modified: trunk/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts
===================================================================
--- trunk/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts     
2014-12-02 15:25:03 UTC (rev 43495)
+++ trunk/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts     
2014-12-02 15:25:09 UTC (rev 43496)
@@ -123,12 +123,13 @@
                        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 {
                compatible = "gpio-fan";
                gpios = <&GPIOA 2 1>;

Modified: trunk/target/linux/oxnas/profiles/100-Generic.mk
===================================================================
--- trunk/target/linux/oxnas/profiles/100-Generic.mk    2014-12-02 15:25:03 UTC 
(rev 43495)
+++ trunk/target/linux/oxnas/profiles/100-Generic.mk    2014-12-02 15:25:09 UTC 
(rev 43496)
@@ -40,7 +40,7 @@
 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
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to