Skip to content

add SATA/AHCI support for BananaPi R64

Frank Wunderlich u-boot 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 0 repliesNew
  2. v25 patches 0 repliesSuperseded
  3. v15 patches 0 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5arm: dts: mt7622: add SATA reset constantsinclude/dt-bindings/reset/mt7629-reset.h+4 -14 replies
2/5phy: mtk-tphy: add PHY_TYPE_SATAdrivers/phy/phy-mtk-tphy.c+105 -01 reply
3/5reset: add basic reset controller for pciesysdrivers/clk/mediatek/clk-mt7622.c+15 -01 reply
4/5ahci: mediatek: add ahci driverdrivers/ata/Kconfig drivers/ata/Makefile drivers/ata/mtk_ahci.c+139 -01 reply
5/5dts: r64: add sata- and asm_sel nodesarch/arm/dts/mt7622-bpi-r64.dts arch/arm/dts/mt7622.dtsi+41 -01 reply

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchChunfeng Yun
1/5
2/5R-b
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/5] add SATA/AHCI support for BananaPi R64

From: Frank Wunderlich <[email protected]>

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

v2->v3: some changes in ahci-driver based on chunfeng yun's review
- alphabetic sort of includes
- use reset_ctl_bulk
- devfdt_remap_addr_index instead of map_physmem(devfdt_get_addr())
- move ahci_uc_priv to mtk_ahci_priv
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                   | 130 +++++++++++++++++++++++
 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, 304 insertions(+), 1 deletion(-)
 create mode 100644 drivers/ata/mtk_ahci.c
Signature · 1 line
2.25.1