DeviceTree overlay for enabling ROCK 5A's SATA on m2 slot

Tested working with official SATA breakout board. In case anyone needs this :slight_smile:

// ROCK 5A Pcie M.2 to sata
/dts-v1/;
/plugin/;

/ {
	fragment@0 {
		target = <&pcie2x1l2>;

		__overlay__ {
			status = "disabled";
		};
	};

	fragment@1 {
		target = <&sata0>;

		__overlay__ {
			status = "okay";
		};
	};
};
3 Likes

Nice. Should work on 5B too as long as I understand?

No. For 5B you should use this overlay https://github.com/radxa/kernel/blob/linux-5.10-gen-rkr3.4/arch/arm64/boot/dts/rockchip/overlay/rock-5b-sata.dts

1 Like

For 5B,

add the following line in /boot/config.txt

dtoverlay=rock-5b-sata

then

sudo update_exlinux.sh

reboot to take effect.

1 Like