From patchwork Tue Jan 25 03:16:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alim Akhtar X-Patchwork-Id: 12723270 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 8A509C433F5 for ; Tue, 25 Jan 2022 03:46:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S246196AbiAYDqD (ORCPT ); Mon, 24 Jan 2022 22:46:03 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:10506 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1323504AbiAYD2o (ORCPT ); Mon, 24 Jan 2022 22:28:44 -0500 Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20220125032839epoutp01cdb6763eb2cb6ca882c5d6ca0b122b22~NZcEpBe9R2083020830epoutp01x for ; Tue, 25 Jan 2022 03:28:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20220125032839epoutp01cdb6763eb2cb6ca882c5d6ca0b122b22~NZcEpBe9R2083020830epoutp01x DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1643081319; bh=lEcoaPQ0wXcqoYAXTOO0tu1gYfLWrks8XW836Y3b+ZM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cEogvZCTBsstC7u/TqmafhVHZ8cizOZvfPLPwCvsnJqnViJfw0gN5SqGSwJyVG7M/ qELHEKXlhGT1hY1LZlla45G5yOXVIDKmeZkPP3RBozD4++aYFiN/JIHIhBt0TtNMXB NFpcj4n8bymF39fjgZr4d2mUtoltTA86aOnPibcQ= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20220125032838epcas5p11badabcc9322c87661b3febcc85de2b7~NZcEE4CBr0816508165epcas5p1D; Tue, 25 Jan 2022 03:28:38 +0000 (GMT) Received: from epsmges5p1new.samsung.com (unknown [182.195.38.182]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4JjXPV0fbvz4x9QN; Tue, 25 Jan 2022 03:28:30 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 47.A7.06423.95E6FE16; Tue, 25 Jan 2022 12:28:25 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p2.samsung.com (KnoxPortal) with ESMTPA id 20220125032825epcas5p2c5cf48a773fd26e089b31b0f6ddde83f~NZb3h_Npu0341303413epcas5p2M; Tue, 25 Jan 2022 03:28:25 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20220125032825epsmtrp2452b7e6d8747082d6d48df1defbecf9f~NZb3hGjDy2646626466epsmtrp2U; Tue, 25 Jan 2022 03:28:25 +0000 (GMT) X-AuditID: b6c32a49-b01ff70000001917-ed-61ef6e59e5c2 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id E8.68.29871.95E6FE16; Tue, 25 Jan 2022 12:28:25 +0900 (KST) Received: from Jaguar.sa.corp.samsungelectronics.net (unknown [107.108.73.139]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220125032823epsmtip1ffba863d095402cfb1dd68b7fd32b49d~NZb1jkqKE0162601626epsmtip19; Tue, 25 Jan 2022 03:28:23 +0000 (GMT) From: Alim Akhtar To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: devicetree@vger.kernel.org, linus.walleij@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski@canonical.com, linux-samsung-soc@vger.kernel.org, pankaj.dubey@samsung.com, broonie@kernel.org, andi@etezian.org, linux-spi@vger.kernel.org, Alim Akhtar , linux-fsd@tesla.com, Aswani Reddy Subject: [PATCH v3 2/3] spi: s3c64xx: Add spi port configuration for Tesla FSD SoC Date: Tue, 25 Jan 2022 08:46:03 +0530 Message-Id: <20220125031604.76009-3-alim.akhtar@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220125031604.76009-1-alim.akhtar@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpmk+LIzCtJLcpLzFFi42LZdlhTUzcy732iwYSPGhYP5m1js1j84zmT xaHNW9ktpj58wmYx/8g5VouNb38wWUz5s5zJYtPja6wWD1+FW1zeNYfNYsb5fUwWjR9vslss 2vqF3aJ17xF2Bz6PWQ29bB7Xl3xi9ti0qpPN4861PWwem5fUe/RtWcXo8a9pLrvH501yARxR 2TYZqYkpqUUKqXnJ+SmZeem2St7B8c7xpmYGhrqGlhbmSgp5ibmptkouPgG6bpk5QGcrKZQl 5pQChQISi4uV9O1sivJLS1IVMvKLS2yVUgtScgpMCvSKE3OLS/PS9fJSS6wMDQyMTIEKE7Iz HvYvZSw4x11x9NUplgbGB5xdjJwcEgImEvtnr2brYuTiEBLYzSjx+stKFgjnE6PEx44uJgjn G6PE6tt7mGBa9rx/zAiR2MsocbZ5HpTTwiTRvuwuI0gVm4C2xN3pW8A6RATcJG40doCNYha4 wyTx4vlPsISwQIjEo2UP2EBsFgFVidOH17GA2LwCNhJ/l16DWicvsXrDAeYuRg4OTgFbieYJ HCBzJAR6OSRmzfzGCFHjIvHt1h4WCFtY4tXxLewQtpTE53d72UB6JQSyJXp2GUOEaySWzjsG VW4vceDKHBaQEmYBTYn1u/RBwswCfBK9v58wQXTySnS0CUFUq0o0v7sK1SktMbG7mxXC9pA4 MO8XKyQYJjBKzDxxgW0Co+wshKkLGBlXMUqmFhTnpqcWmxYY5qWWwyMqOT93EyM4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YT3v/f7RCHelMTKqtSi/Pii0pzU4kOM0hwsSuK8F7pOxgsJpCeWpGanphak FsFkmTg4pRqYlrWHyDt+CtmbYd/gs04v+bXZiX//fqxUyOHaLlu//HTrC8+2mxe4XTeUnSxc WLuS4fxJu5tlDOW/PAXbo85rBUV1t2tbSEqsjTpq+qBNYuEu1fCmyLuzMnSOrQjMWJjq9ZYn il2IeUn09dNHglfkBrGUxU3R/rbqpWZe/5L71/L3Sh0Jn9beKpT4/deOX51GN0NDF3DGJVi9 Pf0pLHPGHZcDF578qnlixTktOeLX2ey/PAasaoKfL7Cuvp9/l9uCM5jprMvFCN9jXzt/LHgl cvFu2Zvjpb8cPrC16b4xnjA7+9tMTV2LJ01Pz7H1SKe1Oirfay4s2iK2r/9A/rRAlVfJ1/av Ff4QtnvLDD4lJZbijERDLeai4kQAgWx9WdgCAAA= X-CMS-MailID: 20220125032825epcas5p2c5cf48a773fd26e089b31b0f6ddde83f X-Msg-Generator: CA CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220125032825epcas5p2c5cf48a773fd26e089b31b0f6ddde83f References: <20220125031604.76009-1-alim.akhtar@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org Add compatible and port configuration for spi controller for Tesla Full Self-Driving SoC. Cc: linux-fsd@tesla.com Signed-off-by: Aswani Reddy Signed-off-by: Alim Akhtar Reviewed-by: Krzysztof Kozlowski Reviewed-by: Andi Shyti Reviewed-by: Linus Walleij --- 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 386550fca81c..423518bf0270 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -1440,6 +1440,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", @@ -1470,6 +1480,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);