SD card-Ethernet conflict

evan
 
Posts: 1
Joined: Thu Dec 28, 2017 9:36 pm

SD card-Ethernet conflict

Thu Dec 28, 2017 9:42 pm

Greetings and happy holidays,

We are working on a project where 2 Ethernet ports of the Vocore2 and the SD card is required. We are using Ethernet ports 1 and 2.
It seems like the SD card is pinmuxed with Ethernet port 3 and 4, you can only enable or disable all of the 4 Ethernet ports 1,2,3,4 and these prevents us from using simultaneously the Ethernet ports 1 and 2 with the SD card.
Is this correct?
Is there any workaround/soloution so you can have 2 x Ethernet ports enabled along with the SD card?

Thanks in advance.
Evan

Vonger
 
Posts: 896
Joined: Sun Oct 19, 2014 6:00 am

Re: SD card-Ethernet conflict

Sat Dec 30, 2017 9:17 am

There is a hidden pinmux to switch SD card pins to I2S/I2C, then you can use SD card and all five ethernet ports. This is confirmed by mediatek FAE, but it is not listed on mt7628 datasheet. Please check mtk_sd.c in openwrt source code(in linux kernel/drivers/mmc/mtk/), in its driver init function, there is a hidden code control a pinmux register can do that, but I do not know the pin order and detail...

ponvignes
 
Posts: 2
Joined: Wed Jul 11, 2018 8:39 am

Re: SD card-Ethernet conflict

Wed Jul 11, 2018 8:44 am

hi, any update on this,
am in a similar situation.
i can mount the sdcard using usb, but not using the sdcard pins.

any help in achieving 2 eth ports with sdcard working.

thanks

Vonger
 
Posts: 896
Joined: Sun Oct 19, 2014 6:00 am

Re: SD card-Ethernet conflict

Wed Jul 11, 2018 2:53 pm

Currently there is no way to make 2ethernet + sd card both working, it is because mediatek chip limited.

here is two ways to use ethernet + sd card.

1. ethernet 0 + sdcard(reused pins for ethernet 3/ethernet 4)
2. ethernet 0,1,2,3,4 + sdcard(reused pins for gpio0, i2c, i2s)

first way, ethernet 1,2 can not use, only able to use them as gpio or pwm etc.
second way, have 5 ethernet and sdcard same time but have to remove i2c and i2s and gpio0(refclk), this is a hidden feature :) we find it by hack other mediatek router, works pretty good.

So only second way can fit your request two ethernet + sdcard.

ponvignes
 
Posts: 2
Joined: Wed Jul 11, 2018 8:39 am

Re: SD card-Ethernet conflict

Wed Jul 11, 2018 3:26 pm

Thanks for the clarification..

So for the second option to have 5 eth ports ++sdcard, I have to configure sdcard using gpio and assign the respective pin no?.. (in menuconfig ?)
So am I correct to say ..
Appreciate a little help to achieve this..

Vonger
 
Posts: 896
Joined: Sun Oct 19, 2014 6:00 am

Re: SD card-Ethernet conflict

Thu Jul 12, 2018 2:09 am

yes, you need to config it, please search in mu blog vonger.cn and check vocore.io/v2.html, there is the pin map.
Also need to modify the sdcard driver, enable its pinmux.

Return to VoCore2/Lite/Ultimate

Who is online

Users browsing this forum: No registered users and 34 guests