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
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.
12 See: https://github.com/raspberrypi/firmware/issues/1381
14 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
16 arch/arm/boot/dts/overlays/i2c-gpio-overlay.dts | 2 ++
17 1 file changed, 2 insertions(+)
19 --- a/arch/arm/boot/dts/overlays/i2c-gpio-overlay.dts
20 +++ b/arch/arm/boot/dts/overlays/i2c-gpio-overlay.dts
24 i2c-gpio,delay-us = <2>; /* ~100 kHz */
25 + i2c-gpio,sda-open-drain;
26 + i2c-gpio,scl-open-drain;