From patchwork Mon Oct 17 09:16:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?C=C3=A9dric_Le_Goater?= X-Patchwork-Id: 199 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1349069wrs; Mon, 17 Oct 2022 02:22:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6G7B+smrfjeZAyy0AdqSsjXnKiiVpPbQDDo1/bBhGAiwWygY6TqaMz4NKPpmCXRxUDGnUD X-Received: by 2002:a17:90a:d588:b0:202:aa2d:1022 with SMTP id v8-20020a17090ad58800b00202aa2d1022mr32368005pju.31.1665998572881; Mon, 17 Oct 2022 02:22:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665998572; cv=none; d=google.com; s=arc-20160816; b=N5XQxMhG+3H0cZ01I0F7O+Vcz/qK2BS5aQHCnFbF8p9N2wzZG5sSscxuKOYJdiB8Sb aYnCmF3c1/781PjZPIZuRGrD2LMJ3iDQzZbRU/VfBXwgg4Ut7HDazdruS8Zf/mlH8MlS zSPGuXD6TMKPzgPb2oZLMUvtnRYv97Z7l7BW8zrT8b5ZeD+FJzfo+fB+/NbBu13YZuyC gwFpln3V7brVmTQsMsRq/M9hio1UX875+lsUvlolLfcgq6lbXJNagzWjivLknw4BMIh7 MWahkk0/OOp3YAAgE/JoPBp0scB05qYvdR5BhsLWj6OkraN24xVoswyPAnWerQ6ijsJ7 jrWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=GAx6FYOkJ539X4KsNye0oGqIVDJoHBI2/huOy/IoBbc=; b=SoFkAM0HICGAP1F8IAbt1dfQCiiUrTvHeqHoazrFmpKqarXyerZpqwBY/d4voWKCJm lPsJoCIqnboGYmrbmvf2FaoiQym34XwXS02QOkF/rqvIdalsPAFI14pZvbpj7Inw46TO mgAEEWFTCiLkkE65Wa4kBtlRD6qsjX2Et8haZRdi3IDuZIVJ2kSwMPoiYXbFajrjEyTU fwAfOSq/OVY6RPCftD71bzE6wy2JaqIHRfN3IW9EgisutBPchix6IuEdgk7ZXJ9kOEKa K+ZvRCOQFe61EIunij5Z8QIFzVufNsnxI+rmtjL7nyNZYzBIEAHA+xn4Ej+DLRQSZduP 7q0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gn2-20020a17090ac78200b00205cc2ec8a6si15741664pjb.136.2022.10.17.02.22.40; Mon, 17 Oct 2022 02:22:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230518AbiJQJWC (ORCPT + 99 others); Mon, 17 Oct 2022 05:22:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231226AbiJQJVr (ORCPT ); Mon, 17 Oct 2022 05:21:47 -0400 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3933112AC8; Mon, 17 Oct 2022 02:21:39 -0700 (PDT) Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4MrWZr12rvz4xGl; Mon, 17 Oct 2022 20:16:36 +1100 (AEDT) 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 4MrWZh54s8z4wgv; Mon, 17 Oct 2022 20:16:28 +1100 (AEDT) From: =?utf-8?q?C=C3=A9dric_Le_Goater?= To: linux-spi@vger.kernel.org Cc: Mark Brown , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-aspeed@lists.ozlabs.org, openbmc@lists.ozlabs.org, Joel Stanley , Andrew Jeffery , Chin-Ting Kuo , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?q?C=C3=A9dric_Le_Goater?= Subject: [PATCH linux v2 0/3] spi: aspeed: Add a "ranges" property Date: Mon, 17 Oct 2022 11:16:21 +0200 Message-Id: <20221017091624.130227-1-clg@kaod.org> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746926119713240019?= X-GMAIL-MSGID: =?utf-8?q?1746926119713240019?= 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. Thanks, C. Changes in v2 : - Tested by Naresh Solanki - sent preliminary fix independently https://patchwork.kernel.org/project/linux-arm-kernel/patch/20221016155722.3520802-1-clg@kaod.org/ - changed the sysfs file exposing the register values to debugfs. - refresh on 6.1-rc1 Cédric Le Goater (3): spi: dt-bindings: aspeed: Add a ranges property spi: aspeed: Handle custom decoding ranges spi: aspeed: Introduce a "ranges" debugfs file drivers/spi/spi-aspeed-smc.c | 131 +++++++++++++++++- .../bindings/spi/aspeed,ast2600-fmc.yaml | 9 ++ 2 files changed, 138 insertions(+), 2 deletions(-)