Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 08AD8C433EF for ; Tue, 28 Jun 2022 16:21:22 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4LXVG93lFpz3chx for ; Wed, 29 Jun 2022 02:21:21 +1000 (AEST) Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4LXVFg5fx1z3btt for ; Wed, 29 Jun 2022 02:20:55 +1000 (AEST) Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4LXVFc39qSz4xYC; Wed, 29 Jun 2022 02:20:52 +1000 (AEST) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4LXVFW5g0nz4xD5; Wed, 29 Jun 2022 02:20:47 +1000 (AEST) From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: openbmc@lists.ozlabs.org Subject: [PATCH linux 0/5] spi: aspeed: Add a "ranges" property Date: Tue, 28 Jun 2022 18:20:39 +0200 Message-Id: <20220628162044.1121337-1-clg@kaod.org> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Jeffery , Chin-Ting Kuo , Joel Stanley , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" Hello, 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. Thanks, C. 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(-) -- 2.35.3