From patchwork Mon Jun 27 06:47:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanho Park X-Patchwork-Id: 12896282 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5D729C43334 for ; Mon, 27 Jun 2022 06:54:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:References:MIME-Version:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=rShVavGu3wuoi5RB4S33j/1SE3sH/jzXEttbSYFEsu8=; b=RIGuglp3sgNOGx MBWvlunIKsbtL5YmVnC2m0+KJU6cPYGYoJkA9buxAnhr7hf0VJlaIS7vtOmvLu9w+vsHHNBs2iKmZ WNhfxBkjE8AV26kU69MMN+EwcCp9bK6s9hBQidXkJUsPFuTRpTIjyGNI9f0+bvaebN+YZWT4CS7uP 2CLlfyDLvoAv1YRQqcnbyoPI7onUV8DyaYdeL+IEELHMMNqR5X6HFKAuoJjgYF7rhQcl1bpYoRizE 19INeSicetOVDovcdy11sDGhg60xWJ7Gs/4qqv0VhdCyTc7U2NmpcU0OH/JlhvqoL49AWm6aactgv BYRIyWOKT05J6D9zhMLw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o5ibu-00GD8g-6i; Mon, 27 Jun 2022 06:52:38 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o5iZ1-00GBn1-VX for linux-arm-kernel@lists.infradead.org; Mon, 27 Jun 2022 06:49:43 +0000 Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20220627064933epoutp0226f6f55a5d273e791ae2a0cb033c6e5d~8Z4KkWOPP1607216072epoutp02j for ; Mon, 27 Jun 2022 06:49:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20220627064933epoutp0226f6f55a5d273e791ae2a0cb033c6e5d~8Z4KkWOPP1607216072epoutp02j DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1656312573; bh=8zllR9hyJ8dKnQ6gq7P0sG117iOyo/OTY/EOHg1rNjI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sQE2AZtz8GZ2F9HFL9en4a1Re25RJM6/bKaOgyNIW8FW0iX6Hu7s9t1H/TmzOgDt1 JLhZr8ct4vezYioMRyY5LITLRcV1MkU1Jnmunz89DQx5C2F1aSigBUJJm0NdhNUNRT yXwgANrREcrWPC5SZztAnm73HdZUfbus+V++T0oM= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20220627064932epcas2p4c2e3bdc39c17b362b5e8a11965b76391~8Z4Js1BvZ0616106161epcas2p41; Mon, 27 Jun 2022 06:49:32 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.36.102]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4LWdcr368Sz4x9Pw; Mon, 27 Jun 2022 06:49:32 +0000 (GMT) Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id 93.FF.09650.CF259B26; Mon, 27 Jun 2022 15:49:32 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p1.samsung.com (KnoxPortal) with ESMTPA id 20220627064931epcas2p19407c5c3da3319cfb55dcb2c6d517256~8Z4I1-5Yi1673416734epcas2p1X; Mon, 27 Jun 2022 06:49:31 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20220627064931epsmtrp2c026b9dc08fe93b205048abcc9b81026~8Z4I1PsG82152221522epsmtrp2c; Mon, 27 Jun 2022 06:49:31 +0000 (GMT) X-AuditID: b6c32a46-0a3ff700000025b2-2f-62b952fceccc Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id DA.E5.08802.BF259B26; Mon, 27 Jun 2022 15:49:31 +0900 (KST) Received: from localhost.localdomain (unknown [10.229.9.51]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220627064931epsmtip2affe897662142e83b378f306a93aa11e~8Z4Iphwwh3217532175epsmtip29; Mon, 27 Jun 2022 06:49:31 +0000 (GMT) From: Chanho Park To: Krzysztof Kozlowski , Andi Shyti , Mark Brown , Rob Herring , Krzysztof Kozlowski Cc: Alim Akhtar , devicetree@vger.kernel.org, linux-spi@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Chanho Park Subject: [PATCH 5/5] spi: s3c64xx: add spi port configuration for Exynos Auto v9 SoC Date: Mon, 27 Jun 2022 15:47:07 +0900 Message-Id: <20220627064707.138883-6-chanho61.park@samsung.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220627064707.138883-1-chanho61.park@samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrCJsWRmVeSWpSXmKPExsWy7bCmqe6foJ1JBrMvC1s8mLeNzWLxj+dM FlMfPmGzuLxf22L+kXOsFn0vHjJb7H29ld1i0+Nrr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fVmIpzkg01GIuKk4EACdAOxnyAgAA X-CMS-MailID: 20220627064931epcas2p19407c5c3da3319cfb55dcb2c6d517256 X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220627064931epcas2p19407c5c3da3319cfb55dcb2c6d517256 References: <20220627064707.138883-1-chanho61.park@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220626_234940_454740_24357C6B X-CRM114-Status: GOOD ( 15.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add exynosautov9 spi port configuration. It supports up to 12 spis and has DIV_4 as the default internal clock divider. The spi also has an internal loopback mode to run a loopback test. Signed-off-by: Chanho Park --- drivers/spi/spi-s3c64xx.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index dd5fc8570bce..67b1fecf6fc6 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -1447,6 +1447,19 @@ static const struct s3c64xx_spi_port_config exynos5433_spi_port_config = { .quirks = S3C64XX_SPI_QUIRK_CS_AUTO, }; +static struct s3c64xx_spi_port_config exynosautov9_spi_port_config = { + .fifo_lvl_mask = { 0x1ff, 0x1ff, 0x7f, 0x7f, 0x7f, 0x7f, 0x1ff, 0x7f, + 0x7f, 0x7f, 0x7f, 0x7f}, + .rx_lvl_offset = 15, + .tx_st_done = 25, + .high_speed = true, + .clk_from_cmu = true, + .clk_ioclk = true, + .clk_div = 4, + .has_loopback = true, + .quirks = S3C64XX_SPI_QUIRK_CS_AUTO, +}; + static struct s3c64xx_spi_port_config fsd_spi_port_config = { .fifo_lvl_mask = { 0x7f, 0x7f, 0x7f, 0x7f, 0x7f}, .rx_lvl_offset = 15, @@ -1487,6 +1500,9 @@ static const struct of_device_id s3c64xx_spi_dt_match[] = { { .compatible = "samsung,exynos5433-spi", .data = (void *)&exynos5433_spi_port_config, }, + { .compatible = "samsung,exynosautov9-spi", + .data = (void *)&exynosautov9_spi_port_config, + }, { .compatible = "tesla,fsd-spi", .data = (void *)&fsd_spi_port_config, },