[PATCH 1/3] ARM: dts: stm32: set HSE_RTC clock frequency to 1 MHz on stm32f746

2017-01-19 Thread Amelie Delaunay
This patch set HSE_RTC clock frequency to 1 MHz, as the clock supplied to the RTC must be 1 MHz. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- arch/arm/boot/dts/stm32f746.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/stm32f746.dtsi b/arch/arm/bo

[PATCH 2/3] ARM: dts: stm32: Add RTC support for STM32F746 MCU

2017-01-19 Thread Amelie Delaunay
This patch adds STM32 RTC bindings for STM32F746. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- arch/arm/boot/dts/stm32f746.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/stm32f746.dtsi b/arch/arm/boot/dts/stm32f746.dtsi index b

[PATCH 3/3] ARM: dts: stm32: enable RTC on stm32746g-eval

2017-01-19 Thread Amelie Delaunay
This patch enables RTC on stm32746g-eval with default LSE clock source. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- arch/arm/boot/dts/stm32746g-eval.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/stm32746g-eval.dts b/arch/arm/boot/dts/stm

[PATCH 0/3] Add RTC support on STM32F746

2017-01-19 Thread Amelie Delaunay
This patchset enables STM32 RTC on STM32F746 MCU. Amelie Delaunay (3): ARM: dts: stm32: set HSE_RTC clock frequency to 1 MHz on stm32f746 ARM: dts: stm32: Add RTC support for STM32F746 MCU ARM: dts: stm32: enable RTC on stm32746g-eval arch/arm/boot/dts/stm32746g-eval.dts | 4 arch

[PATCH] rtc: stm32: fix comparison warnings

2017-01-16 Thread Amelie Delaunay
* (pred_s + 1)) < 0) ? Fixes: 4e64350f42e2 ("rtc: add STM32 RTC driver") Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- drivers/rtc/rtc-stm32.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/rtc/rtc-stm32.c b/drivers/rtc/rtc-stm32.c index 03c

[PATCH] rtc: stm32: use 0 instead of ~PWR_CR_DBP in regmap_update_bits

2017-01-16 Thread Amelie Delaunay
C driver") Signed-off-by: Arnd Bergmann <a...@arndb.de> Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- drivers/rtc/rtc-stm32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/rtc/rtc-stm32.c b/drivers/rtc/rtc-stm32.c index 8c599f5..03c97c1 100

[PATCHv3 RESEND 4/8] ARM: dts: stm32: Add RTC support for STM32F429 MCU

2017-01-16 Thread Amelie Delaunay
This patch adds STM32 RTC bindings for STM32F429. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- arch/arm/boot/dts/stm32f429.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index 5

[PATCHv3 RESEND 5/8] ARM: dts: stm32: enable RTC on stm32f429-disco

2017-01-16 Thread Amelie Delaunay
This patch enables RTC on stm32f429-disco with LSI as clock source because X2 crystal for LSE is not fitted by default. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- arch/arm/boot/dts/stm32f429-disco.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/bo

[PATCHv3 RESEND 7/8] ARM: dts: stm32: enable RTC on stm32429i-eval

2017-01-16 Thread Amelie Delaunay
This patch enables RTC on stm32429i-eval with default LSE clock source. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- arch/arm/boot/dts/stm32429i-eval.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dts/stm

[PATCHv3 RESEND 1/8] ARM: dts: stm32: set HSE_RTC clock frequency to 1 MHz on stm32f429

2017-01-16 Thread Amelie Delaunay
This patch set HSE_RTC clock frequency to 1 MHz, as the clock supplied to the RTC must be 1 MHz. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- arch/arm/boot/dts/stm32f429.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/bo

[PATCHv3 RESEND 6/8] ARM: dts: stm32: enable RTC on stm32f469-disco

2017-01-16 Thread Amelie Delaunay
This patch enables RTC on stm32f469-disco with default LSE clock source. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- arch/arm/boot/dts/stm32f469-disco.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/stm32f469-disco.dts b/arch/arm/boot/dts/stm

[PATCHv2] usb: dwc2: gadget: Fix GUSBCFG.USBTRDTIM value

2017-01-16 Thread Amelie Delaunay
). That's why we need to clear GUSBCFG.USBTRDTIM mask before setting USBTrdTim value, to ensure USBTrdTim is correctly set in case of 8-bit UTMI+. Fixes: ecd9a7ad453c ("usb: dwc2: do not override forced dr_mode in gadget setup") Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> -

[PATCHv2 6/8] ARM: dts: stm32: enable RTC on stm32f469-disco

2016-12-16 Thread Amelie Delaunay
This patch enables RTC on stm32f469-disco with default LSE clock source. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- arch/arm/boot/dts/stm32f469-disco.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/stm32f469-disco.dts b/arch/arm/boot/dts/stm

[PATCHv2 1/8] ARM: dts: stm32: set HSE_RTC clock frequency to 1 MHz on stm32f429

2016-12-16 Thread Amelie Delaunay
This patch set HSE_RTC clock frequency to 1 MHz, as the clock supplied to the RTC must be 1 MHz. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- arch/arm/boot/dts/stm32f429.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/bo

[PATCHv2 4/8] ARM: dts: stm32: Add RTC support for STM32F429 MCU

2016-12-16 Thread Amelie Delaunay
This patch adds STM32 RTC bindings for STM32F429. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- arch/arm/boot/dts/stm32f429.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index d

[PATCHv2 2/8] dt-bindings: document the STM32 RTC bindings

2016-12-16 Thread Amelie Delaunay
This patch adds documentation of device tree bindings for the STM32 RTC. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- .../devicetree/bindings/rtc/st,stm32-rtc.txt | 27 ++ 1 file changed, 27 insertions(+) create mode 100644 Documentation/devi

[PATCHv2 3/8] rtc: add STM32 RTC driver

2016-12-16 Thread Amelie Delaunay
This patch adds support for the STM32 RTC. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- drivers/rtc/Kconfig | 11 + drivers/rtc/Makefile| 1 + drivers/rtc/rtc-stm32.c | 776 3 files changed, 788 insertions(+) creat

[PATCHv2 0/8] Add support for STM32 RTC

2016-12-16 Thread Amelie Delaunay
for the STM32 Real-Time Clock. This RTC is an independent BCD timer/counter and provides a time-of-day clock/calendar with programmable alarm interrupt. RTC calendar can be driven by three clock sources LSE, LSI or HSE. Amelie Delaunay (8): ARM: dts: stm32: set HSE_RTC clock frequency to 1 MHz

[PATCHv2 5/8] ARM: dts: stm32: enable RTC on stm32f429-disco

2016-12-16 Thread Amelie Delaunay
This patch enables RTC on stm32f429-disco with LSI as clock source because X2 crystal for LSE is not fitted by default. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- arch/arm/boot/dts/stm32f429-disco.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/bo

[PATCHv2 7/8] ARM: dts: stm32: enable RTC on stm32429i-eval

2016-12-16 Thread Amelie Delaunay
This patch enables RTC on stm32429i-eval with default LSE clock source. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- arch/arm/boot/dts/stm32429i-eval.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dts/stm

[PATCHv2 8/8] ARM: configs: stm32: Add RTC support in STM32 defconfig

2016-12-16 Thread Amelie Delaunay
This patch adds STM32 RTC support in stm32_defconfig file. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- arch/arm/configs/stm32_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/stm32_defconfig b/arch/arm/configs/stm32_defconfig index be19e09..0

Re: [PATCH 3/8] rtc: add STM32 RTC driver

2016-12-12 Thread Amelie DELAUNAY
Hi Alexandre, On 12/07/2016 07:37 PM, Alexandre Belloni wrote: On 05/12/2016 at 10:43:14 +0100, Amelie DELAUNAY wrote : + +device_init_wakeup(>dev, true); What happens if device_init_wakeup() returns an error? It means that RTC won't be able to wake up the board with RTC alarm. I

Re: [PATCH 3/8] rtc: add STM32 RTC driver

2016-12-12 Thread Amelie DELAUNAY
Hi, Thanks for the review. On 12/07/2016 08:08 PM, Alexandre Belloni wrote: Hi, It seems mostly fine. On 02/12/2016 at 15:09:56 +0100, Amelie Delaunay wrote : This patch adds support for the STM32 RTC. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- drivers/rtc/K

Re: [PATCH 3/8] rtc: add STM32 RTC driver

2016-12-07 Thread Amelie DELAUNAY
On 12/05/2016 05:32 PM, Mathieu Poirier wrote: On Mon, Dec 05, 2016 at 10:43:14AM +0100, Amelie DELAUNAY wrote: Hi Mathieu, Thanks for reviewing On 12/02/2016 06:56 PM, Mathieu Poirier wrote: On Fri, Dec 02, 2016 at 03:09:56PM +0100, Amelie Delaunay wrote: This patch adds support

Re: [PATCHv4 3/8] rtc: add STM32 RTC driver

2017-01-11 Thread Amelie DELAUNAY
Hi Corentin, Thanks for reviewing, On 01/11/2017 02:04 PM, Corentin Labbe wrote: On Wed, Jan 11, 2017 at 01:48:25PM +0100, Amelie Delaunay wrote: This patch adds support for the STM32 RTC. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- drivers/rtc/Kconfig | 11 + d

[PATCHv5 3/8] rtc: add STM32 RTC driver

2017-01-11 Thread Amelie Delaunay
This patch adds support for the STM32 RTC. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- drivers/rtc/Kconfig | 11 + drivers/rtc/Makefile| 1 + drivers/rtc/rtc-stm32.c | 727 3 files changed, 739 insertions(+) creat

[PATCH] usb: dwc2: gadget: Fix GUSBCFG.USBTRDTIM value

2017-01-12 Thread Amelie Delaunay
). That's why we need to clear GUSBCFG.USBTRDTIM mask before setting USBTrdTim value, to ensure USBTrdTim is correctly set in case of 8-bit UTMI+. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- drivers/usb/dwc2/gadget.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH] Fix USBTrdTim value in case of 8-bit UTMI+ phy

2017-01-12 Thread Amelie Delaunay
This problem was spotted during code review. It appears that USBTrdTim value is not correctly set in case of 8-bit UTMI+ phy, because it is ORed with USBCFG.USBTRDTIM reset value, which is 0x5. I have no hardware to test it. Amelie Delaunay (1): usb: dwc2: gadget: Fix GUSBCFG.USBTRDTIM value

RE: linux-next: build warning after merge of the rtc tree

2017-01-13 Thread Amelie DELAUNAY
> > Cc: linux-n...@vger.kernel.org; linux-kernel@vger.kernel.org; Amelie > DELAUNAY <amelie.delau...@st.com>; Mathieu Poirier > <mathieu.poir...@linaro.org> > Subject: linux-next: build warning after merge of the rtc tree > > Hi Alexandre, > > After merging the r

RE: [PATCHv5 3/8] rtc: add STM32 RTC driver

2017-01-13 Thread Amelie DELAUNAY
: vendredi 13 janvier 2017 01:39 > To: Amelie DELAUNAY <amelie.delau...@st.com> > Cc: Alessandro Zummo <a.zu...@towertech.it>; Rob Herring > <robh...@kernel.org>; Mark Rutland <mark.rutl...@arm.com>; Maxime > Coquelin <mcoquelin.st...@gmail.com>;

Re: [PATCH] usb: dwc2: gadget: Fix GUSBCFG.USBTRDTIM value

2017-01-12 Thread Amelie DELAUNAY
Hi all, Sorry, I did not see Pengcheng Li patch which is exactly the same: https://patchwork.kernel.org/patch/9347979/ Regards On 01/12/2017 04:36 PM, Amelie Delaunay wrote: USBTrdTim must be programmed to 0x5 when phy has a UTMI+ 16-bit wide interface or 0x9 when it has a 8-bit wide interface

Re: [PATCH 3/3] rtc: stm32: use 32-bit cast for BIT() macro

2017-01-13 Thread Amelie DELAUNAY
Hi Arnd, On 01/13/2017 04:32 PM, Arnd Bergmann wrote: Using the ~ operator on a BIT() constant results in a large 'unsigned long' constant that won't fit into an 'unsigned int' function argument on 64-bit architectures, resulting in a harmless build warning in x86 allmodconfig:

Re: [PATCHv3 3/8] rtc: add STM32 RTC driver

2017-01-11 Thread Amelie DELAUNAY
Hi Alexandre, On 01/11/2017 01:08 AM, Alexandre Belloni wrote: Looks good to me, however... On 05/01/2017 at 14:43:24 +0100, Amelie Delaunay wrote : +struct stm32_rtc { + struct rtc_device *rtc_dev; + void __iomem *base; + struct clk *ck_rtc; + spinlock_t lock

[PATCHv4 3/8] rtc: add STM32 RTC driver

2017-01-11 Thread Amelie Delaunay
This patch adds support for the STM32 RTC. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- drivers/rtc/Kconfig | 11 + drivers/rtc/Makefile| 1 + drivers/rtc/rtc-stm32.c | 727 3 files changed, 739 insertions(+) creat

Re: [PATCHv3 3/8] rtc: add STM32 RTC driver

2017-01-11 Thread Amelie DELAUNAY
On 01/11/2017 11:17 AM, Alexandre Belloni wrote: On 11/01/2017 at 11:07:16 +0100, Amelie DELAUNAY wrote : This will never happen, tm is already checked multiple times (up to three) in the core before this function can be called. You're right. I'll remove all rtc_valid_tm calls. You can

[PATCH 3/8] rtc: add STM32 RTC driver

2016-12-02 Thread Amelie Delaunay
This patch adds support for the STM32 RTC. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- drivers/rtc/Kconfig | 10 + drivers/rtc/Makefile| 1 + drivers/rtc/rtc-stm32.c | 777 3 files changed, 788 insertions(+) creat

[PATCH 0/8] Add support for STM32 RTC

2016-12-02 Thread Amelie Delaunay
This patchset adds support for the STM32 Real-Time Clock. This RTC is an independent BCD timer/counter and provides a time-of-day clock/calendar with programmable alarm interrupt. RTC calendar can be driven by three clock sources LSE, LSI or HSE. Amelie Delaunay (8): ARM: dts: stm32: set

[PATCH 2/8] dt-bindings: document the STM32 RTC bindings

2016-12-02 Thread Amelie Delaunay
This patch adds documentation of device tree bindings for the STM32 RTC. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- .../devicetree/bindings/rtc/st,stm32-rtc.txt | 31 ++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devi

[PATCH 5/8] ARM: dts: stm32: enable RTC on stm32f429-disco

2016-12-02 Thread Amelie Delaunay
This patch enables RTC on stm32f429-disco with LSI as clock source because X2 crystal for LSE is not fitted by default. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- arch/arm/boot/dts/stm32f429-disco.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/bo

[PATCH 4/8] ARM: dts: stm32: Add STM32 RTC support for STM32F429 MCU

2016-12-02 Thread Amelie Delaunay
This patch adds STM32 RTC bindings for STM32F429. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- arch/arm/boot/dts/stm32f429.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index d

[PATCH 6/8] ARM: dts: stm32: enable RTC on stm32f469-disco

2016-12-02 Thread Amelie Delaunay
This patch enables RTC on stm32f469-disco with default LSE clock source. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- arch/arm/boot/dts/stm32f469-disco.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/stm32f469-disco.dts b/arch/arm/boot/dts/stm

[PATCH 8/8] ARM: configs: stm32: Add STM32 RTC support in STM32 defconfig

2016-12-02 Thread Amelie Delaunay
This patch adds STM32 RTC support in stm32_defconfig file. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- arch/arm/configs/stm32_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/stm32_defconfig b/arch/arm/configs/stm32_defconfig index e7b56d4..7

[PATCH 1/8] ARM: dts: stm32: set HSE_RTC clock frequency to 1 MHz on stm32f429

2016-12-02 Thread Amelie Delaunay
This patch set HSE_RTC clock frequency to 1 MHz, as the clock supplied to the RTC must be 1 MHz. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- arch/arm/boot/dts/stm32f429.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/bo

[PATCH 7/8] ARM: dts: stm32: enable RTC on stm32429i-eval

2016-12-02 Thread Amelie Delaunay
This patch enables RTC on stm32429i-eval with default LSE clock source. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- arch/arm/boot/dts/stm32429i-eval.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dts/stm

Re: [PATCH 2/8] dt-bindings: document the STM32 RTC bindings

2016-12-05 Thread Amelie DELAUNAY
Hi Alexandre, Thanks for reviewing On 12/05/2016 11:06 AM, Alexandre Belloni wrote: Hi, On 02/12/2016 at 15:09:55 +0100, Amelie Delaunay wrote : This patch adds documentation of device tree bindings for the STM32 RTC. Signed-off-by: Amelie Delaunay <amelie.delau...@st.

Re: [PATCH 3/8] rtc: add STM32 RTC driver

2016-12-05 Thread Amelie DELAUNAY
Hi Mathieu, Thanks for reviewing On 12/02/2016 06:56 PM, Mathieu Poirier wrote: > On Fri, Dec 02, 2016 at 03:09:56PM +0100, Amelie Delaunay wrote: >> This patch adds support for the STM32 RTC. > > Hello Amelie, > >> >> Signed-off-by: Amelie Delaunay <amelie.de

Re: [PATCH 3/8] rtc: add STM32 RTC driver

2016-12-05 Thread Amelie DELAUNAY
On 12/02/2016 07:05 PM, Mathieu Poirier wrote: On Fri, Dec 02, 2016 at 03:09:56PM +0100, Amelie Delaunay wrote: This patch adds support for the STM32 RTC. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- drivers/rtc/Kconfig | 10 + drivers/rtc/Makefile| 1 + drive

Re: [PATCHv2 3/8] rtc: add STM32 RTC driver

2017-01-03 Thread Amelie DELAUNAY
Hi Mathieu, Thanks for reviewing, On 12/16/2016 08:08 PM, Mathieu Poirier wrote: On Fri, Dec 16, 2016 at 09:50:52AM +0100, Amelie Delaunay wrote: This patch adds support for the STM32 RTC. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- drivers/rtc/Kconfig | 11 + d

[PATCHv3 7/8] ARM: dts: stm32: enable RTC on stm32429i-eval

2017-01-05 Thread Amelie Delaunay
This patch enables RTC on stm32429i-eval with default LSE clock source. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- arch/arm/boot/dts/stm32429i-eval.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dts/stm

[PATCHv3 3/8] rtc: add STM32 RTC driver

2017-01-05 Thread Amelie Delaunay
This patch adds support for the STM32 RTC. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- drivers/rtc/Kconfig | 11 + drivers/rtc/Makefile| 1 + drivers/rtc/rtc-stm32.c | 776 3 files changed, 788 insertions(+) creat

[PATCHv3 2/8] dt-bindings: document the STM32 RTC bindings

2017-01-05 Thread Amelie Delaunay
This patch adds documentation of device tree bindings for the STM32 RTC. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> Acked-by: Rob Herring <r...@kernel.org> --- .../devicetree/bindings/rtc/st,stm32-rtc.txt | 27 ++ 1 file changed, 27 insertion

[PATCHv3 8/8] ARM: configs: stm32: Add RTC support in STM32 defconfig

2017-01-05 Thread Amelie Delaunay
This patch adds STM32 RTC support in stm32_defconfig file. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- arch/arm/configs/stm32_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/stm32_defconfig b/arch/arm/configs/stm32_defconfig index be19e09..0

[PATCHv3 5/8] ARM: dts: stm32: enable RTC on stm32f429-disco

2017-01-05 Thread Amelie Delaunay
This patch enables RTC on stm32f429-disco with LSI as clock source because X2 crystal for LSE is not fitted by default. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- arch/arm/boot/dts/stm32f429-disco.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/bo

[PATCHv3 6/8] ARM: dts: stm32: enable RTC on stm32f469-disco

2017-01-05 Thread Amelie Delaunay
This patch enables RTC on stm32f469-disco with default LSE clock source. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- arch/arm/boot/dts/stm32f469-disco.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/stm32f469-disco.dts b/arch/arm/boot/dts/stm

[PATCHv3 4/8] ARM: dts: stm32: Add RTC support for STM32F429 MCU

2017-01-05 Thread Amelie Delaunay
This patch adds STM32 RTC bindings for STM32F429. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- arch/arm/boot/dts/stm32f429.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index d

[PATCHv3 0/8] Add support for STM32 RTC

2017-01-05 Thread Amelie Delaunay
. Amelie Delaunay (8): ARM: dts: stm32: set HSE_RTC clock frequency to 1 MHz on stm32f429 dt-bindings: document the STM32 RTC bindings rtc: add STM32 RTC driver ARM: dts: stm32: Add RTC support for STM32F429 MCU ARM: dts: stm32: enable RTC on stm32f429-disco ARM: dts: stm32: enable RTC

[PATCHv3 1/8] ARM: dts: stm32: set HSE_RTC clock frequency to 1 MHz on stm32f429

2017-01-05 Thread Amelie Delaunay
This patch set HSE_RTC clock frequency to 1 MHz, as the clock supplied to the RTC must be 1 MHz. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- arch/arm/boot/dts/stm32f429.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/bo

Re: [PATCHv3 3/8] rtc: add STM32 RTC driver

2017-01-09 Thread Amelie DELAUNAY
Hi, Thanks for reviewing! Alexandre, could you please review this v3 and say when you plan to take this driver in the cycle ? Thanks, Amelie On 01/05/2017 06:33 PM, Mathieu Poirier wrote: On Thu, Jan 05, 2017 at 02:43:24PM +0100, Amelie Delaunay wrote: This patch adds support for the STM32

[PATCH 2/7] usb: dwc2: add support for STM32F7xx USB OTG HS

2017-08-17 Thread Amelie Delaunay
This patch adds the dwc2_set_params function for STM32F7xx USB OTG HS. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- drivers/usb/dwc2/params.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/dwc2/params.c b/drivers/usb/dwc2/params.c index a

[PATCH 5/7] ARM: dts: stm32: Enable USB HS on stm32f746-disco

2017-08-17 Thread Amelie Delaunay
This patch enables USB HS on stm32f746-disco (Host mode). Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- arch/arm/boot/dts/stm32f746-disco.dts | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/stm32f746-disco.dts b/arch/arm/boot/dts/stm

[PATCH 4/7] ARM: dts: stm32: Enable USB HS on stm32746g-eval

2017-08-17 Thread Amelie Delaunay
This patch enables USB HS on stm32746g-eval (Host mode). Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- arch/arm/boot/dts/stm32746g-eval.dts | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/stm32746g-eval.dts b/arch/arm/boot/dts/stm

[PATCH 0/7] Add support for USB OTG on STM32F7xx

2017-08-17 Thread Amelie Delaunay
The STM32F7xx MCU family embeds two DWC2 USB OTG cores. One core is USB OTG FS and the other is USB OTG HS. The USB FS core only works with its internal phy whilst the USB HS core can work in HS with external ULPI phy or in FS/LS with the on-chip FS phy. Amelie Delaunay (7): dt-bindings: usb

[PATCH 1/7] dt-bindings: usb: Document the STM32F7xx DWC2 USB OTG HS core binding

2017-08-17 Thread Amelie Delaunay
This patch adds binding documentation for DWC2 controller in HS mode found on STMicroelectronics STM32F7xx SoC. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- Documentation/devicetree/bindings/usb/dwc2.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documen

[PATCH 3/7] ARM: dts: stm32: Add USB HS support for STM32F746 MCU

2017-08-17 Thread Amelie Delaunay
This patch adds the USB pins and nodes for USB HS core on STM32F746 SoC. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- arch/arm/boot/dts/stm32f746.dtsi | 49 1 file changed, 49 insertions(+) diff --git a/arch/arm/boot/dts/stm32f746.

[PATCH 7/7] ARM: dts: stm32: Enable USB FS on stm32f746-disco

2017-08-17 Thread Amelie Delaunay
This patch enables USB FS on stm32f746-disco (Host mode) with 5V VBUS enable. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- arch/arm/boot/dts/stm32f746-disco.dts | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/stm32f746-disco.dts b/ar

[PATCH 6/7] ARM: dts: stm32: Add USB FS support for STM32F746 MCU

2017-08-17 Thread Amelie Delaunay
This patch adds the USB pins and nodes for USB FS core on STM32F746 SoC. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- arch/arm/boot/dts/stm32f746.dtsi | 31 +++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/stm32f746.dtsi b/ar

Re: [PATCH 2/2] rtc: stm32: add STM32H7 RTC support

2017-07-06 Thread Amelie DELAUNAY
is not important for the end user. Now that pclk appears, we need to distinguish the two clocks, and for the end user, it is better if the clock names match the datasheet. On 26/06/2017 at 11:51:29 +0200, Amelie Delaunay wrote: - rtc->ck_rtc = devm_clk_get(>dev

[PATCHv2 2/2] rtc: stm32: add STM32H7 RTC support

2017-07-06 Thread Amelie Delaunay
This patch adds support for STM32H7 RTC. On STM32H7, the RTC bus interface clock (APB clock) needs to be enabled. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- drivers/rtc/rtc-stm32.c | 82 +++-- 1 file changed, 65 insertions(

[PATCHv2 1/2] dt-bindings: rtc: stm32: add support for STM32H7

2017-07-06 Thread Amelie Delaunay
This patch documents support for STM32H7 Real Time Clock. It introduces a new compatible and rework clock definitions. On STM32H7 we have a 'pclk' clock for register access, in addition to the 'rtc_ck' clock. Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Amelie Delaunay <ame

[PATCHv2 0/2] rtc: add support for STM32H7 RTC

2017-07-06 Thread Amelie Delaunay
Add support for STM32H7 Real Time Clock variant. Difference is regarding clocks: there is a 'pclk' clock on STM32H7 for register access. Amelie Delaunay (2): dt-bindings: rtc: stm32: add support for STM32H7 rtc: stm32: add STM32H7 RTC support .../devicetree/bindings/rtc/st,stm32-rtc.txt

Re: [PATCHv2 9/9] spi: spidev: add Aardvark to device tree compatibility list

2017-06-29 Thread Amelie DELAUNAY
On 06/28/2017 08:54 PM, Mark Brown wrote: On Tue, Jun 27, 2017 at 05:45:21PM +0200, Amelie Delaunay wrote: This patch adds an entry for the TotalPhase Aardvark SPI Host Adapter, which can operate as an SPI Slave. What does this device actually do and why is spidev a sensible fit

Re: [PATCH 2/2] rtc: stm32: add STM32H7 RTC support

2017-07-05 Thread Amelie DELAUNAY
On 06/26/2017 11:51 AM, Amelie Delaunay wrote: This patch adds support for STM32H7 RTC. On STM32H7, the RTC bus interface clock (APB clock) needs to be enabled. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- A gentle ping about this patch. Thanks, Amelie drivers/r

Re: [PATCH 6/7] ARM: dts: stm32: Add USB FS support for STM32F746 MCU

2017-08-17 Thread Amelie DELAUNAY
On 08/17/2017 12:47 PM, Sergei Shtylyov wrote: > On 8/17/2017 12:33 PM, Amelie Delaunay wrote: > >> This patch adds the USB pins and nodes for USB FS core on STM32F746 SoC. >> >> Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> >> --- >&g

Re: [PATCH 4/7] ARM: dts: stm32: Enable USB HS on stm32746g-eval

2017-08-17 Thread Amelie DELAUNAY
Hi! On 08/17/2017 12:44 PM, Sergei Shtylyov wrote: > Hello! > > On 8/17/2017 12:33 PM, Amelie Delaunay wrote: > >> This patch enables USB HS on stm32746g-eval (Host mode). >> >> Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> >> --- >

Re: [PATCH 1/2] dt-bindings: spi: Document the STM32 SPI bindings

2017-06-22 Thread Amelie DELAUNAY
On 06/21/2017 05:20 PM, Neil Armstrong wrote: On 06/21/2017 04:32 PM, Amelie Delaunay wrote: This patch adds the documentation of device tree bindings for the STM32 SPI controller. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- .../devicetree/bindings/spi/spi-stm

Re: [PATCH 2/2] spi: add driver for STM32 SPI controller

2017-06-22 Thread Amelie DELAUNAY
Hi Mark, Thanks for your review. On 06/21/2017 05:13 PM, Mark Brown wrote: On Wed, Jun 21, 2017 at 04:32:06PM +0200, Amelie Delaunay wrote: A few minor stylistic things but overall this looks really nice, please send followup patches fixing these style things. + /* Determine the first

[PATCH 2/2] spi: add driver for STM32 SPI controller

2017-06-21 Thread Amelie Delaunay
8-bit embedded Rx and TxFIFOs with DMA capability. It can operate in master or slave mode. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- drivers/spi/Kconfig | 10 + drivers/spi/Makefile|1 + drivers/spi/spi-stm32.c

[PATCH 0/2] Add support for STM32 SPI

2017-06-21 Thread Amelie Delaunay
-bit per word. It has two 8x/16x 8-bit embedded Rx and TxFIFOs with DMA capability. It can operate in master or slave mode, but here, only master mode is supported. Amelie Delaunay (2): dt-bindings: spi: Document the STM32 SPI bindings spi: add driver for STM32 SPI controller .../devicetree

[PATCH 1/2] dt-bindings: spi: Document the STM32 SPI bindings

2017-06-21 Thread Amelie Delaunay
This patch adds the documentation of device tree bindings for the STM32 SPI controller. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- .../devicetree/bindings/spi/spi-stm32.txt | 60 ++ 1 file changed, 60 insertions(+) create mode 100644 Documen

[PATCH 2/2] rtc: stm32: add STM32H7 RTC support

2017-06-26 Thread Amelie Delaunay
This patch adds support for STM32H7 RTC. On STM32H7, the RTC bus interface clock (APB clock) needs to be enabled. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- drivers/rtc/rtc-stm32.c | 85 +++-- 1 file changed, 68 insertions(

[PATCH 1/2] dt-bindings: rtc: stm32: add support for STM32H7

2017-06-26 Thread Amelie Delaunay
This patch documents support for STM32H7 Real Time Clock. It introduces a new compatible and rework clock definitions. On STM32H7 we have a 'pclk' clock for register access, in addition to the 'rtc_ck' clock. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- .../devicetree/bindin

[PATCH 0/2] rtc: add support for STM32H7 RTC

2017-06-26 Thread Amelie Delaunay
Add support for STM32H7 Real Time Clock variant. Difference is regarding clocks: there is a 'pclk' clock on STM32H7 for register access. Amelie Delaunay (2): dt-bindings: rtc: stm32: add support for STM32H7 rtc: stm32: add STM32H7 RTC support .../devicetree/bindings/rtc/st,stm32-rtc.txt

Re: [PATCH][spi-next] spi: stm32: fix range limit checks on div

2017-06-22 Thread Amelie DELAUNAY
Hi Colin, I'm preparing a v2 for the initial patchset introducing spi-stm32, if you agree, I can directly add your fix. Regards, Amelie On 06/22/2017 05:41 PM, Colin King wrote: From: Colin Ian King Currently the check for range limits on div is incorrect and

[PATCH 8/8] spi: stm32: fix potential dereference null return value

2017-06-23 Thread Amelie Delaunay
This patch fixes the usage of rx_dma_desc and tx_dma_desc pointers returned by dmaengine_prep_slave_sg, which can be null. Detected by CoverityScan, CID#1446587 ("Dereference null return value") Reported-by: Colin Ian King <colin.k...@canonical.com> Signed-off-by: Amelie Delaun

[PATCH 7/8] spi: stm32: enhance DMA error management

2017-06-23 Thread Amelie Delaunay
are a condition to stop the current transfer. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- drivers/spi/spi-stm32.c | 20 +++- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/drivers/spi/spi-stm32.c b/drivers/spi/spi-stm32.c index 209afda..63af9d9

[PATCH 1/8] dt-bindings: spi: stm32: use SoC specific compatible

2017-06-23 Thread Amelie Delaunay
This patch replaces st,stm32-spi compatible with st,stm32h7-spi SoC specific compatible and updates the example accondingly. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- Documentation/devicetree/bindings/spi/spi-stm32.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 del

[PATCH 6/8] spi: stm32: add runtime PM support

2017-06-23 Thread Amelie Delaunay
This patch reworks suspend and resume callbacks and add runtime_suspend and runtime_resume callbacks. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- drivers/spi/spi-stm32.c | 43 --- 1 file changed, 36 insertions(+), 7 deletions(-) diff

[PATCH 0/8] STM32 SPI various fixes

2017-06-23 Thread Amelie Delaunay
This patchset answers to the reviews done after STM32 SPI driver introduction. Amelie Delaunay (8): dt-bindings: spi: stm32: use SoC specific compatible spi: stm32: fix compatible to fit with new bindings dt-bindings: spi: stm32: fix example with st,spi-midi-ns property spi: stm32

Re: [PATCH][spi-next] spi: stm32: fix range limit checks on div

2017-06-23 Thread Amelie DELAUNAY
iv < SPI_MBR_DIV_MIN) || (div > SPI_MBR_DIV_MAX)) return -EINVAL; Reviewed-by: Amelie Delaunay <amelie.delau...@st.com>

[PATCH 2/8] spi: stm32: fix compatible to fit with new bindings

2017-06-23 Thread Amelie Delaunay
This patch updates of_device_id compatible string to fit with new bindings. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- drivers/spi/spi-stm32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-stm32.c b/drivers/spi/spi-stm32.c index 82

[PATCH 5/8] spi: stm32: use normal conditional statements instead of ternary operator

2017-06-23 Thread Amelie Delaunay
This patch replace ternary operator use by normal condition statements to ease code reading. It also removes redundant !!. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- drivers/spi/spi-stm32.c | 44 ++-- 1 file changed, 30 insertions(

[PATCH 4/8] spi: stm32: replace st,spi-midi with st,spi-midi-ns to fit bindings

2017-06-23 Thread Amelie Delaunay
This patch fixes the optional dt property used to set master inter-data idleness. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- drivers/spi/spi-stm32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-stm32.c b/drivers/spi/spi-stm32.c

[PATCH 3/8] dt-bindings: spi: stm32: fix example with st,spi-midi-ns property

2017-06-23 Thread Amelie Delaunay
This patch aligns example with the optional property description. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- Documentation/devicetree/bindings/spi/spi-stm32.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/spi/spi

Re: [PATCH 1/2] dt-bindings: spi: Document the STM32 SPI bindings

2017-06-27 Thread Amelie DELAUNAY
Hi Rob, On 06/26/2017 08:21 PM, Rob Herring wrote: On Wed, Jun 21, 2017 at 04:32:05PM +0200, Amelie Delaunay wrote: This patch adds the documentation of device tree bindings for the STM32 SPI controller. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- .../devicetree/bindin

[PATCHv2 9/9] spi: spidev: add Aardvark to device tree compatibility list

2017-06-27 Thread Amelie Delaunay
This patch adds an entry for the TotalPhase Aardvark SPI Host Adapter, which can operate as an SPI Slave. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- drivers/spi/spidev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index 9

[PATCHv2 6/9] spi: stm32: add runtime PM support

2017-06-27 Thread Amelie Delaunay
This patch reworks suspend and resume callbacks and add runtime_suspend and runtime_resume callbacks. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- drivers/spi/spi-stm32.c | 43 --- 1 file changed, 36 insertions(+), 7 deletions(-) diff

[PATCHv2 7/9] spi: stm32: enhance DMA error management

2017-06-27 Thread Amelie Delaunay
hannel are successfully requested and the transfer size is greater than fifo size). Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- drivers/spi/spi-stm32.c | 23 +-- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/drivers/spi/spi-stm32.c b/drivers/spi/spi-s

[PATCHv2 3/9] dt-bindings: spi: stm32: fix example with st,spi-midi-ns property

2017-06-27 Thread Amelie Delaunay
property st,spi-midi-ns. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- Documentation/devicetree/bindings/spi/spi-stm32.txt | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/spi/spi-stm32.txt b/Documentation/devi

[PATCHv2 0/9] STM32 SPI various fixes

2017-06-27 Thread Amelie Delaunay
This patchset answers to the reviews done after STM32 SPI driver introduction. Amelie Delaunay (9): dt-bindings: spi: stm32: use SoC specific compatible spi: stm32: fix compatible to fit with new bindings dt-bindings: spi: stm32: fix example with st,spi-midi-ns property spi: stm32

[PATCHv2 4/9] spi: stm32: replace st,spi-midi with st,spi-midi-ns to fit bindings

2017-06-27 Thread Amelie Delaunay
This patch fixes the optional dt property used to set master inter-data idleness. Signed-off-by: Amelie Delaunay <amelie.delau...@st.com> --- drivers/spi/spi-stm32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-stm32.c b/drivers/spi/spi-stm32.c

  1   2   3   >