Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp9358609rwb; Thu, 24 Nov 2022 11:32:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf5DDETKQn4XVnC8CzRzRhKHuvvxD6ZDdfYh8t6S4DFbC5MIQc3yIWWkU09DPPnlTZkeNN88 X-Received: by 2002:aa7:c788:0:b0:458:b9f9:9fba with SMTP id n8-20020aa7c788000000b00458b9f99fbamr14926130eds.305.1669318356373; Thu, 24 Nov 2022 11:32:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669318356; cv=none; d=google.com; s=arc-20160816; b=XyOlbBIhLfQ/pw4hLwiY1AQ1dQcrocFHT66EKsmV8JTr773WgOkqcxDEJcmSVKYmsQ +LY8B20vx0YPW8JXuhWC4kbBrF3iV4wB+PE4/yLBtQpdUtZd3lubedHetkcPzqGZleai /NCEP//2xdCUGrRu3tFtCm3GYO7AiwsVqLlJaTQClcHOS0hPaZBykTn1dVFLUtx+vNQw 9Vn7emLB76+qv6Kt2MZ98eK8cIPu5fn8hLD8HD5b4zhtdCmzmO8nXKbIfvHovFP4Zbki M0EY6A/4zOvhrb/Ci03o7sD3pIS49rH2eeDFrxVd8BAY6rJk2q/bLbBOsXotJGpxi34I CLUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=nDTZeoqGqa5Ghq8X2pZ5P4UZ9KmxQtslaINddKrpYs8=; b=QkQnZ0PpVxPsE4AeRa0Z8cixgKuOgeG4yEX9RMX1JbRJCKmxO93QFL1L9XigSR1LZJ LyRidW8yl98VnR+y9Hk12IFT1kzA/Su5xdYObTp3izqsuDBoC93JCLdA1Rf/ET6xk8h1 Ob+5k0LkcrukXJ8hDVB9qQDT/ktaEPQgulYxGQ+nY6Inmzfwqt1UUunQBKqxmvFv+UDn +VQwqRUiBiFDplEsT9KTYRpfHFwhCxvTY2eynN9rmfy4LzoBQPkuQAeT83/J5iWhY+qi IGbTDrSoUfe+ZeWQOFvbghs//RW7wd1cICK/t3SjAYGDVgH7thkQDqjoHNeXNOns42uu hSpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=s31663417 header.b=qRDGKxIB; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmx.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds20-20020a170907725400b0078d288ddfc9si563875ejc.143.2022.11.24.11.32.11; Thu, 24 Nov 2022 11:32:36 -0800 (PST) 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; dkim=pass header.i=@gmx.net header.s=s31663417 header.b=qRDGKxIB; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmx.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229572AbiKXTOS (ORCPT + 87 others); Thu, 24 Nov 2022 14:14:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbiKXTOO (ORCPT ); Thu, 24 Nov 2022 14:14:14 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A747581581; Thu, 24 Nov 2022 11:14:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1669317246; bh=NFWnNIWqkptw3ml6zf4DoZN14+tM1IwZ1YOxSQItJOg=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=qRDGKxIB3KUwiyL5cPwS3qckpNr+fdytN1/q52WReVT+FHiy8go0kdxmp+Pwezs1l oYVW2FTw62eb7Dr149j4l0e2ERhEgAHAcumG0ld1tUsd1wai9z0Fh28z+kaqb4cCbC kLiZFEzjwUbnyprILH0tRR1rmzr39WmmgSN29WHwJ57+c3TqmjcPZwuli/VMAfYRBC wmWuWpu63LDxrE/LOJO4OvhpnCdXWqRATbwys3sANIpMN9d4B/Z6OOyHEyNDzZmILa GgUnCBYsWaRfaU2+FfMGK+oQ4aAP1rncZvtaFiI2+zmIe1g+teLBJowzI8mjQkPb3s VJ2ifp8f8qEPg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from probook ([95.223.44.31]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MXXyJ-1oPM5y40J5-00Z1jI; Thu, 24 Nov 2022 20:14:06 +0100 From: =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= To: linux-spi@vger.kernel.org, openbmc@lists.ozlabs.org Cc: Rob Herring , Krzysztof Kozlowski , =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/3] Nuvoton WPCM450 FIU SPI flash controller Date: Thu, 24 Nov 2022 20:13:57 +0100 Message-Id: <20221124191400.287918-1-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:pxBod3xIczrwLY9TifnwC2+iMmnbFLXoB3ncLDjLkc76RRm7b5V DQY3on6qpKyjtMl6Tl46ZNBFCBoIDNhbQi8ihsiK3KOpORQSJBzxsihmQ6043gmqrEboUtQ nxt77CW/A/A+ZRr/Gj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i0dr2HC+JRMqh6iGe6y viIb3qA3hUNcaUR3IIfb3W2sPcs= X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,RCVD_IN_SBL_CSS,SPF_HELO_NONE,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 This patchset adds DT bindings and a driver for the Flash Interface Unit (FIU), the SPI flash controller in the Nuvoton WPCM450 BMC SoC. It supports four chip selects, and direct (memory-mapped) access to 16 MiB per chip. Larger flash chips can be accessed by software-defined SPI transfers. The existing NPCM7xx FIU driver is sufficitently incompatible with the WPCM450 FIU that I decided to write a new driver. Changelog for v2: - Dropped the patches which have been applied in the meantime, leaving only three out of eight - Changed the binding to require both items in the reg property, because there is no need to keep the second item optional, suggested by Krzysztof Kozlowski - Various other cleanups suggested by Krzysztof Kozlowski and the kernel test robot Jonathan Jonathan Neusch=C3=A4fer (3): dt-bindings: spi: Add Nuvoton WPCM450 Flash Interface Unit (FIU) spi: wpcm-fiu: Add driver for Nuvoton WPCM450 Flash Interface Unit (FIU) spi: wpcm-fiu: Add direct map support .../bindings/spi/nuvoton,wpcm450-fiu.yaml | 66 +++ drivers/spi/Kconfig | 11 + drivers/spi/Makefile | 1 + drivers/spi/spi-wpcm-fiu.c | 508 ++++++++++++++++++ 4 files changed, 586 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/nuvoton,wpcm450-= fiu.yaml create mode 100644 drivers/spi/spi-wpcm-fiu.c =2D- 2.35.1