Problems enabling the PCIe/USB3.0 port on MT7623N

Kristian Evensen kristian.evensen at gmail.com
Sat Nov 4 05:05:19 PDT 2017


Hi all,

First of all, I see that I have completely forgot to mention the board
I am using, sorry about that. It is this one:
http://www.unielecinc.com/q/news/cn/p/product/detail.html?qd_guid=OjXwKCaRlN

On Fri, Nov 3, 2017 at 5:20 PM, Kristian Evensen
<kristian.evensen at gmail.com> wrote:
> [    1.314407] mediatek-pcie 1a140000.pcie: can't request region for
> resource [mem 0x1a244000-0x1a244fff]
> [    1.353851] mediatek-pcie 1a140000.pcie: Failed to get pcie phy2
> range fffffff0
> [    1.361099] mediatek-pcie 1a140000.pcie: failed to request resources: -16
> [    1.367896] mediatek-pcie: probe of 1a140000.pcie failed with error -16

John explained this error message to me yesterday and we got a working
usb2. However, when disabling pcie2 and enabling usb2, the only thing
that happened was that one of the wifi-cards disappeared. The USB slot
(the one with the LTE module in the picture in the link above) was
still dead. After discovering this, I loaded the proprietary firmware
(version where the slot is working) to check the output of lspci and
see if pcie2 was enabled/disabled. lspci showed three bridges and
three devices - 01:00.0 contained a SATA controller, while 02:00.0 and
03:00.0 contained the wifi radios. I guess this points to the issue of
the dead slot not having to do with usb2 being disabled.

As I mentioned in an earlier email to the list, the manufacturer says
that the modem slot will be exposed if USB OTG is opened (I suspect
they mean put in host mode), so I guess that would be the next path to
explore. I see that there is a USB 2.0 OTG block on the hardware
diagram, and I see that the tphy-driver contains code which always
enables OTG. Has anyone got OTG working and is there any way to verify
that OTG is up and running? I did some research last night and found
this patch: https://patchwork.kernel.org/patch/9963671/. I forced the
bits to be set/unset for OTG and host-mode (separate tests), but
nothing happened.

BR,
Kristian



More information about the Linux-mediatek mailing list