Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp441054imd; Wed, 31 Oct 2018 23:03:31 -0700 (PDT) X-Google-Smtp-Source: AJdET5ewTMnCq+D/nSGyBnTfrE3YYQgScYTP9t+3a5jC58sie60l0Nh1YE4za7Op/K9Hrk6dsKux X-Received: by 2002:aa7:814f:: with SMTP id d15-v6mr6531458pfn.78.1541052211898; Wed, 31 Oct 2018 23:03:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541052211; cv=none; d=google.com; s=arc-20160816; b=Ly6yNSgVlXnmzA+yiG1Lv69hNPZ96hyzIYpDLU/MWWS6+SQD59d7YBDF2HpDZg6q3b tD2Ut5Os8XE98BIAriLdVhWFPLzpH2sXs/RRxyWJOtFkg5sK7D2+pNWF5uVP2WKLgiNz 7hOmzrtV/Zp931PYPi7YQL5NOyvWE9fmye/B8IKF9R69mn47qECl+T621ljuiE1li0lN VIR630MdfAThXA7oSF3wpxKV/15reQ9e76aytod/EEUauwqnp6paX62+tRzsFBrGeDaZ Df74LK6RzWi2VwlpvYKNTmK2cb7WrNluhY+gkQNxEO84jeBhD4YiqlKdPJXCFvYGgsZB EuWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=tEmBriALKG9k7Vo+zQhiZnRsLozlhhT5bGILMDCd2+A=; b=zOnxMHCakEsahaP56LdpUsysBkwKabqt6eTSvkk675JJWG1mHdCPq6g0GxcvqyQevB MKr7IHbwbjYsAD7xBz+nJ+148FSEoyIcVbeJUEptXkydMPYMjj8WM5ciWKcqD+3iJQ8G 7DnvBpow5P32RpkYXcyQ0is/eI7tlqdzNYHX4jvqk6QiPgDyPGBEsBYUn221yAGAuCWu aStqLoAT3s+SUOilDPw1ob1ndBAjnZkyRbdwffbArdoZIxu0ib5oavS3SExHVEm5rGX4 a2b9gkPv72sG1mTEsJRL+aYfhFR/zz0IcvJmg3RQd/m9dQyZWnmyku4n+0nlrLONUufJ 4f5A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o10-v6si2846528pgl.134.2018.10.31.23.03.16; Wed, 31 Oct 2018 23:03:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727727AbeKAPE0 (ORCPT + 99 others); Thu, 1 Nov 2018 11:04:26 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:8784 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727573AbeKAPEZ (ORCPT ); Thu, 1 Nov 2018 11:04:25 -0400 X-UUID: db122461963b44099a6c29d044e28b65-20181101 X-UUID: db122461963b44099a6c29d044e28b65-20181101 Received: from mtkcas34.mediatek.inc [(172.27.4.250)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1894429694; Thu, 01 Nov 2018 14:02:51 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by MTKMBS31N1.mediatek.inc (172.27.4.69) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 1 Nov 2018 14:02:49 +0800 Received: from localhost.localdomain (10.17.3.153) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 1 Nov 2018 14:02:48 +0800 From: Leilk Liu To: Mark Brown CC: Mark Rutland , Matthias Brugger , Sascha Hauer , , , , , , Leilk Liu Subject: [PATCH 2/2] spi: mediatek: add spi support for mt8183 IC Date: Thu, 1 Nov 2018 14:02:19 +0800 Message-ID: <1541052139-8845-3-git-send-email-leilk.liu@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1541052139-8845-1-git-send-email-leilk.liu@mediatek.com> References: <1541052139-8845-1-git-send-email-leilk.liu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org this patch add support for mt8183 IC. Signed-off-by: Leilk Liu --- drivers/spi/spi-mt65xx.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/spi/spi-mt65xx.c b/drivers/spi/spi-mt65xx.c index 0c2867d..9ee1fe9 100644 --- a/drivers/spi/spi-mt65xx.c +++ b/drivers/spi/spi-mt65xx.c @@ -120,6 +120,12 @@ struct mtk_spi { .must_tx = true, }; +static const struct mtk_spi_compatible mt8183_compat = { + .need_pad_sel = true, + .must_tx = true, + .enhance_timing = true, +}; + /* * A piece of default chip info unless the platform * supplies it. @@ -150,6 +156,9 @@ struct mtk_spi { { .compatible = "mediatek,mt8173-spi", .data = (void *)&mt8173_compat, }, + { .compatible = "mediatek,mt8183-spi", + .data = (void *)&mt8183_compat, + }, {} }; MODULE_DEVICE_TABLE(of, mtk_spi_of_match); -- 1.7.9.5