linux-4.20 PCIe Fixup
#1
Hi,

for those of you testing the PCIe port of the rockpro64, you should apply the attached patch:
Code:
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts b/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts
index 1d35f5406b5e..b59b05ea1dc5 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts
@@ -97,7 +97,7 @@
    vcc3v3_pcie: vcc3v3-pcie-regulator {
        compatible = "regulator-fixed";
        enable-active-high;
-        gpio = <&gpio1 RK_PC1 GPIO_ACTIVE_HIGH>;
+        gpio = <&gpio1 RK_PD0 GPIO_ACTIVE_HIGH>;
        pinctrl-names = "default";
        pinctrl-0 = <&pcie_pwr_en>;
        regulator-name = "vcc3v3_pcie";
@@ -690,3 +690,18 @@
&vopl_mmu {
    status = "okay";
};
+
+&pcie_phy {
+    status = "okay";
+};
+
+&pcie0 {
+    ep-gpios = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>;    
+    num-lanes = <4>;
+    max-link-speed = <2>;
+    pinctrl-names = "default";
+    pinctrl-0 = <&pcie_clkreqn_cpm>;
+    vpcie3v3-supply = <&vcc3v3_pcie>;
+    status = "okay";
+};
+

Have fun!


Possibly Related Threads…
Thread Author Replies Views Last Post
  irradium (based on crux linux) RockPro64 riscv64, aarch64 mara 1 470 03-25-2024, 12:12 PM
Last Post: mara
  RK3399 PCIe enumeration jhadd 0 268 01-31-2024, 08:56 AM
Last Post: jhadd
Exclamation Ethernet regression on Linux Kernel 6.5.4? Deathcrow 3 826 09-22-2023, 04:27 AM
Last Post: diederik
  Installing CH431SER on Ayufan 0.9.14: gitlab-ci-linux-build-159 Thisone 4 1,287 07-14-2023, 04:22 AM
Last Post: hunderteins
  Linux laptop does not detect the board when plugged in via USB soupy 1 3,999 04-13-2023, 03:01 AM
Last Post: Reynold Grady
  Can RockPRO64 support PCIe Endpoint? andrewg132 3 2,179 10-14-2022, 06:24 AM
Last Post: rwk-
  RockPro64 linux console video mode callegar 0 877 09-06-2022, 02:32 PM
Last Post: callegar
Brick Maintained Linux booting from eMMC ootoovak 10 8,190 04-30-2022, 03:57 PM
Last Post: TRS-80
  How I Got Fedora Linux to Boot From eMMC (or microSD, for that matter) whitecat23 4 4,261 01-03-2022, 10:32 AM
Last Post: whitecat23
  No PCIe controller detected... Limhes 1 1,584 11-23-2021, 06:23 AM
Last Post: Limhes

Forum Jump:


Users browsing this thread: 1 Guest(s)