From patchwork Mon Jun 27 06:47:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanho Park X-Patchwork-Id: 12896263 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 90C43C433EF for ; Mon, 27 Jun 2022 06:52:12 +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=N2TNPVVy6NImitNUJ2VgmCJLJjw856e6zBWVpA7UTmY=; b=ADTOU/yc0tqD6O sDhCb1ppFhUu2/2AfbwSF2IT93ZzS3xKcpUQy3X/MEyba42UskjaE+TZnTQvIWHOH5SJmjHDEbSHH muItDXbmTIUYC7nMJC4yyeJ1xQEFT7Zmt1w5unLHyklhKxIeittveeDSIGY2iD7JK9mzdBpgzphFK /X/ujnal0o/o1x9nNI8Ll/wEbMw2nUAldkuoXWuI8SrulNDTzYhUhBU6c7qQwLVsRGfO3ttWl8S8E N4B1YGLqwCtf75njkwFAAABub7qUsZjTCr2zs/8z2ElUWj6tvEiH6N+rEDq/jph9oeWAr0d9/KS62 cHt5nFRpy+w+nINZ0peg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o5iaH-00GCMl-Oy; Mon, 27 Jun 2022 06:50:58 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o5iZ1-00GBmt-L3 for linux-arm-kernel@lists.infradead.org; Mon, 27 Jun 2022 06:49:42 +0000 Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20220627064932epoutp04b1ac0c23b00f523ed392a9259b7bfe9b~8Z4JuOxFc2038420384epoutp04W for ; Mon, 27 Jun 2022 06:49:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20220627064932epoutp04b1ac0c23b00f523ed392a9259b7bfe9b~8Z4JuOxFc2038420384epoutp04W DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1656312572; bh=KIHUOxmBHy/D6F1aB0MGazUyNOmjIsMLigYMMuWF0hU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vYxzwb/wihBE2NGSEN/D7WHtclUZYr4XrJeP9zG8PvRyakJ+AwI4wezhYTEYrfarB 1Q5GDF0QNDCsFUkVxAokSEFyI75fW2QLukFaujzTBKwCIV50EcHeRD3riSu4ITWPQY cI7uhbQ3y9nyC2gk31wNu838EkH5GVJ+gGLk+Jt0= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20220627064932epcas2p325bc5c50884ffba5f002ac5ebd7f8c24~8Z4JSwCP90596505965epcas2p3M; Mon, 27 Jun 2022 06:49:32 +0000 (GMT) Received: from epsmges2p3.samsung.com (unknown [182.195.36.102]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4LWdcr0hGHz4x9Pw; Mon, 27 Jun 2022 06:49:32 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id 3F.BB.09642.BF259B26; Mon, 27 Jun 2022 15:49:31 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p4.samsung.com (KnoxPortal) with ESMTPA id 20220627064931epcas2p4d90034c1fe583a3460f0e4613e83e6d0~8Z4ImqmwY0616106161epcas2p4q; Mon, 27 Jun 2022 06:49:31 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20220627064931epsmtrp260d3847150badfac2255b16146f6e075~8Z4IlZ5Ot2152221522epsmtrp2b; Mon, 27 Jun 2022 06:49:31 +0000 (GMT) X-AuditID: b6c32a47-5f7ff700000025aa-65-62b952fbdd47 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 5D.89.08905.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 20220627064931epsmtip2953cb9137cb83ce1b0e290d9fdc47347~8Z4IRu3-m3090630906epsmtip2f; 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 1/5] spi: spi-s3c64xx: increase MAX_SPI_PORTS to 12 Date: Mon, 27 Jun 2022 15:47:03 +0900 Message-Id: <20220627064707.138883-2-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+NgFlrKJsWRmVeSWpSXmKPExsWy7bCmme7voJ1JBhPv21g8mLeNzWLxj+dM FlMfPmGzuLxf22L+kXOsFn0vHjJb7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2BW88Yn+YUb9 G4lcSeGz3/9TYinOSDTUYi4qTgQA5pdkc/ICAAA= X-CMS-MailID: 20220627064931epcas2p4d90034c1fe583a3460f0e4613e83e6d0 X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220627064931epcas2p4d90034c1fe583a3460f0e4613e83e6d0 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_183400_0D01EE69 X-CRM114-Status: GOOD ( 15.52 ) 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 For exynosautov9 SoC, the spi can be supported up to 12. Signed-off-by: Chanho Park --- drivers/spi/spi-s3c64xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 7f0faf0d75d9..a62c7baadc8b 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -18,7 +18,7 @@ #include -#define MAX_SPI_PORTS 6 +#define MAX_SPI_PORTS 12 #define S3C64XX_SPI_QUIRK_POLL (1 << 0) #define S3C64XX_SPI_QUIRK_CS_AUTO (1 << 1) #define AUTOSUSPEND_TIMEOUT 2000 From patchwork Mon Jun 27 06:47:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanho Park X-Patchwork-Id: 12896261 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 EB2B0C433EF for ; Mon, 27 Jun 2022 06:51:13 +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=hXE5+rGpglOVVWtlEW7P6+nvcdGDavx0PbfV4PgE7gM=; b=s1dNywdqZlWXHL PT+2PGFluWx2Pc2VL9crutlwRAeBMhrcuIQh9F2VLryJlbinkV/xEJ3dIBJ6modGlBedIPX7TADkX RsJ8TKiFaggvDRYcpHvCF1VAcebDRienaC9JKJe9nH6xgMh85PSwHQNh7rEFYt48Rq1L1XuZaGfpl krYQ9o0BOrO2N/W33v+oKVK2hiwGieLOBmRmYG+zrVULj8XXPNeXzGMVzpcNJzlR3ir/L7/8+YK+R Ub8QbAhJXKk1Uh680oPLz/+ufMwD8rLmwxOo4pTGlMMUb4VfL1lo5cyuIzWVGjbo/CPFHAQtiwrS3 NWt3Gma33m4jdNGaZwjQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o5iZ7-00GBrr-Lq; Mon, 27 Jun 2022 06:49:46 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o5iZ1-00GBn5-0i for linux-arm-kernel@lists.infradead.org; Mon, 27 Jun 2022 06:49:41 +0000 Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20220627064933epoutp01a622c4e7cd79ba38ca4d6b27bcfdc7c4~8Z4J27w2-1062810628epoutp01P for ; Mon, 27 Jun 2022 06:49:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20220627064933epoutp01a622c4e7cd79ba38ca4d6b27bcfdc7c4~8Z4J27w2-1062810628epoutp01P DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1656312573; bh=aje5CEHvhfluM9KGxljECullw1hHJr49mcSeKXQWNxA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G1LgKLWiFrKXpxCR80sqFpEagbVtPyl0Z+nVskZGoRvEIYd+MDoEgXvbYp8KEFSHo LVqa/qWnV7hfmUWr0MPnBODSZ3ik5CJfghgy2vaP8yKVADcvt4AlGGV5BRB11cRY7p q1LlGLcsmR3LvCL9r7YVfVpTOTQrm3jxvhJ/4BBM= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20220627064932epcas2p4a2f7494c6def2fb36308557cfb356c77~8Z4JgH3610616106161epcas2p4z; Mon, 27 Jun 2022 06:49:32 +0000 (GMT) Received: from epsmges2p3.samsung.com (unknown [182.195.36.89]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4LWdcr1vMfz4x9Q3; Mon, 27 Jun 2022 06:49:32 +0000 (GMT) Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id 22.CB.09642.BF259B26; Mon, 27 Jun 2022 15:49:32 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p3.samsung.com (KnoxPortal) with ESMTPA id 20220627064931epcas2p3052d80fd448aed36b9414e7733c251f5~8Z4InvKqU0596505965epcas2p3J; Mon, 27 Jun 2022 06:49:31 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220627064931epsmtrp1c129c979bb0247fb8e3f103f57daffdb~8Z4ImsTyz2249822498epsmtrp1X; Mon, 27 Jun 2022 06:49:31 +0000 (GMT) X-AuditID: b6c32a47-5f7ff700000025aa-67-62b952fb6757 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 1A.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 20220627064931epsmtip2811c05fe60b4fe358f290aba4f002f5e~8Z4IaqPbQ3088130881epsmtip2W; 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 2/5] spi: s3c64xx: support loopback mode Date: Mon, 27 Jun 2022 15:47:04 +0900 Message-Id: <20220627064707.138883-3-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+NgFlrEJsWRmVeSWpSXmKPExsWy7bCmue6foJ1JBhNPMVk8mLeNzWLxj+dM FlMfPmGzuLxf22L+kXOsFn0vHjJb7H29ld1i0+NrrBYzzu9jsmj8eJPdonXvEXYHbo/rSz4x e2xa1cnmcefaHjaPzUvqPfq2rGL0+LxJLoAtKtsmIzUxJbVIITUvOT8lMy/dVsk7ON453tTM wFDX0NLCXEkhLzE31VbJxSdA1y0zB+g6JYWyxJxSoFBAYnGxkr6dTVF+aUmqQkZ+cYmtUmpB Sk6BeY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pdnKFs8mLeNzWLxj+dM FlMfPmGzuLxf22L+kXOsFn0vHjJb7H29ld1i0+NrrBYzzu9jsmj8eJPdonXvEXYHbo/rSz4x e2xa1cnmcefaHjaPzUvqPfq2rGL0+LxJLoAtissmJTUnsyy1SN8ugSvj2M4+toK7ghUrWyez NDCe5uti5OSQEDCROLXkGjOILSSwg1Fi2bsMiLisxLN3O9ghbGGJ+y1HWLsYuYBq3jNKXJ83 gwUkwSagK7Hl+StGkISIwG1Gib+N29hAHGaBO4wSj5bvYQKpEhawkDi9socRxGYRUJVYtuQo WDevgL3E4U2f2CBWyEtsmN8LdgangIPEoqdXgHo5gNbZSzw/UAlRLihxcuYTsFZmoPLmrbOZ JzAKzEKSmoUktYCRaRWjZGpBcW56brFhgVFearlecWJucWleul5yfu4mRnAUaGntYNyz6oPe IUYmDsZDjBIczEoivK+vb00S4k1JrKxKLcqPLyrNSS0+xCjNwaIkznuh62S8kEB6Yklqdmpq QWoRTJaJg1OqgSnA9f53b19+vcQLijYHC5/LvPTduNo88G2HYL7j9bOvzSoyLLwf37ktq3eu sHLBT+0pjr7Klz4ZLz0yuSPrUMQigQ93v187MPPYTu3yOzUdF/0O3p7SNuV0e6/fzBlRq55b 7978x0o2+KPiqd8vUp++uvp++czbM5wzfqlU5ajfdfLxnxzul7L0R8fLM+tk3HNnNdeKMyYH FS17YreKO/1Zj5yBV9rcIvYAW4aYa1vt5q2Ys1Xjjo3P74nK8sF1vN9+S+zf2PrFoCvz1faQ jJ6nCXmna52kXrItsHAtupe1KpjjT/62zfYPuPYuYeGb9bvVc9vLF4z6EbZfD9WqLJBnaHnv nXFTuYLNsjz+iYMSS3FGoqEWc1FxIgC2Fdia8QIAAA== X-CMS-MailID: 20220627064931epcas2p3052d80fd448aed36b9414e7733c251f5 X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220627064931epcas2p3052d80fd448aed36b9414e7733c251f5 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_234939_596244_D475AE83 X-CRM114-Status: GOOD ( 22.61 ) 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 Modern exynos SoCs can support self loopback mode via setting BIT(3) of MODE_CFG register. Previous SoCs don't have the bit so we need to add has_loopback field in the s3c64xx_spi_port_config. Exynos Auto v9 SoC has the bit and it will define the field to "true". When it is set, SPI_LOOP mode will be marked. Signed-off-by: Chanho Park Reviewed-by: Krzysztof Kozlowski --- drivers/spi/spi-s3c64xx.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index a62c7baadc8b..e17c74c0d7de 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -59,6 +59,7 @@ #define S3C64XX_SPI_MODE_BUS_TSZ_HALFWORD (1<<17) #define S3C64XX_SPI_MODE_BUS_TSZ_WORD (2<<17) #define S3C64XX_SPI_MODE_BUS_TSZ_MASK (3<<17) +#define S3C64XX_SPI_MODE_SELF_LOOPBACK (1<<3) #define S3C64XX_SPI_MODE_RXDMA_ON (1<<2) #define S3C64XX_SPI_MODE_TXDMA_ON (1<<1) #define S3C64XX_SPI_MODE_4BURST (1<<0) @@ -135,6 +136,7 @@ struct s3c64xx_spi_dma_data { * @clk_from_cmu: True, if the controller does not include a clock mux and * prescaler unit. * @clk_ioclk: True if clock is present on this device + * @has_loopback: True if loopback mode can be supported * * The Samsung s3c64xx SPI controller are used on various Samsung SoC's but * differ in some aspects such as the size of the fifo and spi bus clock @@ -149,6 +151,7 @@ struct s3c64xx_spi_port_config { bool high_speed; bool clk_from_cmu; bool clk_ioclk; + bool has_loopback; }; /** @@ -659,6 +662,9 @@ static int s3c64xx_spi_config(struct s3c64xx_spi_driver_data *sdd) break; } + if ((sdd->cur_mode & SPI_LOOP) && sdd->port_conf->has_loopback) + val |= S3C64XX_SPI_MODE_SELF_LOOPBACK; + writel(val, regs + S3C64XX_SPI_MODE_CFG); if (sdd->port_conf->clk_from_cmu) { @@ -1148,6 +1154,8 @@ static int s3c64xx_spi_probe(struct platform_device *pdev) SPI_BPW_MASK(8); /* the spi->mode bits understood by this driver: */ master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; + if (sdd->port_conf->has_loopback) + master->mode_bits |= SPI_LOOP; master->auto_runtime_pm = true; if (!is_polling(sdd)) master->can_dma = s3c64xx_spi_can_dma; From patchwork Mon Jun 27 06:47:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanho Park X-Patchwork-Id: 12896264 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 C21E0C433EF for ; Mon, 27 Jun 2022 06:52:53 +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=Sg6h3+LAOzGTsLW3DRp53y0qfmpBf145JTwr3q5QOTk=; b=T25AqNtaIutv3Q Ua8Qnmbef8U/Th8H3UZhE890/BhHvd77d4W/DoPYr+rM3UA2mmvc74HGiNAD6ARopNzYpb3lF+/7V KDtas4Sed6UNQSBhWPx5iJ0wKcD5aXA5AZUCVuWf6EmXj4zoYs7pJyNZA9d3INLH9F60BzgEqNBHH GzaiaaSBZii6sICBJvR93IdyU0PpWuIqZgUR+ln/gq6TSY1IdrJhzkJIXcmjdhscEAwK2Fe69DOvx KPlCtIrdgngpE6ftvQD9H6BTDqt3aTq0V4ebyK8kCvafmTWJc5Ne/hMmyILqm4H30XbDgaoSQ3xuD hUiyRRqUEAMTCQFhHZJA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o5iaz-00GCfq-AV; Mon, 27 Jun 2022 06:51:41 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o5iZ1-00GBnA-L4 for linux-arm-kernel@lists.infradead.org; Mon, 27 Jun 2022 06:49:43 +0000 Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20220627064933epoutp04d6c759317068505f124a9e70770a45d6~8Z4J5zN9G2037520375epoutp04a for ; Mon, 27 Jun 2022 06:49:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20220627064933epoutp04d6c759317068505f124a9e70770a45d6~8Z4J5zN9G2037520375epoutp04a DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1656312573; bh=5z+x19IHjXLCqg8eCmD1MyhqL/USWu8oisWwN3c0QFU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MSoed4f22FjsqZRRb4U8uboNsJf+lBXd7+tFG47/Z5JsDb9HWwEWCExiskTlAjTco uIyu0g7xclQAc2V6vKtfk4vldlxD75gxcTwLpd5HMPBHOnwiwmNBJAO2A52YN24xk+ n7ZuIY8p5ZbdlHdI4bI6WnKg8UUsoyP0uayvPs4o= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20220627064932epcas2p3dfef94079bcfe8f811f1d59bbb31397b~8Z4JcLJCS2915129151epcas2p34; Mon, 27 Jun 2022 06:49:32 +0000 (GMT) Received: from epsmges2p4.samsung.com (unknown [182.195.36.98]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4LWdcr1LRYz4x9Q7; Mon, 27 Jun 2022 06:49:32 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id 55.EC.09662.CF259B26; Mon, 27 Jun 2022 15:49:32 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p2.samsung.com (KnoxPortal) with ESMTPA id 20220627064931epcas2p2e1dc352f41895b294d7945c2239de362~8Z4IsbvYj2456724567epcas2p2Q; Mon, 27 Jun 2022 06:49:31 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20220627064931epsmtrp210b758ea1309d2dbf70f564305f8f3e8~8Z4IrhnDS2166021660epsmtrp2B; Mon, 27 Jun 2022 06:49:31 +0000 (GMT) X-AuditID: b6c32a48-9f7ff700000025be-99-62b952fce882 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 1E.89.08905.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 20220627064931epsmtip25afe0f913e703d45bb6699095eceaf3c~8Z4Ie5LNL3090630906epsmtip2g; 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 3/5] spi: s3c64xx: support custom value of internal clock divider Date: Mon, 27 Jun 2022 15:47:05 +0900 Message-Id: <20220627064707.138883-4-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+NgFlrCJsWRmVeSWpSXmKPExsWy7bCmme6foJ1JBp9XsVk8mLeNzWLxj+dM FlMfPmGzuLxf22L+kXOsFn0vHjJb7H29ld1i0+NrrBYzzu9jsmj8eJPdonXvEXYHbo/rSz4x e2xa1cnmcefaHjaPzUvqPfq2rGL0+LxJLoAtKtsmIzUxJbVIITUvOT8lMy/dVsk7ON453tTM wFDX0NLCXEkhLzE31VbJxSdA1y0zB+g6JYWyxJxSoFBAYnGxkr6dTVF+aUmqQkZ+cYmtUmpB Sk6BeYFecWJucWleul5eaomVoYGBkSlQYUJ2xtPX4QV75Su2TJjI2MA4T7KLkYNDQsBEYtW6 qC5GLg4hgR2MEg9bXjBBOJ+AnLtzmSGcb4wSd1+tY+xi5ATr2L3oHCtEYi+jRN/Di1AtHxkl Nv/uZQKpYhPQldjy/BUjSEJE4CajxPSzfWBVzAI3GCX2zlgPNktYIFhi14OZ7CA2i4CqxPWJ G8G6eQXsJfZvecgMsU9eYsP8XjCbU8BBYtHTK1A1ghInZz5hAbGZgWqat84GO1ZCoJdDYsdX mGYXiZ+nXkLZwhKvjm9hh7ClJD6/28sGYRdLLJ31iQmiuYFR4vK2X1AJY4lZz9oZQeHELKAp sX6XPiTIlCWO3ILayyfRcfgvO0SYV6KjTQiiUV3iwPbpLBC2rET3nM+sELaHxJb1r6FhOplR Y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g7G7as+6B1i ZOJgPMQowcGsJML7+vrWJCHelMTKqtSi/Pii0pzU4kOM0hwsSuK8F7pOxgsJpCeWpGanphak FsFkmTg4pRqYGLum9kudKe3IeXpi/uxf8/c/2D/zZIh2+OwlMQanr/9cfkh6ZfDVEwmneSRD TnuzT915Z9rxU2xuos9nV8T/e9JgXidc/lGZofx+1ISTCyMlLn6fqGh48JqMTeQD/o7lc8yk u+quteu8fbc/SLCkinlxs/Aen+9u0YlBDEX7provyd5U/9On/aT9jSdOIbwZi3a/V79VdjqR aWnNwmZG81pPk+vxqs2H4owSo+YuKO4JbctcUbdJQq9sj4mUgs/WJ84sdnJufKejnh8reLDb NHzqkjO/zs+bu+HyrvWv2mOUrra+vzXzu3x51vwaj/dvDnDUbzGPqMziV+78yVXfnvFuoZ3h M5v5iau+h3+zUmIpzkg01GIuKk4EALVjHIHxAgAA X-CMS-MailID: 20220627064931epcas2p2e1dc352f41895b294d7945c2239de362 X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220627064931epcas2p2e1dc352f41895b294d7945c2239de362 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_164923_3380427E X-CRM114-Status: GOOD ( 21.31 ) 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 Modern exynos SoCs such as Exynos Auto v9 has different internal clock divider, for example "4". To support this internal value, this adds clk_div of the s3c64xx_spi_port_config and use it if it is specified. Otherwise, use "2" which is the previous default value. Signed-off-by: Chanho Park --- drivers/spi/spi-s3c64xx.c | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index e17c74c0d7de..dd5fc8570bce 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -131,6 +131,7 @@ struct s3c64xx_spi_dma_data { * @fifo_lvl_mask: Bit-mask for {TX|RX}_FIFO_LVL bits in SPI_STATUS register. * @rx_lvl_offset: Bit offset of RX_FIFO_LVL bits in SPI_STATUS regiter. * @tx_st_done: Bit offset of TX_DONE bit in SPI_STATUS regiter. + * @clk_div: Internal clock divider, if not specified, use 2 as the default. * @quirks: Bitmask of known quirks * @high_speed: True, if the controller supports HIGH_SPEED_EN bit. * @clk_from_cmu: True, if the controller does not include a clock mux and @@ -148,6 +149,7 @@ struct s3c64xx_spi_port_config { int rx_lvl_offset; int tx_st_done; int quirks; + int clk_div; bool high_speed; bool clk_from_cmu; bool clk_ioclk; @@ -620,6 +622,7 @@ static int s3c64xx_spi_config(struct s3c64xx_spi_driver_data *sdd) void __iomem *regs = sdd->regs; int ret; u32 val; + u32 div = sdd->port_conf->clk_div ? sdd->port_conf->clk_div : 2; /* Disable Clock */ if (!sdd->port_conf->clk_from_cmu) { @@ -668,16 +671,15 @@ static int s3c64xx_spi_config(struct s3c64xx_spi_driver_data *sdd) writel(val, regs + S3C64XX_SPI_MODE_CFG); if (sdd->port_conf->clk_from_cmu) { - /* The src_clk clock is divided internally by 2 */ - ret = clk_set_rate(sdd->src_clk, sdd->cur_speed * 2); + ret = clk_set_rate(sdd->src_clk, sdd->cur_speed * div); if (ret) return ret; - sdd->cur_speed = clk_get_rate(sdd->src_clk) / 2; + sdd->cur_speed = clk_get_rate(sdd->src_clk) / div; } else { /* Configure Clock */ val = readl(regs + S3C64XX_SPI_CLK_CFG); val &= ~S3C64XX_SPI_PSR_MASK; - val |= ((clk_get_rate(sdd->src_clk) / sdd->cur_speed / 2 - 1) + val |= ((clk_get_rate(sdd->src_clk) / sdd->cur_speed / div - 1) & S3C64XX_SPI_PSR_MASK); writel(val, regs + S3C64XX_SPI_CLK_CFG); @@ -871,6 +873,7 @@ static int s3c64xx_spi_setup(struct spi_device *spi) struct s3c64xx_spi_csinfo *cs = spi->controller_data; struct s3c64xx_spi_driver_data *sdd; int err; + u32 div = 2; sdd = spi_master_get_devdata(spi->master); if (spi->dev.of_node) { @@ -889,22 +892,26 @@ static int s3c64xx_spi_setup(struct spi_device *spi) pm_runtime_get_sync(&sdd->pdev->dev); + /* Use clk_div value if it is specified, otherwise use 2 as default */ + if (sdd->port_conf->clk_div) + div = sdd->port_conf->clk_div; + /* Check if we can provide the requested rate */ if (!sdd->port_conf->clk_from_cmu) { u32 psr, speed; /* Max possible */ - speed = clk_get_rate(sdd->src_clk) / 2 / (0 + 1); + speed = clk_get_rate(sdd->src_clk) / div / (0 + 1); if (spi->max_speed_hz > speed) spi->max_speed_hz = speed; - psr = clk_get_rate(sdd->src_clk) / 2 / spi->max_speed_hz - 1; + psr = clk_get_rate(sdd->src_clk) / div / spi->max_speed_hz - 1; psr &= S3C64XX_SPI_PSR_MASK; if (psr == S3C64XX_SPI_PSR_MASK) psr--; - speed = clk_get_rate(sdd->src_clk) / 2 / (psr + 1); + speed = clk_get_rate(sdd->src_clk) / div / (psr + 1); if (spi->max_speed_hz < speed) { if (psr+1 < S3C64XX_SPI_PSR_MASK) { psr++; @@ -914,7 +921,7 @@ static int s3c64xx_spi_setup(struct spi_device *spi) } } - speed = clk_get_rate(sdd->src_clk) / 2 / (psr + 1); + speed = clk_get_rate(sdd->src_clk) / div / (psr + 1); if (spi->max_speed_hz >= speed) { spi->max_speed_hz = speed; } else { From patchwork Mon Jun 27 06:47:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanho Park X-Patchwork-Id: 12896262 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 C4F55C43334 for ; Mon, 27 Jun 2022 06:51:46 +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=0bGMvNyeVcxnd5dSKFF8jeuetrXpnwexddDtT4SJdAs=; b=d4c2b7moAr9E2M XRIcvDCJsWEMsK1ljJD+QVW4vsOyne1gEnxowL4q712YFjZ/ncb27tJDzBePrQd/M85Ie8+iEp90V Cg2YYsVOuPirGdiTu7hYi1zqJyW8V8JrNd29uxGnAE16gCNtHuBC+3LNULCB2sjfA1FEsLYwG/p3/ t4GSKkcWWrrYAIE4o2NXr9S2KyHDH86UNIoYK3CmowZFtv8hhThKAtoKASmhi5+CQuMCbUwc6gyXF KhB/ww2xjpqDALEFXGXkVw6WHnYDJwsJ/BIZkFvduk+NEpd3H9F+LGiK7WVxZtDQ/ha7s6MvT5BKU wpaM8ZuG0sNWi/pAd6Lw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o5iZr-00GC9P-Gw; Mon, 27 Jun 2022 06:50:32 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o5iZ1-00GBmx-L5 for linux-arm-kernel@lists.infradead.org; Mon, 27 Jun 2022 06:49:41 +0000 Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20220627064933epoutp0491e73f0f37ea75b9288227d2c036a723~8Z4KfvYW32051020510epoutp04M for ; Mon, 27 Jun 2022 06:49:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20220627064933epoutp0491e73f0f37ea75b9288227d2c036a723~8Z4KfvYW32051020510epoutp04M DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1656312573; bh=5Qi4uQ4SfmkVB+VbSzwx57Dt6G1IUaoGOdyjf2fRKSc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G4tP7jv1a6gQBEg6oA6qAQPTlhhOP3YX+M5PsXWFEWn5zlD4RnlcyU9rxBrza9I5E uLQAdqv5aNtA1Jz09TXDS8drbz1mGXbhlN6M3bs7iITtQXwawJywdQ8LA7BUX3vfTW oNFtajW41sW5V1oTWjYNSYsM9f9tjeaswchNiBD4= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20220627064932epcas2p2a4b1a1440b30e483eb48de706eeaf09c~8Z4JoIfdP3006230062epcas2p2k; Mon, 27 Jun 2022 06:49:32 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.36.68]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4LWdcr36Jjz4x9QG; Mon, 27 Jun 2022 06:49:32 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id B3.FF.09650.CF259B26; Mon, 27 Jun 2022 15:49:32 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p2.samsung.com (KnoxPortal) with ESMTPA id 20220627064931epcas2p2ad75d53ceabb2b0f10dfb13f5fcb0ff4~8Z4Iykc5i2456724567epcas2p2R; Mon, 27 Jun 2022 06:49:31 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220627064931epsmtrp13dc66e23ea164d5538eb24748a196c80~8Z4Ixm3BA2249922499epsmtrp1V; Mon, 27 Jun 2022 06:49:31 +0000 (GMT) X-AuditID: b6c32a46-0a3ff700000025b2-31-62b952fc3ad4 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id DE.89.08905.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 20220627064931epsmtip26e5c5d393fbf6e5068265436a053b860~8Z4IjAzDA3088130881epsmtip2X; 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 4/5] dt-bindings: samsung,spi: define exynosautov9 compatible Date: Mon, 27 Jun 2022 15:47:06 +0900 Message-Id: <20220627064707.138883-5-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+NgFlrKJsWRmVeSWpSXmKPExsWy7bCmme6foJ1JBoevi1k8mLeNzWLxj+dM FlMfPmGzuLxf22L+kXOsFn0vHjJb7H29ld1i0+NrrBYzzu9jsmj8eJPdonXvEXYHbo/rSz4x e2xa1cnmcefaHjaPzUvqPfq2rGL0+LxJLoAtKtsmIzUxJbVIITUvOT8lMy/dVsk7ON453tTM wFDX0NLCXEkhLzE31VbJxSdA1y0zB+g6JYWyxJxSoFBAYnGxkr6d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RmVeSWpSXmKPExsWy7bCSvO7voJ1JBkvO61o8mLeNzWLxj+dM FlMfPmGzuLxf22L+kXOsFn0vHjJb7H29ld1i0+NrrBYzzu9jsmj8eJPdonXvEXYHbo/rSz4x e2xa1cnmcefaHjaPzUvqPfq2rGL0+LxJLoAtissmJTUnsyy1SN8ugSvj24NW9oKXHBUzrkxj bmA8ydbFyMkhIWAisf/rTdYuRi4OIYHdjBJ7emYyQyRkJZ6928EOYQtL3G85wgpiCwm8Z5R4 eVoSxGYT0JXY8vwVI0iziMBtRom/jdvYQBxmgTuMEo+W72ECqRIW8JU4ev0QI4jNIqAqsXzG HbANvAL2El/2TYI6Q15iw/xesDingIPEoqdXgHo5gLbZSzw/UAlRLihxcuYTFhCbGai8eets 5gmMArOQpGYhSS1gZFrFKJlaUJybnltsWGCYl1quV5yYW1yal66XnJ+7iREcBVqaOxi3r/qg d4iRiYPxEKMEB7OSCO/r61uThHhTEiurUovy44tKc1KLDzFKc7AoifNe6DoZLySQnliSmp2a WpBaBJNl4uCUamBacn1e/ru2Rbv4YoVkhbaz/JO/19r/Wjn/kcQnDsuJm/ZN7cpZrndk/0y1 hITNaZOvGMX9XTDzbV9m4uescnu1CV6nedY/OvLxx/Y9vM9uCij5/HWXFMjXCxBfy7XhxIfp hZY+qpsc1LyWfZ97WUyu+fWf61Ne9k1carviZNvBO5mMk9fyaU80cZC8Eqme/tbc9ZZ+rHLr qsn3GfKWrFSee8aJs3PLqk1eRVo7St8I7NP3cfN1X3XjQg3z6yz30L0alxZ6MJ46/MJ1/Z67 Ont9DG0mCSyMcI4/yhP9Rkk2ibu+v5bj9leTiXyv1rXN0z2ZP81O2zLvJ/Or7euLD672fh1c YNCTuuPpfOX0yPBuJZbijERDLeai4kQAECmSPPECAAA= X-CMS-MailID: 20220627064931epcas2p2ad75d53ceabb2b0f10dfb13f5fcb0ff4 X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220627064931epcas2p2ad75d53ceabb2b0f10dfb13f5fcb0ff4 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_163304_D321C06A X-CRM114-Status: GOOD ( 15.04 ) 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 Define "samsung,exynosautov9-spi" for Exynos Auto v9's spi. Signed-off-by: Chanho Park Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/spi/samsung,spi.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/spi/samsung,spi.yaml b/Documentation/devicetree/bindings/spi/samsung,spi.yaml index a50f24f9359d..d51ee3e6d604 100644 --- a/Documentation/devicetree/bindings/spi/samsung,spi.yaml +++ b/Documentation/devicetree/bindings/spi/samsung,spi.yaml @@ -21,6 +21,7 @@ properties: - samsung,s3c6410-spi - samsung,s5pv210-spi # for S5PV210 and S5PC110 - samsung,exynos5433-spi + - samsung,exynosautov9-spi - tesla,fsd-spi - const: samsung,exynos7-spi deprecated: true @@ -85,7 +86,9 @@ allOf: properties: compatible: contains: - const: samsung,exynos5433-spi + enum: + - samsung,exynos5433-spi + - samsung,exynosautov9-spi then: properties: clocks: 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+NrrBYzzu9jsmj8eJPdonXvEXYHbo/rSz4x e2xa1cnmcefaHjaPzUvqPfq2rGL0+LxJLoAtKtsmIzUxJbVIITUvOT8lMy/dVsk7ON453tTM wFDX0NLCXEkhLzE31VbJxSdA1y0zB+g6JYWyxJxSoFBAYnGxkr6dTVF+aUmqQkZ+cYmtUmpB Sk6BeYFecWJucWleul5eaomVoYGBkSlQ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xj+dM FlMfPmGzuLxf22L+kXOsFn0vHjJb7H29ld1i0+NrrBYzzu9jsmj8eJPdonXvEXYHbo/rSz4x e2xa1cnmcefaHjaPzUvqPfq2rGL0+LxJLoAtissmJTUnsyy1SN8ugSvj+IdtbAWreSqu/Wti aWCcytXFyMkhIWAisevZPOYuRi4OIYEdjBJnb95ngUjISjx7t4MdwhaWuN9yhBWi6D2jxMdp r5lBEmwCuhJbnr9iBEmICNxmlPjbuI0NxGEWuMMo8Wj5HiaQKmGBEIlHXdNZQWwWAVWJ+Qfv sYHYvAL2Eu2NMCvkJTbM7wWbyingILHo6RWgXg6gdfYSzw9UQpQLSpyc+QTsOmag8uats5kn MArMQpKahSS1gJFpFaNkakFxbnpusWGBUV5quV5xYm5xaV66XnJ+7iZGcBxoae1g3LPqg94h RiYOxkOMEhzMSiK8r69vTRLiTUmsrEotyo8vKs1JLT7EKM3BoiTOe6HrZLyQQHpiSWp2ampB ahFMlomDU6qBKTLKa73U21lnPP4I9+/bcvT3lxP5HBadZXx57rq8743LBeewBMR4fa5/dv6K FcuK6NtPmsNWxIpwxC8Xm3Hwc+kn7rP1BqcVFh5QfJ/G+SakknPJ59TdYVrCbk6TP4TVCpla OBZc137WNEXrprHD5TDHs96LP8/i9552lvF40X2mLSqrFrmqLzLVK969Knz6nPmCWY8TdVTl CmYdbogu9Y8U+VHL0jPtRGFS46HHDQ/u/dpncSPefc3O2tUW162Dqj28151dZHD16o+d7BsL 7pxczPe+kPnzn0PNbMsbcvvXmeTyODjafHu3b9empFIXxej/q6vmHs+yiHjJk7nsnEv/RjuV wA1Jdb+6m++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, },