[PATCH linux 0/5] spi: aspeed: Add a "ranges" property

Cédric Le Goater clg at kaod.org
Wed Jun 29 02:20:39 AEST 2022


Currently, the Linux Aspeed SMC driver computes the decoding ranges of
each CS (AHB memory window on which the flash contents are mapped)
from the size of the detected flash device. It seems that some chips
have issues with the computed ranges and for these, it would be nice
to be able to define custom decoding ranges in the DT.

Here is a little series doing that, including a preliminary fix. Last
patch is a simple test for the AST2500 EVB. Comments welcome.



Cédric Le Goater (5):
  spi: aspeed: Fix window offset of CE1
  spi: aspeed: Introduce a "windows" device attribute
  spi: dt-bindings: aspeed: Add a ranges property
  spi: aspeed: Handle custom decoding ranges
  ARM: dts: aspeed: ast2500-evb: Add custom decoding ranges (TEST)

 drivers/spi/spi-aspeed-smc.c                  | 108 +++++++++++++++++-
 .../bindings/spi/aspeed,ast2600-fmc.yaml      |   9 ++
 arch/arm/boot/dts/aspeed-ast2500-evb.dts      |   3 +
 3 files changed, 118 insertions(+), 2 deletions(-)


More information about the openbmc mailing list