Skip to content

Instantly share code, notes, and snippets.

@akhepcat
Created May 5, 2023 23:35
Show Gist options
  • Save akhepcat/1cda8ca08bf9325bfb18146f915400da to your computer and use it in GitHub Desktop.
Save akhepcat/1cda8ca08bf9325bfb18146f915400da to your computer and use it in GitHub Desktop.
Enable PCIe gen2 speeds on RockPro64 boards
/* For RockPro64 boards only!! */
/dts-v1/;
/plugin/;
/ {
fragment@0 {
target-path = "/pcie@f8000000";
__overlay__ {
max-link-speed = <0x02>;
};
};
/*
## To install:
* dtc -O dtb -o /boot/dtb/rockchip/overlay/rockchip-pcie-gen2.dtbo rockchip-pcie-gen2.d2s
* Edit /boot/armbianEnv.txt and add
overlays=pcie-gen2 ( or: orverlays=[existing] pcie-gen2 )
* reboot
*/
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment