mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-01 07:42:18 +00:00
42 lines
665 B
Plaintext
42 lines
665 B
Plaintext
/*
|
|
* Overlay for the DHT11/21/22 humidity/temperature sensor modules.
|
|
*/
|
|
/dts-v1/;
|
|
/plugin/;
|
|
|
|
/ {
|
|
compatible = "brcm,bcm2835";
|
|
|
|
fragment@0 {
|
|
target-path = "/";
|
|
__overlay__ {
|
|
|
|
dht11: dht11@0 {
|
|
compatible = "dht11";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&dht11_pins>;
|
|
gpios = <&gpio 4 0>;
|
|
status = "okay";
|
|
};
|
|
};
|
|
};
|
|
|
|
fragment@1 {
|
|
target = <&gpio>;
|
|
__overlay__ {
|
|
dht11_pins: dht11_pins@0 {
|
|
brcm,pins = <4>;
|
|
brcm,function = <0>; // in
|
|
brcm,pull = <0>; // off
|
|
};
|
|
};
|
|
};
|
|
|
|
__overrides__ {
|
|
gpiopin = <&dht11_pins>,"brcm,pins:0",
|
|
<&dht11_pins>, "reg:0",
|
|
<&dht11>,"gpios:4",
|
|
<&dht11>,"reg:0";
|
|
};
|
|
};
|