From patchwork Tue Jan 25 03:16:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alim Akhtar X-Patchwork-Id: 12723286 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 8A2A5C433F5 for ; Tue, 25 Jan 2022 03:52:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1320696AbiAYDrg (ORCPT ); Mon, 24 Jan 2022 22:47:36 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:23274 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1323469AbiAYD2n (ORCPT ); Mon, 24 Jan 2022 22:28:43 -0500 Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20220125032829epoutp04c6cc14ca0642edf8e0e0a6471800785a~NZb7qXM_x1420214202epoutp04L for ; Tue, 25 Jan 2022 03:28:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20220125032829epoutp04c6cc14ca0642edf8e0e0a6471800785a~NZb7qXM_x1420214202epoutp04L DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1643081309; bh=V1zBLXm/UJPgvDIjwL8ACY/O218Opqari+8Gh8BGZ7g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h9WYl9ean5Z+wnolJR3PoCZ5m3VJ+hGqbeF5RJWJoJtiUMEjXQhX5SLgoH/42eC5O qEfHeXnAxgTMrhif3CkMXNfZ0LD5vED9vnoLjRpj0loAeXuM4cbT3/OvVPwsDzrFDv 5b3WltDmt1apwuKARWQ0zBv7PcYQ7FlraX9SviFo= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20220125032829epcas5p463ed13dc3fdc457f49bce93c99ce0bb8~NZb7NCZXU1924019240epcas5p4m; Tue, 25 Jan 2022 03:28:29 +0000 (GMT) Received: from epsmges5p2new.samsung.com (unknown [182.195.38.181]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4JjXPL4Dhvz4x9QJ; Tue, 25 Jan 2022 03:28:22 +0000 (GMT) Received: from epcas5p2.samsung.com ( [182.195.41.40]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 1B.08.46822.1EC6FE16; Tue, 25 Jan 2022 12:22:09 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p1.samsung.com (KnoxPortal) with ESMTPA id 20220125032821epcas5p128c99ca3654fce0ec046943c90211849~NZb0dhrF01313413134epcas5p1-; Tue, 25 Jan 2022 03:28:21 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220125032821epsmtrp1ff7fd6850e9ee747b393a5be6ce1a16d~NZb0ctn0_0576205762epsmtrp1R; Tue, 25 Jan 2022 03:28:21 +0000 (GMT) X-AuditID: b6c32a4a-de5ff7000000b6e6-78-61ef6ce1a54e Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id A7.68.29871.55E6FE16; Tue, 25 Jan 2022 12:28:21 +0900 (KST) Received: from Jaguar.sa.corp.samsungelectronics.net (unknown [107.108.73.139]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220125032817epsmtip19e47296f384470582f757a9c255c41b5~NZbwA7U9L0280902809epsmtip17; Tue, 25 Jan 2022 03:28:17 +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 v3 1/3] spi: dt-bindings: samsung: Add fsd spi compatible Date: Tue, 25 Jan 2022 08:46:02 +0530 Message-Id: <20220125031604.76009-2-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+NgFmpkk+LIzCtJLcpLzFFi42LZdlhTQ/dhzvtEgyUz9S0OTHjFavFg3jY2 i8U/njNZTH34hM1i/pFzrBYb3/5gspjyZzmTxabH11gtHr4Kt7i8aw6bxYzz+5gsGj/eZLdY tPULu0Xr3iPsDnwesxp62TyuL/nE7LFpVSebx51re9g8Ni+p9+jbsorR41/TXHaPz5vkAjii sm0yUhNTUosUUvOS81My89JtlbyD453jTc0MDHUNLS3MlRTyEnNTbZVcfAJ03TJzgM5WUihL zCkFCgUkFhcr6dvZFOWXlqQqZOQXl9gqpRak5BSYFOgVJ+YWl+al6+WlllgZGhgYmQIVJmRn bHt8laXgI3vF8bMnWRoYj7F1MXJySAiYSFzofcvYxcjFISSwm1Hiyu6ZrCAJIYFPjBL7HolB JL4xSvz7MZsFpmPRnT/MEIm9jBJHpu1jgXBamCT2XroP1s4moC1xd/oWJhBbRMBN4kZjBxNI EbPATSaJ3w2vwZYLC3hKfGi8BdbAIqAqsfPSMmYQm1fARmLutx5WiHXyEqs3HACKc3BwCthK NE/gAJkjITCRQ+Jb0xZGiBoXiRW33kM9JCzx6vgWdghbSuJlfxs7SK+EQLZEzy5jiHCNxNJ5 x6C+sZc4cGUOC0gJs4CmxPpd+iBhZgE+id7fT5ggOnklOtqEIKpVJZrfXYXqlJaY2N0NdaSH xOmJ3xkhATeBUWLZa7EJjLKzEIYuYGRcxSiZWlCcm55abFpglJdaDo+m5PzcT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PMUpzsCiJ817oOhkvJJCeWJKanZpa kFoEk2Xi4JRqYGpYlsLL1yyW1/SrW0X70catMpIHPF6H8TBL7teuWns1I6bky3WBJ7JzuFdM myXzZ3Jl5V0+1+D3m09ezs9NOPhT8dGJef8fHL8lYJqfOclqgeL+57L7VhwKffz60ZWia70C CxTCvN6v/CkXetWL59mxH9LmEYYzdkYcWO7P9fnB5/X3tv0+dNDCwS/j4I8LfqZsu43nONqb Vfif4VtmfbZFc/mzpfujahV/CP0WXd1tfX3d4fwg0Z2RV4xnye3SPFoeWDDru2HphBb+CZ9t PjImc52IOOsjPPHJrudbLt6fPSclmu2rX0CyiKjQVa5dLy9lcJhbnvv6tOZKXMydmjXxkq/v tfwwaZX7Np/B/+l9JZbijERDLeai4kQAq4Bl5tkCAAA= X-CMS-MailID: 20220125032821epcas5p128c99ca3654fce0ec046943c90211849 X-Msg-Generator: CA CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220125032821epcas5p128c99ca3654fce0ec046943c90211849 References: <20220125031604.76009-1-alim.akhtar@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@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 Reviewed-by: Linus Walleij Acked-by: Rob Herring --- 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 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: 12723288 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 9035AC433EF for ; Tue, 25 Jan 2022 03:52:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S246554AbiAYDrk (ORCPT ); Mon, 24 Jan 2022 22:47:40 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:16856 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1323508AbiAYD2o (ORCPT ); Mon, 24 Jan 2022 22:28:44 -0500 Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20220125032839epoutp036b303434cb481475a839af8788f03526~NZcEo-SnX0538805388epoutp03l for ; Tue, 25 Jan 2022 03:28:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20220125032839epoutp036b303434cb481475a839af8788f03526~NZcEo-SnX0538805388epoutp03l 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+wshKkLGBlXMUqmFhTnpqcWmxYY5qW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MTBeIhRgoNZSYT3v/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-samsung-soc@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); From patchwork Tue Jan 25 03:16:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alim Akhtar X-Patchwork-Id: 12723287 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 3E64EC433F5 for ; Tue, 25 Jan 2022 03:52:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1387285AbiAYDri (ORCPT ); Mon, 24 Jan 2022 22:47:38 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:16810 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1323500AbiAYD2o (ORCPT ); Mon, 24 Jan 2022 22:28:44 -0500 Received: from epcas5p1.samsung.com (unknown [182.195.41.39]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20220125032837epoutp0379fdbbaecea11f12840ddc44fea36ce7~NZcC2MVX70580705807epoutp03S for ; Tue, 25 Jan 2022 03:28:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20220125032837epoutp0379fdbbaecea11f12840ddc44fea36ce7~NZcC2MVX70580705807epoutp03S DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1643081317; bh=+7Cu9Kn9/33bdLL2XPVxaJ2bvv5PfxM0zoSifz4NBsY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mqtl9BAu2B1VbAls5k2m2ZrenQMFP0tNl0uwtziRHz8SFmZHof3yKJJmiq1YJ5Vxm zQdzwzZNfmZoJa1k5L79GSZEX2QigL73WVhHTEaWMdCv7KQTELRcQjl+H8jQEhSpg9 zyVYRkXWOfL2FBLJFgn5iW1T/1mZFurUxRNf/PLs= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20220125032836epcas5p23e2340ab1dc13f5bd9f0df39fee4769a~NZcCWE6Ag2291022910epcas5p2s; Tue, 25 Jan 2022 03:28:36 +0000 (GMT) Received: from epsmges5p3new.samsung.com (unknown [182.195.38.174]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4JjXPT1rZ1z4x9Q8; Tue, 25 Jan 2022 03:28:29 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id 37.CC.05590.D5E6FE16; Tue, 25 Jan 2022 12:28:29 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p2.samsung.com (KnoxPortal) with ESMTPA id 20220125032828epcas5p22fbacf42ebfb1b78c1f74f48d37aa381~NZb6mVl592291022910epcas5p2a; Tue, 25 Jan 2022 03:28:28 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20220125032828epsmtrp2503af6965ec8161deef83a1bd2bd7cc4~NZb6lilEY2646626466epsmtrp2a; Tue, 25 Jan 2022 03:28:28 +0000 (GMT) X-AuditID: b6c32a4b-739ff700000015d6-d6-61ef6e5dd4dd Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id A7.48.08738.C5E6FE16; Tue, 25 Jan 2022 12:28:28 +0900 (KST) Received: from Jaguar.sa.corp.samsungelectronics.net (unknown [107.108.73.139]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220125032826epsmtip1aeef21ca7ca03a0be6e3748a5d256238~NZb4lRMbG0543005430epsmtip1O; Tue, 25 Jan 2022 03:28:26 +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 v3 3/3] arm64: dts: fsd: Add SPI device nodes Date: Tue, 25 Jan 2022 08:46:04 +0530 Message-Id: <20220125031604.76009-4-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+NgFmpkk+LIzCtJLcpLzFFi42LZdlhTUzc2732iwZZbfBYP5m1js1j84zmT xaHNW9ktpj58wmYx/8g5VouNb38wWUz5s5zJYtPja6wWD1+FW1zeNYfNYsb5fUwWjR9vslss 2vqF3aJ17xF2Bz6PWQ29bB7Xl3xi9ti0qpPN4861PWwem5fUe/RtWcXo8a9pLrvH501yARxR 2TYZqYkpqUUKqXnJ+SmZeem2St7B8c7xpmYGhrqGlhbmSgp5ibmptkouPgG6bpk5QGcrKZQl 5pQChQISi4uV9O1sivJLS1IVMvKLS2yVUgtScgpMCvSKE3OLS/PS9fJSS6wMDQyMTIEKE7Iz Wk6IFLwTqeh9O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 2vqF3aJ17xF2Bz6PWQ29bB7Xl3xi9ti0qpPN4861PWwem5fUe/RtWcXo8a9pLrvH501yARxR XDYpqTmZZalF+nYJXBktJ0QK3olU9L6dxtjAuFOgi5GTQ0LAROLpzi+sXYxcHEICOxglnky+ zQaRkJa4vnECO4QtLLHy33N2iKImJolDZ++xgiTYBLQl7k7fwgRiiwh4SLT9u8cMUsQs8IJJ 4uDGZkaQhLCArcS7k3tYQGwWAVWJX9fWAxVxcPAK2Eh0//CHWCAvsXrDAbAwJ1B58wQOEFMI qOL9Io0JjHwLGBlWMUqmFhTnpucWGxYY5aWW6xUn5haX5qXrJefnbmIEB7SW1g7GPas+6B1i ZOJgPMQowcGsJML73/t9ohBvSmJlVWpRfnxRaU5q8SFGaQ4WJXHeC10n44UE0hNLUrNTUwtS i2CyTBycUg1M8VfC9Y1kp/g1vc96tfnI5X9fGNb5sc7fsMtVq+qR+6z4BKur7N9v2zsYnwyz +ZIw76YNW+mh3x285brHGCx0JN/1nOXxS+rfmvq6YVdLnlz2pNRTYSwV6z9Y1MYHGX8XLV58 kiXEirX3m8RC1Yzba9cIO3pIvD6qJFnrdG+B6f8dc5nmqhk8mb4ya6LLvWsPg3u81J/9+WPK W80QK61ysqRv6++Wvc8rpzTsuHKVlfGD35+M/6rcKazfp4sqdvxU9uwXvMs35X+HmtEL22V5 LlOPx0Vv/b03yY6xclvGMvs8Wesf8ae3cjs8qzR90y152LH7fkJSyz7XkgvGTPnLSs9fqU/8 dkThZE+yYrISS3FGoqEWc1FxIgA0f3f01wIAAA== X-CMS-MailID: 20220125032828epcas5p22fbacf42ebfb1b78c1f74f48d37aa381 X-Msg-Generator: CA CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220125032828epcas5p22fbacf42ebfb1b78c1f74f48d37aa381 References: <20220125031604.76009-1-alim.akhtar@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org From: Aswani Reddy Adds device tree node for SPI IPs Cc: linux-fsd@tesla.com Signed-off-by: Aswani Reddy Signed-off-by: Alim Akhtar Reviewed-by: Krzysztof Kozlowski 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 b7f05f78c601..da4acd68b976 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 { @@ -668,6 +671,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"; + }; }; };