Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4206564rwi; Mon, 17 Oct 2022 03:06:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7xxFE17KbwD6mdmj8AXJ3tSAl2Fws4CI3mv7CNNO16hVu3t2EqqJSx34GN7AEJsmFEqxWx X-Received: by 2002:a17:907:7f25:b0:78d:e85e:fe12 with SMTP id qf37-20020a1709077f2500b0078de85efe12mr8047303ejc.553.1666001214735; Mon, 17 Oct 2022 03:06:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666001214; cv=none; d=google.com; s=arc-20160816; b=q35WcU0eFZTVtDZfvbvftdcm9zX8Z9ERMZLRpkJSHzL4Q0XFhSWiv7Avvb9xhODD9q nRg5aiOGZvCTr679Cj3nI1Pdw6kYnivuP+pGFP/ycCpvFWXmVJOpBtNVJh4TLa6fi/48 Aei3I33tceu4NK+v8xXytu5i+ikvWggyCRQ08sjS4Qzb7eH3DJAQPmx0MYywbW9h9//x 5ckMFYKWeriwVGy2WzQpl46an1EAmrE7BbKpocWgCF6RKsTp6m/9RFcusztKY46kmWS1 NyMV8DWkut+O+kIbN7TcDUvfsF1ZMhQ7yjhv3P+BzOnFaIB5BjYiPpbI2gNT0Mt0vXZA 5Bqg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ho6-20020a1709070e8600b0077afe48c791si8998757ejc.538.2022.10.17.03.06.29; Mon, 17 Oct 2022 03:06:54 -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=20Le=20Goater?= 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=20Le=20Goater?= 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 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(-) -- 2.37.3