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: 16202 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:8f47:0:b0:403:3b70:6f57 with SMTP id j7csp596543vqu; Thu, 2 Nov 2023 12:39:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGdsNu7c1JAAmOHtJyKsgyOHo93pjY+JPgGlzPJ4Qvkjs00z84tt8lGRaR09+YVXOK9mgK5 X-Received: by 2002:a05:6a00:15ca:b0:6bd:66ce:21d4 with SMTP id o10-20020a056a0015ca00b006bd66ce21d4mr19700023pfu.23.1698953967990; Thu, 02 Nov 2023 12:39:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698953967; cv=none; d=google.com; s=arc-20160816; b=CR9ZjNdr+09HZnMjct5zb5mrcjvAXgIfn3t2YCNco2O/AvmXGcr81FrT2lKOv0Yqpq JC0D6aXBlYwqKRhnV4bUac9O/JDTFo9/LQRC3ct9ZTxdQfahixpBypMJAxnFLnfE2p2B NqXfdCJy8snWrW81j3VD+V2oqdYTvDCv8+RzmjheKqR1e99MKgvUD0p5QPPjk+Uy1Tq5 sT2tFKt1b91Lrzt+iMXxa5jGSZlSU86Vo6SuaLpe8EOVX+WX+5CdHzqQEjZryqOKGuAb m/KyUcE5sw7vMDb+iwu0agnO+Y7CRYn/MObhDj5o9u+EpnJ2jH8/+Xq5GNYK/1CwgTjT pAJg== 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=uogr7zU4t34ibaqbgxGWB9r8NXGxVylxADwS2sMjoTc=; fh=8JXcVcMAyQ+C9LVwILSuCqbGV/kO5Kyi4wXFg+ADpzo=; b=gXQ5A4WCq2pG995GLlfWrpX9V4Fv8Uuj/U3Qj1uk5dw1DiTkLtAfYFMERfr7RMIHLp 97qblSREIPIEfSYzOlT5BOh0wI5kxEw45HVVovmWqE9kSPdpqHak0Zu1QmKmyeVtAKO5 pPIzpng7+FJh9xPmXppXT9YBOhyXy93tMA7UqkFWcegfB9uHsYIT5j8Pr3G1/AQZCc8K tTVRcm89fX9Rg3hOPvg5h1OcSRR6yYi7Tk8bGlqSC9cgEyicUiaTKcNnQ65oYouYelMq QgwVkmsb9J590WNpxTcJrxAGAVRkN6XZUqgo7d/idUZzqk675e2zID6rhMxokJ/NnFnS mtCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hefring-com.20230601.gappssmtp.com header.s=20230601 header.b=Q9gWsxFz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id cg11-20020a056a00290b00b006bdd721a84asi175469pfb.299.2023.11.02.12.39.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 12:39:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@hefring-com.20230601.gappssmtp.com header.s=20230601 header.b=Q9gWsxFz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id DA6FF8119078; Thu, 2 Nov 2023 12:39:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377283AbjKBTiC (ORCPT + 35 others); Thu, 2 Nov 2023 15:38:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbjKBTiA (ORCPT ); Thu, 2 Nov 2023 15:38:00 -0400 Received: from mail-yw1-x112b.google.com (mail-yw1-x112b.google.com [IPv6:2607:f8b0:4864:20::112b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE1E9186 for ; Thu, 2 Nov 2023 12:37:57 -0700 (PDT) Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-5a7c011e113so16186327b3.1 for ; Thu, 02 Nov 2023 12:37:57 -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=DkDruvPVLWRZbVqTyoXqEgfeLlHfINZeH1tKnwgaVQeeUuOrGsZLy2UoF1Pi8UUq2Q 4TqvLH11ELNBc7xCfP7H4khcAaQg143/LhFnCmAzRJen1KJhH9GSmCtysVfd5eoFf0g3 VNgoF0BWCBPQ5UGGNt5d1R/mXStz747UTFOIhNZsCjpoJw8omlPCtO5lfZgyQ8pNNb/P zBKL3kLIknOik53KRslH2RKZLW0Zl2bYZdGIq+tbOuFaYSIJZQAyLX8dFOlIGSMHqWs/ 4ssLURAwPhJoFrir4rH3mnHE3iXdOeoRCEcnJa0YiPyiGjFirw0phwElqjdZCOGghMLK UiUg== X-Gm-Message-State: AOJu0YzjdJYa/9DdLv847XmYAES5f2C3n+wRJEPh3ISGjc5ktqCRGjZB a3hghORgiuH28EEtS7E1jrdKIw== 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 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 agentk.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 (agentk.vger.email [0.0.0.0]); Thu, 02 Nov 2023 12:39:24 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781482355992606465 X-GMAIL-MSGID: 1781482355992606465 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(-)