Can RockPRO64 support PCIe Endpoint?
#3
I managed to figure it out! The issue was with the starting address for 'mem-base' in the device tree. Setting the starting address to a valid range (0x0000_0000 in my case) enables the driver to be properly loaded and the controller is now present. Below is the device tree overlay I used in Armbian in case anyone else would like to attempt this. 


Code:
/dts-v1/; /plugin/; / {     fragment@0 {         target-path = "/pcie@f8000000";         __overlay__ {               status = "disabled";         };     };     fragment@1 {                 target-path = "/";                 __overlay__ {                         pcie_ep0: pcie_ep@f8000000 {                                 compatible = "rockchip,rk3399-pcie-ep";                                 #address-cells = <0x03>;                                 #size-cells = <0x02>;                                 rockchip,max-outbound-regions = <0x10>;                                 max-functions = [08];                                 num-lanes = <0x04>;                                 reg = <0x00 0xfd000000 0x00 0x1000000 0x00 0x00000000 0x00 0x20000>;                                 reg-names = "apb-base\0mem-base";                                 pinctrl-names = "default";                                 pinctrl-0 = <0x17>;                                 phys = <0x15 0x00 0x15 0x01 0x15 0x02 0x15 0x03>;                                 phy-names = "pcie-phy-0\0pcie-phy-1\0pcie-phy-2\0pcie-phy-3";                                 resets = <0x08 0x82 0x08 0x83 0x08 0x84 0x08 0x85 0x08 0x86 0x08 0x81 0x08 0x80>;                                 reset-names = "core\0mgmt\0mgmt-sticky\0pipe\0pm\0pclk\0aclk";                                 clocks = <0x08 0xc5 0x08 0xc4 0x08 0x147 0x08 0xa0>;                                 clock-names = "aclk\0aclk-perf\0hclk\0pm";                                 status = "okay";                          };                 };     }; };
  Reply


Messages In This Thread
RE: Can RockPRO64 support PCIe Endpoint? - by andrewg132 - 09-09-2022, 12:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  irradium (based on crux linux) RockPro64 riscv64, aarch64 mara 13 22,648 09-27-2026, 11:42 AM
Last Post: mara
  New OS for RockPro64 is here, TwisterOS Armbian jtremblant 92 181,541 08-17-2024, 02:32 PM
Last Post: taltamir
  OpenEuler OS on RockPro64 Yuriy Gavrilov 0 3,302 06-15-2024, 09:38 AM
Last Post: Yuriy Gavrilov
  RK3399 PCIe enumeration jhadd 0 3,418 01-31-2024, 08:56 AM
Last Post: jhadd
  yocto for RockPro64 Fide 1 5,139 01-16-2024, 10:01 AM
Last Post: Fide
  Installing Ubuntu Server on RockPro64 deutschlmao 2 10,216 10-29-2023, 04:43 PM
Last Post: brotherj4mes
  Vanilla mainline Debian 11 (Bullseye) on the RockPro64 Pete Tandy 22 44,488 08-16-2023, 01:34 AM
Last Post: varac
  slarm64 (unofficial slackware) ROCKPro64 RK3399 (aarch64) mara 54 131,114 08-11-2023, 11:13 AM
Last Post: mara
  How to enable CoreSight ETM trace on RockPro64 shpark 0 4,781 05-21-2023, 11:34 PM
Last Post: shpark
  Rockpro64 Dead on arrival? quixoticgeek 1 4,255 03-12-2023, 06:55 PM
Last Post: quixoticgeek

Forum Jump:


Users browsing this thread: 1 Guest(s)