aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-09-16 08:31:52 +0000
committerJohn Crispin <blogic@openwrt.org>2015-09-16 08:31:52 +0000
commit7d92be4d820329fff570b9ca120528e6a4c512ff (patch)
tree0f47ea1735edda0611ccba508ebdd60d1d5b285f /target/linux/ramips
parentd491d3a063612abbf6882c7e5e2bdbc18f8b166a (diff)
downloadmaster-187ad058-7d92be4d820329fff570b9ca120528e6a4c512ff.tar.gz
master-187ad058-7d92be4d820329fff570b9ca120528e6a4c512ff.tar.bz2
master-187ad058-7d92be4d820329fff570b9ca120528e6a4c512ff.zip
ramips: Fix pinmux functions for MT7621
The pinctrl-rt2880 code doesn't support multiple functions with the same name. This will result in a incorrect pinmux configuration. Signed-off-by: Sven Eckelmann <sven@open-mesh.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46963 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips')
-rw-r--r--target/linux/ramips/dts/mt7621.dtsi14
-rw-r--r--target/linux/ramips/patches-3.18/0012-MIPS-ralink-add-MT7621-support.patch18
2 files changed, 16 insertions, 16 deletions
diff --git a/target/linux/ramips/dts/mt7621.dtsi b/target/linux/ramips/dts/mt7621.dtsi
index e111c2bd80..bc79d392b0 100644
--- a/target/linux/ramips/dts/mt7621.dtsi
+++ b/target/linux/ramips/dts/mt7621.dtsi
@@ -134,35 +134,35 @@
uart1_pins: uart1 {
uart1 {
ralink,group = "uart1";
- ralink,function = "uart";
+ ralink,function = "uart1";
};
};
uart2_pins: uart2 {
uart2 {
ralink,group = "uart2";
- ralink,function = "uart";
+ ralink,function = "uart2";
};
};
uart3_pins: uart3 {
uart3 {
ralink,group = "uart3";
- ralink,function = "uart";
+ ralink,function = "uart3";
};
};
rgmii1_pins: rgmii1 {
rgmii1 {
ralink,group = "rgmii1";
- ralink,function = "rgmii";
+ ralink,function = "rgmii1";
};
};
rgmii2_pins: rgmii2 {
rgmii2 {
ralink,group = "rgmii2";
- ralink,function = "rgmii";
+ ralink,function = "rgmii2";
};
};
@@ -183,12 +183,12 @@
nand_pins: nand {
spi-nand {
ralink,group = "spi";
- ralink,function = "nand";
+ ralink,function = "nand1";
};
sdhci-nand {
ralink,group = "sdhci";
- ralink,function = "nand";
+ ralink,function = "nand2";
};
};
diff --git a/target/linux/ramips/patches-3.18/0012-MIPS-ralink-add-MT7621-support.patch b/target/linux/ramips/patches-3.18/0012-MIPS-ralink-add-MT7621-support.patch
index 69401549be..23d32681bf 100644
--- a/target/linux/ramips/patches-3.18/0012-MIPS-ralink-add-MT7621-support.patch
+++ b/target/linux/ramips/patches-3.18/0012-MIPS-ralink-add-MT7621-support.patch
@@ -582,17 +582,17 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
+#define MT7621_GPIO_MODE_SDHCI_SHIFT 18
+#define MT7621_GPIO_MODE_SDHCI_GPIO 1
+
-+static struct rt2880_pmx_func uart1_grp[] = { FUNC("uart", 0, 1, 2) };
++static struct rt2880_pmx_func uart1_grp[] = { FUNC("uart1", 0, 1, 2) };
+static struct rt2880_pmx_func i2c_grp[] = { FUNC("i2c", 0, 3, 2) };
+static struct rt2880_pmx_func uart3_grp[] = {
-+ FUNC("uart", 0, 5, 4),
++ FUNC("uart3", 0, 5, 4),
+ FUNC("i2s", 2, 5, 4),
-+ FUNC("spdif", 3, 5, 4),
++ FUNC("spdif3", 3, 5, 4),
+};
+static struct rt2880_pmx_func uart2_grp[] = {
-+ FUNC("uart", 0, 9, 4),
++ FUNC("uart2", 0, 9, 4),
+ FUNC("pcm", 2, 9, 4),
-+ FUNC("spdif", 3, 9, 4),
++ FUNC("spdif2", 3, 9, 4),
+};
+static struct rt2880_pmx_func jtag_grp[] = { FUNC("jtag", 0, 13, 5) };
+static struct rt2880_pmx_func wdt_grp[] = {
@@ -604,16 +604,16 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
+ FUNC("pcie refclk", MT7621_GPIO_MODE_PCIE_REF, 19, 1)
+};
+static struct rt2880_pmx_func mdio_grp[] = { FUNC("mdio", 0, 20, 2) };
-+static struct rt2880_pmx_func rgmii2_grp[] = { FUNC("rgmii", 0, 22, 12) };
++static struct rt2880_pmx_func rgmii2_grp[] = { FUNC("rgmii2", 0, 22, 12) };
+static struct rt2880_pmx_func spi_grp[] = {
+ FUNC("spi", 0, 34, 7),
-+ FUNC("nand", 2, 34, 7),
++ FUNC("nand1", 2, 34, 7),
+};
+static struct rt2880_pmx_func sdhci_grp[] = {
+ FUNC("sdhci", 0, 41, 8),
-+ FUNC("nand", 2, 41, 8),
++ FUNC("nand2", 2, 41, 8),
+};
-+static struct rt2880_pmx_func rgmii1_grp[] = { FUNC("rgmii", 0, 49, 12) };
++static struct rt2880_pmx_func rgmii1_grp[] = { FUNC("rgmii1", 0, 49, 12) };
+
+static struct rt2880_pmx_group mt7621_pinmux_data[] = {
+ GRP("uart1", uart1_grp, 1, MT7621_GPIO_MODE_UART1),