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

Daniel González Cabanelas dgcbueu at gmail.com
Mon May 18 06:09:11 EDT 2020


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 at gmail.com>
---
 .../134-pinctrl-add-a-pincontrol-driver-for-BCM6348.patch       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 at gmail.com>
 +};
 +
 +static unsigned group0_pins[] = {
-+	32, 33, 34, 35, 36,
++	32,
 +};
 +
 +static unsigned group1_pins[] = {
-- 
2.26.2





_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list