ODROID-M1: dtb/dtbo: Add dht11 humidity sensor

Signed-off-by: Steve Jeong <how2soft@gmail.com>
Change-Id: I570a019b2b9ac714932f53825b419e37eb364280
This commit is contained in:
steve.jeong
2022-06-13 11:42:20 +09:00
committed by codewalkerster
parent e5a608e087
commit 5521165114
2 changed files with 20 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
# Overlays for the Odroid platform
dtbo-$(CONFIG_ARCH_ROCKCHIP_ODROIDM1) += \
dht11.dtbo \
i2c0.dtbo \
i2c1.dtbo \
onewire.dtbo \

View 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";
};
};
};
};