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: 12723231 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 1DCCDC433EF for ; Tue, 25 Jan 2022 03:30:35 +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=bjsDUXDAgt2UtiJBz0IjCrCb/aYOGS++Ia2vYM4fuR4=; b=wZcmTTHfUOrgnz aZjsTYuCWKccz4/a09BSI0vDoSNuNh3+iqxJwnt3YdQxLk6EOOBJPxBCGuapXs8HC83gstOqrn56g Z52WZ960f+VwGnTM8+GGtEbOAsaUdNrRq1q4y/kxCKqCDFRSalTNnlHql2Ovhfzo57vsY/6Ke3EQd r0MidEMSfmPgXASy0jpfdjAwa6BF0P3fM4aNOcLY9oKkVW9BTV8oCQtlBCBU3/2M5rnZBIOVusWkg Z8Z6+/iFfuYc4IsnX61fIHdhtI51pHZhX/1nW9Yo6lKG3lq2P5Wo/f907lZ2Qwdv/bD3IOUIpVXSM S6OMxtIgIkXNwg0GyHNA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nCCWA-006KL6-T7; Tue, 25 Jan 2022 03:29:15 +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 1nCCVc-006KDY-Oc for linux-arm-kernel@lists.infradead.org; Tue, 25 Jan 2022 03:28:43 +0000 Received: from epcas5p1.samsung.com (unknown [182.195.41.39]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20220125032837epoutp040fe42389a699f8e750388a4b46281a22~NZcC1-fMb1619716197epoutp04R for ; Tue, 25 Jan 2022 03:28:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20220125032837epoutp040fe42389a699f8e750388a4b46281a22~NZcC1-fMb1619716197epoutp04R 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+LIzCtJLcpLz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/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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220124_192841_180730_739C6F95 X-CRM114-Status: GOOD ( 14.19 ) 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 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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"; + }; }; };