From patchwork Mon Sep 17 02:19:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leilk Liu X-Patchwork-Id: 10602007 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F2B2F15E8 for ; Mon, 17 Sep 2018 02:21:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E11AB291FC for ; Mon, 17 Sep 2018 02:21:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D3B7A295D7; Mon, 17 Sep 2018 02:21:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6E74D291FC for ; Mon, 17 Sep 2018 02:21:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=cDQSehT12KoK/cA0BFIUlxKoOIjDBqBJ0QwZ6qcGCws=; b=ZEQFLJ+MJEpNBi Dk+jWHH/mRN/KWvNzyz2M5HjuI95SGgWnTWug8/gHz0XqjGJQ4cmxUBmcrTRtOCWLNNriD30fNTLL TwqltzHyYKqentPxwdNkr0E017u91gUC9wZtIwxJhuFKWf4lkkY2rQqMC3BhInH9cYZgr2S+NmHEh qyDBPVH/2lKTTqiA33iuOKtHmQIfM+IVBpiXr4/ZBUWtvm/dKDQ1l4174JoMeEhVaDmTB7fL6BUHs dYobok+zw4VdW9BZaodUD1aGBCsvYi4NmbjgU8eWaoOkWUWePzGg23iEe4iCfdXhUnYTjjOLakbW4 oOeKUfJzzn9FDmsXt9tQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g1jA9-0004gc-K7; Mon, 17 Sep 2018 02:21:21 +0000 Received: from [210.61.82.184] (helo=mailgw02.mediatek.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g1j9P-00031z-MB; Mon, 17 Sep 2018 02:20:40 +0000 X-UUID: 1e39bc4a0dcf4305abaa4006dd547f92-20180917 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 2145018832; Mon, 17 Sep 2018 10:19:32 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Mon, 17 Sep 2018 10:19:31 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Mon, 17 Sep 2018 10:19:30 +0800 From: Leilk Liu To: Mark Brown Subject: [PATCH v3 0/3] Add Mediatek SPI slave driver Date: Mon, 17 Sep 2018 10:19:19 +0800 Message-ID: <1537150762-7072-1-git-send-email-leilk.liu@mediatek.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-TM-SNTS-SMTP: 32CEBE71047435EAFD9724CA7509BA5A6850123689BA99CA9CE9AE3C8615D7E92000:8 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180916_192035_886780_575ABD4B X-CRM114-Status: GOOD ( 10.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Sascha Hauer , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, yt.shen@mediatek.com, linux-mediatek@lists.infradead.org, Matthias Brugger , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From 82bced99683343899dea4634452940b15d6374eb Mon Sep 17 00:00:00 2001 From: Leilk Liu Date: Mon, 17 Sep 2018 10:07:45 +0800 Subject: [PATCH v3 0/3] Add Mediatek SPI slave driver v3: 1. Fix Rob Herring review comment about bindings. 2. remove unused variables in driver. v2: 1. Fix Sean Wang review comment. 2. remove unused register and offset define. 3. update bindings file with assigned-clocks and assigned-clocks-parents. v1: This series are based on 4.19-rc1 and provide three patches to add mediatek spi slave driver. Leilk Liu (3): spis: mediatek: add bindings for Mediatek MT2712 soc platform spis: mediatek: add spi slave for Mediatek MT2712 arm64: dts: Add spi slave dts .../devicetree/bindings/spi/spi-slave-mt27xx.txt | 32 ++ arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 11 + drivers/spi/Kconfig | 8 + drivers/spi/Makefile | 1 + drivers/spi/spi-slave-mt27xx.c | 553 +++++++++++++++++++++ 5 files changed, 605 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-slave-mt27xx.txt create mode 100644 drivers/spi/spi-slave-mt27xx.c