From patchwork Thu Jan 20 19:24:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alim Akhtar X-Patchwork-Id: 533773 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 88555C433FE for ; Thu, 20 Jan 2022 19:36:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377482AbiATTg3 (ORCPT ); Thu, 20 Jan 2022 14:36:29 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:23768 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377473AbiATTg1 (ORCPT ); Thu, 20 Jan 2022 14:36:27 -0500 Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20220120193626epoutp02954dceaa9d2c21e9c961ec5e2ebc2e05~MEaoFnz7s1051010510epoutp02j for ; Thu, 20 Jan 2022 19:36:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20220120193626epoutp02954dceaa9d2c21e9c961ec5e2ebc2e05~MEaoFnz7s1051010510epoutp02j DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1642707386; bh=OXLHdsWUhfZFmJ9Ejv8VvylkUjH8YGcav1V1Ne9AU6w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ykx5EEahlBhilrX2bwqntWM5TAM7AFsr+VQ4Bhf8OvLhfu9w2+XVm4/VzwVXBlXi/ ePcJ9L7fKUMUVfKqgsRcpPyfoo4x7Yf+uDqQxmczwpS91daV1RBM1F7mKJibHq2Vih e7+zD+GDxLi/rdKBOoUE5DTTesnmH36wnqcAOWr4= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20220120193625epcas5p42f7342df310fd0fece0934b5983d8033~MEanLxz6l1365513655epcas5p4h; Thu, 20 Jan 2022 19:36:25 +0000 (GMT) Received: from epsmges5p1new.samsung.com (unknown [182.195.38.179]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4Jft6W5F79z4x9Pp; Thu, 20 Jan 2022 19:36:19 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id B7.AE.06423.3B9B9E16; Fri, 21 Jan 2022 04:36:19 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p4.samsung.com (KnoxPortal) with ESMTPA id 20220120193618epcas5p45be1db500363072e647bf179623f8e7a~MEag_DhCT1365513655epcas5p4b; Thu, 20 Jan 2022 19:36:18 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20220120193618epsmtrp2a4df038168af578aa4bf80e3f5c76761~MEag9Oav51490214902epsmtrp2y; Thu, 20 Jan 2022 19:36:18 +0000 (GMT) X-AuditID: b6c32a49-b13ff70000001917-71-61e9b9b37dd3 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 1C.94.08738.2B9B9E16; Fri, 21 Jan 2022 04:36:18 +0900 (KST) Received: from Jaguar.sa.corp.samsungelectronics.net (unknown [107.108.73.139]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220120193615epsmtip2fc87e94d71c8d3de74d5ba2ef83379ae~MEaeRpWqj1544215442epsmtip2F; Thu, 20 Jan 2022 19:36:15 +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 v2 2/3] spi: s3c64xx: Add spi port configuration for Tesla FSD SoC Date: Fri, 21 Jan 2022 00:54:37 +0530 Message-Id: <20220120192438.25555-3-alim.akhtar@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220120192438.25555-1-alim.akhtar@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpmk+LIzCtJLcpLzFFi42LZdlhTS3fzzpeJBu8vaFs8mLeNzWLxj+dM Foc2b2W3mPrwCZvF/CPnWC02vv3BZDHlz3Imi02Pr7FaPHwVbnF51xw2ixnn9zFZNH68yW6x aOsXdovWvUfYHfg8ZjX0snlcX/KJ2WPTqk42jzvX9rB5bF5S79G3ZRWjx7+muewenzfJBXBE ZdtkpCampBYppOYl56dk5qXbKnkHxzvHm5oZGOoaWlqYKynkJeam2iq5+AToumXmAJ2tpFCW mFMKFApILC5W0rezKcovLUlVyMgvLrFVSi1IySkwKdArTswtLs1L18tLLbEyNDAwMgUqTMjO 2PFxN1PBXa6K7X+b2RsYf3J0MXJwSAiYSEy6JNDFyMUhJLCbUWLbnAtMEM4nRokNDVMZIZzP jBLT3+xl72LkBOv4fu4oVNUuRonHjxeyQjgtTBJfd84Hq2IT0Ja4O30LE4gtIuAmcaOxA6yD WeAOk8SL5z/BEsICIRJHLnWzgNgsAqoSu8/tZAOxeQVsJDYe+8wIsU5eYvWGA8wgNqeArcT3 xz/AbpIQ6OWQ2L/jAdRNLhLNnU1MELawxKvjW6DiUhKf3+1lg/g0W6JnlzFEuEZi6bxjLBC2 vcSBK3NYQEqYBTQl1u/SBwkzC/BJ9P5+wgTRySvR0SYEUa0q0fzuKlSntMTE7m5WCNtDYtvU P2yQcJjAKLFzTS/zBEbZWQhTFzAyrmKUTC0ozk1PLTYtMMxLL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WZValB9fVJqTWnyIUZqDRUmc90LXyXghgfTEktTs1NSC 1CKYLBMHp1QDU1PG1B8nmRRtE5evVFm0oYl50pNYcc/cVfa/X6pm6ee5uL2K1K9k4rq2g4tN YmPBW0bRz7e/+i28eKP/1vXv5cyPYoLq5s7hqfZbHH7dN+rldln3iIeGbzSKvRg+HQ2O/BK+ cG3M7YlNjC8u9807/PjUZcVXxlvkPmY/LWBqNPv99uWtmTueGT3j+725MslqSaxmPat674RS iWdB8teWHKzfZfmzceXWzSo/uYovd7bVPf7/Nv5bokkrk/oujWVVkRq/+5365X85GOX+WerK ov3xxLkkCe33FaIHV7EEqbzg12SuP7fXaNvefqb0CT9VcsUtJL7LF9ycZWMtq/3o68wNjRdU bpfE9hrdYL4crsRSnJFoqMVcVJwIAGmqYMjaAgAA X-CMS-MailID: 20220120193618epcas5p45be1db500363072e647bf179623f8e7a X-Msg-Generator: CA CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220120193618epcas5p45be1db500363072e647bf179623f8e7a References: <20220120192438.25555-1-alim.akhtar@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Adds 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 --- 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);