Skip to content

airoha: add support spi/mmc/ethernet

Christian Marangi u-boot 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest14 patches 1 replyIn review
  2. v114 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Drop unused define in ethernet driver
- Use remap in ethernet driver

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14arch: arm: dts: an7581: add Chip SCU nodearch/arm/dts/an7581-u-boot.dtsi+7 -00 replies
2/14net: airoha: Add Airoha Ethernet driverdrivers/net/Kconfig drivers/net/Makefile drivers/net/airoha_eth.c+957 -00 replies
3/14airoha: Add Ethernet config to defconfigconfigs/an7581_evb_defconfig+1 -00 replies
4/14arch: arm: dts: an7581: Add Ethernet nodesarch/arm/dts/an7581-u-boot.dtsi+30 -00 replies
5/14mmc: mediatek: permit to also build for Airoha archdrivers/mmc/Kconfig+1 -10 replies
6/14arch: arm: dts: an7581: Add eMMC nodesarch/arm/dts/an7581-u-boot.dtsi+33 -00 replies
7/14airoha: Add eMMC config to defconfigconfigs/an7581_evb_defconfig+1 -00 replies
8/14regmap: Add regmap_set/clear_bits shorthandsinclude/regmap.h+28 -00 replies
9/14spi: drop unneeded spi.h header include from spinand.hinclude/linux/mtd/spinand.h+1 -10 replies
10/14spi: Introduce setup_for_spinand()include/spi.h+11 -00 replies
11/14spinand: call SPI setup_for_spinand if supporteddrivers/mtd/nand/spi/core.c+18 -00 replies
12/14spi: airoha: Add Airoha SPI NAND driverdrivers/spi/Kconfig drivers/spi/Makefile drivers/spi/airoha_snfi_spi.c+727 -00 replies
13/14arm: dts: an7581: Add SNAND nodearch/arm/dts/an7581-u-boot.dtsi+20 -00 replies
14/14configs: airoha: an7581_evb: Enable Airoha SNFI SPI configconfigs/an7581_evb_defconfig+1 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 00/14] airoha: add support spi/mmc/ethernet

This is continuation of the initial patchset for airoha support.

Some are trivial fix for spi.
A new concept to setup SPI from detected NAND.

Sadly DTS node still need to be merged upstream so we are currently adding them to u-boot dtsi and it's planned to be dropped once they are accepted in upstream kernel.

Changes v2:
- Drop unused define in ethernet driver
- Use remap in ethernet driver

Christian Marangi (14):
arch: arm: dts: an7581: add Chip SCU node
net: airoha: Add Airoha Ethernet driver
airoha: Add Ethernet config to defconfig
arch: arm: dts: an7581: Add Ethernet nodes
mmc: mediatek: permit to also build for Airoha arch
arch: arm: dts: an7581: Add eMMC nodes
airoha: Add eMMC config to defconfig
regmap: Add regmap_set/clear_bits shorthands
spi: drop unneeded spi.h header include from spinand.h
spi: Introduce setup_for_spinand()
spinand: call SPI setup_for_spinand if supported
spi: airoha: Add Airoha SPI NAND driver
arm: dts: an7581: Add SNAND node
configs: airoha: an7581_evb: Enable Airoha SNFI SPI config

 arch/arm/dts/an7581-u-boot.dtsi |  90 +++
 configs/an7581_evb_defconfig    |   3 +
 drivers/mmc/Kconfig             |   2 +-
 drivers/mtd/nand/spi/core.c     |  18 +
 drivers/net/Kconfig             |   8 +
 drivers/net/Makefile            |   1 +
 drivers/net/airoha_eth.c        | 948 ++++++++++++++++++++++++++++++++
 drivers/spi/Kconfig             |   9 +
 drivers/spi/Makefile            |   1 +
 drivers/spi/airoha_snfi_spi.c   | 717 ++++++++++++++++++++++++
 include/linux/mtd/spinand.h     |   2 +-
 include/regmap.h                |  28 +
 include/spi.h                   |  11 +
 13 files changed, 1836 insertions(+), 2 deletions(-)
 create mode 100644 drivers/net/airoha_eth.c
 create mode 100644 drivers/spi/airoha_snfi_spi.c
Signature · 1 line
2.48.1