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!
  Reply


Messages In This Thread
linux-4.20 PCIe Fixup - by ddimension - 11-17-2018, 06:29 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Linux Host - QEMU Android Guest? rik-shaw 0 46 07-09-2020, 08:02 PM
Last Post: rik-shaw
  RETRO GAMING BATOCERA LINUX + ROSHAMBO CASE - Tutoriel Fr TheMiniCakeTV 0 716 07-02-2020, 12:45 PM
Last Post: TheMiniCakeTV
  Arch Linux on RockPro64 mmatyas 30 11,903 05-30-2020, 12:08 PM
Last Post: mmatyas
  RockPro64 Linux Manjaro HDMI 4K mkne 12 550 05-03-2020, 07:23 AM
Last Post: PakoSt
  Mainline U-Boot with Arch Linux PKGBUILD mmatyas 0 187 04-17-2020, 03:49 AM
Last Post: mmatyas
  Slow/dead ethernet on (non-Ayufan) Linux Mainline (fixed) mmatyas 1 213 04-17-2020, 02:53 AM
Last Post: Thra11
  Rockpro64 and stock arch linux TaborFife 6 1,229 01-15-2020, 05:17 PM
Last Post: dragop
  Problem with compiling ayufans linux kernel voegelit 4 428 01-14-2020, 07:38 AM
Last Post: patstew
  Frequent kernel panic, possibly due to PCIe SSD? meier 4 509 11-22-2019, 05:15 PM
Last Post: meier
  My PCIe disk controller works with Linux 5.3.6 guannais 1 303 10-30-2019, 07:11 PM
Last Post: guannais

Forum Jump:


Users browsing this thread: 1 Guest(s)