mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 21:07:02 +09:00
ODROID-N2/C4: dtb/dtbo: Add dht11 overlay.
Signed-off-by: Steve Jeong <steve@how2flow.net> Change-Id: I545b89d9e744b7fa5ebd63b631164651ebcb29ea
This commit is contained in:
@@ -29,7 +29,8 @@ dtbo-$(CONFIG_ARCH_MESON64_ODROIDC4) += spi0.dtbo \
|
||||
pwm_b-backlight.dtbo \
|
||||
gpio-joystick0.dtbo \
|
||||
gpio-joystick1.dtbo \
|
||||
display_vu7c.dtbo
|
||||
display_vu7c.dtbo \
|
||||
dht11.dtbo
|
||||
|
||||
targets += $(dtbo-y)
|
||||
always := $(dtbo-y)
|
||||
|
||||
19
arch/arm64/boot/dts/amlogic/overlays/odroidc4/dht11.dts
Normal file
19
arch/arm64/boot/dts/amlogic/overlays/odroidc4/dht11.dts
Normal file
@@ -0,0 +1,19 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include <dt-bindings/gpio/meson-g12a-gpio.h>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
|
||||
/ {
|
||||
fragment@0 {
|
||||
target-path = "/";
|
||||
|
||||
__overlay__ {
|
||||
humidity_sensor {
|
||||
compatible = "dht11";
|
||||
gpios = <&gpio GPIOX_7 GPIO_ACTIVE_HIGH>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -26,7 +26,8 @@ dtbo-$(CONFIG_ARCH_MESON64_ODROIDN2) += spi0.dtbo \
|
||||
pwm_d-backlight.dtbo \
|
||||
gpio-joystick0.dtbo \
|
||||
gpio-joystick1.dtbo \
|
||||
display_vu7c.dtbo
|
||||
display_vu7c.dtbo \
|
||||
dht11.dtbo
|
||||
|
||||
targets += $(dtbo-y)
|
||||
always := $(dtbo-y)
|
||||
|
||||
19
arch/arm64/boot/dts/amlogic/overlays/odroidn2/dht11.dts
Normal file
19
arch/arm64/boot/dts/amlogic/overlays/odroidn2/dht11.dts
Normal file
@@ -0,0 +1,19 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include <dt-bindings/gpio/meson-g12a-gpio.h>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
|
||||
/ {
|
||||
fragment@0 {
|
||||
target-path = "/";
|
||||
|
||||
__overlay__ {
|
||||
humidity_sensor {
|
||||
compatible = "dht11";
|
||||
gpios = <&gpio GPIOX_7 GPIO_ACTIVE_HIGH>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user