From patchwork Tue Dec 3 07:32:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xingyu Chen X-Patchwork-Id: 11270643 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 210BB139A for ; Tue, 3 Dec 2019 07:32:31 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id F3C0A2073B for ; Tue, 3 Dec 2019 07:32:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="gWU6dCIo" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F3C0A2073B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amlogic.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Nc4CpcL8kxjtcDtGWJ0wsZjSFXhzaXIAMY6mdY4qVjw=; b=gWU6dCIomv9Wux sucq7PdLizTcYW3/Kxxn5PzDDuEArlrL2XpHhPGIL0z6oCJDOKDLsk8NNY8Ox8ZmnYBT2SoqdmkeU gyZTHAdVXGR35mU1Fn2ho95IQK8kDZIp9yczk5McC8uJkBiQ3pVIuZzNau0BUoXybS8tIhsDfk3Wv ZfQOb/y8KKyvarZogAb8IutNOnq+2q3ke8jk7d7oRqJ5XM5SpMAbkcNXtXSFJ6vOkbpHlpm8nFOdu UceHn1SelAGKTi++pSv3P0ytULUN/a8466T711lNz1QRayRgaeaQ2JS7GXLzdTHtg57oE36GaXppy gXLE2+vtfK/pMC+6WSMA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ic2fd-0006lO-Fi; Tue, 03 Dec 2019 07:32:29 +0000 Received: from mail-sz.amlogic.com ([211.162.65.117]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ic2fb-0006kC-4l; Tue, 03 Dec 2019 07:32:28 +0000 Received: from droid12-sz.software.amlogic (10.28.8.22) by mail-sz.amlogic.com (10.28.11.5) with Microsoft SMTP Server id 15.1.1591.10; Tue, 3 Dec 2019 15:32:44 +0800 From: Xingyu Chen To: Kevin Hilman , Neil Armstrong , Martin Blumenstingl Subject: [PATCH] arm64: dts: a1: add saradc controller Date: Tue, 3 Dec 2019 15:32:12 +0800 Message-ID: <1575358332-44866-1-git-send-email-xingyu.chen@amlogic.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.28.8.22] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191202_233227_391457_C199ECDB X-CRM114-Status: UNSURE ( 8.19 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Qianggui Song , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jianxin Pan , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Jian Hu , Xingyu Chen , linux-amlogic@lists.infradead.org, Jonathan Cameron , Jerome Brunet Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org The saradc controller in Meson-A1 is the same as the Meson-G12 series SoCs, so we use the same compatible string. Signed-off-by: Xingyu Chen --- This patch is based on A1 clock patchset at [0]. [0] https://lore.kernel.org/linux-amlogic/20191129144605.182774-1-jian.hu@amlogic.com --- arch/arm64/boot/dts/amlogic/meson-a1.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-a1.dtsi b/arch/arm64/boot/dts/amlogic/meson-a1.dtsi index 7210ad0..cad1756 100644 --- a/arch/arm64/boot/dts/amlogic/meson-a1.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-a1.dtsi @@ -93,6 +93,21 @@ clock-names = "xtal", "pclk", "baud"; status = "disabled"; }; + + saradc: adc@2c00 { + compatible = "amlogic,meson-g12a-saradc", + "amlogic,meson-saradc"; + reg = <0x0 0x2c00 0x0 0x48>; + #io-channel-cells = <1>; + interrupts = ; + clocks = <&xtal>, + <&clkc_periphs CLKID_SARADC>, + <&clkc_periphs CLKID_SARADC_CLK>, + <&clkc_periphs CLKID_SARADC_SEL>; + clock-names = "clkin", "core", "adc_clk", + "adc_sel"; + status = "disabled"; + }; }; gic: interrupt-controller@ff901000 {