
From: Frank Wunderlich frank-w@public-files.de
BananaPi R64 has an SATA socket where an HDD can be connected. I have ported Linux Driver to Uboot and can access my harddrive
BPI-R64> scsi scan scanning bus for devices... Target spinup took 0 ms. AHCI 0001.0300 32 slots 1 ports 6 Gbps 0x1 impl SATA mode flags: ncq stag pm clo only pmp pio slum part ccc apst Device 0: (0:0) Vendor: ATA Prod.: ST750LM022 HN-M7 Rev: 2AR1 Type: Hard Disk Capacity: 715404.8 MB = 698.6 GB (1465149168 x 512) BPI-R64> ls scsi 0:1 EFI/ 512 BOOTSECT.BAK
1 file(s), 1 dir(s)
BPI-R64>
this Series is based on 2020.10-rc1 + mt7622 PCIe series [1] + R64 DTS [2]
[1] https://patchwork.ozlabs.org/project/uboot/list/?series=194888 [2] https://patchwork.ozlabs.org/project/uboot/list/?series=194922
v1->v2: fix coding styles reported by checkpatch.pl
Frank Wunderlich (5): arm: dts: mt7622: add SATA reset constants phy: mtk-tphy: add PHY_TYPE_SATA reset: add basic reset controller for pciesys ahci: mediatek: add ahci driver dts: r64: add sata- and asm_sel nodes
arch/arm/dts/mt7622-bpi-r64.dts | 9 ++ arch/arm/dts/mt7622.dtsi | 32 ++++ drivers/ata/Kconfig | 8 + drivers/ata/Makefile | 1 + drivers/ata/mtk_ahci.c | 196 +++++++++++++++++++++++ drivers/clk/mediatek/clk-mt7622.c | 15 ++ drivers/phy/phy-mtk-tphy.c | 105 ++++++++++++ include/dt-bindings/reset/mt7629-reset.h | 5 +- 8 files changed, 370 insertions(+), 1 deletion(-) create mode 100644 drivers/ata/mtk_ahci.c