Message ID | 20230118-mt8365-spi-support-v2-0-be3ac97a28c6@baylibre.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp453496wrn; Thu, 19 Jan 2023 09:30:52 -0800 (PST) X-Google-Smtp-Source: AMrXdXs1++ReZa95+Q9O+l4TA3t0w9SWC1Bl8N7j5Nj0zOB6zElTg44pK9Ob+iAnyh/syPNc8R3i X-Received: by 2002:a05:6a20:3d86:b0:b8:d032:6486 with SMTP id s6-20020a056a203d8600b000b8d0326486mr13914283pzi.16.1674149451881; Thu, 19 Jan 2023 09:30:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674149451; cv=none; d=google.com; s=arc-20160816; b=XxSlioUrqzjA3nDx2/5iyKPz8gX142L212/pDfu+c4FQLkfvmGaeUwe/jSZVR1p6wI ZvBU3SKdbyGeC+xAaTLugSbrzqXu1g/PJrW6S9tLEj/ewW+Enuaj5jZbH+bhn+BTxDlc EZTCnTbJ1FG7Xxj5kC3okyqDyyKqwd7UIxDnOr/dlaHOQFKqjEJWDODAkKzgUwA8tb1k gCfAELDZeSl008d/ZYwk0fJOt2jURJFj31Jk2uAtBKuFeEs0L/04qwPJMrNVgSz2BMpm GxajYMrpc4DodOl8+uPMzeopOuQz0bAvQNGN5fJUBxPrdN2H2l63hnTzLGoczw85l09G NdAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:message-id:date:from :content-transfer-encoding:mime-version:subject:dkim-signature; bh=SiCKnh1A0rDMxjwJ+8FnUzsil063oz6GksT8G3Rwl1Q=; b=c3qnYtQG+NGPxMBmKQUZuitv/yj3NVW8ejr5r9WkQa2uPolts35/CDca30GNpwyc5u 2eQEqH2wkwj96GkGLSos4xBjrxSem2KiQii2Hz+YPSzPG+PFwZ7hQirX4ocE6kU08011 8AHIKKJJ+arfAoYNyjK+WIXZjVOa8u47lEDA7xXhRWaI2E/cSHfF6KVNyl9/yevSnx26 wSP4/tcUpRrbAUR+UVb9jQ6P0qasJTK21Hz5adsD79NdDyf0ePWrNKd8GzauSpWWHqWG /cMz2IlC42M4xeVk/Eja/Lz9PqFJy6UKKD45TL39wfCjcjFuo89UURKLSLyJvIrUwV78 zaWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=LNyDZCFV; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y70-20020a638a49000000b004d0b91d7f1fsi5440460pgd.37.2023.01.19.09.30.40; Thu, 19 Jan 2023 09:30:51 -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=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=LNyDZCFV; 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 S229807AbjASR2o (ORCPT <rfc822;pfffrao@gmail.com> + 99 others); Thu, 19 Jan 2023 12:28:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229798AbjASR2n (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 19 Jan 2023 12:28:43 -0500 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1099A4FADD for <linux-kernel@vger.kernel.org>; Thu, 19 Jan 2023 09:28:36 -0800 (PST) Received: by mail-wm1-x329.google.com with SMTP id e19-20020a05600c439300b003db1cac0c1fso2578256wmn.5 for <linux-kernel@vger.kernel.org>; Thu, 19 Jan 2023 09:28:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=cc:to:message-id:date:from:content-transfer-encoding:mime-version :subject:from:to:cc:subject:date:message-id:reply-to; bh=SiCKnh1A0rDMxjwJ+8FnUzsil063oz6GksT8G3Rwl1Q=; b=LNyDZCFVPiujevJ73s6D8i8VYTVUrPVuBfnKCz/1eF9v8zJ1YHo2X+2a8USNAxW2Pf 1TfCKKNetUvikg8WC6XF9Hz9zA1NsativSJ9hCXGTsAbP3GbI59uTPtZVaola4KBBepZ X4cb9ntmYcm0ryvauWzvktBUqVLK9q/UEPS8cuOt3cTIwcBgls+/1vOteQRJucRyJpv8 sLp9akoqJWIgfLE+djMg96Twbmp24gGNnZQom/lotQm5G2QDHIs01iiEFRQ/iGAaeJyh Hhe7XFnEE61hahC0nLxuqhzPaUshHoB/CGwBSRAt0C9RGCr3MMq5zz3f/c7oiES+nUTa JZcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:message-id:date:from:content-transfer-encoding:mime-version :subject:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=SiCKnh1A0rDMxjwJ+8FnUzsil063oz6GksT8G3Rwl1Q=; b=L3k3rC8CrcgR1ZlVMm4o4ahg1HKGklNZKN3wKBf9FnUbalG5peIFbYE7Kcmq6MWDgJ 6zZuiCQfW70DYSgV0CVt+LbTXPenNpLfznQyAkRCPPsDMSk+0E5k93mQ/cDkva1RTD7l SocahOQrMjhpjzKRUl5LjkwoaGf3yo0IrgPhF7jxMctiXluXW/4je1GJlziXt/LsaFMp eoP1O445S0yua9N13G7qY72tOzF4iGZANa/W2j+72JpWkrP0vUGS5aiUDjzc5UIgweCU p4JefkzEwOuE5FV0x5GaZx8FGXbCc1A5eKtXkK1TVWEYAlX17Gn1LfYurfSGmxHPcReE Qp8Q== X-Gm-Message-State: AFqh2koyolYFSHHDHo+iz01yMB4vKIZg62U53ceqru5cMNQ7PnMVCUxI fvvWcuMPhz0D9VWEC0Yach082w== X-Received: by 2002:a05:600c:c16:b0:3da:26e5:10b6 with SMTP id fm22-20020a05600c0c1600b003da26e510b6mr11369469wmb.30.1674149314614; Thu, 19 Jan 2023 09:28:34 -0800 (PST) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id h11-20020a05600c314b00b003db2e3f2c7csm124186wmo.0.2023.01.19.09.28.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jan 2023 09:28:33 -0800 (PST) Subject: [PATCH v2 0/2] Add MediaTek MT8365 SPI support MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-b4-tracking: H4sIALJ9yWMC/32NQQqDMBBFryKz7pQkJqJd9R6li0kcakATSaIg4t0beoCuPu/D+/+EzMlzhkdzQu LdZx9DBXVrwE0UPox+rAxKqFZI2eNS+rYzmFePeVvXmAqKceisM4Y0CaiipcxoEwU3VTVs81zLyecS 0/E72mWN19/NXaLAXitSko3Qg35aOmZvE99dXOB9XdcXy2eP+LwAAAA= From: Alexandre Mergnat <amergnat@baylibre.com> Date: Thu, 19 Jan 2023 18:28:18 +0100 Message-Id: <20230118-mt8365-spi-support-v2-0-be3ac97a28c6@baylibre.com> To: Matthias Brugger <matthias.bgg@gmail.com>, Rob Herring <robh+dt@kernel.org>, Mark Brown <broonie@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> Cc: linux-arm-kernel@lists.infradead.org, Alexandre Mergnat <amergnat@baylibre.com>, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Amjad Ouled-Ameur <aouledameur@baylibre.com>, linux-mediatek@lists.infradead.org, linux-spi@vger.kernel.org X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1635; i=amergnat@baylibre.com; h=from:subject:message-id; bh=dnb60EIwMZF/t+qpJpOhEHQaGAuRMDbKO4dBLwI/lsY=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBjyX3BW9YqoQgrhB3ntOOv0c01jfvNFgBDq3Hjp16A IDcYNZKJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCY8l9wQAKCRArRkmdfjHURdTMD/ 4vL5RVu602wStR5BIiJRPHWR2ipZln37Rd1Uxu4wsWtBJcIYnwimBbnuzSrzprXdef2u5RMj145cc5 186M96G/b999VDfbUtvejkTzAQkOVCOXL0mPlm+tcCqeuqPuftIFrswP5Tv5bDbk8uO8nVLONIeqAx xVGEe+oqw27aDUlA2bJxMlBFSqYcvSvhPtp7ZERwwJuoHMiO+HngE/YrhkPB9MGUvTrkEXXN90lOFo m/QDs/httd7vB21rsdMQvQJtVmMAxq1amDFfXirs6pEO/sKWNgwmsOx2Tqak3CoMEDVqWYJZvOdqo/ y0gYXG3Okazu4vleANuHxGk6maIutIlCBvn8qChA08zD7zP0x5zroIqHrSrHmRjLcUa0ecvGBXU7XN WSjWyNvvagGFafo+iuWm1ZSErYAfS24KTQUrcflfsPQ524KnEOs8Sav8bzWsT9CUHJnTjcpW2da0l0 PzGyhCVKPXMZZ9LaGV6FcCZEO0f3Vb2n6DrrySNOzVkT1JrVCo+fmEnf5w8s0K178GW8xE5EI1RS3Q IfFbVlFRzy0zY4CoNe4p2LlXz0z6D/CtzV21kh0H2SmGi2EbWVaMGf3KI2MCbQ6DxqomeVtNGz+nS0 UlWwYQcPf+9B+Ivq1yNHAgttYMvG7B7ruEVYB9H6HWts88rVYxZCI2kDMX5g== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755469437016518446?= X-GMAIL-MSGID: =?utf-8?q?1755472935922753313?= |
Series |
Add MediaTek MT8365 SPI support
|
|
Message
Alexandre Mergnat
Jan. 19, 2023, 5:28 p.m. UTC
Hi,
This patch series adds SPI support for MT8365-EVK board.
The SPIDEV is enabled, it can be used through the board pin header,
as described directly on the PCB.
This series depends to another one which add support for
MT8365 SoC and EVK board. Link [1].
Test:
- Loopback MOSI and MISO pins
- Issue the following command:
spidev_test -D /dev/spidev0.0 -v
- RX line should be the same as TX line.
Regards,
Alex
[1]: https://lore.kernel.org/linux-mediatek/20230101220149.3035048-1-bero@baylibre.com/
To: Rob Herring <robh+dt@kernel.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
To: Matthias Brugger <matthias.bgg@gmail.com>
To: Mark Brown <broonie@kernel.org>
Cc: devicetree@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-mediatek@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-spi@vger.kernel.org
Cc: Amjad Ouled-Ameur <aouledameur@baylibre.com>
Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
---
Changes in v2:
- Add Amjad Ouled-Ameur SoB.
- Link to v1: https://lore.kernel.org/r/20230118-mt8365-spi-support-v1-0-842a21e50494@baylibre.com
---
Alexandre Mergnat (2):
arm64: dts: mediatek: add spidev support for mt8365-evk board
spi: spidev: add new mediatek support
arch/arm64/boot/dts/mediatek/mt8365-evk.dts | 24 ++++++++++++++++++++++++
drivers/spi/spidev.c | 2 ++
2 files changed, 26 insertions(+)
---
base-commit: 8b6cfcce3ce939db11166680a57253c39110f07e
change-id: 20230118-mt8365-spi-support-0d96bc55a4a0
Best regards,