Re: [PATCH] i2c: i2c-stm32f7: Fix SDADEL minimum formula

2019-03-11 Thread Bich HEMON
On 3/9/19 11:50 AM, Wolfram Sang wrote: > On Sat, Mar 09, 2019 at 11:13:40AM +0100, Wolfram Sang wrote: >> On Wed, Mar 06, 2019 at 03:12:16PM +0000, Bich HEMON wrote: >>> From: Nicolas Le Bayon >>> >>> It conforms with Reference Manual I2C timing section. >

[PATCH] i2c: i2c-stm32f7: improve loopback in timing algorithm

2019-03-06 Thread Bich HEMON
Signed-off-by: Bich Hemon --- drivers/i2c/busses/i2c-stm32f7.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/i2c/busses/i2c-stm32f7.c b/drivers/i2c/busses/i2c-stm32f7.c index 4284fc9..48337be 100644 --- a/drivers/i2c/busses/i2c-stm32f7.c +++ b/drivers/i2c/busses/i2c-stm32f7.c

[PATCH 0/2] Patches for i2c-stm32 device tree bindings

2019-03-06 Thread Bich HEMON
This patchset provides dt-bindings updates for I2C. Bich Hemon (2): dt-bindings: i2c-stm32: remove extra spaces dt-bindings: i2c-stm32: update optional properties for stm32h7/stm32mp1 .../devicetree/bindings/i2c/i2c-stm32.txt | 37 +++--- 1 file changed, 19

[PATCH] i2c: i2c-stm32f7: Fix SDADEL minimum formula

2019-03-06 Thread Bich HEMON
From: Nicolas Le Bayon It conforms with Reference Manual I2C timing section. Signed-off-by: Nicolas Le Bayon Signed-off-by: Bich Hemon --- drivers/i2c/busses/i2c-stm32f7.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-stm32f7.c b/drivers/i2c

[PATCH 2/2] dt-bindings: i2c-stm32: update optional properties for stm32h7/stm32mp1

2019-03-06 Thread Bich HEMON
Add STM32H7 and STM32MP1 in the list of compatible socs for each optional property. Signed-off-by: Bich Hemon --- Documentation/devicetree/bindings/i2c/i2c-stm32.txt | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/i2c/i2c

[PATCH 1/2] dt-bindings: i2c-stm32: remove extra spaces

2019-03-06 Thread Bich HEMON
Remove extra spaces before colons. Signed-off-by: Bich Hemon --- .../devicetree/bindings/i2c/i2c-stm32.txt | 26 +++--- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Documentation/devicetree/bindings/i2c/i2c-stm32.txt b/Documentation/devicetree

[PATCH 2/3] ARM: dts: stm32: add can1 sleep pins muxing

2018-11-15 Thread Bich HEMON
Add can1 pinctrl definition for low-power mode Signed-off-by: Bich Hemon --- arch/arm/boot/dts/stm32mp157-pinctrl.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi index c485127..9ec4694 100644

[PATCH 3/3] ARM: dts: stm32: add can1 sleep pins muxing on stm32mp157c-ev1 board

2018-11-15 Thread Bich HEMON
Add pinctrl sleep state for can1 on stm32mp157c-ev1. Signed-off-by: Bich Hemon --- arch/arm/boot/dts/stm32mp157c-ev1.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/stm32mp157c-ev1.dts b/arch/arm/boot/dts/stm32mp157c-ev1.dts index 063ee8a..fdc4c92

[PATCH 1/3] ARM: dts: stm32: change CAN RAM mapping on stm32mp157c

2018-11-15 Thread Bich HEMON
Split the 10Kbytes CAN message RAM to be able to use simultaneously FDCAN1 and FDCAN2 instances. First 5Kbytes are allocated to FDCAN1 and last 5Kbytes are used for FDCAN2. To do so, set the offset to 0x1400 in mram-cfg for FDCAN2. Signed-off-by: Bich Hemon --- arch/arm/boot/dts

[PATCH 2/3] ARM: dts: stm32: add can1 sleep pins muxing

2018-11-15 Thread Bich HEMON
Add can1 pinctrl definition for low-power mode Signed-off-by: Bich Hemon --- arch/arm/boot/dts/stm32mp157-pinctrl.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi index c485127..9ec4694 100644

[PATCH 3/3] ARM: dts: stm32: add can1 sleep pins muxing on stm32mp157c-ev1 board

2018-11-15 Thread Bich HEMON
Add pinctrl sleep state for can1 on stm32mp157c-ev1. Signed-off-by: Bich Hemon --- arch/arm/boot/dts/stm32mp157c-ev1.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/stm32mp157c-ev1.dts b/arch/arm/boot/dts/stm32mp157c-ev1.dts index 063ee8a..fdc4c92

[PATCH 1/3] ARM: dts: stm32: change CAN RAM mapping on stm32mp157c

2018-11-15 Thread Bich HEMON
Split the 10Kbytes CAN message RAM to be able to use simultaneously FDCAN1 and FDCAN2 instances. First 5Kbytes are allocated to FDCAN1 and last 5Kbytes are used for FDCAN2. To do so, set the offset to 0x1400 in mram-cfg for FDCAN2. Signed-off-by: Bich Hemon --- arch/arm/boot/dts

[PATCH 0/3] CAN fix for stm32mp157c

2018-11-15 Thread Bich HEMON
This patchset changes the CAN RAM mapping and adds CAN sleep pins. Bich Hemon (3): ARM: dts: stm32: change CAN RAM mapping on stm32mp157c ARM: dts: stm32: add can1 sleep pins muxing ARM: dts: stm32: add can1 sleep pins muxing on stm32mp157c-ev1 board arch/arm/boot/dts/stm32mp157

[PATCH 0/3] CAN fix for stm32mp157c

2018-11-15 Thread Bich HEMON
This patchset changes the CAN RAM mapping and adds CAN sleep pins. Bich Hemon (3): ARM: dts: stm32: change CAN RAM mapping on stm32mp157c ARM: dts: stm32: add can1 sleep pins muxing ARM: dts: stm32: add can1 sleep pins muxing on stm32mp157c-ev1 board arch/arm/boot/dts/stm32mp157

Re: [PATCH] ARM: stm32: debug: add low-level debug support

2018-11-14 Thread Bich HEMON
issue you find with it. > > As mentioned in my original email, I tried to consolidate the two > versions, so a look-through and follow up with fixes would be > appreciated. Thanks! > > > -Olof > > On Tue, Nov 13, 2018 at 2:17 AM Bich HEMON wrote: >> >> &

Re: [PATCH] ARM: stm32: debug: add low-level debug support

2018-11-14 Thread Bich HEMON
issue you find with it. > > As mentioned in my original email, I tried to consolidate the two > versions, so a look-through and follow up with fixes would be > appreciated. Thanks! > > > -Olof > > On Tue, Nov 13, 2018 at 2:17 AM Bich HEMON wrote: >> >> &

Re: [PATCH] ARM: stm32: debug: add low-level debug support

2018-11-13 Thread Bich HEMON
On 11/13/18 10:24 AM, Russell King - ARM Linux wrote: > On Tue, Nov 13, 2018 at 09:16:16AM +0000, Bich HEMON wrote: >> >> On 11/12/18 7:22 PM, Olof Johansson wrote: >>> On Thu, Jul 27, 2017 at 04:50:20PM +, Bich HEMON wrote: >>>> From: Gerald Baeza

Re: [PATCH] ARM: stm32: debug: add low-level debug support

2018-11-13 Thread Bich HEMON
On 11/13/18 10:24 AM, Russell King - ARM Linux wrote: > On Tue, Nov 13, 2018 at 09:16:16AM +0000, Bich HEMON wrote: >> >> On 11/12/18 7:22 PM, Olof Johansson wrote: >>> On Thu, Jul 27, 2017 at 04:50:20PM +, Bich HEMON wrote: >>>> From: Gerald Baeza

Re: [PATCH] ARM: stm32: debug: add low-level debug support

2018-11-13 Thread Bich HEMON
On 11/12/18 7:22 PM, Olof Johansson wrote: > On Thu, Jul 27, 2017 at 04:50:20PM +0000, Bich HEMON wrote: >> From: Gerald Baeza >> >> This adds low-level debug support on USART1 for STM32F4 >> and STM32F7. >> Compiled via 'CONFIG_DEBUG_LL' and 'CONFIG_EARLY_PRI

Re: [PATCH] ARM: stm32: debug: add low-level debug support

2018-11-13 Thread Bich HEMON
On 11/12/18 7:22 PM, Olof Johansson wrote: > On Thu, Jul 27, 2017 at 04:50:20PM +0000, Bich HEMON wrote: >> From: Gerald Baeza >> >> This adds low-level debug support on USART1 for STM32F4 >> and STM32F7. >> Compiled via 'CONFIG_DEBUG_LL' and 'CONFIG_EARLY_PRI

[PATCH] serial: stm32: fix initialization of RS485 mode

2018-03-15 Thread Bich HEMON
Configure RS485 mode during port initialization. Fixes: 1bcda09d291081a7732fcaa9d1745312404a4e36 ("serial: stm32: add support for RS485 hardware control mode") Signed-off-by: Bich Hemon <bich.he...@st.com> --- drivers/tty/serial/stm32-usart.c | 4 1 file changed, 4 ins

[PATCH] serial: stm32: fix initialization of RS485 mode

2018-03-15 Thread Bich HEMON
Configure RS485 mode during port initialization. Fixes: 1bcda09d291081a7732fcaa9d1745312404a4e36 ("serial: stm32: add support for RS485 hardware control mode") Signed-off-by: Bich Hemon --- drivers/tty/serial/stm32-usart.c | 4 1 file changed, 4 insertions(+) diff --git a/d

[PATCH v2 1/2] dt-bindings: serial: stm32: add RS485 optional properties

2018-03-12 Thread Bich HEMON
Add options for enabling RS485 hardware control and configuring Driver Enable signal: - rs485-rts-delay - rs485-rx-during-tx - rs485-rts-active-low - linux,rs485-enabled-at-boot-time Signed-off-by: Bich Hemon <bich.he...@st.com> Reviewed-by: Rob Herring <r...@kernel.org> --- D

[PATCH v2 1/2] dt-bindings: serial: stm32: add RS485 optional properties

2018-03-12 Thread Bich HEMON
Add options for enabling RS485 hardware control and configuring Driver Enable signal: - rs485-rts-delay - rs485-rx-during-tx - rs485-rts-active-low - linux,rs485-enabled-at-boot-time Signed-off-by: Bich Hemon Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/serial/st,stm32

[PATCH v2 2/2] serial: stm32: add support for RS485 hardware control mode

2018-03-12 Thread Bich HEMON
Implement Driver Enable signal (DE) to activate the transmission mode of the external transceiver. Signed-off-by: Yves Coppeaux <yves.coppe...@st.com> Signed-off-by: Bich Hemon <bich.he...@st.com> --- drivers/tty/serial/stm32-usart.c | 130 ++-

[PATCH v2 2/2] serial: stm32: add support for RS485 hardware control mode

2018-03-12 Thread Bich HEMON
Implement Driver Enable signal (DE) to activate the transmission mode of the external transceiver. Signed-off-by: Yves Coppeaux Signed-off-by: Bich Hemon --- drivers/tty/serial/stm32-usart.c | 130 ++- drivers/tty/serial/stm32-usart.h | 3 + 2 files

[PATCH v2 0/2] Add support for RS485

2018-03-12 Thread Bich HEMON
v2: - Patch series rebased on gregkh/tty/tty-next This patchset updates existing stm32 usart driver by adding support for RS485. Bich Hemon (2): dt-bindings: serial: stm32: add RS485 optional properties serial: stm32: add support for RS485 hardware control mode .../devicetree/bindings

[PATCH v2 0/2] Add support for RS485

2018-03-12 Thread Bich HEMON
v2: - Patch series rebased on gregkh/tty/tty-next This patchset updates existing stm32 usart driver by adding support for RS485. Bich Hemon (2): dt-bindings: serial: stm32: add RS485 optional properties serial: stm32: add support for RS485 hardware control mode .../devicetree/bindings

[PATCH] can: m_can: select pinctrl state in each suspend/resume function

2018-03-12 Thread Bich HEMON
Make sure to apply the correct pin state in suspend/resume callbacks. Putting pins in sleep state saves power. Signed-off-by: Bich Hemon <bich.he...@st.com> --- drivers/net/can/m_can/m_can.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/can/m_can/m_can.c b/drivers/n

[PATCH] can: m_can: select pinctrl state in each suspend/resume function

2018-03-12 Thread Bich HEMON
Make sure to apply the correct pin state in suspend/resume callbacks. Putting pins in sleep state saves power. Signed-off-by: Bich Hemon --- drivers/net/can/m_can/m_can.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/can/m_can/m_can.c b/drivers/net/can/m_can/m_can.c index

Re: [PATCH] can: m_can: select pinctrl state in each suspend/resume function

2018-03-12 Thread Bich HEMON
Hi all, On 03/01/2018 01:29 PM, Bich HEMON wrote: > Make sure to apply the correct pin state in suspend/resume callbacks. > Putting pins in sleep state saves power. > > Signed-off-by: Bich Hemon <bich.he...@st.com> > --- > drivers/net/can/m_can/m_can.c | 4 > 1

Re: [PATCH] can: m_can: select pinctrl state in each suspend/resume function

2018-03-12 Thread Bich HEMON
Hi all, On 03/01/2018 01:29 PM, Bich HEMON wrote: > Make sure to apply the correct pin state in suspend/resume callbacks. > Putting pins in sleep state saves power. > > Signed-off-by: Bich Hemon > --- > drivers/net/can/m_can/m_can.c | 4 > 1 file changed, 4 insertio

Re: [PATCH 0/2] Update interrupt names

2018-03-06 Thread Bich HEMON
Hi all, On 02/28/2018 11:51 AM, Bich HEMON wrote: > This patchset updates existing stm32 usart driver by updating interrupt > initialization by name. > > Bich Hemon (2): >dt-bindings: serial: stm32: add wakeup option using note >serial: stm32: update interr

Re: [PATCH 0/2] Update interrupt names

2018-03-06 Thread Bich HEMON
Hi all, On 02/28/2018 11:51 AM, Bich HEMON wrote: > This patchset updates existing stm32 usart driver by updating interrupt > initialization by name. > > Bich Hemon (2): >dt-bindings: serial: stm32: add wakeup option using note >serial: stm32: update interr

[PATCH] can: m_can: select pinctrl state in each suspend/resume function

2018-03-01 Thread Bich HEMON
Make sure to apply the correct pin state in suspend/resume callbacks. Putting pins in sleep state saves power. Signed-off-by: Bich Hemon <bich.he...@st.com> --- drivers/net/can/m_can/m_can.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/can/m_can/m_can.c b/drivers/n

[PATCH] can: m_can: select pinctrl state in each suspend/resume function

2018-03-01 Thread Bich HEMON
Make sure to apply the correct pin state in suspend/resume callbacks. Putting pins in sleep state saves power. Signed-off-by: Bich Hemon --- drivers/net/can/m_can/m_can.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/can/m_can/m_can.c b/drivers/net/can/m_can/m_can.c index

[PATCH 1/2] dt-bindings: serial: stm32: add RS485 optional properties

2018-02-28 Thread Bich HEMON
Add options for enabling RS485 hardware control and configuring Driver Enable signal: - rs485-rts-delay - rs485-rx-during-tx - rs485-rts-active-low - linux,rs485-enabled-at-boot-time Signed-off-by: Bich Hemon <bich.he...@st.com> --- Documentation/devicetree/bindings/serial/st,stm32-usart.t

[PATCH 0/2] Add support for RS485

2018-02-28 Thread Bich HEMON
This patchset updates existing stm32 usart driver by adding support for RS485. Bich Hemon (2): dt-bindings: serial: stm32: add RS485 optional properties serial: stm32: add support for RS485 hardware control mode .../devicetree/bindings/serial/st,stm32-usart.txt | 2 + drivers/tty/serial

[PATCH 0/2] Add support for RS485

2018-02-28 Thread Bich HEMON
This patchset updates existing stm32 usart driver by adding support for RS485. Bich Hemon (2): dt-bindings: serial: stm32: add RS485 optional properties serial: stm32: add support for RS485 hardware control mode .../devicetree/bindings/serial/st,stm32-usart.txt | 2 + drivers/tty/serial

[PATCH 1/2] dt-bindings: serial: stm32: add RS485 optional properties

2018-02-28 Thread Bich HEMON
Add options for enabling RS485 hardware control and configuring Driver Enable signal: - rs485-rts-delay - rs485-rx-during-tx - rs485-rts-active-low - linux,rs485-enabled-at-boot-time Signed-off-by: Bich Hemon --- Documentation/devicetree/bindings/serial/st,stm32-usart.txt | 2 ++ 1 file changed

[PATCH 2/2] serial: stm32: add support for RS485 hardware control mode

2018-02-28 Thread Bich HEMON
Implement Driver Enable signal (DE) to activate the transmission mode of the external transceiver. Signed-off-by: Yves Coppeaux <yves.coppe...@st.com> Signed-off-by: Bich Hemon <bich.he...@st.com> --- drivers/tty/serial/stm32-usart.c | 134 ++-

[PATCH 2/2] serial: stm32: add support for RS485 hardware control mode

2018-02-28 Thread Bich HEMON
Implement Driver Enable signal (DE) to activate the transmission mode of the external transceiver. Signed-off-by: Yves Coppeaux Signed-off-by: Bich Hemon --- drivers/tty/serial/stm32-usart.c | 134 ++- drivers/tty/serial/stm32-usart.h | 3 + 2 files

[PATCH 2/2] serial: stm32: update interrupt initialization

2018-02-28 Thread Bich HEMON
For each port, get each IRQ using its specific name instead of its index. Signed-off-by: Bich Hemon <bich.he...@st.com> --- drivers/tty/serial/stm32-usart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-u

[PATCH 2/2] serial: stm32: update interrupt initialization

2018-02-28 Thread Bich HEMON
For each port, get each IRQ using its specific name instead of its index. Signed-off-by: Bich Hemon --- drivers/tty/serial/stm32-usart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c index 0fa735b

[PATCH 1/2] dt-bindings: serial: stm32: add wakeup option using note

2018-02-28 Thread Bich HEMON
Update bindings with interrupt-names and wakeup-source information Signed-off-by: Bich Hemon <bich.he...@st.com> --- Documentation/devicetree/bindings/serial/st,stm32-usart.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/serial/st,stm32-usart.

[PATCH 1/2] dt-bindings: serial: stm32: add wakeup option using note

2018-02-28 Thread Bich HEMON
Update bindings with interrupt-names and wakeup-source information Signed-off-by: Bich Hemon --- Documentation/devicetree/bindings/serial/st,stm32-usart.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/serial/st,stm32-usart.txt b/Documentation

[PATCH 0/2] Update interrupt names

2018-02-28 Thread Bich HEMON
This patchset updates existing stm32 usart driver by updating interrupt initialization by name. Bich Hemon (2): dt-bindings: serial: stm32: add wakeup option using note serial: stm32: update interrupt initialization Documentation/devicetree/bindings/serial/st,stm32-usart.txt | 4

[PATCH 0/2] Update interrupt names

2018-02-28 Thread Bich HEMON
This patchset updates existing stm32 usart driver by updating interrupt initialization by name. Bich Hemon (2): dt-bindings: serial: stm32: add wakeup option using note serial: stm32: update interrupt initialization Documentation/devicetree/bindings/serial/st,stm32-usart.txt | 4

[PATCH] serial: stm32: fix pio transmit timeout

2017-07-31 Thread Bich HEMON
From: Gerald Baeza <gerald.ba...@st.com> 100µs was too short for low speed transmission (9600bps) Signed-off-by: Gerald Baeza <gerald.ba...@st.com> Signed-off-by: Bich Hemon <bich.he...@st.com> --- drivers/tty/serial/stm32-usart.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH 4/9] serial: stm32: fix pio transmit timeout

2017-07-31 Thread Bich HEMON
Hi Greg, On 07/30/2017 04:32 PM, Greg Kroah-Hartman wrote: > On Thu, Jul 13, 2017 at 03:08:28PM +0000, Bich HEMON wrote: >> From: Gerald Baeza <gerald.ba...@st.com> >> >> 100µs was too short for low speed transmission >> (9600bps) >> >> Signed-off-by:

[PATCH] serial: stm32: fix pio transmit timeout

2017-07-31 Thread Bich HEMON
From: Gerald Baeza 100µs was too short for low speed transmission (9600bps) Signed-off-by: Gerald Baeza Signed-off-by: Bich Hemon --- drivers/tty/serial/stm32-usart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial

Re: [PATCH 4/9] serial: stm32: fix pio transmit timeout

2017-07-31 Thread Bich HEMON
Hi Greg, On 07/30/2017 04:32 PM, Greg Kroah-Hartman wrote: > On Thu, Jul 13, 2017 at 03:08:28PM +0000, Bich HEMON wrote: >> From: Gerald Baeza >> >> 100µs was too short for low speed transmission >> (9600bps) >> >> Signed-off-by: Gerald Baeza >> S

[PATCH] ARM: stm32: debug: add low-level debug support

2017-07-27 Thread Bich HEMON
From: Gerald Baeza <gerald.ba...@st.com> This adds low-level debug support on USART1 for STM32F4 and STM32F7. Compiled via 'CONFIG_DEBUG_LL' and 'CONFIG_EARLY_PRINTK'. Enabled via 'earlyprintk' in bootargs. Signed-off-by: Gerald Baeza <gerald.ba...@st.com> Signed-off-by: Bich He

[PATCH] ARM: stm32: debug: add low-level debug support

2017-07-27 Thread Bich HEMON
From: Gerald Baeza This adds low-level debug support on USART1 for STM32F4 and STM32F7. Compiled via 'CONFIG_DEBUG_LL' and 'CONFIG_EARLY_PRINTK'. Enabled via 'earlyprintk' in bootargs. Signed-off-by: Gerald Baeza Signed-off-by: Bich Hemon --- arch/arm/Kconfig.debug | 27

[PATCH] Add support for low-level debug on STM32

2017-07-27 Thread Bich HEMON
This patch adds low-level debug support on USART1 for STM32F4 and STM32F7. Gerald Baeza (1): ARM: stm32: debug: add low-level debug support arch/arm/Kconfig.debug | 27 +++ arch/arm/include/debug/stm32.S | 41 + 2 files

[PATCH] Add support for low-level debug on STM32

2017-07-27 Thread Bich HEMON
This patch adds low-level debug support on USART1 for STM32F4 and STM32F7. Gerald Baeza (1): ARM: stm32: debug: add low-level debug support arch/arm/Kconfig.debug | 27 +++ arch/arm/include/debug/stm32.S | 41 + 2 files

[PATCH 6/9] serial: stm32: fix error handling in probe

2017-07-13 Thread Bich HEMON
From: Fabrice Gasnier <fabrice.gasn...@st.com> Disable clock properly in case of error. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> Signed-off-by: Bich Hemon <bich.he...@st.com> --- drivers/tty/serial/stm32-usart.c | 11 +-- 1 file changed, 9 insertio

[PATCH 8/9] serial: stm32: add wakeup mechanism

2017-07-13 Thread Bich HEMON
From: Fabrice Gasnier <fabrice.gasn...@st.com> Add support for wake-up from low power modes. This extends stm32f7. Introduce new compatible for stm32h7 to manage wake-up capability. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> Signed-off-by: Bich Hemon <bich.he...@st.co

[PATCH 6/9] serial: stm32: fix error handling in probe

2017-07-13 Thread Bich HEMON
From: Fabrice Gasnier Disable clock properly in case of error. Signed-off-by: Fabrice Gasnier Signed-off-by: Bich Hemon --- drivers/tty/serial/stm32-usart.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial

[PATCH 8/9] serial: stm32: add wakeup mechanism

2017-07-13 Thread Bich HEMON
From: Fabrice Gasnier Add support for wake-up from low power modes. This extends stm32f7. Introduce new compatible for stm32h7 to manage wake-up capability. Signed-off-by: Fabrice Gasnier Signed-off-by: Bich Hemon --- drivers/tty/serial/stm32-usart.c | 90

[PATCH 7/9] dt-bindings: serial: add compatible for stm32h7

2017-07-13 Thread Bich HEMON
From: Fabrice Gasnier <fabrice.gasn...@st.com> Introduce new compatibles for "st,stm32h7-usart" and "st,stm32h7-uart". This new compatible allow to use optional wake-up interrupt. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> Signed-off-b

[PATCH 1/9] serial: stm32: fix copyright

2017-07-13 Thread Bich HEMON
Fix missing copyright for STMicroelectronics Signed-off-by: Bich Hemon <bich.he...@st.com> --- drivers/tty/serial/stm32-usart.c | 1 + drivers/tty/serial/stm32-usart.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c

[PATCH 7/9] dt-bindings: serial: add compatible for stm32h7

2017-07-13 Thread Bich HEMON
From: Fabrice Gasnier Introduce new compatibles for "st,stm32h7-usart" and "st,stm32h7-uart". This new compatible allow to use optional wake-up interrupt. Signed-off-by: Fabrice Gasnier Signed-off-by: Bich Hemon --- .../devicetree/bindings/serial/st,stm32-

[PATCH 1/9] serial: stm32: fix copyright

2017-07-13 Thread Bich HEMON
Fix missing copyright for STMicroelectronics Signed-off-by: Bich Hemon --- drivers/tty/serial/stm32-usart.c | 1 + drivers/tty/serial/stm32-usart.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c index 0338562..ebc49e4

[PATCH 3/9] serial: stm32: Increase maximum number of ports

2017-07-13 Thread Bich HEMON
From: Gerald Baeza <gerald.ba...@st.com> Increase max number of ports for stm32h7 which supports up to 8 uart and usart instances. Signed-off-by: Gerald Baeza <gerald.ba...@st.com> Signed-off-by: Bich Hemon <bich.he...@st.com> --- drivers/tty/serial/stm32-usart.h | 2 +-

[PATCH 3/9] serial: stm32: Increase maximum number of ports

2017-07-13 Thread Bich HEMON
From: Gerald Baeza Increase max number of ports for stm32h7 which supports up to 8 uart and usart instances. Signed-off-by: Gerald Baeza Signed-off-by: Bich Hemon --- drivers/tty/serial/stm32-usart.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/stm32

[PATCH 9/9] serial: stm32: add fifo support

2017-07-13 Thread Bich HEMON
From: Gerald Baeza <gerald.ba...@st.com> This patch adds fifo mode support for rx and tx. A fifo configuration is set in each port structure. Add has_fifo flag to usart configuration to use fifo only when possible. Signed-off-by: Gerald Baeza <gerald.ba...@st.com> Signed-off-by

[PATCH 9/9] serial: stm32: add fifo support

2017-07-13 Thread Bich HEMON
From: Gerald Baeza This patch adds fifo mode support for rx and tx. A fifo configuration is set in each port structure. Add has_fifo flag to usart configuration to use fifo only when possible. Signed-off-by: Gerald Baeza Signed-off-by: Bich Hemon --- drivers/tty/serial/stm32-usart.c | 7

[PATCH 5/9] serial: stm32: add RTS support

2017-07-13 Thread Bich HEMON
Implement support of RTS in USART control register Signed-off-by: Bich Hemon <bich.he...@st.com> --- drivers/tty/serial/stm32-usart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c index ca61bfe..9

[PATCH 5/9] serial: stm32: add RTS support

2017-07-13 Thread Bich HEMON
Implement support of RTS in USART control register Signed-off-by: Bich Hemon --- drivers/tty/serial/stm32-usart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c index ca61bfe..9158d31 100644 --- a/drivers

[PATCH 2/9] serial: stm32: fix multi-ports management

2017-07-13 Thread Bich HEMON
From: Gerald Baeza <gerald.ba...@st.com> Correct management of multi-ports. Each port has its own last residue value and its own alias. Signed-off-by: Gerald Baeza <gerald.ba...@st.com> Signed-off-by: Bich Hemon <bich.he...@st.com> --- drivers/tty/serial/stm32-usart.c | 12 +++

[PATCH 2/9] serial: stm32: fix multi-ports management

2017-07-13 Thread Bich HEMON
From: Gerald Baeza Correct management of multi-ports. Each port has its own last residue value and its own alias. Signed-off-by: Gerald Baeza Signed-off-by: Bich Hemon --- drivers/tty/serial/stm32-usart.c | 12 +++- drivers/tty/serial/stm32-usart.h | 1 + 2 files changed, 8

[PATCH 0/9] Add support for STM32H7 serial

2017-07-13 Thread Bich HEMON
This patchset updates existing stm32 usart driver: - Misc fixes: copyright, mutliport management and timeout issue - Add support for STM32H7 - Add support for wake-up and fifo management (for STM32H7) Bich Hemon (2): serial: stm32: fix copyright serial: stm32: add RTS support Fabrice Gasnier

[PATCH 0/9] Add support for STM32H7 serial

2017-07-13 Thread Bich HEMON
This patchset updates existing stm32 usart driver: - Misc fixes: copyright, mutliport management and timeout issue - Add support for STM32H7 - Add support for wake-up and fifo management (for STM32H7) Bich Hemon (2): serial: stm32: fix copyright serial: stm32: add RTS support Fabrice Gasnier

[PATCH 4/9] serial: stm32: fix pio transmit timeout

2017-07-13 Thread Bich HEMON
From: Gerald Baeza <gerald.ba...@st.com> 100µs was too short for low speed transmission (9600bps) Signed-off-by: Gerald Baeza <gerald.ba...@st.com> Signed-off-by: Bich Hemon <bich.he...@st.com> --- drivers/tty/serial/stm32-usart.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 4/9] serial: stm32: fix pio transmit timeout

2017-07-13 Thread Bich HEMON
From: Gerald Baeza 100µs was too short for low speed transmission (9600bps) Signed-off-by: Gerald Baeza Signed-off-by: Bich Hemon --- drivers/tty/serial/stm32-usart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial

RE: [PATCH 00/20] Update STM32 usart driver

2017-06-26 Thread Bich HEMON
Dear all, Please, do not take into account this patchset. A newer version is currently being prepared with typo/format corrections and will be sent later. The previous version has to be abandoned. Sorry for the inconvenience, Bich HEMON -Original Message- From: Bich HEMON Sent

RE: [PATCH 00/20] Update STM32 usart driver

2017-06-26 Thread Bich HEMON
Dear all, Please, do not take into account this patchset. A newer version is currently being prepared with typo/format corrections and will be sent later. The previous version has to be abandoned. Sorry for the inconvenience, Bich HEMON -Original Message- From: Bich HEMON Sent

RE: [PATCH 00/20] Update STM32 usart driver -> ABANDONED

2017-06-26 Thread Bich HEMON
Dear all, Please, do not take into account this patchset. A newer version is currently being prepared with typo/format corrections and will be sent later. The previous version has to be abandoned. Sorry for the inconvenience, Bich HEMON -Original Message- From: Bich HEMON Sent

RE: [PATCH 00/20] Update STM32 usart driver -> ABANDONED

2017-06-26 Thread Bich HEMON
Dear all, Please, do not take into account this patchset. A newer version is currently being prepared with typo/format corrections and will be sent later. The previous version has to be abandoned. Sorry for the inconvenience, Bich HEMON -Original Message- From: Bich HEMON Sent

[PATCH 02/20] dt-bindings: serial: each stm32 usart needs an alias

2017-06-26 Thread Bich HEMON
From: Bich Hemon <bich.he...@st.com> Each usart controller should have an alias correctly numbered in "aliases" node. Signed-off-by: Gerald Baeza <gerald.ba...@st.com> --- Documentation/devicetree/bindings/serial/st,stm32-usart.txt | 13 +++-- 1 file change

[PATCH 02/20] dt-bindings: serial: each stm32 usart needs an alias

2017-06-26 Thread Bich HEMON
From: Bich Hemon Each usart controller should have an alias correctly numbered in "aliases" node. Signed-off-by: Gerald Baeza --- Documentation/devicetree/bindings/serial/st,stm32-usart.txt | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Doc

[PATCH 05/20] serial: stm32: add debugfs

2017-06-26 Thread Bich HEMON
From: Bich Hemon <bich.he...@st.com> Adding debugfs infrastructure and one virtual file allowing to change fifoen value. This value change is taken into account on next port setup or enabling. Signed-off-by: Gerald Baeza <gerald.ba...@st.com> --- drivers/tty/serial/stm32-

[PATCH 05/20] serial: stm32: add debugfs

2017-06-26 Thread Bich HEMON
From: Bich Hemon Adding debugfs infrastructure and one virtual file allowing to change fifoen value. This value change is taken into account on next port setup or enabling. Signed-off-by: Gerald Baeza --- drivers/tty/serial/stm32-usart.c | 49 drivers

[PATCH 06/20] serial: stm32: fix pio transmit timeout

2017-06-26 Thread Bich HEMON
From: Bich Hemon <bich.he...@st.com> 100µs was too short for low speed transmission (9600bps) Signed-off-by: Gerald Baeza <gerald.ba...@st.com> --- drivers/tty/serial/stm32-usart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/stm32-usart.c b

[PATCH 06/20] serial: stm32: fix pio transmit timeout

2017-06-26 Thread Bich HEMON
From: Bich Hemon 100µs was too short for low speed transmission (9600bps) Signed-off-by: Gerald Baeza --- drivers/tty/serial/stm32-usart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c index 3ce0f7a

[PATCH 04/20] serial: stm32: make fifoen as property for each port

2017-06-26 Thread Bich HEMON
From: Bich Hemon <bich.he...@st.com> Signed-off-by: Gerald Baeza <gerald.ba...@st.com> --- drivers/tty/serial/stm32-usart.c | 10 +++--- drivers/tty/serial/stm32-usart.h | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/stm32-usart.c b

[PATCH 04/20] serial: stm32: make fifoen as property for each port

2017-06-26 Thread Bich HEMON
From: Bich Hemon Signed-off-by: Gerald Baeza --- drivers/tty/serial/stm32-usart.c | 10 +++--- drivers/tty/serial/stm32-usart.h | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c index c6ae4fd..34e31d1

[PATCH 08/20] serial: stm32: timeout interrupt using with dma

2017-06-26 Thread Bich HEMON
From: Bich Hemon <bich.he...@st.com> Signed-off-by: Gerald Baeza <gerald.ba...@st.com> --- drivers/tty/serial/stm32-usart.c | 25 +++-- drivers/tty/serial/stm32-usart.h | 1 + 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/drivers/tty/serial/stm

[PATCH 08/20] serial: stm32: timeout interrupt using with dma

2017-06-26 Thread Bich HEMON
From: Bich Hemon Signed-off-by: Gerald Baeza --- drivers/tty/serial/stm32-usart.c | 25 +++-- drivers/tty/serial/stm32-usart.h | 1 + 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c index

[PATCH 01/20] serial: stm32: adding fifo support

2017-06-26 Thread Bich HEMON
From: Bich Hemon <bich.he...@st.com> This patch adds fifo mode support for rx and tx. Signed-off-by: Gerald Baeza <gerald.ba...@st.com> --- drivers/tty/serial/stm32-usart.c | 3 +++ drivers/tty/serial/stm32-usart.h | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers/tty/

[PATCH 01/20] serial: stm32: adding fifo support

2017-06-26 Thread Bich HEMON
From: Bich Hemon This patch adds fifo mode support for rx and tx. Signed-off-by: Gerald Baeza --- drivers/tty/serial/stm32-usart.c | 3 +++ drivers/tty/serial/stm32-usart.h | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32

[PATCH 09/20] serial: stm32: fix end of transfer

2017-06-26 Thread Bich HEMON
From: Bich Hemon <bich.he...@st.com> tx_empty: poll TC (PIO mode) or DMAT (DMA mode) bit. flush_buffer: terminate on going DMA tx transfer. remove: terminate DMA rx and tx transfers. Signed-off-by: Gerald Baeza <gerald.ba...@st.com> --- drivers/tty/serial/stm32-

[PATCH 11/20] serial: stm32: add RTS support

2017-06-26 Thread Bich HEMON
From: Bich Hemon <bich.he...@st.com> Signed-off-by: Bich Hemon <bich.he...@st.com> --- drivers/tty/serial/stm32-usart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c index 13fc520..a7

[PATCH 20/20] serial: stm32: fix rx interrupt handling in startup

2017-06-26 Thread Bich HEMON
From: Bich Hemon <bich.he...@st.com> When stm32 dma is used, Data register has to be read in order to clear the RXNE interrupt in case we received data before usart probe. Signed-off-by: Bich Hemon <bich.he...@st.com> --- drivers/tty/serial/stm32-usart.c | 11 ++- 1 file

[PATCH 09/20] serial: stm32: fix end of transfer

2017-06-26 Thread Bich HEMON
From: Bich Hemon tx_empty: poll TC (PIO mode) or DMAT (DMA mode) bit. flush_buffer: terminate on going DMA tx transfer. remove: terminate DMA rx and tx transfers. Signed-off-by: Gerald Baeza --- drivers/tty/serial/stm32-usart.c | 37 ++--- 1 file changed, 34

[PATCH 11/20] serial: stm32: add RTS support

2017-06-26 Thread Bich HEMON
From: Bich Hemon Signed-off-by: Bich Hemon --- drivers/tty/serial/stm32-usart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c index 13fc520..a7401b0 100644 --- a/drivers/tty/serial/stm32-usart.c +++ b

[PATCH 20/20] serial: stm32: fix rx interrupt handling in startup

2017-06-26 Thread Bich HEMON
From: Bich Hemon When stm32 dma is used, Data register has to be read in order to clear the RXNE interrupt in case we received data before usart probe. Signed-off-by: Bich Hemon --- drivers/tty/serial/stm32-usart.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git

[PATCH 12/20] serial: stm32: fix last_res value

2017-06-26 Thread Bich HEMON
From: Bich Hemon <bich.he...@st.com> Set last_res value in each port Signed-off-by: Bich Hemon <bich.he...@st.com> --- drivers/tty/serial/stm32-usart.c | 6 +++--- drivers/tty/serial/stm32-usart.h | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/tty/

[PATCH 12/20] serial: stm32: fix last_res value

2017-06-26 Thread Bich HEMON
From: Bich Hemon Set last_res value in each port Signed-off-by: Bich Hemon --- drivers/tty/serial/stm32-usart.c | 6 +++--- drivers/tty/serial/stm32-usart.h | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32

  1   2   >