From 5bdf4a4243e6c149290cdd2c8f5a7d1a1946670e Mon Sep 17 00:00:00 2001 From: pykpkg47 Date: Sat, 7 Sep 2024 02:43:39 +0000 Subject: [PATCH] arm64: dts: rock-3a: add overlay to enable sata on m.2 e-key slot source:radxa-overlays repo Signed-off-by: pykpkg47 <118465017+pykpkg47@users.noreply.github.com> --- arch/arm64/boot/dts/rockchip/overlay/Makefile | 1 + .../dts/rockchip/overlay/rock-3a-sata.dts | 27 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/overlay/rock-3a-sata.dts diff --git a/arch/arm64/boot/dts/rockchip/overlay/Makefile b/arch/arm64/boot/dts/rockchip/overlay/Makefile index 4f1941a7f5d5b..1ad5c584b5569 100644 --- a/arch/arm64/boot/dts/rockchip/overlay/Makefile +++ b/arch/arm64/boot/dts/rockchip/overlay/Makefile @@ -18,6 +18,7 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \ orangepi-5-pro-cam1.dtbo \ orangepi-5-pro-cam2.dtbo \ orangepi-5-pro-disable-leds.dtbo \ + rock-3a-sata.dtbo \ rock-5a-hdmi-8k.dtbo \ rock-5a-i2c5-rtc-hym8563.dtbo \ rock-5a-radxa-camera-4k.dtbo \ diff --git a/arch/arm64/boot/dts/rockchip/overlay/rock-3a-sata.dts b/arch/arm64/boot/dts/rockchip/overlay/rock-3a-sata.dts new file mode 100644 index 0000000000000..dedb6065581f8 --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/overlay/rock-3a-sata.dts @@ -0,0 +1,27 @@ +// ROCK 3A Pcie M.2 to sata +/dts-v1/; +/plugin/; + +/ { + metadata { + title = "Enable SATA2"; + compatible = "radxa,rock-3a"; + category = "misc"; + description = "Enable SATA2. +When SATA2 is enabled, PCIe cannot be enabled on the same port."; + }; + + fragment@0 { + target = <&pcie2x1>; + __overlay__ { + status = "disabled"; + }; + }; + + fragment@1 { + target = <&sata2>; + __overlay__ { + status = "okay"; + }; + }; +}; \ No newline at end of file