[OpenWrt-Devel] [PATCH 1/1] [SIGNED-OFF] ramips: Ralink RT3883 RGMII pinmux fix.

N.Leiten nickleiten at gmail.com
Thu Sep 24 09:48:57 EDT 2015


Due to datasheet of rt3883 SoC rgmii1 port handles pins 84-95 and rgmii2 port handles pins 72-83. When this function ports gets added to rt3883_pinmux_data there's wrong pinmux bits set (RT3883_GPIO_MODE_GE1 manages 84-95 pins and RT3883_GPIO_MODE_GE2 manages 72-83). So when enabling rgmii2 as GPIO driver confuses hardware and nothing work, neither rgmii nor gpio.
Also in '0030-pinctrl-ralink-add-pinctrl-driver.patch' typo in name of rgmii2 port.


Signed-off-by: Nick Leiten <nickleiten at gmail.com>

diff -pur chaoscalmer.git/target/linux/ramips/patches-3.18/0030-pinctrl-ralink-add-pinctrl-driver.patch chaoscalmer.git-diff/target/linux/ramips/patches-3.18/0030-pinctrl-ralink-add-pinctrl-driver.patch
--- chaoscalmer.git/target/linux/ramips/patches-3.18/0030-pinctrl-ralink-add-pinctrl-driver.patch	2015-09-24 16:21:21.521925769 +0300
+++ chaoscalmer.git-diff/target/linux/ramips/patches-3.18/0030-pinctrl-ralink-add-pinctrl-driver.patch	2015-09-24 16:23:24.940957645 +0300
@@ -828,8 +828,8 @@ Signed-off-by: John Crispin <blogic at open
 +	FUNC("pci-host1", 2, 40, 32),
 +	FUNC("pci-fnc", 3, 40, 32)
  };
-+static struct rt2880_pmx_func ge1_func[] = { FUNC("ge1", 0, 72, 12) };
-+static struct rt2880_pmx_func ge2_func[] = { FUNC("ge1", 0, 84, 12) };
++static struct rt2880_pmx_func ge1_func[] = { FUNC("ge1", 0, 84, 12) };
++static struct rt2880_pmx_func ge2_func[] = { FUNC("ge2", 0, 72, 12) };
  
 -static struct ralink_pinmux_grp pci_mux[] = {
 -	{
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list