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 1 345 03-25-2024, 12:12 PM
Last Post: mara
  RK3399 PCIe enumeration jhadd 0 230 01-31-2024, 08:56 AM
Last Post: jhadd
  yocto for RockPro64 Fide 1 649 01-16-2024, 10:01 AM
Last Post: Fide
  Installing Ubuntu Server on RockPro64 deutschlmao 2 2,521 10-29-2023, 04:43 PM
Last Post: brotherj4mes
  Vanilla mainline Debian 11 (Bullseye) on the RockPro64 Pete Tandy 22 16,831 08-16-2023, 01:34 AM
Last Post: varac
  slarm64 (unofficial slackware) ROCKPro64 RK3399 (aarch64) mara 54 82,217 08-11-2023, 11:13 AM
Last Post: mara
  How to enable CoreSight ETM trace on RockPro64 shpark 0 542 05-21-2023, 11:34 PM
Last Post: shpark
  Rockpro64 Dead on arrival? quixoticgeek 1 880 03-12-2023, 06:55 PM
Last Post: quixoticgeek
  RockPro64 boot questions misterc 3 1,488 01-13-2023, 06:21 PM
Last Post: misterc
  A fix for Bluetooth audio stuttering on the RockPro64 raph 2 1,586 01-03-2023, 06:53 PM
Last Post: raph

Forum Jump:


Users browsing this thread: 1 Guest(s)