mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
ODROID-M1: dtb/dtbo: Add dht11 humidity sensor
Signed-off-by: Steve Jeong <how2soft@gmail.com> Change-Id: I570a019b2b9ac714932f53825b419e37eb364280
This commit is contained in:
committed by
codewalkerster
parent
e5a608e087
commit
5521165114
@@ -1,6 +1,7 @@
|
||||
# Overlays for the Odroid platform
|
||||
|
||||
dtbo-$(CONFIG_ARCH_ROCKCHIP_ODROIDM1) += \
|
||||
dht11.dtbo \
|
||||
i2c0.dtbo \
|
||||
i2c1.dtbo \
|
||||
onewire.dtbo \
|
||||
|
||||
19
arch/arm64/boot/dts/rockchip/overlays/odroidm1/dht11.dts
Normal file
19
arch/arm64/boot/dts/rockchip/overlays/odroidm1/dht11.dts
Normal file
@@ -0,0 +1,19 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/pinctrl/rockchip.h>
|
||||
|
||||
/ {
|
||||
fragment@0 {
|
||||
target-path = "/";
|
||||
|
||||
__overlay__ {
|
||||
humidity_sensor {
|
||||
compatible = "dht11";
|
||||
gpios = <&gpio3 RK_PB2 GPIO_ACTIVE_HIGH>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user