[OpenWrt-Devel] [OpenWrt-Devel, PATCHv2] Add support for DHT11 driver

Harald Geyer harald at ccbib.org
Wed Oct 29 10:51:43 EDT 2014


Hi,

the below patch was marked as "Accepted" in patchwork more then
three weeks ago.
X-Patchwork-Id: 6352

But it seems in never got committed to trunk. Is there anything
else I need to do?

TIA,
Harald

harald at ccbib.org writes:
> The DHT11 is a temperature and humidity sensor supported by linux
> since 3.14.
> 
> This patch is tested on recent mxs with kernel 3.14.18.
> 
> Signed-off-by: Harald Geyer <harald at ccbib.org>
> 
> ---
> Changes since last version:
>     Add dependency on devicetree
> 
>  package/kernel/linux/modules/other.mk |   20 ++++++++++++++++++++
>  1 files changed, 20 insertions(+), 0 deletions(-)
> 
> diff --git a/package/kernel/linux/modules/other.mk
> b/package/kernel/linux/modules/other.mk
> index d56bb50..38e6628 100644
> --- a/package/kernel/linux/modules/other.mk
> +++ b/package/kernel/linux/modules/other.mk
> @@ -258,6 +258,26 @@ endef
>  
>  $(eval $(call KernelPackage,iio-ad799x))
>  
> +
> +define KernelPackage/iio-dht11
> +  SUBMENU:=$(OTHER_MENU)
> +  DEPENDS:=kmod-iio-core @GPIO_SUPPORT @USES_DEVICETREE
> +  TITLE:=DHT11 (and compatible) humidity and temperature sensors
> +  KCONFIG:= \
> +	CONFIG_DHT11
> +  FILES:=$(LINUX_DIR)/drivers/iio/humidity/dht11.ko
> +  AUTOLOAD:=$(call AutoLoad,56,dht11)
> +endef
> +
> +define KernelPackage/iio-dht11/description
> + support for DHT11 and DHT22 digitial humidity and temperature sensors
> + attached at GPIO lines. You will need a custom device tree file to
> + specify the GPIO line to use.
> +endef
> +
> +$(eval $(call KernelPackage,iio-dht11))
> +
> +
>  define KernelPackage/lp
>    SUBMENU:=$(OTHER_MENU)
>    TITLE:=Parallel port and line printer support
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list