From patchwork Wed Nov 1 15:08:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Wolsieffer X-Patchwork-Id: 16142 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:abcd:0:b0:403:3b70:6f57 with SMTP id f13csp494440vqx; Wed, 1 Nov 2023 08:16:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEmhv3LHw9aUGkihWdM9zXitwC9sQEEJCpJymRaDgC/SbRnil0Uc+xNzozKO2WbHLnQrQnl X-Received: by 2002:a05:6870:2a49:b0:1ef:b62d:24c9 with SMTP id jd9-20020a0568702a4900b001efb62d24c9mr16163412oab.5.1698851801688; Wed, 01 Nov 2023 08:16:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698851801; cv=none; d=google.com; s=arc-20160816; b=Rm8vLk1eYIvOKYMynGUL02yTa8MqsbIdsmYnqiYJn3vPgXnJGPCtefL+qCnMNfdQgL E8rGGxwqCvDbJexoSpr2pTv4nSGkNe1nIX33USjAN50ONpZySbm4/MELlUe6rDjKvZ1U /KF8KbHIWwSZHlqRC45pq3fXplAwcomP6C9cSc0QAnWwrcX5ZpQBdeO6FbiJhIfdgRJl vzbbh5D6AQp2UIsNM8+FJfwuK6Z/GKc7+Bn1g1fr7OntubC3tx6yTls2lDd2mp5Ygwux aXuyT2yyrLNTfdbPnp4iGXZUy8chhEa9dCwnE+cuwoZwWvtUEcz/GHgZYztNd4Rv6EcP ge6w== 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:dkim-signature; bh=scSvTq12ck6hKrL81KpyijuxTwLdmUzADFiheIKoCgU=; fh=8JXcVcMAyQ+C9LVwILSuCqbGV/kO5Kyi4wXFg+ADpzo=; b=obh8+xZMWBWmOixzeT8N4of/jm0iUt/A2hKrS2/g3nEY7ZmthnoYBODIH/3QB7Kaxx DY6PmK8U7rxXBWbzq7K6OQXADNBOmYrnK/WlBW1hfCXSMRArXn9qorXu23IR9L54jAIw 8ccFc5w10FZtpq0BqmrYwtew2wsFENJja6AVtlmVorViUpY4XeUYRjDSAV8wLAsP119r fmQTlSVEOIFdsBTDOfPHMG6rUu5Z2+kdS3IIeO0XQ2TznZA0s+TpsIN55y/q9RFr8OxD azKWtkNpco7RZ3Ocuaff70AVliVc104rovrzbtrNMke8hujhxK9GI83LBzI+5y89i4De WdXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hefring-com.20230601.gappssmtp.com header.s=20230601 header.b=Al4PRtuD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id bi4-20020a056a02024400b005b960674526si68727pgb.779.2023.11.01.08.16.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 08:16:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@hefring-com.20230601.gappssmtp.com header.s=20230601 header.b=Al4PRtuD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id EDC718076653; Wed, 1 Nov 2023 08:16:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232860AbjKAPPv (ORCPT + 35 others); Wed, 1 Nov 2023 11:15:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229567AbjKAPPt (ORCPT ); Wed, 1 Nov 2023 11:15:49 -0400 Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 826B8A2 for ; Wed, 1 Nov 2023 08:15:47 -0700 (PDT) Received: by mail-qt1-x833.google.com with SMTP id d75a77b69052e-41cc44736f2so49411311cf.3 for ; Wed, 01 Nov 2023 08:15:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hefring-com.20230601.gappssmtp.com; s=20230601; t=1698851746; x=1699456546; 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=scSvTq12ck6hKrL81KpyijuxTwLdmUzADFiheIKoCgU=; b=Al4PRtuD4zlZWphIhzD6z//EhVgW3NV60YaR3jACu/UQy0XM91nW2dvef2gHdBDo/Q G/BbQTjYJdgIHkpOnO4lEwoFs7aeStMYGviqgU+ehNiyRlNeAqBtf8c2qycnze8uQh1l S2YADvJIwQaP7qWrOYFcozSgLDBm1w84x0sCCe8JATI3V5AQtsT5RagyD79ZNvvbUC0Z M+h01PwFJ3YzrO+Ssm/FwR5EH1/+ZpCDQWcPHctCQXRf2rTCYyhJyWoXsmMNqPK99Afw NpfpzWnXwP5PAbWBxchN4n8IcEVJtmUny1GddR0lCPkNkSWyOyk7W8TOIePg5br2FyF+ LGTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698851746; x=1699456546; 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=scSvTq12ck6hKrL81KpyijuxTwLdmUzADFiheIKoCgU=; b=oAxbzBmtZypY4emIME3aVRCfjhazjhXu+3ZoU+TI0DT2dLEFWzcN1yMZigdVQA1kMa w348Y3fmYlBKC8lFU8Jx3kluewuiheEzb2OTfjndr4OV7zD+1jpHfxoOQXrux/xbWh7d /1PL+1CEzqGUsmXRhA1X25KSeQaAPC19msfOUGS4DPreDcvibsXAErV2BHWmlfFQLv4J aIMpm6/JpHYp49y6S/fmihTTPt9EYsJR3bC+bSfJOmzaYWb3aliiltmRt39DZGEBDE7J rp8UABPZx4JyHbRtdbtKhBGoyT7BA3cWyrRRwibUeArcAi9TWe6RcFsrb87VEKdkmCEQ k1gg== X-Gm-Message-State: AOJu0YyJjsyQn0Zd+hc8Ipg67XUdbJfN31HwdWrcxMUdGueN3pq9oEIF 0DJsV6zk/yiN5ensr3DA6/i17w== X-Received: by 2002:a05:622a:1aa8:b0:41e:20b5:fc58 with SMTP id s40-20020a05622a1aa800b0041e20b5fc58mr18826579qtc.47.1698851746656; Wed, 01 Nov 2023 08:15:46 -0700 (PDT) Received: from localhost.localdomain ([50.212.55.89]) by smtp.gmail.com with ESMTPSA id dn5-20020a05622a470500b004181a8a3e2dsm1477165qtb.41.2023.11.01.08.15.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 08:15:46 -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 0/5] Add STM32F7 SPI support Date: Wed, 1 Nov 2023 11:08:05 -0400 Message-ID: <20231101150811.2747455-1-ben.wolsieffer@hefring.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 01 Nov 2023 08:16:29 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781375227097105000 X-GMAIL-MSGID: 1781375227097105000 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. 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(-)