summaryrefslogtreecommitdiff
path: root/target/linux/ramips/patches-4.4/0101-MIPS-ralink-Fix-MT7628-pinmux.patch
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2017-11-18 21:07:45 +0100
committerMathias Kresin <dev@kresin.me>2017-11-27 21:28:34 +0100
commitd77fe9219af17dce2d00147d904267d4489ae841 (patch)
tree320173815561c85bcf5022ea66685d2d2b136414 /target/linux/ramips/patches-4.4/0101-MIPS-ralink-Fix-MT7628-pinmux.patch
parent9601e6a0e2d0dd1b08ffc7d0ea4ef135dee1e0cf (diff)
downloadmtk-20170518-d77fe9219af17dce2d00147d904267d4489ae841.zip
mtk-20170518-d77fe9219af17dce2d00147d904267d4489ae841.tar.gz
mtk-20170518-d77fe9219af17dce2d00147d904267d4489ae841.tar.bz2
ramips: backport MT7628 pinmux fixes
According to the datasheet the REFCLK pin is shared with GPIO#37 and the PERST pin is shared with GPIO#36. While at it fix a typo inside the pinmux setup code. The function is called refclk and not reclk. Update device tree source files accordingly. Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ramips/patches-4.4/0101-MIPS-ralink-Fix-MT7628-pinmux.patch')
-rw-r--r--target/linux/ramips/patches-4.4/0101-MIPS-ralink-Fix-MT7628-pinmux.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/target/linux/ramips/patches-4.4/0101-MIPS-ralink-Fix-MT7628-pinmux.patch b/target/linux/ramips/patches-4.4/0101-MIPS-ralink-Fix-MT7628-pinmux.patch
new file mode 100644
index 0000000..f2d1ab1
--- /dev/null
+++ b/target/linux/ramips/patches-4.4/0101-MIPS-ralink-Fix-MT7628-pinmux.patch
@@ -0,0 +1,33 @@
+From 8ef4b43cd3794d63052d85898e42424fd3b14d24 Mon Sep 17 00:00:00 2001
+From: Mathias Kresin <dev@kresin.me>
+Date: Thu, 11 May 2017 08:11:14 +0200
+Subject: [PATCH 1/2] MIPS: ralink: Fix MT7628 pinmux
+
+According to the datasheet the REFCLK pin is shared with GPIO#37 and
+the PERST pin is shared with GPIO#36.
+
+Fixes: 53263a1c6852 ("MIPS: ralink: add mt7628an support")
+Signed-off-by: Mathias Kresin <dev@kresin.me>
+Acked-by: John Crispin <john@phrozen.org>
+Cc: Ralf Baechle <ralf@linux-mips.org>
+Cc: linux-mips@linux-mips.org
+Cc: <stable@vger.kernel.org> # 3.19+
+Patchwork: https://patchwork.linux-mips.org/patch/16046/
+Signed-off-by: James Hogan <jhogan@kernel.org>
+---
+ arch/mips/ralink/mt7620.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- a/arch/mips/ralink/mt7620.c
++++ b/arch/mips/ralink/mt7620.c
+@@ -141,8 +141,8 @@ static struct rt2880_pmx_func i2c_grp_mt
+ FUNC("i2c", 0, 4, 2),
+ };
+
+-static struct rt2880_pmx_func refclk_grp_mt7628[] = { FUNC("reclk", 0, 36, 1) };
+-static struct rt2880_pmx_func perst_grp_mt7628[] = { FUNC("perst", 0, 37, 1) };
++static struct rt2880_pmx_func refclk_grp_mt7628[] = { FUNC("reclk", 0, 37, 1) };
++static struct rt2880_pmx_func perst_grp_mt7628[] = { FUNC("perst", 0, 36, 1) };
+ static struct rt2880_pmx_func wdt_grp_mt7628[] = { FUNC("wdt", 0, 38, 1) };
+ static struct rt2880_pmx_func spi_grp_mt7628[] = { FUNC("spi", 0, 7, 4) };
+