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: 12712741 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 B25B9C433F5 for ; Thu, 13 Jan 2022 12:46:49 +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=+ttxAWbFOcJeRaLb90Bnutv71UVc+2YHrvxCEunUAcE=; b=pmZgkpI2yZnFyz TzG8BbVcRd1xbKLwFWGiLw+AUKYH42/2X1ULgGsCar8lyAt3bniXuj38mSmvtVdgcvgSA9Siflzou MHoYkBBEWoAFYLSjWTpoVnsJWCutq/k321ls/EiVYWDJ97p5AksKpizlxavCvQizr0J4DNvQlgmRi Q+nOSm0ZR5H+NIpbTfX6Zrzc7mMpMl5RN6+rn8YWE2WPKdJB20xNz0IlvT+LY9cz6+UmMB4Z2kVBp qgf2egh4FvCSaaP/d2wnnXpCDxNVkXagoWuTnSd12nkQaXKqiUDhuZv4MnWHkItfYypKITVwDF7yl tjMxokCP5p7DIyJLE35A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7zTC-005tSN-Ba; Thu, 13 Jan 2022 12:44:48 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7zAB-005nB4-8F for linux-arm-kernel@lists.infradead.org; Thu, 13 Jan 2022 12:25:09 +0000 Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20220113122505epoutp03fb560cf328a2214223a2b5ed4d416384~J1BBM2ONy1485214852epoutp03e for ; Thu, 13 Jan 2022 12:25:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20220113122505epoutp03fb560cf328a2214223a2b5ed4d416384~J1BBM2ONy1485214852epoutp03e 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+NgFprAJsWRmVeSWpSXmKPExsWy7bC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2G5Pu3p2woWXdHY/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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220113_042507_710031_38BB2F4F X-CRM114-Status: GOOD ( 13.15 ) 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 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"; + }; }; };