Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp4919874imm; Tue, 26 Jun 2018 02:53:32 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJkPH6OLiN0TQ9MO5X9S/OkscLo8/r7C81ZWOetaF8e/fs4Bjms9uRn+iCYGk3fgJmggoKp X-Received: by 2002:a63:24c4:: with SMTP id k187-v6mr736565pgk.434.1530006812636; Tue, 26 Jun 2018 02:53:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530006812; cv=none; d=google.com; s=arc-20160816; b=BZ+rmhTSIC+4+AhYCyR4litjp5DpdgcuoQh8ycDdYsKkG58q1dZpwoRPxMKVqzx7yg GFKECOc/usvhcXzDvIR+iU/myE+NEM4Z5ZD8zuAa3V2RE3gAS0AVavlJG0osIZ4/iijw XO+9OqUUIt6Oj3z3U/ibjbr6FxPO2qd5NLQLkeLp2x2qmFZqwMPtr2yUmPR0nVJCjFg1 /Upw5C0VF6MCWyFIlL+Y329MCr0iyVGVk+YHrZeMlnLm0ivKM0V4/f+tJdVtqzvqDrSJ EzGM71xO8JdRPeuDms4ornGaMaEGloaGFqTMo2JMJHdvZvZ4/Hq/Y/Q7jAmM51ZQAuNP /CKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=Dre54C4QbQAteaYIGSIMiTcOUn4ITPvr0z1utDzCDr4=; b=g2kYTEIS/47lq5/cTdYceeOH2UIJBmu1VEclOFJzcN8x+8sgumakwIT5zYYOPhsR77 X9zz+AjtPcp94V/AQTn8A7fYP45dV43jsia4gbx3PF859yzamlhbbBCjWIeqe/r0pe6B hKSa4ou6pYa9ns2UBmk3ACLbKgmL21/2OQmPNxBPv4hDm+7rqLkC3lXSG9QYnLmmXGex 6hx4+Owuje9sBIPOH8BEynlTb5A8KvfgTWZITcY948teRcmjmvr3nj4TnMGz3t2V/h2c nrm8aeQ0K0enJvSR5BJ7y1y1MaQWhcL46rEBthvvNjKezxqrfpMKf87iCm3KUtZE+D6E y/CA== 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 bi3-v6si1261677plb.46.2018.06.26.02.53.18; Tue, 26 Jun 2018 02:53:32 -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 S934346AbeFZJwJ (ORCPT + 99 others); Tue, 26 Jun 2018 05:52:09 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:54619 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933250AbeFZJwG (ORCPT ); Tue, 26 Jun 2018 05:52:06 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w5Q9nVbV018950; Tue, 26 Jun 2018 11:51:36 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2juhf48kvg-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 26 Jun 2018 11:51:36 +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 C418B3D; Tue, 26 Jun 2018 09:51:34 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 9592824FD; Tue, 26 Jun 2018 09:51:34 +0000 (GMT) Received: from [10.201.21.58] (10.75.127.49) by SFHDAG3NODE2.st.com (10.75.127.8) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Tue, 26 Jun 2018 11:51:33 +0200 Subject: Re: [PATCH v3] ARM: dts: stm32: Add ADC support to stm32mp157c To: Fabrice Gasnier CC: , , , , , References: <1527003937-15999-1-git-send-email-fabrice.gasnier@st.com> From: Alexandre Torgue Message-ID: <3b44dd54-087c-e10f-4bf5-3728e735ee0c@st.com> Date: Tue, 26 Jun 2018 11:51:15 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1527003937-15999-1-git-send-email-fabrice.gasnier@st.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.49] X-ClientProxiedBy: SFHDAG4NODE3.st.com (10.75.127.12) To SFHDAG3NODE2.st.com (10.75.127.8) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-06-26_07:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Fabrice On 05/22/2018 05:45 PM, Fabrice Gasnier wrote: > stm32mp157c has an ADC block with two physical ADCs. > > Signed-off-by: Fabrice Gasnier > --- > Changes in v3: > - Add dmas since dmamux1 has been added on top of stm32-next > --- > arch/arm/boot/dts/stm32mp157c.dtsi | 36 ++++++++++++++++++++++++++++++++++++ > 1 file changed, 36 insertions(+) > > diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi b/arch/arm/boot/dts/stm32mp157c.dtsi > index b66f673..66d7496 100644 > --- a/arch/arm/boot/dts/stm32mp157c.dtsi > +++ b/arch/arm/boot/dts/stm32mp157c.dtsi Applied on stm32-next. Thanks. Alex > @@ -600,6 +600,42 @@ > clocks = <&rcc DMAMUX>; > }; > > + 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>; > + dmas = <&dmamux1 9 0x400 0x01>; > + dma-names = "rx"; > + status = "disabled"; > + }; > + > + adc2: adc@100 { > + compatible = "st,stm32mp1-adc"; > + #io-channel-cells = <1>; > + reg = <0x100>; > + interrupt-parent = <&adc>; > + interrupts = <1>; > + dmas = <&dmamux1 10 0x400 0x01>; > + dma-names = "rx"; > + status = "disabled"; > + }; > + }; > + > rcc: rcc@50000000 { > compatible = "st,stm32mp1-rcc", "syscon"; > reg = <0x50000000 0x1000>; >