From patchwork Thu Jan 13 12:11:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alim Akhtar X-Patchwork-Id: 12712696 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 2AAB0C433FE for ; Thu, 13 Jan 2022 12:25:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233048AbiAMMZp (ORCPT ); Thu, 13 Jan 2022 07:25:45 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:22662 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232302AbiAMMZG (ORCPT ); Thu, 13 Jan 2022 07:25:06 -0500 Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20220113122505epoutp0282365bc8e38a5ac852c633aa561250de~J1BBNm2gH2919729197epoutp02i for ; Thu, 13 Jan 2022 12:25:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20220113122505epoutp0282365bc8e38a5ac852c633aa561250de~J1BBNm2gH2919729197epoutp02i DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1642076705; bh=Dop1jFQruUIB1sW0kIUYmLUWX+qRkXKeuxvtRO13Wcs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gnXGMDRI5cdUmqY51kgxYy9yc0+X0y3yH3aEnjzopitanDHBNlKGR8BxuVntCfSnb q8owlM/6iJWI2uDIbtM5J1JcdTadl7EApjqK2of7ACQwaZ6Bv9yv2Q0Kxvom/lJ2iH B/xN+h9x3+VUeA51HN+fiWWUegEF6t/r4hdn6vZU= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas5p3.samsung.com (KnoxPortal) with ESMTP id 20220113122504epcas5p36faf2524f27857177cb1d45240696835~J1A-6Rsjf1006210062epcas5p3t; Thu, 13 Jan 2022 12:25:04 +0000 (GMT) Received: from epsmges5p1new.samsung.com (unknown [182.195.38.182]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4JZNt13HPbz4x9Px; Thu, 13 Jan 2022 12:24:57 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id FD.D6.06423.81A10E16; Thu, 13 Jan 2022 21:24:56 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20220113122456epcas5p35f6406ab03af58d2e56b0b7304d4d002~J1A4xDhmX1006210062epcas5p3l; Thu, 13 Jan 2022 12:24:56 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220113122456epsmtrp1e4a57807c0189ba6a67b00291a54298a~J1A4vpfXE2009320093epsmtrp1D; Thu, 13 Jan 2022 12:24:56 +0000 (GMT) X-AuditID: b6c32a49-b01ff70000001917-35-61e01a189812 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 93.B9.08738.81A10E16; Thu, 13 Jan 2022 21:24:56 +0900 (KST) Received: from Jaguar.sa.corp.samsungelectronics.net (unknown [107.108.73.139]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220113122453epsmtip2278c805cc6a7a9404a5cbed7bb323a8f~J1A2IUeYk1246112461epsmtip2X; Thu, 13 Jan 2022 12:24:53 +0000 (GMT) From: Alim Akhtar To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: soc@kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, olof@lixom.net, linus.walleij@linaro.org, catalin.marinas@arm.com, robh+dt@kernel.org, krzysztof.kozlowski@canonical.com, s.nawrocki@samsung.com, linux-samsung-soc@vger.kernel.org, pankaj.dubey@samsung.com, Alim Akhtar , linux-fsd@tesla.com, Tamseel Shams Subject: [PATCH 22/23] arm64: dts: fsd: Add ADC device tree node Date: Thu, 13 Jan 2022 17:41:42 +0530 Message-Id: <20220113121143.22280-23-alim.akhtar@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220113121143.22280-1-alim.akhtar@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAJsWRmVeSWpSXmKPExsWy7bCmlq6E1INEg6st1hYP5m1js3i/rIfR Yv6Rc6wWG9/+YLKY8mc5k8Wmx9dYLT723GO1ePgq3OLyrjlsFjPO72OyuNu6mN3i1PXPbBaL tn5ht2jde4Td4vCbdlaLx9f/sDkIeKyZt4bRY1ZDL5vHplWdbB53ru1h89i8pN7jyokmVo++ LasYPf41zWX3+LxJLoAzKtsmIzUxJbVIITUvOT8lMy/dVsk7ON453tTMwFDX0NLCXEkhLzE3 1VbJxSdA1y0zB+gLJYWyxJxSoFBAYnGxkr6dTVF+aUmqQkZ+cYmtUmpBSk6BSYFecWJucWle ul5eaomVoYGBkSlQYUJ2xu6T29kLurkq/r65xtLAuISji5GTQ0LARGLurOtMXYxcHEICuxkl ztyczgbhfGKU+LThNTOE85lR4l3zRBaYllXrr7JCJHYxShx88guqv4VJ4uyhRiaQKjYBbYm7 07eA2SICbhI3GjvAipgFmpkl5k08CDSKg0NYwEHi1YwAEJNFQFXi7343kHJeAVuJ022XmCGW yUus3nCAGaSEEyh+d1UeyBQJgZUcEh0TvzBB1LhI7Py6mhHCFpZ4dXwLO4QtJfGyv40dpFdC IFuiZ5cxRLhGYum8Y1C/2EscuDIH7BhmAU2J9bv0QcLMAnwSvb+fMEF08kp0tAlBVKtKNL+7 CtUpLTGxu5sVwvaQ2LRpDiMkECYwSpxasIp1AqPsLISpCxgZVzFKphYU56anFpsWGOalls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kOMEhzMSiK8/UX3E4V4UxIrq1KL8uOLSnNSiw8xSnOw KInzXug6GS8kkJ5YkpqdmlqQWgSTZeLglGpg8li34Oq6z0KrClU/HeXP8HuwcnPRcm+fW3HF PgJpH6c25B4+LyHw88olpZ6T/EUuh78WyinOjIj+MClJW3HNya/S6wT3CsYvtNpkMmWObZ79 vQl851x3V9xO5Tq5geVz6TGNhoaYcN6n3xf8Mn5yenL97T2+FW5Lc6STZLlfHC8+3qHjXvVK 35h31boP4hv4pvJe/sb7LF5GxuLkpdc/VPnPHstavHHpHbuq1/IrAh6tPbgmwJXFfFUR09+4 /+w2G5Pu3p2woWXdHY/s5UedfZtPlGjy7Kg+131+Rvaio3pVGhUGlt89Hns8sviYKqIc9MzU /X/dfVVFyYbD3XuUebYEPxFcbPF7z91bsb8dzyixFGckGmoxFxUnAgBdqSO25wIAAA== X-CMS-MailID: 20220113122456epcas5p35f6406ab03af58d2e56b0b7304d4d002 X-Msg-Generator: CA CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220113122456epcas5p35f6406ab03af58d2e56b0b7304d4d002 References: <20220113121143.22280-1-alim.akhtar@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org This patch adds ADC device tree node and enables the same on fsd platform. Cc: linux-fsd@tesla.com Signed-off-by: Tamseel Shams Signed-off-by: Alim Akhtar --- arch/arm64/boot/dts/tesla/fsd.dts | 4 ++++ arch/arm64/boot/dts/tesla/fsd.dtsi | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/tesla/fsd.dts b/arch/arm64/boot/dts/tesla/fsd.dts index 7f3bb6212e50..dd6c75fc3221 100644 --- a/arch/arm64/boot/dts/tesla/fsd.dts +++ b/arch/arm64/boot/dts/tesla/fsd.dts @@ -150,3 +150,7 @@ &spi_2 { status = "okay"; }; + +&adc { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/tesla/fsd.dtsi b/arch/arm64/boot/dts/tesla/fsd.dtsi index 7e687c6f74f6..058a9d381aed 100644 --- a/arch/arm64/boot/dts/tesla/fsd.dtsi +++ b/arch/arm64/boot/dts/tesla/fsd.dtsi @@ -788,6 +788,17 @@ num-cs = <1>; status = "disabled"; }; + + adc: adc@141A0000 { + compatible = "samsung,exynos-adc-v3"; + reg = <0x0 0x141A0000 0x0 0x100>; + interrupts = ; + clocks = <&clock_peric PERIC_PCLK_ADCIF>; + clock-names = "adc"; + #io-channel-cells = <1>; + io-channel-ranges; + status = "disabled"; + }; }; };