Re: [PATCH 0/4] Introduce STM32F7 Clocks

2017-04-03 Thread Alexandre Torgue
hi On 01/06/2017 02:59 PM, gabriel.fernan...@st.com wrote: From: Gabriel Fernandez This patch-set introduces STM32F7 clocks. F7 Clocks are very similar as F4. We have some new clocks: - hdmi-cec - spdif-rx - lptim1 - sai2 Uarts & I2cs can have different clock

Re: [PATCH 0/4] Introduce STM32F7 Clocks

2017-04-03 Thread Alexandre Torgue
hi On 01/06/2017 02:59 PM, gabriel.fernan...@st.com wrote: From: Gabriel Fernandez This patch-set introduces STM32F7 clocks. F7 Clocks are very similar as F4. We have some new clocks: - hdmi-cec - spdif-rx - lptim1 - sai2 Uarts & I2cs can have different clock sources. Gabriel Fernandez

Re: [PATCH v10 5/5] ARM: configs: stm32: Add I2C support for STM32 defconfig

2017-04-03 Thread Alexandre Torgue
Hi, On 01/19/2017 02:25 PM, M'boumba Cedric Madianga wrote: This patch adds I2C support for STM32 default configuration Signed-off-by: M'boumba Cedric Madianga --- Applied on stm32-defconfig-for-v4.12 Regards Alex arch/arm/configs/stm32_defconfig | 3 +++ 1

Re: [PATCH v10 5/5] ARM: configs: stm32: Add I2C support for STM32 defconfig

2017-04-03 Thread Alexandre Torgue
Hi, On 01/19/2017 02:25 PM, M'boumba Cedric Madianga wrote: This patch adds I2C support for STM32 default configuration Signed-off-by: M'boumba Cedric Madianga --- Applied on stm32-defconfig-for-v4.12 Regards Alex arch/arm/configs/stm32_defconfig | 3 +++ 1 file changed, 3 insertions(+)

Re: [PATCH] ARM: configs: stm32: Set CPU_V7M_NUM_IRQ to max value

2017-03-31 Thread Alexandre Torgue
Hi Arnd On 03/30/2017 05:36 PM, Arnd Bergmann wrote: On Thu, Mar 23, 2017 at 11:09 AM, Alexandre TORGUE <alexandre.tor...@st.com> wrote: stm32_defconfig is used for several STM32 MCU: STM32F429, STM32F469, STM32F746 and now STM32H743. Each of MCU listed have different interrupts number

Re: [PATCH] ARM: configs: stm32: Set CPU_V7M_NUM_IRQ to max value

2017-03-31 Thread Alexandre Torgue
Hi Arnd On 03/30/2017 05:36 PM, Arnd Bergmann wrote: On Thu, Mar 23, 2017 at 11:09 AM, Alexandre TORGUE wrote: stm32_defconfig is used for several STM32 MCU: STM32F429, STM32F469, STM32F746 and now STM32H743. Each of MCU listed have different interrupts number mapped on NVIC. STM32F429: 81

Re: [PATCH 2/8] pinctrl: stm32: use gpio-ranges to declare bank range

2017-03-27 Thread Alexandre Torgue
Hi Linus On 02/01/2017 04:01 PM, Linus Walleij wrote: On Mon, Jan 30, 2017 at 5:29 PM, Alexandre Torgue <alexandre.tor...@st.com> wrote: On 01/30/2017 04:19 PM, Linus Walleij wrote: + if (!of_parse_phandle_with_fixed_args(np, "gpio-ranges", 3, 0, )) + ban

Re: [PATCH 2/8] pinctrl: stm32: use gpio-ranges to declare bank range

2017-03-27 Thread Alexandre Torgue
Hi Linus On 02/01/2017 04:01 PM, Linus Walleij wrote: On Mon, Jan 30, 2017 at 5:29 PM, Alexandre Torgue wrote: On 01/30/2017 04:19 PM, Linus Walleij wrote: + if (!of_parse_phandle_with_fixed_args(np, "gpio-ranges", 3, 0, )) + bank_nr = a

Re: [PATCH v3 5/5] ARM: configs: Add watchdog support in STM32 defconfig

2017-03-23 Thread Alexandre Torgue
Hi, On 03/22/2017 04:04 PM, Yannick Fertre wrote: This patch adds STM32 watchdog support in stm32_defconfig file Signed-off-by: Yannick Fertre --- Update commit header please (ARM: configs: stm32: Add watchdog support) arch/arm/configs/stm32_defconfig | 1 + 1 file

Re: [PATCH v3 5/5] ARM: configs: Add watchdog support in STM32 defconfig

2017-03-23 Thread Alexandre Torgue
Hi, On 03/22/2017 04:04 PM, Yannick Fertre wrote: This patch adds STM32 watchdog support in stm32_defconfig file Signed-off-by: Yannick Fertre --- Update commit header please (ARM: configs: stm32: Add watchdog support) arch/arm/configs/stm32_defconfig | 1 + 1 file changed, 1

[PATCH] ARM: configs: stm32: Set CPU_V7M_NUM_IRQ to max value

2017-03-23 Thread Alexandre TORGUE
to update this value for next STM32 MCU I prefer to set it to max value: 240. Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/arch/arm/configs/stm32_defconfig b/arch/arm/configs/stm32_defconfig index a9d8e3c..7c9c157 100644 --- a/arch/arm/configs/stm32_defconfig +++

[PATCH] ARM: configs: stm32: Set CPU_V7M_NUM_IRQ to max value

2017-03-23 Thread Alexandre TORGUE
to update this value for next STM32 MCU I prefer to set it to max value: 240. Signed-off-by: Alexandre TORGUE diff --git a/arch/arm/configs/stm32_defconfig b/arch/arm/configs/stm32_defconfig index a9d8e3c..7c9c157 100644 --- a/arch/arm/configs/stm32_defconfig +++ b/arch/arm/configs

Re: [PATCH v1 3/5] ARM: dts: stm32ap: Add watchdog support for STM32F429 SoC

2017-03-22 Thread Alexandre Torgue
Hi On 03/22/2017 02:36 PM, Yannick Fertre wrote: Signed-off-by: Yannick FERTRE --- Please add a commit message, and change commit header as following: ARM: dts: stm32: ... arch/arm/boot/dts/stm32f429.dtsi | 9 - 1 file changed, 8 insertions(+), 1

Re: [PATCH v1 3/5] ARM: dts: stm32ap: Add watchdog support for STM32F429 SoC

2017-03-22 Thread Alexandre Torgue
Hi On 03/22/2017 02:36 PM, Yannick Fertre wrote: Signed-off-by: Yannick FERTRE --- Please add a commit message, and change commit header as following: ARM: dts: stm32: ... arch/arm/boot/dts/stm32f429.dtsi | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git

Re: [PATCH v1 4/5] ARM: dts: stm32ap: Add watchdog support for STM32F429 eval board

2017-03-22 Thread Alexandre Torgue
Hi On 03/22/2017 02:36 PM, Yannick Fertre wrote: Signed-off-by: Yannick Fertre --- Please add a commit message and change commit header as following: ARM: dts: stm32: . arch/arm/boot/dts/stm32429i-eval.dts | 4 1 file changed, 4 insertions(+) diff --git

Re: [PATCH v1 4/5] ARM: dts: stm32ap: Add watchdog support for STM32F429 eval board

2017-03-22 Thread Alexandre Torgue
Hi On 03/22/2017 02:36 PM, Yannick Fertre wrote: Signed-off-by: Yannick Fertre --- Please add a commit message and change commit header as following: ARM: dts: stm32: . arch/arm/boot/dts/stm32429i-eval.dts | 4 1 file changed, 4 insertions(+) diff --git

Re: [PATCH 0/3] Add RTC support on STM32F746

2017-03-09 Thread Alexandre Torgue
Hi Amélie, On 01/19/2017 02:45 PM, Amelie Delaunay wrote: 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

Re: [PATCH 0/3] Add RTC support on STM32F746

2017-03-09 Thread Alexandre Torgue
Hi Amélie, On 01/19/2017 02:45 PM, Amelie Delaunay wrote: 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

Re: [PATCH 1/2] reset: add reset-simple to unify socfpga, stm32, and sunxi

2017-03-08 Thread Alexandre Torgue
Hi Philipp, On 03/08/2017 11:19 AM, Andre Przywara wrote: Hi, On 08/03/17 09:54, Philipp Zabel wrote: Reset operations for simple reset controllers with reset lines that can be controlled by toggling bits in (mostly) contiguous register ranges using read-modify-write cycles under a spinlock.

Re: [PATCH 1/2] reset: add reset-simple to unify socfpga, stm32, and sunxi

2017-03-08 Thread Alexandre Torgue
Hi Philipp, On 03/08/2017 11:19 AM, Andre Przywara wrote: Hi, On 08/03/17 09:54, Philipp Zabel wrote: Reset operations for simple reset controllers with reset lines that can be controlled by toggling bits in (mostly) contiguous register ranges using read-modify-write cycles under a spinlock.

Re: [PATCH 6/8] Documentation: dt: Add new compatible to STM32 pinctrl driver bindings

2017-02-06 Thread Alexandre Torgue
On 02/06/2017 09:46 AM, Linus Walleij wrote: On Wed, Feb 1, 2017 at 4:58 PM, Alexandre Torgue <alexandre.tor...@st.com> wrote: On 02/01/2017 04:06 PM, Rob Herring wrote: On Fri, Jan 27, 2017 at 05:15:19PM +0100, Alexandre TORGUE wrote: Add new compatible for stm32f469 MCU. Sign

Re: [PATCH 6/8] Documentation: dt: Add new compatible to STM32 pinctrl driver bindings

2017-02-06 Thread Alexandre Torgue
On 02/06/2017 09:46 AM, Linus Walleij wrote: On Wed, Feb 1, 2017 at 4:58 PM, Alexandre Torgue wrote: On 02/01/2017 04:06 PM, Rob Herring wrote: On Fri, Jan 27, 2017 at 05:15:19PM +0100, Alexandre TORGUE wrote: Add new compatible for stm32f469 MCU. Signed-off-by: Alexandre TORGUE diff

Re: [PATCH 0/8] ADD STM32H743 MCU and STM32H743i-Eval board supports

2017-02-01 Thread Alexandre Torgue
Hi Linus On 02/01/2017 04:16 PM, Linus Walleij wrote: On Tue, Jan 31, 2017 at 2:14 PM, Alexandre TORGUE <alexandre.tor...@st.com> wrote: This series adds basic support for STM32H743 MCU and stm32h743i-eval board. With it, you can boot stm32h743i-eval board successfully. Patch 1 &a

Re: [PATCH 0/8] ADD STM32H743 MCU and STM32H743i-Eval board supports

2017-02-01 Thread Alexandre Torgue
Hi Linus On 02/01/2017 04:16 PM, Linus Walleij wrote: On Tue, Jan 31, 2017 at 2:14 PM, Alexandre TORGUE wrote: This series adds basic support for STM32H743 MCU and stm32h743i-eval board. With it, you can boot stm32h743i-eval board successfully. Patch 1 & 2 look fine to me. Shall I

Re: [PATCH 6/8] Documentation: dt: Add new compatible to STM32 pinctrl driver bindings

2017-02-01 Thread Alexandre Torgue
On 02/01/2017 04:06 PM, Rob Herring wrote: On Fri, Jan 27, 2017 at 05:15:19PM +0100, Alexandre TORGUE wrote: Add new compatible for stm32f469 MCU. Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.

Re: [PATCH 6/8] Documentation: dt: Add new compatible to STM32 pinctrl driver bindings

2017-02-01 Thread Alexandre Torgue
On 02/01/2017 04:06 PM, Rob Herring wrote: On Fri, Jan 27, 2017 at 05:15:19PM +0100, Alexandre TORGUE wrote: Add new compatible for stm32f469 MCU. Signed-off-by: Alexandre TORGUE diff --git a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt b/Documentation/devicetree/bindings

[PATCH 3/8] Documentation: dt-bindings: Add STM32 pinctrl driver DT bindings

2017-01-31 Thread Alexandre TORGUE
Add compatible sting for stm32h743 MCU. Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt index b24583a..ac8dcb7 100644 --- a/Documen

[PATCH 3/8] Documentation: dt-bindings: Add STM32 pinctrl driver DT bindings

2017-01-31 Thread Alexandre TORGUE
Add compatible sting for stm32h743 MCU. Signed-off-by: Alexandre TORGUE diff --git a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt index b24583a..ac8dcb7 100644 --- a/Documentation/devicetree/bindings/pinctrl/st

[PATCH 4/8] ARM: stm32: create dedicated kconfig for STM32 machine

2017-01-31 Thread Alexandre TORGUE
Create a dedicated Kconfig file in mach-stm32/ and move existing stm32 configs inside. Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 5fab553..e84936c 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -813,6 +813,8 @@

[PATCH 4/8] ARM: stm32: create dedicated kconfig for STM32 machine

2017-01-31 Thread Alexandre TORGUE
Create a dedicated Kconfig file in mach-stm32/ and move existing stm32 configs inside. Signed-off-by: Alexandre TORGUE diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 5fab553..e84936c 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -813,6 +813,8 @@ source "arch/arm/mach-

[PATCH 2/8] pinctrl: stm32: Add STM32H743 MCU support

2017-01-31 Thread Alexandre TORGUE
This patch adds STM32H743 pinctrl and GPIO support, relies on the generic STM32 pinctrl driver. Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/drivers/pinctrl/stm32/Kconfig b/drivers/pinctrl/stm32/Kconfig index c03dce7..f5ccabd 100644 --- a/drivers/pinctrl/stm32/K

[PATCH 2/8] pinctrl: stm32: Add STM32H743 MCU support

2017-01-31 Thread Alexandre TORGUE
This patch adds STM32H743 pinctrl and GPIO support, relies on the generic STM32 pinctrl driver. Signed-off-by: Alexandre TORGUE diff --git a/drivers/pinctrl/stm32/Kconfig b/drivers/pinctrl/stm32/Kconfig index c03dce7..f5ccabd 100644 --- a/drivers/pinctrl/stm32/Kconfig +++ b/drivers/pinctrl

[PATCH 1/8] include: dt-bindings: Add STM32H7 pinctrl DT bindings

2017-01-31 Thread Alexandre TORGUE
Adds common pinctrl device tree bindings for STM32H743 and STM32H753 MCU. Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/include/dt-bindings/pinctrl/stm32h7-pinfunc.h b/include/dt-bindings/pinctrl/stm32h7-pinfunc.h new file mode 100644 index 000..cb673b5 --

[PATCH 1/8] include: dt-bindings: Add STM32H7 pinctrl DT bindings

2017-01-31 Thread Alexandre TORGUE
Adds common pinctrl device tree bindings for STM32H743 and STM32H753 MCU. Signed-off-by: Alexandre TORGUE diff --git a/include/dt-bindings/pinctrl/stm32h7-pinfunc.h b/include/dt-bindings/pinctrl/stm32h7-pinfunc.h new file mode 100644 index 000..cb673b5 --- /dev/null +++ b/include/dt

[PATCH 7/8] ARM: dts: stm32: Add STM32H743 MCU and STM32H743i-EVAL board

2017-01-31 Thread Alexandre TORGUE
Add basic support for STM32H743 MCU and his eval board. The STMicrolectornics's STM32H743 MCU is based on Cortex-M7 core running up to @400MHz with 2MB internal flash and 1MB internal RAM. For more details see: Documentation/arm/stm32/stm32h743-overview.txt Signed-off-by: Alexandre TORGUE

[PATCH 0/8] ADD STM32H743 MCU and STM32H743i-Eval board supports

2017-01-31 Thread Alexandre TORGUE
ntroller - HDMI-CEC - SPDIFRX Regards Alex Alexandre TORGUE (8): include: dt-bindings: Add STM32H7 pinctrl DT bindings pinctrl: stm32: Add STM32H743 MCU support Documentation: dt-bindings: Add STM32 pinctrl driver DT bindings ARM: stm32: create dedicated kconfig for STM32 machine AR

[PATCH 7/8] ARM: dts: stm32: Add STM32H743 MCU and STM32H743i-EVAL board

2017-01-31 Thread Alexandre TORGUE
Add basic support for STM32H743 MCU and his eval board. The STMicrolectornics's STM32H743 MCU is based on Cortex-M7 core running up to @400MHz with 2MB internal flash and 1MB internal RAM. For more details see: Documentation/arm/stm32/stm32h743-overview.txt Signed-off-by: Alexandre TORGUE

[PATCH 0/8] ADD STM32H743 MCU and STM32H743i-Eval board supports

2017-01-31 Thread Alexandre TORGUE
ntroller - HDMI-CEC - SPDIFRX Regards Alex Alexandre TORGUE (8): include: dt-bindings: Add STM32H7 pinctrl DT bindings pinctrl: stm32: Add STM32H743 MCU support Documentation: dt-bindings: Add STM32 pinctrl driver DT bindings ARM: stm32: create dedicated kconfig for STM32 machine AR

[PATCH 8/8] ARM: configs: Add new config fragment to change RAM start point

2017-01-31 Thread Alexandre TORGUE
Add a new fragment to over-ride the RAM start point to 0xd000. Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/arch/arm/configs/dram_0xd000.config b/arch/arm/configs/dram_0xd000.config new file mode 100644 index 000..61ba704 --- /dev/null +++ b/ar

[PATCH 8/8] ARM: configs: Add new config fragment to change RAM start point

2017-01-31 Thread Alexandre TORGUE
Add a new fragment to over-ride the RAM start point to 0xd000. Signed-off-by: Alexandre TORGUE diff --git a/arch/arm/configs/dram_0xd000.config b/arch/arm/configs/dram_0xd000.config new file mode 100644 index 000..61ba704 --- /dev/null +++ b/arch/arm/configs/dram_0xd000

[PATCH 6/8] ARM: stm32: Introduce MACH_STM32H743 flag

2017-01-31 Thread Alexandre TORGUE
This patch introduces the MACH_STM32H743 to make possible to only select STM32H743 pinctrl driver By default, all the MACH_STM32Fxxx flags will be set with STM32 defconfig. Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/arch/arm/mach-stm32/Kconfig b/arch/arm/mach

[PATCH 6/8] ARM: stm32: Introduce MACH_STM32H743 flag

2017-01-31 Thread Alexandre TORGUE
This patch introduces the MACH_STM32H743 to make possible to only select STM32H743 pinctrl driver By default, all the MACH_STM32Fxxx flags will be set with STM32 defconfig. Signed-off-by: Alexandre TORGUE diff --git a/arch/arm/mach-stm32/Kconfig b/arch/arm/mach-stm32/Kconfig index 40115fa

[PATCH 5/8] ARM: stm32: Add a new SOC - STM32H743

2017-01-31 Thread Alexandre TORGUE
The STM32H743 is a Cortex-M7 MCU running at 400MHz and containing 1MBytes internal RAM. Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/Documentation/arm/stm32/stm32h743-overview.txt b/Documentation/arm/stm32/stm32h743-overview.txt new file mode 100644 index 0

[PATCH 5/8] ARM: stm32: Add a new SOC - STM32H743

2017-01-31 Thread Alexandre TORGUE
The STM32H743 is a Cortex-M7 MCU running at 400MHz and containing 1MBytes internal RAM. Signed-off-by: Alexandre TORGUE diff --git a/Documentation/arm/stm32/stm32h743-overview.txt b/Documentation/arm/stm32/stm32h743-overview.txt new file mode 100644 index 000..3031cba --- /dev/null +++ b

Re: [PATCH 2/8] pinctrl: stm32: use gpio-ranges to declare bank range

2017-01-30 Thread Alexandre Torgue
Hi Linus, On 01/30/2017 04:19 PM, Linus Walleij wrote: On Fri, Jan 27, 2017 at 5:15 PM, Alexandre TORGUE <alexandre.tor...@st.com> wrote: Use device tree entries to declare gpio range. It will allow to use no contiguous gpio bank and holes inside a bank. Signed-off-by: Alexandre

Re: [PATCH 2/8] pinctrl: stm32: use gpio-ranges to declare bank range

2017-01-30 Thread Alexandre Torgue
Hi Linus, On 01/30/2017 04:19 PM, Linus Walleij wrote: On Fri, Jan 27, 2017 at 5:15 PM, Alexandre TORGUE wrote: Use device tree entries to declare gpio range. It will allow to use no contiguous gpio bank and holes inside a bank. Signed-off-by: Alexandre TORGUE

Re: [PATCH 0/8] Add STM32F469 pinctrl and fix issues in STM32 pinctrl

2017-01-30 Thread Alexandre Torgue
Hi, On 01/27/2017 05:15 PM, Alexandre TORGUE wrote: This series adds support of a dedicated driver for STM32F469 MCU pinctroller. This add generates some changes inside STM32 pinctrl driver and inside STM32 device tree. Changes in STM32 pinctrl driver

Re: [PATCH 0/8] Add STM32F469 pinctrl and fix issues in STM32 pinctrl

2017-01-30 Thread Alexandre Torgue
Hi, On 01/27/2017 05:15 PM, Alexandre TORGUE wrote: This series adds support of a dedicated driver for STM32F469 MCU pinctroller. This add generates some changes inside STM32 pinctrl driver and inside STM32 device tree. Changes in STM32 pinctrl driver

[PATCH 4/8] includes: dt-bindings: Rename STM32F429 pinctrl DT bindings

2017-01-27 Thread Alexandre TORGUE
STM32F4 MCU series is composed of several SOC (STM32F429, STM32F469, ...). Most of muxing definition are identical. So to avoid to duplicate bindings definition, this patch create common definitions. Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/arch/arm/bo

[PATCH 4/8] includes: dt-bindings: Rename STM32F429 pinctrl DT bindings

2017-01-27 Thread Alexandre TORGUE
STM32F4 MCU series is composed of several SOC (STM32F429, STM32F469, ...). Most of muxing definition are identical. So to avoid to duplicate bindings definition, this patch create common definitions. Signed-off-by: Alexandre TORGUE diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot

[PATCH 2/8] pinctrl: stm32: use gpio-ranges to declare bank range

2017-01-27 Thread Alexandre TORGUE
Use device tree entries to declare gpio range. It will allow to use no contiguous gpio bank and holes inside a bank. Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/drivers/pinctrl/stm32/pinctrl-stm32.c b/drivers/pinctrl/stm32/pinctrl-stm32.c index b145431..d0a968a

[PATCH 2/8] pinctrl: stm32: use gpio-ranges to declare bank range

2017-01-27 Thread Alexandre TORGUE
Use device tree entries to declare gpio range. It will allow to use no contiguous gpio bank and holes inside a bank. Signed-off-by: Alexandre TORGUE diff --git a/drivers/pinctrl/stm32/pinctrl-stm32.c b/drivers/pinctrl/stm32/pinctrl-stm32.c index b145431..d0a968a 100644 --- a/drivers/pinctrl

[PATCH 8/8] ARM: dts: stm32: create dedicated files for pinctrl definitions

2017-01-27 Thread Alexandre TORGUE
Create dedicated file by MCU for pinmuxing and gpio definitions. Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dts/stm32429i-eval.dts index 5436e88..7f22385 100644 --- a/arch/arm/boot/dts/stm32429i-eval.dts +++

[PATCH 8/8] ARM: dts: stm32: create dedicated files for pinctrl definitions

2017-01-27 Thread Alexandre TORGUE
Create dedicated file by MCU for pinmuxing and gpio definitions. Signed-off-by: Alexandre TORGUE diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dts/stm32429i-eval.dts index 5436e88..7f22385 100644 --- a/arch/arm/boot/dts/stm32429i-eval.dts +++ b/arch/arm/boot/dts/stm32429i

[PATCH 0/8] Add STM32F469 pinctrl and fix issues in STM32 pinctrl

2017-01-27 Thread Alexandre TORGUE
(stm32f429-pinctrl.dtsi and stm32f469-pinctrl.dtsi) each one will include stm32f4-pinctrl.dtsi. All differences (pinmuxing or GPIO bank holes) will be put inside the dedicated files. This series fix a locking issue when a gpio is used as IRQ. Regards Alex Alexandre TORGUE (8):

[PATCH 0/8] Add STM32F469 pinctrl and fix issues in STM32 pinctrl

2017-01-27 Thread Alexandre TORGUE
(stm32f429-pinctrl.dtsi and stm32f469-pinctrl.dtsi) each one will include stm32f4-pinctrl.dtsi. All differences (pinmuxing or GPIO bank holes) will be put inside the dedicated files. This series fix a locking issue when a gpio is used as IRQ. Regards Alex Alexandre TORGUE (8):

[PATCH 5/8] pinctrl: stm32: Add STM32F469 MCU support

2017-01-27 Thread Alexandre TORGUE
This patch which adds STM32F469 pinctrl and GPIO support, relies on the generic STM32 pinctrl driver. Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/drivers/pinctrl/stm32/Kconfig b/drivers/pinctrl/stm32/Kconfig index c03dce7..a065fe3 100644 --- a/drivers/pinctrl

[PATCH 5/8] pinctrl: stm32: Add STM32F469 MCU support

2017-01-27 Thread Alexandre TORGUE
This patch which adds STM32F469 pinctrl and GPIO support, relies on the generic STM32 pinctrl driver. Signed-off-by: Alexandre TORGUE diff --git a/drivers/pinctrl/stm32/Kconfig b/drivers/pinctrl/stm32/Kconfig index c03dce7..a065fe3 100644 --- a/drivers/pinctrl/stm32/Kconfig +++ b/drivers

[PATCH 6/8] Documentation: dt: Add new compatible to STM32 pinctrl driver bindings

2017-01-27 Thread Alexandre TORGUE
Add new compatible for stm32f469 MCU. Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt index 25d9809..4f0487d 100644 --- a/Documen

[PATCH 6/8] Documentation: dt: Add new compatible to STM32 pinctrl driver bindings

2017-01-27 Thread Alexandre TORGUE
Add new compatible for stm32f469 MCU. Signed-off-by: Alexandre TORGUE diff --git a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt index 25d9809..4f0487d 100644 --- a/Documentation/devicetree/bindings/pinctrl/st

[PATCH 3/8] Documentation: dt: Add bindings for STM32 pinctrl

2017-01-27 Thread Alexandre TORGUE
Adds "ngpios" and "gpio-ranges" bindings definition. Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt ind

[PATCH 3/8] Documentation: dt: Add bindings for STM32 pinctrl

2017-01-27 Thread Alexandre TORGUE
Adds "ngpios" and "gpio-ranges" bindings definition. Signed-off-by: Alexandre TORGUE diff --git a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt index b24583a..25d9809 100644 --- a/Docu

[PATCH 7/8] ARM: Kconfig: Introduce MACH_STM32F469 flag

2017-01-27 Thread Alexandre TORGUE
This patch introduces the MACH_STM32F469 to make possible to only select STM32F469 pinctrl driver By default, all the MACH_STM32Fxxx flags will be set with STM32 defconfig. Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 5

[PATCH 7/8] ARM: Kconfig: Introduce MACH_STM32F469 flag

2017-01-27 Thread Alexandre TORGUE
This patch introduces the MACH_STM32F469 to make possible to only select STM32F469 pinctrl driver By default, all the MACH_STM32Fxxx flags will be set with STM32 defconfig. Signed-off-by: Alexandre TORGUE diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 5fab553..f54402c 100644 --- a/arch

[PATCH 1/8] pinctrl: stm32: fix bad location of gpiochip_lock_as_irq

2017-01-27 Thread Alexandre TORGUE
Move gpio lock as irq from "domain alloc" callback to "domain activate" callback. It will allow to use gpiolib sysfs correctly. Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/drivers/pinctrl/stm32/pinctrl-stm32.c b/drivers/pinctrl/stm32/pin

[PATCH 1/8] pinctrl: stm32: fix bad location of gpiochip_lock_as_irq

2017-01-27 Thread Alexandre TORGUE
Move gpio lock as irq from "domain alloc" callback to "domain activate" callback. It will allow to use gpiolib sysfs correctly. Signed-off-by: Alexandre TORGUE diff --git a/drivers/pinctrl/stm32/pinctrl-stm32.c b/drivers/pinctrl/stm32/pinctrl-stm32.c index efc4371..b145431

Re: [PATCH 7/7] ARM: dts: stm32: Enable pwm1 and pwm3 for stm32f469-eval

2017-01-20 Thread Alexandre Torgue
Hi Fabrice On 01/19/2017 02:34 PM, Fabrice Gasnier wrote: Define and enable pwm1 and pwm3, timers1 & 3 trigger outputs on stm32f469-eval board. Signed-off-by: Fabrice Gasnier --- Typo issue in commit header (stm32f469 --> stm32f429)

Re: [PATCH 7/7] ARM: dts: stm32: Enable pwm1 and pwm3 for stm32f469-eval

2017-01-20 Thread Alexandre Torgue
Hi Fabrice On 01/19/2017 02:34 PM, Fabrice Gasnier wrote: Define and enable pwm1 and pwm3, timers1 & 3 trigger outputs on stm32f469-eval board. Signed-off-by: Fabrice Gasnier --- Typo issue in commit header (stm32f469 --> stm32f429) arch/arm/boot/dts/stm32429i-eval.dts | 28

Re: [PATCH v9 7/8] ARM: dts: stm32: add Timers driver for stm32f429 MCU

2017-01-20 Thread Alexandre Torgue
pwm { + compatible = "st,stm32-pwm"; + status = "disabled"; + }; + }; + + timers11: timers@40014800 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "st,stm32-timers"; + reg = <0x40014800 0x400>; + clocks = < 0 178>; + clock-names = "int"; + status = "disabled"; + + pwm { + compatible = "st,stm32-pwm"; + status = "disabled"; + }; + }; + pwrcfg: power-config@40007000 { compatible = "syscon"; reg = <0x40007000 0x400>; @@ -355,6 +615,21 @@ slew-rate = <2>; }; }; + + pwm1_pins: pwm@1 { + pins { + pinmux = , + , + ; + }; + }; + + pwm3_pins: pwm@3 { + pins { + pinmux = , +; + }; + }; }; rcc: rcc@40023810 { Acked-by: Alexandre TORGUE <alexandre.tor...@st.com> Thanks! Alex

Re: [PATCH v9 7/8] ARM: dts: stm32: add Timers driver for stm32f429 MCU

2017-01-20 Thread Alexandre Torgue
pwm { + compatible = "st,stm32-pwm"; + status = "disabled"; + }; + }; + + timers11: timers@40014800 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "st,stm32-timers"; + reg = <0x40014800 0x400>; + clocks = < 0 178>; + clock-names = "int"; + status = "disabled"; + + pwm { + compatible = "st,stm32-pwm"; + status = "disabled"; + }; + }; + pwrcfg: power-config@40007000 { compatible = "syscon"; reg = <0x40007000 0x400>; @@ -355,6 +615,21 @@ slew-rate = <2>; }; }; + + pwm1_pins: pwm@1 { + pins { + pinmux = , + , + ; + }; + }; + + pwm3_pins: pwm@3 { + pins { + pinmux = , +; + }; + }; }; rcc: rcc@40023810 { Acked-by: Alexandre TORGUE Thanks! Alex

Re: [PATCH v9 8/8] ARM: dts: stm32: Enable pwm1 and pwm3 for stm32f469-disco

2017-01-20 Thread Alexandre Torgue
s = "okay"; + + pwm { + pinctrl-0 = <_pins>; + pinctrl-names = "default"; + status = "okay"; + }; + + timer@2 { + status = "okay"; + }; +}; Acked-by: Alexandre TORGUE <alexandre.tor...@st.com> Thanks Alex

Re: [PATCH v9 8/8] ARM: dts: stm32: Enable pwm1 and pwm3 for stm32f469-disco

2017-01-20 Thread Alexandre Torgue
+ pinctrl-0 = <_pins>; + pinctrl-names = "default"; + status = "okay"; + }; + + timer@2 { + status = "okay"; + }; +}; Acked-by: Alexandre TORGUE Thanks Alex

Re: [PATCH] stmmac: add missing of_node_put

2017-01-17 Thread Alexandre Torgue
r_fixed_link(np); of_node_put(plat->phy_node); + of_node_put(plat->mdio_node); } #else struct plat_stmmacenet_data * Acked-by: Alexandre TORGUE <alexandre.tor...@st.com> Thanks Alex

Re: [PATCH] stmmac: add missing of_node_put

2017-01-17 Thread Alexandre Torgue
ink(np); of_node_put(plat->phy_node); + of_node_put(plat->mdio_node); } #else struct plat_stmmacenet_data * Acked-by: Alexandre TORGUE Thanks Alex

Re: [patch net-next] stmmac: indent an if statement

2017-01-17 Thread Alexandre Torgue
Dear David On 01/16/2017 11:00 PM, David Miller wrote: From: Dan Carpenter Date: Tue, 17 Jan 2017 00:56:15 +0300 (It would be better if one of the stmmac people were responding here insead of a random fix the indenting weenie like myself.) They are all too busy

Re: [patch net-next] stmmac: indent an if statement

2017-01-17 Thread Alexandre Torgue
Dear David On 01/16/2017 11:00 PM, David Miller wrote: From: Dan Carpenter Date: Tue, 17 Jan 2017 00:56:15 +0300 (It would be better if one of the stmmac people were responding here insead of a random fix the indenting weenie like myself.) They are all too busy trying to rename the driver,

Re: [patch net-next] stmmac: indent an if statement

2017-01-17 Thread Alexandre Torgue
Hi Julia On 01/16/2017 11:10 PM, Julia Lawall wrote: On Tue, 17 Jan 2017, Dan Carpenter wrote: On Mon, Jan 16, 2017 at 10:46:22PM +0100, Julia Lawall wrote: On Mon, 16 Jan 2017, Dan Carpenter wrote: On Mon, Jan 16, 2017 at 12:19:24PM +0300, Dan Carpenter wrote: On Sun, Jan 15, 2017 at

Re: [patch net-next] stmmac: indent an if statement

2017-01-17 Thread Alexandre Torgue
Hi Julia On 01/16/2017 11:10 PM, Julia Lawall wrote: On Tue, 17 Jan 2017, Dan Carpenter wrote: On Mon, Jan 16, 2017 at 10:46:22PM +0100, Julia Lawall wrote: On Mon, 16 Jan 2017, Dan Carpenter wrote: On Mon, Jan 16, 2017 at 12:19:24PM +0300, Dan Carpenter wrote: On Sun, Jan 15, 2017 at

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

2017-01-16 Thread Alexandre Torgue
On 01/16/2017 02:29 PM, Amelie Delaunay wrote: This patch enables RTC on stm32429i-eval with default LSE clock source. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32429i-eval.dts | 4 1 file changed, 4 insertions(+) diff --git

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

2017-01-16 Thread Alexandre Torgue
On 01/16/2017 02:29 PM, Amelie Delaunay wrote: This patch enables RTC on stm32429i-eval with default LSE clock source. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32429i-eval.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/stm32429i-eval.dts

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

2017-01-16 Thread Alexandre Torgue
On 01/16/2017 02:29 PM, Amelie Delaunay wrote: This patch enables RTC on stm32f469-disco with default LSE clock source. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32f469-disco.dts | 4 1 file changed, 4 insertions(+) diff --git

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

2017-01-16 Thread Alexandre Torgue
On 01/16/2017 02:29 PM, Amelie Delaunay wrote: This patch enables RTC on stm32f469-disco with default LSE clock source. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32f469-disco.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/stm32f469-disco.dts

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

2017-01-16 Thread Alexandre Torgue
On 01/16/2017 02:29 PM, Amelie Delaunay wrote: This patch adds STM32 RTC bindings for STM32F429. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32f429.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi

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

2017-01-16 Thread Alexandre Torgue
On 01/16/2017 02:29 PM, Amelie Delaunay wrote: This patch adds STM32 RTC bindings for STM32F429. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32f429.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi

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

2017-01-16 Thread Alexandre Torgue
On 01/16/2017 02:29 PM, Amelie Delaunay wrote: 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 --- arch/arm/boot/dts/stm32f429-disco.dts | 6 ++ 1 file changed,

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

2017-01-16 Thread Alexandre Torgue
On 01/16/2017 02:29 PM, Amelie Delaunay wrote: 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 --- arch/arm/boot/dts/stm32f429-disco.dts | 6 ++ 1 file changed, 6 insertions(+) diff

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

2017-01-16 Thread Alexandre Torgue
Hi Amélie, On 01/16/2017 02:29 PM, Amelie Delaunay wrote: 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 --- arch/arm/boot/dts/stm32f429.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff

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

2017-01-16 Thread Alexandre Torgue
Hi Amélie, On 01/16/2017 02:29 PM, Amelie Delaunay wrote: 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 --- arch/arm/boot/dts/stm32f429.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git

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

2017-01-16 Thread Alexandre Torgue
Hi Amélie, On 01/05/2017 02:43 PM, Amelie Delaunay wrote: This patch adds STM32 RTC support in stm32_defconfig file. Signed-off-by: Amelie Delaunay --- arch/arm/configs/stm32_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git

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

2017-01-16 Thread Alexandre Torgue
Hi Amélie, On 01/05/2017 02:43 PM, Amelie Delaunay wrote: This patch adds STM32 RTC support in stm32_defconfig file. Signed-off-by: Amelie Delaunay --- arch/arm/configs/stm32_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/stm32_defconfig

Re: [v2 2/3] ARM: dts: STM32 Add USB FS host mode support

2017-01-16 Thread Alexandre Torgue
On 01/16/2017 11:26 AM, Bruno Herrera wrote: Hi Alex, On Mon, Jan 16, 2017 at 6:57 AM, Alexandre Torgue <alexandre.tor...@st.com> wrote: Hi Bruno, On 01/16/2017 03:09 AM, Bruno Herrera wrote: This patch adds the USB pins and nodes for USB HS/FS cores working at FS speed, using em

Re: [v2 2/3] ARM: dts: STM32 Add USB FS host mode support

2017-01-16 Thread Alexandre Torgue
On 01/16/2017 11:26 AM, Bruno Herrera wrote: Hi Alex, On Mon, Jan 16, 2017 at 6:57 AM, Alexandre Torgue wrote: Hi Bruno, On 01/16/2017 03:09 AM, Bruno Herrera wrote: This patch adds the USB pins and nodes for USB HS/FS cores working at FS speed, using embedded PHY. Signed-off-by: Bruno

Re: [v2 2/3] ARM: dts: STM32 Add USB FS host mode support

2017-01-16 Thread Alexandre Torgue
Hi Bruno, On 01/16/2017 03:09 AM, Bruno Herrera wrote: This patch adds the USB pins and nodes for USB HS/FS cores working at FS speed, using embedded PHY. Signed-off-by: Bruno Herrera Sorry, but what is patch 1 & pacth 3 status ? For this one, can split it in 3

Re: [v2 2/3] ARM: dts: STM32 Add USB FS host mode support

2017-01-16 Thread Alexandre Torgue
Hi Bruno, On 01/16/2017 03:09 AM, Bruno Herrera wrote: This patch adds the USB pins and nodes for USB HS/FS cores working at FS speed, using embedded PHY. Signed-off-by: Bruno Herrera Sorry, but what is patch 1 & pacth 3 status ? For this one, can split it in 3 patches (one patch for SOC

Re: [PATCH v4 8/9] ARM: dts: stm32f4: Add external I2S clock

2017-01-10 Thread Alexandre Torgue
Hi On 12/13/2016 03:20 PM, Gabriel FERNANDEZ wrote: From: Gabriel Fernandez This patch adds an external I2S clock in the DT. The I2S clock could be derived from an external I2S clock or by I2S pll. Signed-off-by: Gabriel Fernandez ---

Re: [PATCH v4 8/9] ARM: dts: stm32f4: Add external I2S clock

2017-01-10 Thread Alexandre Torgue
Hi On 12/13/2016 03:20 PM, Gabriel FERNANDEZ wrote: From: Gabriel Fernandez This patch adds an external I2S clock in the DT. The I2S clock could be derived from an external I2S clock or by I2S pll. Signed-off-by: Gabriel Fernandez --- arch/arm/boot/dts/stm32f429.dtsi | 8 +++- 1 file

Re: [PATCH v4 9/9] ARM: dts: stm32f4: Include auxiliary stm32fx clock definition

2017-01-10 Thread Alexandre Torgue
hi On 12/13/2016 03:20 PM, Gabriel FERNANDEZ wrote: From: Gabriel Fernandez This patch include auxiliary clock definition (clocks which are not derived from system clock. Signed-off-by: Gabriel Fernandez ---

Re: [PATCH v4 9/9] ARM: dts: stm32f4: Include auxiliary stm32fx clock definition

2017-01-10 Thread Alexandre Torgue
hi On 12/13/2016 03:20 PM, Gabriel FERNANDEZ wrote: From: Gabriel Fernandez This patch include auxiliary clock definition (clocks which are not derived from system clock. Signed-off-by: Gabriel Fernandez --- arch/arm/boot/dts/stm32f429.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH 4/4] dt-bindings: mfd: Add STM32F7 RCC numeric constants into DT include file

2017-01-10 Thread Alexandre Torgue
Hi Gabriel On 01/06/2017 02:59 PM, gabriel.fernan...@st.com wrote: From: Gabriel Fernandez This patch lists STM32F7's RCC numeric constants. It will be used by clock and reset drivers, and DT bindings. Signed-off-by: Gabriel Fernandez

Re: [PATCH 4/4] dt-bindings: mfd: Add STM32F7 RCC numeric constants into DT include file

2017-01-10 Thread Alexandre Torgue
Hi Gabriel On 01/06/2017 02:59 PM, gabriel.fernan...@st.com wrote: From: Gabriel Fernandez This patch lists STM32F7's RCC numeric constants. It will be used by clock and reset drivers, and DT bindings. Signed-off-by: Gabriel Fernandez can you please split this commit ? (one part for

<    3   4   5   6   7   8   9   10   11   12   >