diff mbox series

[1/2] ARM: dts: exynos: Add port map to Exynos5250 AHCI node

Message ID 20190802101822.10131-1-m.szyprowski@samsung.com (mailing list archive)
State Mainlined
Commit 1e1c735a6ba0698a107b99979aad72f48392a441
Headers show
Series [1/2] ARM: dts: exynos: Add port map to Exynos5250 AHCI node | expand

Commit Message

Marek Szyprowski Aug. 2, 2019, 10:18 a.m. UTC
Exynos AHCI (SATA) controller has only one port for SATA device. According
to AHCI driver bindings (ata/ahci-platform.txt), if the bootloader doesn't
program the PORTS_IMPL register to proper value, the available port map has
to be provided by 'ports-implemented' device tree property. This fixes
SATA operation on Exynos5250-based boards since Linux v4.5.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
---
 arch/arm/boot/dts/exynos5250.dtsi | 1 +
 1 file changed, 1 insertion(+)

Comments

Krzysztof Kozlowski Aug. 7, 2019, 6:18 p.m. UTC | #1
On Fri, Aug 02, 2019 at 12:18:21PM +0200, Marek Szyprowski wrote:
> Exynos AHCI (SATA) controller has only one port for SATA device. According
> to AHCI driver bindings (ata/ahci-platform.txt), if the bootloader doesn't
> program the PORTS_IMPL register to proper value, the available port map has
> to be provided by 'ports-implemented' device tree property. This fixes
> SATA operation on Exynos5250-based boards since Linux v4.5.
> 
> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
> ---
>  arch/arm/boot/dts/exynos5250.dtsi | 1 +

Thanks, applied both.

Best regards,
Krzysztof
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi
index d5e0392b409e..30f6f5c6bbcb 100644
--- a/arch/arm/boot/dts/exynos5250.dtsi
+++ b/arch/arm/boot/dts/exynos5250.dtsi
@@ -346,6 +346,7 @@ 
 			clock-names = "sata", "sclk_sata";
 			phys = <&sata_phy>;
 			phy-names = "sata-phy";
+			ports-implemented = <0x1>;
 			status = "disabled";
 		};