Skip to content

Commit fdb8938

Browse files
pelwellpopcornmix
authored andcommitted
overlays: gpio-keys: Avoid open-drain warnings
The i2c-gpio driver expects to use a GPIO in open-drain mode. Failure to configure it in that way causes alarming warnings in the kernel log. The BCM283x and BCM2711 GPIO blocks don't support open-drain mode, but i2c-gpio works anyway. Silence the warning by declaring that open-drain mode has been enabled by other means. See: raspberrypi/firmware#1381 Signed-off-by: Phil Elwell <[email protected]>
1 parent 6a138ef commit fdb8938

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/arm/boot/dts/overlays/i2c-gpio-overlay.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
&gpio 24 0 /* scl */
1717
>;
1818
i2c-gpio,delay-us = <2>; /* ~100 kHz */
19+
i2c-gpio,sda-open-drain;
20+
i2c-gpio,scl-open-drain;
1921
#address-cells = <1>;
2022
#size-cells = <0>;
2123
};

0 commit comments

Comments
 (0)