Firefly Open Source Community

Title: mPCIe reset issue [Print This Page]

Author: James035    Time: 9/27/2018 18:05
Title: mPCIe reset issue
    I use a mPCIe to M.2 adapter for mPCIe card, I can't detect the device on the Android which version is Firefly-RK3399_Android7.1.2_MP_180802.img. But when I change the version to Firefly-RK3399-ubuntu16.04-edp-20180118.img, the card can be detected by lspci command.
   I use the oscilloscope to measure the power and reset pins on the mPCIe card.
1.Android  : The power(3.3V) and reset pins(1.8V) are pulled high after system power on.
2.Ubuntu   : The power pin is pulled high after system power on, after 100ms , the reset pin is pulled download from 1.8V to 0V, and after 40ms , reset pin is pulled high from 0V to 3V.
How can I do the pull low and high of reset pin in android.
Author: leungÏÈÉ­    Time: 9/30/2018 10:55
http://en.t-firefly.com/doc/product/info/id/458.html

If use adb shell for control it , just use linux kernel GPIO Export function.
Author: James035    Time: 11/1/2018 13:13
After adding pull low and high in rockchip_pcie_init_port() function, pcie card can be detected now.
I have another two questions
1.Which dtb is using for android?
2.Currently, my pcie card is using M.2 and mPCIe adapter and plugs in the top side M.2 socket. The mPCIe card can be detected now.
But when I plug in the mPCIe card to the mPCIe  socket which is on the bottom side of the firefly rk3399 board, the mPCIe card can't be detected. Is there any release image can detect the card by mPCIe socket(bottom side) ? How to let the mPCIe socket work ?
Thanks.
Author: leungÏÈÉ­    Time: 11/1/2018 15:18
James035 Posted at 11/1/2018 13:13
After adding pull low and high in rockchip_pcie_init_port() function, pcie card can be detected now. ...

1. http://en.t-firefly.com/doc/product/info/id/275.html
rk3399-firefly.dts
2.http://en.t-firefly.com/doc/product/info/id/293.html  interface definition
http://en.t-firefly.com/doc/product/info/id/270.html     Module you can use .

Author: James035    Time: 11/1/2018 15:35
Accroding to Firefly-RK3399_V10_SCH_(2017-2-8).pdf, page27 , left side , MINI PCIE-3G/4G.
It looks like only usb device can be used for this socket, since I only see the 3G_USB_DM,3G_USB_DP have been connected.
Compre to the right side(M2.NGFF), lots of pci related pins are connected.
Am I right ?
Author: leungÏÈÉ­    Time: 11/1/2018 17:26
James035 Posted at 11/1/2018 15:35
Accroding to Firefly-RK3399_V10_SCH_(2017-2-8).pdf, page27 , left side , MINI PCIE-3G/4G.
It looks  ...

Yes
Author: James035    Time: 11/1/2018 18:39
Thanks, it's helpful to me.




Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1