From patchwork Thu Jan 20 19:24:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alim Akhtar X-Patchwork-Id: 533781 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 673B8C433FE for ; Thu, 20 Jan 2022 19:36:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377502AbiATTg0 (ORCPT ); Thu, 20 Jan 2022 14:36:26 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:63891 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377475AbiATTgW (ORCPT ); Thu, 20 Jan 2022 14:36:22 -0500 Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20220120193620epoutp03fe28beb4c1b49bbdaeb56fbf6e26b365~MEaizwKdc0671806718epoutp03y for ; Thu, 20 Jan 2022 19:36:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20220120193620epoutp03fe28beb4c1b49bbdaeb56fbf6e26b365~MEaizwKdc0671806718epoutp03y DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1642707380; bh=ZaATJYNM+pYyB6UGZpbkBKxRtYM6TyQxfTwupOucWS4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hwiAzZ8gDX/dEZVr5eGiTBu5s5N+XeUdH/cVxLucmq300FEFg2JNUv3SrHqIHM1Sc HKTRPx+TQvIXW18XGWwce1EvGqD3GwQzeoxmBTG91OTr5hoP2IL8xae0KFfFDwybq6 IsJe9mX+6UTDSMid/vkpsSjybOwBT0gXQaiLU0Uo= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20220120193619epcas5p1bd021ea54b6a54ff0b8c3067aa01f900~MEahjO7VJ0970309703epcas5p1B; Thu, 20 Jan 2022 19:36:19 +0000 (GMT) Received: from epsmges5p2new.samsung.com (unknown [182.195.38.175]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4Jft6Q47LLz4x9Pp; Thu, 20 Jan 2022 19:36:14 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 58.26.46822.5F8B9E16; Fri, 21 Jan 2022 04:33:09 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p2.samsung.com (KnoxPortal) with ESMTPA id 20220120193613epcas5p238851849d212e01d7d830d78ca7d6379~MEaclnd-j0131201312epcas5p2z; Thu, 20 Jan 2022 19:36:13 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20220120193613epsmtrp2d5d0a34142d266cfc7b65b743027db9d~MEackyaVo1490214902epsmtrp2v; Thu, 20 Jan 2022 19:36:13 +0000 (GMT) X-AuditID: b6c32a4a-de5ff7000000b6e6-c2-61e9b8f5f312 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id EA.94.08738.DA9B9E16; Fri, 21 Jan 2022 04:36:13 +0900 (KST) Received: from Jaguar.sa.corp.samsungelectronics.net (unknown [107.108.73.139]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220120193611epsmtip2c11195d1c2afc63cd78c0936eaf33f44~MEaamuP1z1544215442epsmtip2D; Thu, 20 Jan 2022 19:36:11 +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, Adithya K V Subject: [PATCH v2 1/3] spi: dt-bindings: samsung: Add fsd spi compatible Date: Fri, 21 Jan 2022 00:54:36 +0530 Message-Id: <20220120192438.25555-2-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+NgFmpik+LIzCtJLcpLzFFi42LZdlhTU/frjpeJBhfvcFkcmPCK1eLBvG1s Fot/PGeymPrwCZvF/CPnWC02vv3BZDHlz3Imi02Pr7FaPHwVbnF51xw2ixnn9zFZNH68yW6x aOsXdovWvUfYHfg8ZjX0snlcX/KJ2WPTqk42jzvX9rB5bF5S79G3ZRWjx7+muewenzfJBXBE ZdtkpCampBYppOYl56dk5qXbKnkHxzvHm5oZGOoaWlqYKynkJeam2iq5+AToumXmAJ2tpFCW mFMKFApILC5W0rezKcovLUlVyMgvLrFVSi1IySkwKdArTswtLs1L18tLLbEyNDAwMgUqTMjO +PCzkaXgP1vFnTNr2RsY77F2MXJwSAiYSEz67tLFyMUhJLCbUeLE9jOMEM4nRomnLQtYIZzP jBI7Jrxi6mLkBOu403sBqmoXo0TL5plQVS1MEmfnL2cDqWIT0Ja4O30LWIeIgJvEjcYOJpAi ZoGbTBK/G16zgSwXFvCUmH6mAqSGRUBVYtrXe2C9vAI2EuevvmaF2CYvsXrDAWYQm1PAVuL7 4x9gmyUEpnJILDy8ix2iyEWitbcZyhaWeHV8C5QtJfH53V42iEezJXp2GUOEaySWzjvGAmHb Sxy4MocFpIRZQFNi/S59kDCzAJ9E7+8nTBCdvBIdbUIQ1aoSze+uQnVKS0zs7oa60kPixdPN zJBgmMAocfLRPbYJjLKzEKYuYGRcxSiZWlCcm55abFpglJdaDo+n5PzcTYzgxKjltYPx4YMP eoc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yIUZqDRUmc90LXyXghgfTEktTs 1NSC1CKYLBMHp1QDU19ZlOiHJUbp5xkf+2Q63Qr2EA91s31qNzmZ6WnL5kzrB3+k2+XnJfWv //fliIjMiifWLlNE2b7tMtunGPfybpqyFT/L+ZDrf5U6fou3Jc083uoefXb5AY+2FTy35bQr O9akmUbMf/bvn+WidYqbncU64+Zv/cwfsNMpW8JYNftA9IcdDXFf/gS9uxazen+oQt7NS5M3 rfPYfTH4zq01v658bik7YPijxOZDx6NZ298sDbggYzV9/c4LTOHhr4V/+bKxTord93u7z+6L l/6e4mq5MW++4WXHe5l9C6Yo905LCfSNS9w8UcJnn4rNtFcX37bPXM5+vnyGcPcRv76itJ16 6l+eB3hv/czowu/w8LISS3FGoqEWc1FxIgDkDutl2gIAAA== X-CMS-MailID: 20220120193613epcas5p238851849d212e01d7d830d78ca7d6379 X-Msg-Generator: CA CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220120193613epcas5p238851849d212e01d7d830d78ca7d6379 References: <20220120192438.25555-1-alim.akhtar@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org Adds spi controller dt-binding compatible information for Tesla Full Self-Driving (FSD) SoC. Cc: linux-fsd@tesla.com Signed-off-by: Adithya K V Signed-off-by: Alim Akhtar Reviewed-by: Krzysztof Kozlowski Reviewed-by: Andi Shyti --- Documentation/devicetree/bindings/spi/samsung,spi.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/spi/samsung,spi.yaml b/Documentation/devicetree/bindings/spi/samsung,spi.yaml index 61c77088e8ee..bf9a76d931d2 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 + - tesla,fsd-spi - const: samsung,exynos7-spi deprecated: true 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: 534052 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 2BDF1C433EF for ; Thu, 20 Jan 2022 19:36:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377493AbiATTg3 (ORCPT ); Thu, 20 Jan 2022 14:36:29 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:42556 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377504AbiATTg1 (ORCPT ); Thu, 20 Jan 2022 14:36:27 -0500 Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20220120193626epoutp0185063ba928031d794cbe49e7f3c0dd2d~MEaoGKEXQ1436814368epoutp01k for ; Thu, 20 Jan 2022 19:36:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20220120193626epoutp0185063ba928031d794cbe49e7f3c0dd2d~MEaoGKEXQ1436814368epoutp01k 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/zBEbZWQhTFzAyrmKUTC0ozk1PLTYtMMxLLYdHV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9fVJqTWnyIUZqDRUmc90LXyXghgfTEktTs1NSC 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-spi@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: 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); From patchwork Thu Jan 20 19:24:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alim Akhtar X-Patchwork-Id: 533780 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 50F46C4332F for ; Thu, 20 Jan 2022 19:36:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377457AbiATTge (ORCPT ); Thu, 20 Jan 2022 14:36:34 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:23796 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377473AbiATTga (ORCPT ); Thu, 20 Jan 2022 14:36:30 -0500 Received: from epcas5p4.samsung.com (unknown [182.195.41.42]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20220120193628epoutp02264349b8b95f7f6ad4c84103af2371ce~MEaqnqvAB0918109181epoutp02u for ; Thu, 20 Jan 2022 19:36:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20220120193628epoutp02264349b8b95f7f6ad4c84103af2371ce~MEaqnqvAB0918109181epoutp02u DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1642707388; bh=sAPYODDmKobS/13ARdP8DagXGjJLIEbBlus+ku63euc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=onrN18kZy7JxGyElUrtg3rRVGFttnAp8Gyqo4sXR5uWGn9lZ3ZulUIDiumAwwwU9D exEE1EoZ6HIftjJyhZE8dkMYPLrP4JBeB5329yXEkOW+1Tj8y930iguuVauEf28odO m7rPSc+QrkcYlgLhLv/vHeBqbvbJeboWMvXUNZ1Y= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas5p3.samsung.com (KnoxPortal) with ESMTP id 20220120193628epcas5p3653549314ae792c4a72d61b5e687d4de~MEaqFJut70595105951epcas5p3F; Thu, 20 Jan 2022 19:36:28 +0000 (GMT) Received: from epsmges5p2new.samsung.com (unknown [182.195.38.179]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4Jft6Z4C31z4x9Pp; Thu, 20 Jan 2022 19:36:22 +0000 (GMT) Received: from epcas5p2.samsung.com ( [182.195.41.40]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 3A.26.46822.DF8B9E16; Fri, 21 Jan 2022 04:33:17 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20220120193622epcas5p3a65c8424c6a01aed9a87f5ac2a89eb06~MEakfKDpv1482614826epcas5p3M; Thu, 20 Jan 2022 19:36:22 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220120193622epsmtrp13bb5c602dbd6b8bdbabb96ef9ec4a559~MEakeIEN82029720297epsmtrp1T; Thu, 20 Jan 2022 19:36:22 +0000 (GMT) X-AuditID: b6c32a4a-dfbff7000000b6e6-cd-61e9b8fddcb0 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id D0.93.29871.5B9B9E16; Fri, 21 Jan 2022 04:36:22 +0900 (KST) Received: from Jaguar.sa.corp.samsungelectronics.net (unknown [107.108.73.139]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220120193619epsmtip2fa2f3bcf81e595e2d56979e6a574cef0~MEaiTpHlp2383823838epsmtip2K; Thu, 20 Jan 2022 19:36:19 +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, Aswani Reddy , linux-fsd@tesla.com, Alim Akhtar Subject: [PATCH v2 3/3] arm64: dts: fsd: Add SPI device nodes Date: Fri, 21 Jan 2022 00:54:38 +0530 Message-Id: <20220120192438.25555-4-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+LIzCtJLcpLzFFi42LZdlhTQ/fvjpeJBv1nBSwezNvGZrH4x3Mm i0Obt7JbTH34hM1i/pFzrBYb3/5gspjyZzmTxabH11gtHr4Kt7i8aw6bxYzz+5gsGj/eZLdY tPULu0Xr3iPsDnwesxp62TyuL/nE7LFpVSebx51re9g8Ni+p9+jbsorR41/TXHaPz5vkAjii sm0yUhNTUosUUvOS81My89JtlbyD453jTc0MDHUNLS3MlRTyEnNTbZVcfAJ03TJzgM5WUihL zCkFCgUkFhcr6dvZFOWXlqQqZOQXl9gqpRak5BSYFOgVJ+YWl+al6+WlllgZGhgYmQIVJmRn zFnRzF5wSKRi4e5DjA2MkwS6GDk5JARMJJ6+e8MCYgsJ7GaUeNDq0cXIBWR/YpT4uewFI4Tz jVHi9cctTDAdUzf+Z4NI7GWUeLl1PguE08IkceTKfbBZbALaEnenQ3SICL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CQSMXC3YcYGxgnCXQxcnJICJhITN34n62LkYtDSGA3o8TE A1vZIBLSEtc3TmCHsIUlVv57zg5R1MQkseTLHkaQBJuAtsTd6VuYQGwRAQ+Jtn/3mEGKmAVe MEkc3NgMViQsYCvx7U4/C4jNIqAq8fLXNLAGXgEbifkrIGwJAXmJ1RsOMIPYnED13x//AOsV Aqp5eH878wRGvgWMDKsYJVMLinPTc4sNCwzzUsv1ihNzi0vz0vWS83M3MYIDW0tzB+P2VR/0 DjEycTAeYpTgYFYS4ZWqf5YoxJuSWFmVWpQfX1Sak1p8iFGag0VJnPdC18l4IYH0xJLU7NTU gtQimCwTB6dUA1Ps3LjVy4/taM6xcj4m8+xW0OzSexrHVlw8OtG14d0nd4W7pgJXXrfJW3ts mXt19a+qgND3Zu+LP24/rn22JSeWP+/zZU6N88Yzbxx8fFmbxW97q8eaKyt/MWaLbd29ei0z 74d9ah1Ve+MVp7wXqLnxqJfN4vT+R6bumZd2HHn8Y1bpAZ4yMQbJnaslFy/csdP2t1Hyg3UM QeUbTmlcYuwtex7C/FvYsMEsc39VpvHOc8/vHMxszPIwe2w96R3vvOzgY4s+5RlIlnmIdXAs Onp6WZ622VlR/T859Wdf7K6doRPkl9LBaXgz82rP7zuSey5lbfqRetQ94+KDgNszGqfnLK1y s6q0Lbk643ma1DRpJZbijERDLeai4kQAFe203dsCAAA= X-CMS-MailID: 20220120193622epcas5p3a65c8424c6a01aed9a87f5ac2a89eb06 X-Msg-Generator: CA CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220120193622epcas5p3a65c8424c6a01aed9a87f5ac2a89eb06 References: <20220120192438.25555-1-alim.akhtar@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org From: Aswani Reddy Adds device tree node for SPI IPs Cc: linux-fsd@tesla.com Reviewed-by: Krzysztof Kozlowski Signed-off-by: Aswani Reddy Signed-off-by: Alim Akhtar Reviewed-by: Andi Shyti --- arch/arm64/boot/dts/tesla/fsd.dtsi | 57 ++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/arch/arm64/boot/dts/tesla/fsd.dtsi b/arch/arm64/boot/dts/tesla/fsd.dtsi index bab63c9f79dc..86cf1446d1fc 100644 --- a/arch/arm64/boot/dts/tesla/fsd.dtsi +++ b/arch/arm64/boot/dts/tesla/fsd.dtsi @@ -29,6 +29,9 @@ aliases { pinctrl0 = &pinctrl_fsys0; pinctrl1 = &pinctrl_peric; pinctrl2 = &pinctrl_pmu; + spi0 = &spi_0; + spi1 = &spi_1; + spi2 = &spi_2; }; cpus { @@ -667,6 +670,60 @@ pinctrl_fsys0: pinctrl@15020000 { reg = <0x0 0x15020000 0x0 0x1000>; interrupts = ; }; + + spi_0: spi@14140000 { + compatible = "tesla,fsd-spi"; + reg = <0x0 0x14140000 0x0 0x100>; + interrupts = ; + dmas = <&pdma1 4>, <&pdma1 5>; + dma-names = "tx", "rx"; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&clock_peric PERIC_PCLK_SPI0>, + <&clock_peric PERIC_SCLK_SPI0>; + clock-names = "spi", "spi_busclk0"; + samsung,spi-src-clk = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&spi0_bus>; + num-cs = <1>; + status = "disabled"; + }; + + spi_1: spi@14150000 { + compatible = "tesla,fsd-spi"; + reg = <0x0 0x14150000 0x0 0x100>; + interrupts = ; + dmas = <&pdma1 6>, <&pdma1 7>; + dma-names = "tx", "rx"; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&clock_peric PERIC_PCLK_SPI1>, + <&clock_peric PERIC_SCLK_SPI1>; + clock-names = "spi", "spi_busclk0"; + samsung,spi-src-clk = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&spi1_bus>; + num-cs = <1>; + status = "disabled"; + }; + + spi_2: spi@14160000 { + compatible = "tesla,fsd-spi"; + reg = <0x0 0x14160000 0x0 0x100>; + interrupts = ; + dmas = <&pdma1 8>, <&pdma1 9>; + dma-names = "tx", "rx"; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&clock_peric PERIC_PCLK_SPI2>, + <&clock_peric PERIC_SCLK_SPI2>; + clock-names = "spi", "spi_busclk0"; + samsung,spi-src-clk = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&spi2_bus>; + num-cs = <1>; + status = "disabled"; + }; }; };