Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3180685pxf; Sun, 21 Mar 2021 22:55:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwX2geoBBpEh7ybJbLLCJ+qt7kEiNJ6gKeBPp0cuRzRoYB1FZ6mW+eAVo8Vl7x3fVD6FCWq X-Received: by 2002:aa7:d9c8:: with SMTP id v8mr23289528eds.9.1616392530538; Sun, 21 Mar 2021 22:55:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616392530; cv=none; d=google.com; s=arc-20160816; b=vfUAyKnhhNILxS0ABfxVy9cqmbBIcKm6auvuiDOD5Zo3MjWIkgYUkyZhKfjJL+TfpD jXTWcXrWzwtIIf4cQWoCSLdYeGVlVfT5o+WnWB2mHM5WmPaYpS4nMNBQCp/Qg1+jONFB 4xBkSUOfmnTAhDGjgebXEspQje+2FNakeNz6SH7aeJ3biuqOL7Atix9iqn/xLC7eCViW MO3Ugts59q2JMJt2UjNaKmSUNMBQrwAdfm56FdWKyF9KnflW7RZ2qLRZaoPYEgGR1hB9 1RzNjQVjqsQ+rttEi0moi/ncx5uhe1EA6gNs4RcCTMqrFIE7Acv/YptD0AHZMR7iZJbj ekJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=OY4Isx6BCgAjFWDt3u0QCNIhydklpmpCbqqunmu5SWE=; b=zR3uwSLUGXxZUf8wBBhJ7iVG6J+3qso2Jf8g+syxk4TT+b11dyFySzUC/xjNk1EPP+ 5q2gFLWTyWGZZsFs3z7vADiZyLUqwkZ3EdpcwH3uxFdrey04T3HXtEH1mprzWCaGiPQb b4yrdtWpVaML25UwDtDTz+AHr8iVd/3SVCMWIQOUxKQi0ordCvwzOl3URWDYClyZ29IG WYtBr6fDEEnWgo9BbwE1Ze8nouEsgADleruteakFdOFIGKH352zHsBihtG82PiFuZyQF A3pJsnIgfQQqPXd8mBlZSpjHKgxqBoy84b9urGRCzWNHI+fwxHFdvZvgheStXPb4L2xq LAfw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c17si10465128edr.46.2021.03.21.22.55.08; Sun, 21 Mar 2021 22:55:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229987AbhCVFx4 (ORCPT + 99 others); Mon, 22 Mar 2021 01:53:56 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:26641 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229547AbhCVFxV (ORCPT ); Mon, 22 Mar 2021 01:53:21 -0400 X-UUID: 3f6ea8acbda04d57876ad6d2f7ca6cba-20210322 X-UUID: 3f6ea8acbda04d57876ad6d2f7ca6cba-20210322 Received: from mtkcas36.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1882996186; Mon, 22 Mar 2021 13:53:12 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by MTKMBS31N2.mediatek.inc (172.27.4.87) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 22 Mar 2021 13:53:08 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 22 Mar 2021 13:53:07 +0800 From: Leilk Liu To: Mark Brown CC: Mark Rutland , Matthias Brugger , , , , , , , Leilk Liu Subject: [PATCH 4/4] spi: mediatek: add mt8195 spi slave support Date: Mon, 22 Mar 2021 13:52:44 +0800 Message-ID: <20210322055244.30179-5-leilk.liu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210322055244.30179-1-leilk.liu@mediatek.com> References: <20210322055244.30179-1-leilk.liu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 3597F3A5F9E48644A278F10701EA652FB15E6B1057F2215D5892DC25101ABE122000:8 X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org this patch adds mt8195 spi slave compatible support. Signed-off-by: Leilk Liu --- drivers/spi/spi-slave-mt27xx.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/spi/spi-slave-mt27xx.c b/drivers/spi/spi-slave-mt27xx.c index 7e6fadc88cef..f199a6c4738a 100644 --- a/drivers/spi/spi-slave-mt27xx.c +++ b/drivers/spi/spi-slave-mt27xx.c @@ -77,12 +77,20 @@ struct mtk_spi_compatible { const u32 max_fifo_size; bool must_rx; }; + static const struct mtk_spi_compatible mt2712_compat = { .max_fifo_size = 512, }; +static const struct mtk_spi_compatible mt8195_compat = { + .max_fifo_size = 128, + .must_rx = true, +}; + static const struct of_device_id mtk_spi_slave_of_match[] = { { .compatible = "mediatek,mt2712-spi-slave", .data = (void *)&mt2712_compat,}, + { .compatible = "mediatek,mt8195-spi-slave", + .data = (void *)&mt8195_compat,}, {} }; MODULE_DEVICE_TABLE(of, mtk_spi_slave_of_match); -- 2.18.0