bcm27xx: update to latest patches from RPi foundation
[openwrt/staging/wigyori.git] / target / linux / bcm27xx / patches-5.4 / 950-0703-overlays-gpio-keys-Avoid-open-drain-warnings.patch
1 From ae10c15867d9a5b85eefaf11333bd30473af4b2b Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Sat, 2 May 2020 13:43:06 +0100
4 Subject: [PATCH] overlays: gpio-keys: Avoid open-drain warnings
5
6 The i2c-gpio driver expects to use a GPIO in open-drain mode. Failure
7 to configure it in that way causes alarming warnings in the kernel log.
8 The BCM283x and BCM2711 GPIO blocks don't support open-drain mode,
9 but i2c-gpio works anyway. Silence the warning by declaring that
10 open-drain mode has been enabled by other means.
11
12 See: https://github.com/raspberrypi/firmware/issues/1381
13
14 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
15 ---
16 arch/arm/boot/dts/overlays/i2c-gpio-overlay.dts | 2 ++
17 1 file changed, 2 insertions(+)
18
19 --- a/arch/arm/boot/dts/overlays/i2c-gpio-overlay.dts
20 +++ b/arch/arm/boot/dts/overlays/i2c-gpio-overlay.dts
21 @@ -16,6 +16,8 @@
22 &gpio 24 0 /* scl */
23 >;
24 i2c-gpio,delay-us = <2>; /* ~100 kHz */
25 + i2c-gpio,sda-open-drain;
26 + i2c-gpio,scl-open-drain;
27 #address-cells = <1>;
28 #size-cells = <0>;
29 };