Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alessandrocarminati/34df822565fdad0b6c057e3b6d639403 to your computer and use it in GitHub Desktop.
Save alessandrocarminati/34df822565fdad0b6c057e3b6d639403 to your computer and use it in GitHub Desktop.
Patch to make the rk356x sata controller compatible with generic-ahci driver
From a5bef24fe2bd9930ab5a0111b574d3df40e3d93e Mon Sep 17 00:00:00 2001
From: Alessandro Carminati <alessandro.carminati@gmail.com>
Date: Sun, 22 Jan 2023 12:23:22 +0000
Subject: [PATCH] MOD: make rk356x sata controller wirh generic-ahci driver
Content-type: text/plain
Signed-off-by: Alessandro Carminati <alessandro.carminati@gmail.com>
---
arch/arm64/boot/dts/rockchip/rk356x.dtsi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/boot/dts/rockchip/rk356x.dtsi b/arch/arm64/boot/dts/rockchip/rk356x.dtsi
index 5706c3e24f0a..8c5dc465a82c 100644
--- a/arch/arm64/boot/dts/rockchip/rk356x.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk356x.dtsi
@@ -252,7 +252,7 @@ scmi_shmem: sram@0 {
};
sata1: sata@fc400000 {
- compatible = "rockchip,rk3568-dwc-ahci", "snps,dwc-ahci";
+ compatible = "rockchip,rk3568-dwc-ahci", "snps,dwc-ahci", "generic-ahci";
reg = <0 0xfc400000 0 0x1000>;
clocks = <&cru ACLK_SATA1>, <&cru CLK_SATA1_PMALIVE>,
<&cru CLK_SATA1_RXOOB>;
@@ -266,7 +266,7 @@ sata1: sata@fc400000 {
};
sata2: sata@fc800000 {
- compatible = "rockchip,rk3568-dwc-ahci", "snps,dwc-ahci";
+ compatible = "rockchip,rk3568-dwc-ahci", "snps,dwc-ahci", "generic-ahci";
reg = <0 0xfc800000 0 0x1000>;
clocks = <&cru ACLK_SATA2>, <&cru CLK_SATA2_PMALIVE>,
<&cru CLK_SATA2_RXOOB>;
--
2.34.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment