Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[Hardware] mPCIe reset issue

22

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
22

【Hardware】 mPCIe reset issue

Posted at 9/27/2018 18:05:15      View:4560 | Replies:6        Print      Only Author   [Copy Link] 1#
    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.
Reply

Use props Report

792

Credits

10

Prestige

10

Contribution

advanced

Rank: 4

Credits
792
Posted at 9/30/2018 10:55:43        Only Author  2#
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.
Reply

Use props Report

22

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
22
Posted at 11/1/2018 13:13:20        Only Author  3#
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.
Reply

Use props Report

792

Credits

10

Prestige

10

Contribution

advanced

Rank: 4

Credits
792
Posted at 11/1/2018 15:18:59        Only Author  4#
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 .
Reply

Use props Report

22

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
22
Posted at 11/1/2018 15:35:46        Only Author  5#
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 ?
Reply

Use props Report

792

Credits

10

Prestige

10

Contribution

advanced

Rank: 4

Credits
792
Posted at 11/1/2018 17:26:53        Only Author  6#
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
Reply

Use props Report

22

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
22
Posted at 11/1/2018 18:39:15        Only Author  7#
Thanks, it's helpful to me.
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list