From patchwork Thu Nov 2 19:37:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Wolsieffer X-Patchwork-Id: 13444156 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D73CEC4167B for ; Thu, 2 Nov 2023 19:38:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377269AbjKBTiB (ORCPT ); Thu, 2 Nov 2023 15:38:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234422AbjKBTiA (ORCPT ); Thu, 2 Nov 2023 15:38:00 -0400 Received: from mail-yw1-x1131.google.com (mail-yw1-x1131.google.com [IPv6:2607:f8b0:4864:20::1131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 885AFFB for ; Thu, 2 Nov 2023 12:37:58 -0700 (PDT) Received: by mail-yw1-x1131.google.com with SMTP id 00721157ae682-5a7b3d33663so15979867b3.3 for ; Thu, 02 Nov 2023 12:37:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hefring-com.20230601.gappssmtp.com; s=20230601; t=1698953877; x=1699558677; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=uogr7zU4t34ibaqbgxGWB9r8NXGxVylxADwS2sMjoTc=; b=Q9gWsxFzXji2qke2tU/bD1uBkN/pjpD1h3fdx73ggWG755DTtOY4wuhWIYR6zvg8vU lLJtfLe2JL8uPZW4MUo/upXEXR9rogpekM7ApvsXR1Rdk3/qmgH9P2m/5dZzsk3SqwlH nxwLMYJ1S1atpHhWO7RjnHo0modLEOO5NPPSHJiF8+tGn0v2ngEKZf1cnDGYtqqqhrOv QgQ/EbkYbEW8G0fCBObJKkoMIn/CZ6zUKiDVHeaRW9VrpkEWXf2atUbT1VjYfdWrxVCE IS3lQjJY4GebOAR/TI82lyG78oi/GQZ4YBVvb4rsMhArrFisN50g7hHoJULbpfU7tMXh naRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698953877; x=1699558677; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uogr7zU4t34ibaqbgxGWB9r8NXGxVylxADwS2sMjoTc=; b=qPH9kCo75jbAK3Qkidr0QvsohQcBCpx/t98sTUMi/GtLQ37S2mM+xo4ba4hxDeO8yO DlLyYCLLHpAf+tDyd7aPE7FG2AN2InbqDyo120vQbasLX9luV3Ajh4j4sYtDl+gj+Syv g1Z6HSMo5OHnRx8Qpy1w0C1D4J0vqScSvkHMVOxNaEsKMrpFXUqbqpNb1MQCL3DDw/tz 13mSgW/Xalj+iknTw2e+ObIfKjP/RfI6ZLGX0gapZgwOrYvr5C7R4MR5Wu5V2vFm/a0h tkLby8fZ7B6wHRA+Lffdlc4WxY/IghaXBbNfUzkjBbGhuMbPVv2cjMPrL/DG9OsE7IRd 3XAw== X-Gm-Message-State: AOJu0YwgSJag0Sq4eMg4omgfUnVal6DtdjrXMCwbudyHlTREBHqS4klw fQs4Ihx8RMFLYDxDmPqa7KTAQLCZw08PWymYU64= X-Google-Smtp-Source: AGHT+IEGxFcOOrtvJ6cU9BZ2CGnOOPvIjlvXGVkgaylmcuyrz36fI4KJRg2FJQTlw2ceemhfetI4zA== X-Received: by 2002:a81:4a02:0:b0:5a4:3e67:35a3 with SMTP id x2-20020a814a02000000b005a43e6735a3mr664848ywa.49.1698953876935; Thu, 02 Nov 2023 12:37:56 -0700 (PDT) Received: from localhost.localdomain ([50.212.55.89]) by smtp.gmail.com with ESMTPSA id a10-20020a0ce90a000000b0065b260eafd9sm30654qvo.87.2023.11.02.12.37.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 12:37:56 -0700 (PDT) From: Ben Wolsieffer To: linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Alain Volmat , Erwan Leray , Fabrice Gasnier , Ben Wolsieffer Subject: [PATCH v2 0/5] Add STM32F7 SPI support Date: Thu, 2 Nov 2023 15:37:17 -0400 Message-ID: <20231102193722.3042245-1-ben.wolsieffer@hefring.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org This series adds support for SPI on STM32F7 processors. The STM32F7 SPI peripheral is nearly identical to the STM32F4, with the only significant differences being that it supports a wider range of word sizes, and the addition of 32-bit transmit and receive FIFOs. v2: - Add missing commit body Ben Wolsieffer (5): spi: stm32: rename stm32f4_* to stm32fx_* spi: stm32: use callbacks for read_rx and write_tx dt-bindings: spi: add stm32f7-spi compatible spi: stm32: add STM32F7 support ARM: dts: stm32: add SPI support on STM32F746 .../devicetree/bindings/spi/st,stm32-spi.yaml | 1 + arch/arm/boot/dts/st/stm32f746.dtsi | 60 +++ drivers/spi/spi-stm32.c | 455 ++++++++++++------ 3 files changed, 367 insertions(+), 149 deletions(-)