]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/4.4.103/mips-ralink-fix-mt7628-pinmux.patch
4.14-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 4.4.103 / mips-ralink-fix-mt7628-pinmux.patch
1 From 8ef4b43cd3794d63052d85898e42424fd3b14d24 Mon Sep 17 00:00:00 2001
2 From: Mathias Kresin <dev@kresin.me>
3 Date: Thu, 11 May 2017 08:11:14 +0200
4 Subject: MIPS: ralink: Fix MT7628 pinmux
5
6 From: Mathias Kresin <dev@kresin.me>
7
8 commit 8ef4b43cd3794d63052d85898e42424fd3b14d24 upstream.
9
10 According to the datasheet the REFCLK pin is shared with GPIO#37 and
11 the PERST pin is shared with GPIO#36.
12
13 Fixes: 53263a1c6852 ("MIPS: ralink: add mt7628an support")
14 Signed-off-by: Mathias Kresin <dev@kresin.me>
15 Acked-by: John Crispin <john@phrozen.org>
16 Cc: Ralf Baechle <ralf@linux-mips.org>
17 Cc: linux-mips@linux-mips.org
18 Patchwork: https://patchwork.linux-mips.org/patch/16046/
19 Signed-off-by: James Hogan <jhogan@kernel.org>
20 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
21
22 ---
23 arch/mips/ralink/mt7620.c | 4 ++--
24 1 file changed, 2 insertions(+), 2 deletions(-)
25
26 --- a/arch/mips/ralink/mt7620.c
27 +++ b/arch/mips/ralink/mt7620.c
28 @@ -141,8 +141,8 @@ static struct rt2880_pmx_func i2c_grp_mt
29 FUNC("i2c", 0, 4, 2),
30 };
31
32 -static struct rt2880_pmx_func refclk_grp_mt7628[] = { FUNC("reclk", 0, 36, 1) };
33 -static struct rt2880_pmx_func perst_grp_mt7628[] = { FUNC("perst", 0, 37, 1) };
34 +static struct rt2880_pmx_func refclk_grp_mt7628[] = { FUNC("reclk", 0, 37, 1) };
35 +static struct rt2880_pmx_func perst_grp_mt7628[] = { FUNC("perst", 0, 36, 1) };
36 static struct rt2880_pmx_func wdt_grp_mt7628[] = { FUNC("wdt", 0, 38, 1) };
37 static struct rt2880_pmx_func spi_grp_mt7628[] = { FUNC("spi", 0, 7, 4) };
38