From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lee Jones Subject: Re: [PATCH 2/7] MFD: add STM32 DFSDM support Date: Tue, 24 Jan 2017 08:22:49 +0000 Message-ID: <20170124082249.GR16020@dell> References: <1485189145-29576-1-git-send-email-arnaud.pouliquen@st.com> <1485189145-29576-3-git-send-email-arnaud.pouliquen@st.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Content-Disposition: inline In-Reply-To: <1485189145-29576-3-git-send-email-arnaud.pouliquen-qxv4g6HH51o@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Arnaud Pouliquen Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org, Rob Herring , Mark Rutland , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Jaroslav Kysela , Takashi Iwai , Liam Girdwood , Mark Brown , Maxime Coquelin , Alexandre Torgue List-Id: alsa-devel@alsa-project.org On Mon, 23 Jan 2017, Arnaud Pouliquen wrote: > DFSDM hardware IP can be used at the same time for ADC sigma delta Same time as what? > conversion and audio PDM microphone. > MFD driver is in charge of configuring IP registers and managing IP clocks. > For this it exports an API to handles filters and channels resources. This looks like an ADC driver? What is it that makes it an MFD? > Signed-off-by: Arnaud Pouliquen > --- > drivers/mfd/Kconfig | 11 + > drivers/mfd/Makefile | 2 + > drivers/mfd/stm32-dfsdm-reg.h | 220 +++++++++ > drivers/mfd/stm32-dfsdm.c | 1044 +++++++++++++++++++++++++++++++++++++++ > include/linux/mfd/stm32-dfsdm.h | 324 ++++++++++++ > 5 files changed, 1601 insertions(+) > create mode 100644 drivers/mfd/stm32-dfsdm-reg.h > create mode 100644 drivers/mfd/stm32-dfsdm.c > create mode 100644 include/linux/mfd/stm32-dfsdm.h > > diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig > index c6df644..4bb660b 100644 > --- a/drivers/mfd/Kconfig > +++ b/drivers/mfd/Kconfig > @@ -1607,6 +1607,17 @@ config MFD_STW481X > in various ST Microelectronics and ST-Ericsson embedded > Nomadik series. > > +config MFD_STM32_DFSDM > + tristate "ST Microelectronics STM32 DFSDM" > + depends on (ARCH_STM32 && OF) || COMPILE_TEST > + select MFD_CORE > + select REGMAP > + select REGMAP_MMIO > + help > + Select this option to enable the STM32 Digital Filter > + for Sigma Delta Modulators (DFSDM) driver used > + in various STM32 series. > + > menu "Multimedia Capabilities Port drivers" > depends on ARCH_SA1100 [...] -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f49.google.com ([74.125.82.49]:36374 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751485AbdAXITJ (ORCPT ); Tue, 24 Jan 2017 03:19:09 -0500 Received: by mail-wm0-f49.google.com with SMTP id c85so168824888wmi.1 for ; Tue, 24 Jan 2017 00:18:56 -0800 (PST) Date: Tue, 24 Jan 2017 08:22:49 +0000 From: Lee Jones To: Arnaud Pouliquen Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-iio@vger.kernel.org, alsa-devel@alsa-project.org, Rob Herring , Mark Rutland , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Jaroslav Kysela , Takashi Iwai , Liam Girdwood , Mark Brown , Maxime Coquelin , Alexandre Torgue Subject: Re: [PATCH 2/7] MFD: add STM32 DFSDM support Message-ID: <20170124082249.GR16020@dell> References: <1485189145-29576-1-git-send-email-arnaud.pouliquen@st.com> <1485189145-29576-3-git-send-email-arnaud.pouliquen@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 In-Reply-To: <1485189145-29576-3-git-send-email-arnaud.pouliquen@st.com> Sender: linux-iio-owner@vger.kernel.org List-Id: linux-iio@vger.kernel.org On Mon, 23 Jan 2017, Arnaud Pouliquen wrote: > DFSDM hardware IP can be used at the same time for ADC sigma delta Same time as what? > conversion and audio PDM microphone. > MFD driver is in charge of configuring IP registers and managing IP clocks. > For this it exports an API to handles filters and channels resources. This looks like an ADC driver? What is it that makes it an MFD? > Signed-off-by: Arnaud Pouliquen > --- > drivers/mfd/Kconfig | 11 + > drivers/mfd/Makefile | 2 + > drivers/mfd/stm32-dfsdm-reg.h | 220 +++++++++ > drivers/mfd/stm32-dfsdm.c | 1044 +++++++++++++++++++++++++++++++++++++++ > include/linux/mfd/stm32-dfsdm.h | 324 ++++++++++++ > 5 files changed, 1601 insertions(+) > create mode 100644 drivers/mfd/stm32-dfsdm-reg.h > create mode 100644 drivers/mfd/stm32-dfsdm.c > create mode 100644 include/linux/mfd/stm32-dfsdm.h > > diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig > index c6df644..4bb660b 100644 > --- a/drivers/mfd/Kconfig > +++ b/drivers/mfd/Kconfig > @@ -1607,6 +1607,17 @@ config MFD_STW481X > in various ST Microelectronics and ST-Ericsson embedded > Nomadik series. > > +config MFD_STM32_DFSDM > + tristate "ST Microelectronics STM32 DFSDM" > + depends on (ARCH_STM32 && OF) || COMPILE_TEST > + select MFD_CORE > + select REGMAP > + select REGMAP_MMIO > + help > + Select this option to enable the STM32 Digital Filter > + for Sigma Delta Modulators (DFSDM) driver used > + in various STM32 series. > + > menu "Multimedia Capabilities Port drivers" > depends on ARCH_SA1100 [...] -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog From mboxrd@z Thu Jan 1 00:00:00 1970 From: lee.jones@linaro.org (Lee Jones) Date: Tue, 24 Jan 2017 08:22:49 +0000 Subject: [PATCH 2/7] MFD: add STM32 DFSDM support In-Reply-To: <1485189145-29576-3-git-send-email-arnaud.pouliquen@st.com> References: <1485189145-29576-1-git-send-email-arnaud.pouliquen@st.com> <1485189145-29576-3-git-send-email-arnaud.pouliquen@st.com> Message-ID: <20170124082249.GR16020@dell> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Mon, 23 Jan 2017, Arnaud Pouliquen wrote: > DFSDM hardware IP can be used at the same time for ADC sigma delta Same time as what? > conversion and audio PDM microphone. > MFD driver is in charge of configuring IP registers and managing IP clocks. > For this it exports an API to handles filters and channels resources. This looks like an ADC driver? What is it that makes it an MFD? > Signed-off-by: Arnaud Pouliquen > --- > drivers/mfd/Kconfig | 11 + > drivers/mfd/Makefile | 2 + > drivers/mfd/stm32-dfsdm-reg.h | 220 +++++++++ > drivers/mfd/stm32-dfsdm.c | 1044 +++++++++++++++++++++++++++++++++++++++ > include/linux/mfd/stm32-dfsdm.h | 324 ++++++++++++ > 5 files changed, 1601 insertions(+) > create mode 100644 drivers/mfd/stm32-dfsdm-reg.h > create mode 100644 drivers/mfd/stm32-dfsdm.c > create mode 100644 include/linux/mfd/stm32-dfsdm.h > > diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig > index c6df644..4bb660b 100644 > --- a/drivers/mfd/Kconfig > +++ b/drivers/mfd/Kconfig > @@ -1607,6 +1607,17 @@ config MFD_STW481X > in various ST Microelectronics and ST-Ericsson embedded > Nomadik series. > > +config MFD_STM32_DFSDM > + tristate "ST Microelectronics STM32 DFSDM" > + depends on (ARCH_STM32 && OF) || COMPILE_TEST > + select MFD_CORE > + select REGMAP > + select REGMAP_MMIO > + help > + Select this option to enable the STM32 Digital Filter > + for Sigma Delta Modulators (DFSDM) driver used > + in various STM32 series. > + > menu "Multimedia Capabilities Port drivers" > depends on ARCH_SA1100 [...] -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org ? Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog