Skip to contentSkip to conversation

MIPS: ralink: fix MT7628 pinmux

PATCH In review Mathias Kresin 3 participants 5 messages May 11, 2017 – Nov 13, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

---
 arch/mips/ralink/mt7620.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/mips/ralink/mt7620.c +2 -2
index 094a0ee..528a6ac 100644
@@ -144,8 +144,8 @@ static struct rt2880_pmx_func i2c_grp_mt7628[] = {
 	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) };
 
Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/2 MIPS: ralink: fix typo in mt7628 pinmux function

There is a typo inside the pinmux setup code. The function is called refclk and not reclk.

---
 arch/mips/ralink/mt7620.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/ralink/mt7620.c +1 -1
index 528a6ac..86fac75 100644
@@ -144,7 +144,7 @@ static struct rt2880_pmx_func i2c_grp_mt7628[] = {
 	FUNC("i2c", 0, 4, 2),
 };
 
-static struct rt2880_pmx_func refclk_grp_mt7628[] = { FUNC("reclk", 0, 37, 1) };
+static struct rt2880_pmx_func refclk_grp_mt7628[] = { FUNC("refclk", 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) };
Signature · 1 line
2.7.4
maintainer Acked-by on v1 1/2
#3 lore raw
In reply to Mathias Kresin
Quoted 4 lines · Mathias Kresin

According to the datasheet the REFCLK pin is shared with GPIO#37 and the PERST pin is shared with GPIO#36.

Quoted 19 lines
---
  arch/mips/ralink/mt7620.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
arch/mips/ralink/mt7620.c +2 -2
index 094a0ee..528a6ac 100644
@@ -144,8 +144,8 @@ static struct rt2880_pmx_func i2c_grp_mt7628[] = {
  	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) };
 
maintainer Acked-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] MIPS: ralink: fix typo in mt7628 pinmux function

In reply to Mathias Kresin
Quoted 4 lines · Mathias Kresin

There is a typo inside the pinmux setup code. The function is called refclk and not reclk.

Quoted 17 lines
---
  arch/mips/ralink/mt7620.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/ralink/mt7620.c +1 -1
index 528a6ac..86fac75 100644
@@ -144,7 +144,7 @@ static struct rt2880_pmx_func i2c_grp_mt7628[] = {
  	FUNC("i2c", 0, 4, 2),
  };
 
-static struct rt2880_pmx_func refclk_grp_mt7628[] = { FUNC("reclk", 0, 37, 1) };
+static struct rt2880_pmx_func refclk_grp_mt7628[] = { FUNC("refclk", 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) };
#4 lore raw
In reply to John Crispin
Quoted 8 lines · John Crispin
Quoted 4 lines · Mathias Kresin

According to the datasheet the REFCLK pin is shared with GPIO#37 and the PERST pin is shared with GPIO#36.

Thanks, both patches applied.

Cheers
James

Quoted 21 lines
Quoted 19 lines
---
  arch/mips/ralink/mt7620.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
arch/mips/ralink/mt7620.c +2 -2
index 094a0ee..528a6ac 100644
@@ -144,8 +144,8 @@ static struct rt2880_pmx_func i2c_grp_mt7628[] = {
  	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) };