Skip to content

Commit 53c77f0

Browse files
Phil Elwellpopcornmix
Phil Elwell
authored andcommitted
overlays: dht11: Allow multiple instantiation
Add addresses to the dht11 and dht11_pins nodes to allow unique names to be generated by assigning to the "reg" property. Signed-off-by: Phil Elwell <[email protected]>
1 parent d3547c6 commit 53c77f0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

arch/arm/boot/dts/overlays/dht11-overlay.dts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
fragment@1 {
2525
target = <&gpio>;
2626
__overlay__ {
27-
dht11_pins: dht11_pins {
27+
dht11_pins: dht11_pins@0 {
2828
brcm,pins = <4>;
2929
brcm,function = <0>; // in
3030
brcm,pull = <0>; // off
@@ -34,6 +34,8 @@
3434

3535
__overrides__ {
3636
gpiopin = <&dht11_pins>,"brcm,pins:0",
37-
<&dht11>,"gpios:4";
37+
<&dht11_pins>, "reg:0",
38+
<&dht11>,"gpios:4",
39+
<&dht11>,"reg:0";
3840
};
3941
};

0 commit comments

Comments
 (0)