From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 727D4C4332F for ; Thu, 13 Jan 2022 12:25:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234843AbiAMMZS (ORCPT ); Thu, 13 Jan 2022 07:25:18 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:25418 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234763AbiAMMYm (ORCPT ); Thu, 13 Jan 2022 07:24:42 -0500 Received: from epcas5p1.samsung.com (unknown [182.195.41.39]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20220113122440epoutp033339aba6ee10bae6d117377c9db7a6b3~J1AqJu1si1645516455epoutp03t for ; Thu, 13 Jan 2022 12:24:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20220113122440epoutp033339aba6ee10bae6d117377c9db7a6b3~J1AqJu1si1645516455epoutp03t DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1642076680; bh=VIaQqRCr+oTNVX62Of7/5Bg3BVzzJ2OXwvsaDwHJoBA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q7I1SZpy5GGBgA8DVEOoelQw7E6IMkB2DYTNAZn2hrFliMCyVJBuqjk6ypseOFC0r T3xkCtE7l04S9xaJd0fR40gx/eVHeXv6idN1Ei86rZjhdRbiYmHxNN4D8yI7tSSv79 z1EcHxv3bBGUKxWhTIMhVEQyQlcze8SMbeXiZARM= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20220113122439epcas5p1af66aa08d133203743b8852200f06b73~J1ApUOroK1969919699epcas5p1Z; Thu, 13 Jan 2022 12:24:39 +0000 (GMT) Received: from epsmges5p3new.samsung.com (unknown [182.195.38.176]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4JZNsc1ydtz4x9Q2; Thu, 13 Jan 2022 12:24:36 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id 7A.61.05590.30A10E16; Thu, 13 Jan 2022 21:24:35 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p1.samsung.com (KnoxPortal) with ESMTPA id 20220113122435epcas5p18e6a2699f193b9e1287588278a570235~J1AlaPrsd2652426524epcas5p14; Thu, 13 Jan 2022 12:24:35 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220113122435epsmtrp1762b1afe80a59972bc8af2f64525ce2e~J1AlXQ4SV1991219912epsmtrp1q; Thu, 13 Jan 2022 12:24:35 +0000 (GMT) X-AuditID: b6c32a4b-739ff700000015d6-2b-61e01a036b7b Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 6C.A8.29871.30A10E16; Thu, 13 Jan 2022 21:24:35 +0900 (KST) Received: from Jaguar.sa.corp.samsungelectronics.net (unknown [107.108.73.139]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220113122432epsmtip2b951016c0b47fc016c330f3f43374ced~J1AiHp_WF1131511315epsmtip2O; Thu, 13 Jan 2022 12:24:32 +0000 (GMT) From: Alim Akhtar To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: soc@kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, olof@lixom.net, linus.walleij@linaro.org, catalin.marinas@arm.com, robh+dt@kernel.org, krzysztof.kozlowski@canonical.com, s.nawrocki@samsung.com, linux-samsung-soc@vger.kernel.org, pankaj.dubey@samsung.com, Alim Akhtar , linux-fsd@tesla.com, broonie@kernel.org, linux-spi@vger.kernel.org, Aswani Reddy Subject: [PATCH 18/23] spi: s3c64xx: Add spi port configuration for Tesla FSD SoC Date: Thu, 13 Jan 2022 17:41:38 +0530 Message-Id: <20220113121143.22280-19-alim.akhtar@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220113121143.22280-1-alim.akhtar@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprFJsWRmVeSWpSXmKPExsWy7bCmli6z1INEg12fDSwezNvGZnFo81Z2 i6kPn7BZvF/Ww2gx/8g5VouNb38wWUz5s5zJYtPja6wWH3vusVo8fBVucXnXHDaLGef3MVk0 frzJbnHq+mc2i0Vbv7BbtO49wm5x+E07q8Xj63/YHIQ81sxbw+gxq6GXzWPTqk42jzvX9rB5 bF5S73HlRBOrR9+WVYwe/5rmsnt83iQXwBmVbZORmpiSWqSQmpecn5KZl26r5B0c7xxvamZg qGtoaWGupJCXmJtqq+TiE6DrlpkD9I+SQlliTilQKCCxuFhJ386mKL+0JFUhI7+4xFYptSAl p8CkQK84Mbe4NC9dLy+1xMrQwMDIFKgwITvj1M9NLAXzuStOTzvL1sC4mbOLkZNDQsBE4lBb FwuILSSwm1Gi4U1EFyMXkP2JUWLLpz9MEM43RomPT24xwnTc//uSHSKxl1Fi4onTzBBOC5PE /z/3wKrYBLQl7k7fwgRiiwi4Sdxo7AAbxSywg1ni5PUlbCAJYYFgiUNbT4EVsQioSsz6uwPM 5hWwlZhyt4UJYp28xOoNB4A2cHBwAsXvrsoDmSMhsIVD4tqtJ2wgcQkBF4l//50hyoUlXh3f wg5hS0m87G9jhyjJlujZZQwRrpFYOu8YC4RtL3HgyhwWkBJmAU2J9bv0QcLMAnwSvb+fMEF0 8kp0tAlBVKtKNL+7CtUpLTGxu5sVwvaQmPDsMQskFCYwSmz/f5x1AqPsLISpCxgZVzFKphYU 56anFpsWGOellsOjKTk/dxMjOJFqee9gfPTgg94hR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ccX leakFh9ilOZgURLnvdB1Ml5IID2xJDU7NbUgtQgmy8TBKdXAtCixjOPV2+lOFV1NfzZN2rDW kpWPaeETiXa/LtePN1cYpyW/WyFwRs5DmDNGOaH5bcBFATmJcD/+jxK/MmQj782sWMHfkrb3 kz+DdEi3YDMT7y3RYPk8tUU+H5UCNIz2882b+PvHC1leCa9vHmE3IpgbvnHcXybb0/DyJfNB 8WZB1+Pf7jvaOgYUVVzN8ZxstX6ruERbk9fpD+pxFS+kp7/Qm/Qh4NYLEwO9o14CLSl5Lu2R ttdaOk/l3WpLXq+17rt78JQJ3S9CpHa4nnzzM/zNT2vPWo8DxVtXsq69zhv65xavgmhfuPTC z22Z341kldRP8DEEhPry3ssQkFo+J2KSc37qurzyT96L/yixFGckGmoxFxUnAgDiIswg8wIA AA== X-CMS-MailID: 20220113122435epcas5p18e6a2699f193b9e1287588278a570235 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220113122435epcas5p18e6a2699f193b9e1287588278a570235 References: <20220113121143.22280-1-alim.akhtar@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds compatible and port configuration for spi controller for Tesla Full Self-Driving SoC. Cc: linux-fsd@tesla.com Cc: broonie@kernel.org Cc: linux-spi@vger.kernel.org Signed-off-by: Aswani Reddy Signed-off-by: Alim Akhtar --- drivers/spi/spi-s3c64xx.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 8755cd85e83c..8d0c1f03ab7a 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -1442,6 +1442,16 @@ static const struct s3c64xx_spi_port_config exynos5433_spi_port_config = { .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, + .tx_st_done = 25, + .high_speed = true, + .clk_from_cmu = true, + .clk_ioclk = false, + .quirks = S3C64XX_SPI_QUIRK_CS_AUTO, +}; + static const struct platform_device_id s3c64xx_spi_driver_ids[] = { { .name = "s3c2443-spi", @@ -1472,6 +1482,9 @@ static const struct of_device_id s3c64xx_spi_dt_match[] = { { .compatible = "samsung,exynos5433-spi", .data = (void *)&exynos5433_spi_port_config, }, + { .compatible = "tesla,fsd-spi", + .data = (void *)&fsd_spi_port_config, + }, { }, }; MODULE_DEVICE_TABLE(of, s3c64xx_spi_dt_match); -- 2.17.1 From mboxrd@z Thu Jan 1 00:00:00 1970 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 ACC2BC433F5 for ; Thu, 13 Jan 2022 12:40:31 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References: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=67IsFRASUedtzdp/JKT+8gL2c+LcYG15BBE+CiC4Mbk=; b=jl7rubDDBQl7f+ VowMg60uTXvkWqlcBSiL+kfJOg7ShDxv85dCpFEnSLAImg8f4Zxrd5+thU4lguxygREqboMWZ0JGl IolviQPYXycs6OIedy+uenlawiDukY3igZ1iNi2H0quQV7+wrXTbEjAFjV9DJUHRcGakthJqxbLTQ 4zmxcL5Krg8EEEVS+d7zYp17FXEu/ID5WT8dRR+qgrO8qbVbdq4vfWp4dbsYnUSvVjpC3jxvZqSdc 2sAeyTdYgtshlWcHbS653DC+f2PBLWHk28ex8FzZsqT57yihR0dVnyFFoE7oczsLTaqJz2u+tfzX6 O4SYeXWXDf+pndVp4mYQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7zMn-005rcz-H2; Thu, 13 Jan 2022 12:38:12 +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 1n7z9m-005myq-9D for linux-arm-kernel@lists.infradead.org; Thu, 13 Jan 2022 12:24:44 +0000 Received: from epcas5p1.samsung.com (unknown [182.195.41.39]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20220113122440epoutp0401ba6e96007364d7d253216109094c50~J1AqITvcz2694526945epoutp04D for ; Thu, 13 Jan 2022 12:24:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20220113122440epoutp0401ba6e96007364d7d253216109094c50~J1AqITvcz2694526945epoutp04D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1642076680; bh=VIaQqRCr+oTNVX62Of7/5Bg3BVzzJ2OXwvsaDwHJoBA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q7I1SZpy5GGBgA8DVEOoelQw7E6IMkB2DYTNAZn2hrFliMCyVJBuqjk6ypseOFC0r T3xkCtE7l04S9xaJd0fR40gx/eVHeXv6idN1Ei86rZjhdRbiYmHxNN4D8yI7tSSv79 z1EcHxv3bBGUKxWhTIMhVEQyQlcze8SMbeXiZARM= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20220113122439epcas5p1af66aa08d133203743b8852200f06b73~J1ApUOroK1969919699epcas5p1Z; Thu, 13 Jan 2022 12:24:39 +0000 (GMT) Received: from epsmges5p3new.samsung.com (unknown [182.195.38.176]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4JZNsc1ydtz4x9Q2; Thu, 13 Jan 2022 12:24:36 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id 7A.61.05590.30A10E16; Thu, 13 Jan 2022 21:24:35 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p1.samsung.com (KnoxPortal) with ESMTPA id 20220113122435epcas5p18e6a2699f193b9e1287588278a570235~J1AlaPrsd2652426524epcas5p14; Thu, 13 Jan 2022 12:24:35 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220113122435epsmtrp1762b1afe80a59972bc8af2f64525ce2e~J1AlXQ4SV1991219912epsmtrp1q; Thu, 13 Jan 2022 12:24:35 +0000 (GMT) X-AuditID: b6c32a4b-739ff700000015d6-2b-61e01a036b7b Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 6C.A8.29871.30A10E16; Thu, 13 Jan 2022 21:24:35 +0900 (KST) Received: from Jaguar.sa.corp.samsungelectronics.net (unknown [107.108.73.139]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220113122432epsmtip2b951016c0b47fc016c330f3f43374ced~J1AiHp_WF1131511315epsmtip2O; Thu, 13 Jan 2022 12:24:32 +0000 (GMT) From: Alim Akhtar To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: soc@kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, olof@lixom.net, linus.walleij@linaro.org, catalin.marinas@arm.com, robh+dt@kernel.org, krzysztof.kozlowski@canonical.com, s.nawrocki@samsung.com, linux-samsung-soc@vger.kernel.org, pankaj.dubey@samsung.com, Alim Akhtar , linux-fsd@tesla.com, broonie@kernel.org, linux-spi@vger.kernel.org, Aswani Reddy Subject: [PATCH 18/23] spi: s3c64xx: Add spi port configuration for Tesla FSD SoC Date: Thu, 13 Jan 2022 17:41:38 +0530 Message-Id: <20220113121143.22280-19-alim.akhtar@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220113121143.22280-1-alim.akhtar@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprFJsWRmVeSWpSXmKPExsWy7bCmli6z1INEg12fDSwezNvGZnFo81Z2 i6kPn7BZvF/Ww2gx/8g5VouNb38wWUz5s5zJYtPja6wWH3vusVo8fBVucXnXHDaLGef3MVk0 frzJbnHq+mc2i0Vbv7BbtO49wm5x+E07q8Xj63/YHIQ81sxbw+gxq6GXzWPTqk42jzvX9rB5 bF5S73HlRBOrR9+WVYwe/5rmsnt83iQXwBmVbZORmpiSWqSQmpecn5KZl26r5B0c7xxvamZg qGtoaWGupJCXmJtqq+TiE6DrlpkD9I+SQlliTilQKCCxuFhJ386mKL+0JFUhI7+4xFYptSAl p8CkQK84Mbe4NC9dLy+1xMrQwMDIFKgwITvj1M9NLAXzuStOTzvL1sC4mbOLkZNDQsBE4lBb FwuILSSwm1Gi4U1EFyMXkP2JUWLLpz9MEM43RomPT24xwnTc//uSHSKxl1Fi4onTzBBOC5PE /z/3wKrYBLQl7k7fwgRiiwi4Sdxo7AAbxSywg1ni5PUlbCAJYYFgiUNbT4EVsQioSsz6uwPM 5hWwlZhyt4UJYp28xOoNB4A2cHBwAsXvrsoDmSMhsIVD4tqtJ2wgcQkBF4l//50hyoUlXh3f wg5hS0m87G9jhyjJlujZZQwRrpFYOu8YC4RtL3HgyhwWkBJmAU2J9bv0QcLMAnwSvb+fMEF0 8kp0tAlBVKtKNL+7CtUpLTGxu5sVwvaQmPDsMQskFCYwSmz/f5x1AqPsLISpCxgZVzFKphYU 56anFpsWGOell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YJTiYlUR4+4vuJwrxpiRWVqUW5ccX leakFh9ilOZgURLnvdB1Ml5IID2xJDU7NbUgtQgmy8TBKdXAtCixjOPV2+lOFV1NfzZN2rDW kpWPaeETiXa/LtePN1cYpyW/WyFwRs5DmDNGOaH5bcBFATmJcD/+jxK/MmQj782sWMHfkrb3 kz+DdEi3YDMT7y3RYPk8tUU+H5UCNIz2882b+PvHC1leCa9vHmE3IpgbvnHcXybb0/DyJfNB 8WZB1+Pf7jvaOgYUVVzN8ZxstX6ruERbk9fpD+pxFS+kp7/Qm/Qh4NYLEwO9o14CLSl5Lu2R ttdaOk/l3WpLXq+17rt78JQJ3S9CpHa4nnzzM/zNT2vPWo8DxVtXsq69zhv65xavgmhfuPTC z22Z341kldRP8DEEhPry3ssQkFo+J2KSc37qurzyT96L/yixFGckGmoxFxUnAgDiIswg8wIA AA== X-CMS-MailID: 20220113122435epcas5p18e6a2699f193b9e1287588278a570235 X-Msg-Generator: CA CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220113122435epcas5p18e6a2699f193b9e1287588278a570235 References: <20220113121143.22280-1-alim.akhtar@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220113_042442_722002_1AC4AE09 X-CRM114-Status: GOOD ( 14.99 ) 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: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patch adds compatible and port configuration for spi controller for Tesla Full Self-Driving SoC. Cc: linux-fsd@tesla.com Cc: broonie@kernel.org Cc: linux-spi@vger.kernel.org Signed-off-by: Aswani Reddy Signed-off-by: Alim Akhtar --- drivers/spi/spi-s3c64xx.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 8755cd85e83c..8d0c1f03ab7a 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -1442,6 +1442,16 @@ static const struct s3c64xx_spi_port_config exynos5433_spi_port_config = { .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, + .tx_st_done = 25, + .high_speed = true, + .clk_from_cmu = true, + .clk_ioclk = false, + .quirks = S3C64XX_SPI_QUIRK_CS_AUTO, +}; + static const struct platform_device_id s3c64xx_spi_driver_ids[] = { { .name = "s3c2443-spi", @@ -1472,6 +1482,9 @@ static const struct of_device_id s3c64xx_spi_dt_match[] = { { .compatible = "samsung,exynos5433-spi", .data = (void *)&exynos5433_spi_port_config, }, + { .compatible = "tesla,fsd-spi", + .data = (void *)&fsd_spi_port_config, + }, { }, }; MODULE_DEVICE_TABLE(of, s3c64xx_spi_dt_match); -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel