diff mbox series

[OpenWrt-Devel] bcm63xx: pinctrl: fix BCM6348 group0

Message ID 3691817.DDnkgvyxxj@tool
State Not Applicable, archived
Headers show
Series [OpenWrt-Devel] bcm63xx: pinctrl: fix BCM6348 group0 | expand

Commit Message

Daniel González Cabanelas May 18, 2020, 10:09 a.m. UTC
The pinctrl group0 owns pins never used (at least in Openwrt) for any
pinmux.

Based on the info from the wiki for the BCM6348 Soc, this group only uses
the pin 32 needed for MII MDC:
https://openwrt.org/docs/techref/hardware/soc/soc.broadcom.bcm63xx/pinmux

Pins 33, 34, 35 and 36 are usually taken for GPIO buttons use. This is
causing an error which leads to non working buttons:
[    4.735928] gpio-keys-polled keys: unable to claim gpio 479, err=-22
[    4.742642] gpio-keys-polled: probe of keys failed with error -22

Fix it by deleting unneded pins in this group

Signed-off-by: Daniel González Cabanelas <dgcbueu@gmail.com>
---
 .../134-pinctrl-add-a-pincontrol-driver-for-BCM6348.patch       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/target/linux/bcm63xx/patches-5.4/134-pinctrl-add-a-pincontrol-driver-for-BCM6348.patch b/target/linux/bcm63xx/patches-5.4/134-pinctrl-add-a-pincontrol-driver-for-BCM6348.patch
index b48723c1b3..b52fb5800f 100644
--- a/target/linux/bcm63xx/patches-5.4/134-pinctrl-add-a-pincontrol-driver-for-BCM6348.patch
+++ b/target/linux/bcm63xx/patches-5.4/134-pinctrl-add-a-pincontrol-driver-for-BCM6348.patch
@@ -159,7 +159,7 @@  Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
 +};
 +
 +static unsigned group0_pins[] = {
-+	32, 33, 34, 35, 36,
++	32,
 +};
 +
 +static unsigned group1_pins[] = {