Commit fcc5c84f authored by Mathias Kresin's avatar Mathias Kresin Committed by Kleber Sacilotto de Souza

MIPS: ralink: Fix mt7620 nd_sd pinmux

BugLink: https://bugs.launchpad.net/bugs/1811077

commit 7d35baa4 upstream.

In case the nd_sd group is set to the sd-card function, Pins 45 + 46 are
configured as GPIOs. If they are blocked by the sd function, they can't
be used as GPIOs.
Reported-by: default avatarKristian Evensen <kristian.evensen@gmail.com>
Signed-off-by: default avatarMathias Kresin <dev@kresin.me>
Signed-off-by: default avatarPaul Burton <paul.burton@mips.com>
Fixes: f576fb6a ("MIPS: ralink: cleanup the soc specific pinmux data")
Patchwork: https://patchwork.linux-mips.org/patch/21220/
Cc: John Crispin <john@phrozen.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: stable@vger.kernel.org # v3.18+
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarJuerg Haefliger <juergh@canonical.com>
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
parent 88942355
...@@ -81,7 +81,7 @@ static struct rt2880_pmx_func pcie_rst_grp[] = { ...@@ -81,7 +81,7 @@ static struct rt2880_pmx_func pcie_rst_grp[] = {
}; };
static struct rt2880_pmx_func nd_sd_grp[] = { static struct rt2880_pmx_func nd_sd_grp[] = {
FUNC("nand", MT7620_GPIO_MODE_NAND, 45, 15), FUNC("nand", MT7620_GPIO_MODE_NAND, 45, 15),
FUNC("sd", MT7620_GPIO_MODE_SD, 45, 15) FUNC("sd", MT7620_GPIO_MODE_SD, 47, 13)
}; };
static struct rt2880_pmx_group mt7620a_pinmux_data[] = { static struct rt2880_pmx_group mt7620a_pinmux_data[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment