ODROID-M2: Add DHT-11, 1-Wire overlays.

- add DHT-11 and 1-wire

Signed-off-by: YoungSoo Shin <bob.shin@hardkernel.com>
Change-Id: I06887161b9d8b8fca18873c6af4978efda442610
This commit is contained in:
2024-07-23 12:43:36 +09:00
committed by xiane
parent 26c8312ac6
commit ae2bb46de6
3 changed files with 40 additions and 0 deletions

View File

@@ -2,11 +2,13 @@
dtbo-y += \
can0.dtbo \
dht11.dtbo \
display_vu8s.dtbo \
gpio_shortcut.dtbo \
i2c0.dtbo \
i2c1.dtbo \
i2c2.dtbo \
onewire.dtbo \
pwm15.dtbo \
pwm3.dtbo \
pwm7.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 = <&gpio4 RK_PB3 GPIO_ACTIVE_HIGH>;
status = "okay";
};
};
};
};

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__ {
onewire {
compatible = "w1-gpio";
gpios = <&gpio4 RK_PB3 GPIO_ACTIVE_HIGH>;
status = "okay";
};
};
};
};