bcm27xx-gpu-fw: update to latest version
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.4 / 950-0368-overlays-dht11-Allow-multiple-instantiation.patch
1 From 5c1a2df946720816c155ff38b01bcd49a0f44f78 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Wed, 18 Dec 2019 10:41:33 +0000
4 Subject: [PATCH] overlays: dht11: Allow multiple instantiation
5
6 Add addresses to the dht11 and dht11_pins nodes to allow unique names
7 to be generated by assigning to the "reg" property.
8
9 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
10 ---
11 arch/arm/boot/dts/overlays/dht11-overlay.dts | 6 ++++--
12 1 file changed, 4 insertions(+), 2 deletions(-)
13
14 --- a/arch/arm/boot/dts/overlays/dht11-overlay.dts
15 +++ b/arch/arm/boot/dts/overlays/dht11-overlay.dts
16 @@ -24,7 +24,7 @@
17 fragment@1 {
18 target = <&gpio>;
19 __overlay__ {
20 - dht11_pins: dht11_pins {
21 + dht11_pins: dht11_pins@0 {
22 brcm,pins = <4>;
23 brcm,function = <0>; // in
24 brcm,pull = <0>; // off
25 @@ -34,6 +34,8 @@
26
27 __overrides__ {
28 gpiopin = <&dht11_pins>,"brcm,pins:0",
29 - <&dht11>,"gpios:4";
30 + <&dht11_pins>, "reg:0",
31 + <&dht11>,"gpios:4",
32 + <&dht11>,"reg:0";
33 };
34 };