From patchwork Thu Jan 19 16:28:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13108353 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 583C1C46467 for ; Thu, 19 Jan 2023 16:29:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230136AbjASQ3B (ORCPT ); Thu, 19 Jan 2023 11:29:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229677AbjASQ3A (ORCPT ); Thu, 19 Jan 2023 11:29:00 -0500 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13D8EE3BB for ; Thu, 19 Jan 2023 08:28:58 -0800 (PST) Received: by mail-wr1-x433.google.com with SMTP id q10so2419257wrs.2 for ; Thu, 19 Jan 2023 08:28:57 -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=KyDTae+yIRm9B46y4fh6l6TTAmMj8UP4bhexXvaxQvg=; b=jQmM25167/Sn9MWbEEi7q8VYIVZHNgon8DyMdOgJCTr9GR1WuYLMkyIHkOf+KPaf6Q qUkEZ82pmtBBSKocFxUDWgHD0OLIUMPR1EBi2Pp2x6U/tWE78MhwQZ1aOjpJllx4k56D tzP70DHL16qp514tucSo9s9AKLuq4ILNJ+rd/Db75VCaEdppiC6BAW1rhdVXDlnNhRcx ikHz6B7jXfJ2J0qBCXWaUO6gE7SLOisgUfgM5dlPop+8KrIuII43CKJ2hodbxjViJD75 VP3NOJq9R3x8U6WftOTdcYAQb7v3ufd3XyeFsCjpCS7tztVGs5XmspmRSVxb9lVHXtNg wSsA== 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=KyDTae+yIRm9B46y4fh6l6TTAmMj8UP4bhexXvaxQvg=; b=t6FqGWDbpNZkuv9EWGrHJD+PNPjVwsYVnvcvXBLmhoBcdB34Y4Giz54MXocZCuu9P/ O3MYdodIplsYaUBIwaYALn6M+MObrkq33AzzU0WPL3DdTstuwDVX11P4AHvG8JxRDTgp AEVkzCSMAqhrfyUCy4Drs2D2Cid6KVXHBEJdnLzEEg8vNMGIbenRblP6+YfkPNmYf3p+ ED/2VM+dhD5vrmjKxp8eHjmnMrqu5groB30V2Iwur2boOb9MVLOTKJ58HtUCwKjWjDQG LNIw5PPzPrmZswdYRxcGIoKy21nTrRHoJ98RRVHUC9yNixG1awGgs9TfiobpF9Xco+Xb Zvcg== X-Gm-Message-State: AFqh2koL7RLk0nBD2pxRsw7xMZ1OPTAwm0HQ96GonRiNTdSpvcofrUFD TzX3mkTpq+ts92CQUnACDGa0qw== X-Google-Smtp-Source: AMrXdXv+CmLOrA89B0ZuZyKvu9Y6N46QigmiVMi0IyY1PCKErMDy0IN7Aid9IuYATD/a9LBe7hsUOQ== X-Received: by 2002:a05:6000:689:b0:2bd:ffad:1bce with SMTP id bo9-20020a056000068900b002bdffad1bcemr11263798wrb.59.1674145736528; Thu, 19 Jan 2023 08:28:56 -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 f7-20020a5d6647000000b002bbeb700c38sm29008771wrw.91.2023.01.19.08.28.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jan 2023 08:28:55 -0800 (PST) Subject: [PATCH 0/2] Add MediaTek MT8365 SPI support MIME-Version: 1.0 X-b4-tracking: H4sIAMBvyWMC/w3LwQ5AMAwA0F+RnjXZMMHfdNPQhFlWXBb/bsd3eAWUs7DC0hTI/IrKFSts20DYKW 6MslZDZ7reWDvheU/96FCToD4pXflGs86jD87RQAZq9KSMPlMMe63xOY7v+wFAMS4raQAAAA== From: Alexandre Mergnat Date: Thu, 19 Jan 2023 17:28:48 +0100 Message-Id: <20230118-mt8365-spi-support-v1-0-842a21e50494@baylibre.com> To: Krzysztof Kozlowski , Mark Brown , Rob Herring , Matthias Brugger Cc: linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, Alexandre Mergnat , linux-arm-kernel@lists.infradead.org X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1434; i=amergnat@baylibre.com; h=from:subject:message-id; bh=zgfYtWJl6Qnh+hLsShyx1UnAkEV+3eaUlo+MkmgoDbQ=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBjyW/GdVwaejjtWKRvxKzRFY+EaDyo/lXcw1dm3b7c BghChKGJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCY8lvxgAKCRArRkmdfjHURVPHEA CvuZFIUu1KDwRFFmDhM1p3ChGZDGxZhGCrp3BOOs7Mmoku/x9997da+lBrVEZ+5Kwpi4sm/2UV9W4g 47uNrjzbVfOPUJDqFfJDKk/FMEo2t2LauRdVmOG6zNHUj2/XKa0CU8wt8vVQE4XxH9nvX0ewx+k8IX DyjnKgV7dwjYD0T1JNMB+8iSDiSTtbEdFBvEc0jrMZSPAJRGk8TJX00ttRwWWs8VTQ3LFgCKJb85Ix blfxbAAwqg6cvy//4jErY0QNhrPEIoLrbGLbOaekvOhKeopaWyIGZFVhLifWtCSNykjnb8umEqvz35 ekvplHL+BK7TYjX+H0bGy4uhoRkTGKGl0210Tid45WkfpqX3CMQaMGHMzqzhQG5xPUc1VvL0DccZCS /Gbc/uXRyJCLhU5oVWCyYUNNi0SOKttpVw+ZJVfiO/NYXFAmBEKtROZx8L4I4SFoeTEEE1qo9B/+Ln Nm/3pD4ZOPHlsrzNFfDkOTIEaAsgSa3o0NvP0YQbJzZ4P6BVLSxAkHyGvVacrw05mNWdcbMw5gX000 oYRe5+d9rpLg+UjuAIhtQRVD07hq4lsUxYu5PGVuQZc/qEwC0MElkgEJEnJc2uGK4RpPicKq99DW64 9JEM8NsHRlfWoYA+SWcz1KF8CmEpMUUSIvb4XgLYXLI/n3UET3fz8Arn1Vkw== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org 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 To: Krzysztof Kozlowski To: Matthias Brugger To: Mark Brown 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 Signed-off-by: Alexandre Mergnat --- 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,