Problems enabling the PCIe/USB3.0 port on MT7623N

Kristian Evensen kristian.evensen at gmail.com
Fri Nov 3 09:20:42 PDT 2017


Hi all,

On Fri, Nov 3, 2017 at 1:19 PM, John Crispin <john at phrozen.org> wrote:
> I managed to get the 2nd USBport working on the LEDE last night and will
> push a patch today. the usb2 node is simply not getting enabled and the 2nd
> phys node is missing 2 properties.

Based on this comment from John, I took a second look at the
mt7623.dtsi file in LEDE and updated the structure of u3phy2 to match
that of phy1. Now, I can see the hub. I.e., dmesg contains the
following:

[    1.095790] xhci-mtk 1a240000.usb: xHCI Host Controller
[    1.100998] xhci-mtk 1a240000.usb: new USB bus registered, assigned
bus number 3
[    1.108643] xhci-mtk 1a240000.usb: hcc params 0x01401198 hci
version 0x96 quirks 0x00210010
[    1.117009] xhci-mtk 1a240000.usb: irq 198, io mem 0x1a240000
[    1.123373] hub 3-0:1.0: USB hub found
[    1.127154] hub 3-0:1.0: 1 port detected
[    1.131426] xhci-mtk 1a240000.usb: xHCI Host Controller
[    1.136646] xhci-mtk 1a240000.usb: new USB bus registered, assigned
bus number 4
[    1.144068] usb usb4: We don't know the algorithms for LPM for this
host, disabling LPM.
[    1.152707] hub 4-0:1.0: USB hub found
[    1.156480] hub 4-0:1.0: 1 port detected

However, I still can't see the device connected to the slot. I don't
know if that (in most cases at least) should just work out of the box,
or if additional steps are required? I suspect the following error
might be related:

[    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

I have to admit that I don't have so much experience working with
dts', etc. so apologizes for any stupid questions.

Thanks in advance for all the help so far,
Kristian



More information about the Linux-mediatek mailing list