From patchwork Tue Jun 20 08:21:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leilk Liu X-Patchwork-Id: 9798733 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 793F860328 for ; Tue, 20 Jun 2017 08:37:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6AF6824B44 for ; Tue, 20 Jun 2017 08:37:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5F6F728464; Tue, 20 Jun 2017 08:37:32 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 F372B24B44 for ; Tue, 20 Jun 2017 08:37: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:References:In-Reply-To: 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: List-Owner; bh=X4zN+BVYMrS5FtdaaUSmv4UCKzuzeFu/Sz3Y5VC6rcQ=; b=gx2PlIqCqNOfla awyJxneg3Xoq/1rMiZzZdUxqCCetZEGeXxzSKeMeBEgNcObJ66YOJiKaetOICCH6voi7KhqFe8cpc E7iU5uv/86tMSWh063RXstifXE7QkKtyEztOKr1P5OWIwXsVekL/EbukUUSckN7YZ5NhZMkgzvMHX F/0t/lgNPhLlZLz5PelTdejk1aQwixKL8jDYS22udidViqFnTvBFZ7j2n4JZQMmoQHsdLywcTx6vA 7FgTfCZbwRdJwHZga2ge1vcqRKOHeuwclQnoeE3hKXIewaMZCFipwSplmAho2XL4leKLhxaVrTUDr 3a5009wP9FNKAUwDmGXg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dNEfC-0005mW-VN; Tue, 20 Jun 2017 08:37:30 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dNEey-0005IT-Td; Tue, 20 Jun 2017 08:37:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=GzmShAn9SxD39/vGSBGK8QDWNmstFqlDOakL3wCoBNo=; b=gJfYonCkDxCbMv8W3qDQeiLRy UX5o7fIao0thWIlohO9h1RRsu7Sc1a9/ap2IpU0aYUR9BuSt5+yLNX3R3xIfFZCSLOoGqXWUFYz2Y 5Ypn2JleJ8J+76E4YOi2QHu9zQhLon7i6jlrLjj5FrElG48+szAef1gdz5a6m44zeVDMUQ4f7QCJb Rm0YkWUN3WUWq7jyQGeUiSnVF2dygX74pwoZApQ50yU0zTUoMNLmYAmjlFAHKrJKML1lHjPgDvCiP OyywKSC3gOAmimE3PMWLnjkpuWkuxDzg5H51DjHUmYKKAg+ebWxKIZSSTvLY+33E4q0Brseu0McqE eVHJv7CBA==; Received: from [218.249.47.110] (helo=mailgw01.mediatek.com) by casper.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dNEQ3-0003MF-CR; Tue, 20 Jun 2017 08:21:53 +0000 Received: from mtkcas32.mediatek.inc [(172.27.4.250)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1356060266; Tue, 20 Jun 2017 16:21:13 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by MTKMBS31DR.mediatek.inc (172.27.6.102) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Tue, 20 Jun 2017 16:21:12 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Tue, 20 Jun 2017 16:21:11 +0800 From: Leilk Liu To: Mark Brown Subject: [PATCH 2/2] spi: mediatek: add spi support for mt2712 IC Date: Tue, 20 Jun 2017 16:21:07 +0800 Message-ID: <1497946867-25708-3-git-send-email-leilk.liu@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1497946867-25708-1-git-send-email-leilk.liu@mediatek.com> References: <1497946867-25708-1-git-send-email-leilk.liu@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170620_092152_444918_2636C865 X-CRM114-Status: GOOD ( 13.62 ) 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, Leilk Liu , Sascha Hauer , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, 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 this patch add support for mt2712 IC. Signed-off-by: Leilk Liu Reviewed-by: Matthias Brugger --- drivers/spi/spi-mt65xx.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/spi/spi-mt65xx.c b/drivers/spi/spi-mt65xx.c index ec7755b..86bf456 100644 --- a/drivers/spi/spi-mt65xx.c +++ b/drivers/spi/spi-mt65xx.c @@ -105,6 +105,10 @@ struct mtk_spi { static const struct mtk_spi_compatible mtk_common_compat; +static const struct mtk_spi_compatible mt2712_compat = { + .must_tx = true, +}; + static const struct mtk_spi_compatible mt7622_compat = { .must_tx = true, .enhance_timing = true, @@ -130,6 +134,9 @@ struct mtk_spi { { .compatible = "mediatek,mt2701-spi", .data = (void *)&mtk_common_compat, }, + { .compatible = "mediatek,mt2712-spi", + .data = (void *)&mt2712_compat, + }, { .compatible = "mediatek,mt6589-spi", .data = (void *)&mtk_common_compat, },