mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
ODROID-M2: dtb/dtbo: 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:
@@ -2,9 +2,11 @@
|
||||
|
||||
dtbo-y += \
|
||||
can0.dtbo \
|
||||
dht11.dtbo \
|
||||
display_vu8s.dtbo \
|
||||
i2c0.dtbo \
|
||||
i2c1.dtbo \
|
||||
onewire.dtbo \
|
||||
pwm15.dtbo \
|
||||
pwm3.dtbo \
|
||||
pwm7.dtbo \
|
||||
|
||||
19
arch/arm64/boot/dts/rockchip/overlays/odroidm2/dht11.dts
Normal file
19
arch/arm64/boot/dts/rockchip/overlays/odroidm2/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 = <&gpio4 RK_PB3 GPIO_ACTIVE_HIGH>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
19
arch/arm64/boot/dts/rockchip/overlays/odroidm2/onewire.dts
Normal file
19
arch/arm64/boot/dts/rockchip/overlays/odroidm2/onewire.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__ {
|
||||
onewire {
|
||||
compatible = "w1-gpio";
|
||||
gpios = <&gpio4 RK_PB3 GPIO_ACTIVE_HIGH>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user