Received: by 10.192.165.156 with SMTP id m28csp1375815imm; Wed, 18 Apr 2018 08:42:26 -0700 (PDT) X-Google-Smtp-Source: AIpwx4++00YHAzB7pYDGpE/YIAFmKjnqM7A9XKur6uZcL3XzNo65pGBlKW/MxC45X1MgZgZzfYpd X-Received: by 2002:a17:902:566:: with SMTP id 93-v6mr2576206plf.327.1524066146729; Wed, 18 Apr 2018 08:42:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524066146; cv=none; d=google.com; s=arc-20160816; b=EjwtHZV0rSBtynggu1Jbu/vL38LoTwg0iXa2KTF9WnpPZZ4l09s1FSPj0DmQH30Z7J 9SgtS6dflzNF3JUhrU3iearFGgr4vYnJjzjBY+znj65f35wb/o8/U5JrcrfY5a4Z+rmF cPi9Bel0u8SBQ8WR25h8hwwEM9bE7c9aYdIpIwX2vuJwIVE69SfdLmI72XuNVGAybEMj n0SqqwfXIbg/T8LcMIVGOUfDLvkxDt4MMBS85MEgBfCSrpMDJsmLYFacCr4wI8shsFgb 5+iSn60QSQ27fcBzV/uP73cnjKh5dKou9oZEpM++53i5hIiaYchidhgpYGBhpj9EOKuJ AbSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=FHeqXjH7ngdHdBRFEIO1rj6/A2Z8WJ20X01As25VKkA=; b=k99L8ix0WtyF5edMWbq/6PK+EbQVLP79AR0mMWS+ljfLa6uwKwXgcAsA6ECbXcbVCd RhogAQ9/3Xzr2aePoTs4fUTbkyvResNSf5hZyCFExBOlFS6dL4ZtKFHKIGCMAJBQnBkL b1M03rB3hiH5vq6JQVi15Ouk0IMFw/j0Ho+IbH1s9WDnU+oQfyu9adDSDD7v+SwNlzQI EzvSi8ejZKkUXFdmsHla365mUWL2hSrgkOUnatfKFxAAs8uy90gChiKJhqALdRCqCi/U miqky92f7ajgQ4dkwepdbKGu8A2tWKVp5BVgp9eWTOWYG+5+x+yJOmGYpRWWMS012VAN PmgQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g7-v6si1516198plk.388.2018.04.18.08.42.12; Wed, 18 Apr 2018 08:42:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754035AbeDRPjN (ORCPT + 99 others); Wed, 18 Apr 2018 11:39:13 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:9000 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751383AbeDRPjJ (ORCPT ); Wed, 18 Apr 2018 11:39:09 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w3IFYExY023528; Wed, 18 Apr 2018 17:38:18 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2hds2amgnd-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 18 Apr 2018 17:38:18 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 01EE434; Wed, 18 Apr 2018 15:38:18 +0000 (GMT) Received: from Webmail-eu.st.com (gpxdag5node6.st.com [10.75.127.79]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id D219F53F5; Wed, 18 Apr 2018 15:38:17 +0000 (GMT) Received: from localhost (10.75.127.119) by GPXDAG5NODE6.st.com (10.75.127.79) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 18 Apr 2018 17:38:17 +0200 From: Fabrice Gasnier To: , , CC: , , , , , , , , , , Subject: [PATCH 3/3] ARM: dts: stm32: Add ADC support to stm32mp157c Date: Wed, 18 Apr 2018 17:37:54 +0200 Message-ID: <1524065874-434-4-git-send-email-fabrice.gasnier@st.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1524065874-434-1-git-send-email-fabrice.gasnier@st.com> References: <1524065874-434-1-git-send-email-fabrice.gasnier@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.119] X-ClientProxiedBy: GPXDAG1NODE4.st.com (10.75.127.65) To GPXDAG5NODE6.st.com (10.75.127.79) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-18_03:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org stm32mp157c has an ADC block with two physical ADCs. Signed-off-by: Fabrice Gasnier --- arch/arm/boot/dts/stm32mp157c.dtsi | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi b/arch/arm/boot/dts/stm32mp157c.dtsi index bc3eddc..7758a90 100644 --- a/arch/arm/boot/dts/stm32mp157c.dtsi +++ b/arch/arm/boot/dts/stm32mp157c.dtsi @@ -160,6 +160,38 @@ status = "disabled"; }; + adc: adc@48003000 { + compatible = "st,stm32mp1-adc-core"; + reg = <0x48003000 0x400>; + interrupts = , + ; + clocks = <&rcc ADC12>, <&rcc ADC12_K>; + clock-names = "bus", "adc"; + interrupt-controller; + #interrupt-cells = <1>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + + adc1: adc@0 { + compatible = "st,stm32mp1-adc"; + #io-channel-cells = <1>; + reg = <0x0>; + interrupt-parent = <&adc>; + interrupts = <0>; + status = "disabled"; + }; + + adc2: adc@100 { + compatible = "st,stm32mp1-adc"; + #io-channel-cells = <1>; + reg = <0x100>; + interrupt-parent = <&adc>; + interrupts = <1>; + status = "disabled"; + }; + }; + rcc: rcc@50000000 { compatible = "st,stm32mp1-rcc", "syscon"; reg = <0x50000000 0x1000>; -- 1.9.1