From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752300AbdCCOaW (ORCPT ); Fri, 3 Mar 2017 09:30:22 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:55098 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752230AbdCCOaT (ORCPT ); Fri, 3 Mar 2017 09:30:19 -0500 Subject: Re: [PATCH v3 6/6] iio: adc: stm32: add support for EXTI trigger To: Lars-Peter Clausen , , , , , , References: <1488300679-3259-1-git-send-email-fabrice.gasnier@st.com> <1488300679-3259-7-git-send-email-fabrice.gasnier@st.com> <5be44ed9-2c86-ac51-d964-d231d5ca62fa@metafoo.de> CC: , , , , , , , , From: Fabrice Gasnier Message-ID: Date: Fri, 3 Mar 2017 14:00:51 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <5be44ed9-2c86-ac51-d964-d231d5ca62fa@metafoo.de> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.46] X-ClientProxiedBy: SFHDAG3NODE3.st.com (10.75.127.9) To SFHDAG5NODE3.st.com (10.75.127.15) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-03-03_10:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/03/2017 12:45 PM, Lars-Peter Clausen wrote: > On 02/28/2017 05:51 PM, Fabrice Gasnier wrote: >> EXTi (external interrupt) signal can be routed internally as trigger >> source for ADC conversions: STM32F4 ADC can use EXTI11. >> >> Retrieve interrupt trigger from DT, so it can be muxed into ADC IP, >> via extsel. > > Hi, > > Sorry, I have some trouble understanding the specifics of this. Is EXTI a > hardware input signal into the ADC that automatically triggers a conversion > when asserted? If yes how is it configured which external signal is used > here. Your bindings suggest that any GPIO can be used, but the driver only > differentiates between EXTI on or EXTI off. Hi Lars, Yes, STM32 EXTI is external interrupt/event line. In case of STM32 ADC, EXTI11 signal can be used to start a conversion. In this case, it must be selected inside ADC IP using extsel bitfield. This EXTI11 line can mapped from any GPIO bank A,B... line 11 (e.g. PA11 or PB11...) by using interrupt binding. This is why I expose this in DT. > > Or is this just a software triggered conversion? The GPIO triggers a > software interrupt routine and the interrupt routine than triggers conversion? > From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabrice Gasnier Subject: Re: [PATCH v3 6/6] iio: adc: stm32: add support for EXTI trigger Date: Fri, 3 Mar 2017 14:00:51 +0100 Message-ID: References: <1488300679-3259-1-git-send-email-fabrice.gasnier@st.com> <1488300679-3259-7-git-send-email-fabrice.gasnier@st.com> <5be44ed9-2c86-ac51-d964-d231d5ca62fa@metafoo.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5be44ed9-2c86-ac51-d964-d231d5ca62fa@metafoo.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Lars-Peter Clausen , jic23@kernel.org, linux@armlinux.org.uk, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: mark.rutland@arm.com, mcoquelin.stm32@gmail.com, benjamin.gaignard@linaro.org, alexandre.torgue@st.com, linux-iio@vger.kernel.org, linus.walleij@linaro.org, pmeerw@pmeerw.net, knaack.h@gmx.de, benjamin.gaignard@st.com List-Id: devicetree@vger.kernel.org On 03/03/2017 12:45 PM, Lars-Peter Clausen wrote: > On 02/28/2017 05:51 PM, Fabrice Gasnier wrote: >> EXTi (external interrupt) signal can be routed internally as trigger >> source for ADC conversions: STM32F4 ADC can use EXTI11. >> >> Retrieve interrupt trigger from DT, so it can be muxed into ADC IP, >> via extsel. > > Hi, > > Sorry, I have some trouble understanding the specifics of this. Is EXTI a > hardware input signal into the ADC that automatically triggers a conversion > when asserted? If yes how is it configured which external signal is used > here. Your bindings suggest that any GPIO can be used, but the driver only > differentiates between EXTI on or EXTI off. Hi Lars, Yes, STM32 EXTI is external interrupt/event line. In case of STM32 ADC, EXTI11 signal can be used to start a conversion. In this case, it must be selected inside ADC IP using extsel bitfield. This EXTI11 line can mapped from any GPIO bank A,B... line 11 (e.g. PA11 or PB11...) by using interrupt binding. This is why I expose this in DT. > > Or is this just a software triggered conversion? The GPIO triggers a > software interrupt routine and the interrupt routine than triggers conversion? > From mboxrd@z Thu Jan 1 00:00:00 1970 From: fabrice.gasnier@st.com (Fabrice Gasnier) Date: Fri, 3 Mar 2017 14:00:51 +0100 Subject: [PATCH v3 6/6] iio: adc: stm32: add support for EXTI trigger In-Reply-To: <5be44ed9-2c86-ac51-d964-d231d5ca62fa@metafoo.de> References: <1488300679-3259-1-git-send-email-fabrice.gasnier@st.com> <1488300679-3259-7-git-send-email-fabrice.gasnier@st.com> <5be44ed9-2c86-ac51-d964-d231d5ca62fa@metafoo.de> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 03/03/2017 12:45 PM, Lars-Peter Clausen wrote: > On 02/28/2017 05:51 PM, Fabrice Gasnier wrote: >> EXTi (external interrupt) signal can be routed internally as trigger >> source for ADC conversions: STM32F4 ADC can use EXTI11. >> >> Retrieve interrupt trigger from DT, so it can be muxed into ADC IP, >> via extsel. > > Hi, > > Sorry, I have some trouble understanding the specifics of this. Is EXTI a > hardware input signal into the ADC that automatically triggers a conversion > when asserted? If yes how is it configured which external signal is used > here. Your bindings suggest that any GPIO can be used, but the driver only > differentiates between EXTI on or EXTI off. Hi Lars, Yes, STM32 EXTI is external interrupt/event line. In case of STM32 ADC, EXTI11 signal can be used to start a conversion. In this case, it must be selected inside ADC IP using extsel bitfield. This EXTI11 line can mapped from any GPIO bank A,B... line 11 (e.g. PA11 or PB11...) by using interrupt binding. This is why I expose this in DT. > > Or is this just a software triggered conversion? The GPIO triggers a > software interrupt routine and the interrupt routine than triggers conversion? >