[PATCH v2 1/5] regulator: act8945a-regulator: Implement PM functionalities

2018-11-27 Thread Claudiu.Beznea
From: Boris Brezillon The regulator supports a dedicated suspend mode. Implement the appropriate ->set_suspend_xx() hooks, add support for ->set_mode(), and provide basic PM ops functionalities to setup the regulator in a suspend state when the system is entering suspend. Signed-off-by: Boris Br

[PATCH v2 3/5] regulator: act8945a-regulator: add shutdown function

2018-11-27 Thread Claudiu.Beznea
From: Claudiu Beznea Implement shutdown method to make sure the PMIC will not enter the suspend state when the system is shutdown. This work is based on work done by Borris Brezillon on [1]. [1] https://www.spinics.net/lists/kernel/msg2942960.html Signed-off-by: Claudiu Beznea --- drivers/re

[PATCH v2 4/5] ARM: dts: at91: sama5d2_xplained: Add proper regulator states for suspend-to-mem

2018-11-27 Thread Claudiu.Beznea
From: Boris Brezillon When entering suspend-to-mem, all PMIC outputs are disabled except VDDIODDR which is put in power saving mode, and whose voltage is increased (probably to counter the poor accuracy of power saving mode). Signed-off-by: Boris Brezillon [claudiu.bez...@microchip.com: use reg

[PATCH v2 0/5] add PM functionality for act8945a PMIC

2018-11-27 Thread Claudiu.Beznea
From: Claudiu Beznea This series implements PM functionality for act8945a PMIC and use that support on SAMA5D2 Xplained board. Changes in v2: - split patch 1/1 from previous series in 3 patches: one adding regmap, one adding pm functionality, one adding shutdown functionality - use dev_pm_ops

[PATCH v2 2/5] regulator: act8945a-regulator: fix line over 80 chars warning

2018-11-27 Thread Claudiu.Beznea
From: Claudiu Beznea Fix line over 80 chars checkpatch.pl warning. Signed-off-by: Claudiu Beznea --- drivers/regulator/act8945a-regulator.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/regulator/act8945a-regulator.c b/drivers/regulator/act8945a-regulator.c ind

[PATCH v2 5/5] regulator: add documentation for regulator modes and suspend states

2018-11-27 Thread Claudiu.Beznea
From: Claudiu Beznea Add documentation for regulator modes and suspend states. Signed-off-by: Claudiu Beznea --- .../bindings/regulator/act8945a-regulator.txt | 34 ++ 1 file changed, 34 insertions(+) diff --git a/Documentation/devicetree/bindings/regulator/act8945a-r

Re: [RFC PATCH] net: macb: Apply RXUBR workaround only to versions with errata

2018-11-29 Thread Claudiu.Beznea
On 28.11.2018 23:09, Brandon Streiff wrote: > On 11/23/2018 3:59 AM, Harini Katakam wrote: >> +/* Errata mask bits */ >> +#define MACB_ERRATA_RXLOCKUP0x0001 >> + >> /* LSO settings */ >> #define MACB_LSO_UFO_ENABLE 0x01 >> #define MACB_LSO_TSO_ENABLE

Re: [PATCH 2/4] power: reset: at91-poweroff: move shdwc related data to one structure

2018-12-06 Thread Claudiu.Beznea
Hi Sebastian, On 06.12.2018 00:40, Sebastian Reichel wrote: > Hi, > > On Wed, Nov 07, 2018 at 06:23:40PM +0100, Alexandre Belloni wrote: >> On 07/11/2018 14:54:17+, claudiu.bez...@microchip.com wrote: >>> Hi Alexandre, >>> >>> On 06.11.2018 23:09, Alexandre Belloni wrote: Hi Claudiu, >>>

[PATCH v2] power: reset: at91-poweroff: move shdwc related data to one structure

2018-12-06 Thread Claudiu.Beznea
From: Claudiu Beznea Move SHDWC realted data to only one structure to have them grouped. Inspired from commit 9be74f0d39c1 ("power: reset: at91-poweroff: make mpddrc_base part of struct shdwc"). Signed-off-by: Claudiu Beznea --- Changes in v2: - avoid allocate at91_shdwc and keep it static ins

[PATCH] net: macb: restart tx after tx used bit read

2018-12-06 Thread Claudiu.Beznea
From: Claudiu Beznea On some platforms (currently detected only on SAMA5D4) TX might stuck even the pachets are still present in DMA memories and TX start was issued for them. This happens due to race condition between MACB driver updating next TX buffer descriptor to be used and IP reading the s

Re: [PATCH] net: macb: restart tx after tx used bit read

2018-12-07 Thread Claudiu.Beznea
Hi David, Please ignore this one for the moment, I'll have to run few more tests on it. Thank you, Claudiu Beznea On 06.12.2018 19:44, Claudiu Beznea - M18063 wrote: > From: Claudiu Beznea > > On some platforms (currently detected only on SAMA5D4) TX might stuck > even the pachets are still pr

Re: [PATCH v2 5/5] regulator: add documentation for regulator modes and suspend states

2018-12-12 Thread Claudiu.Beznea
On 12.12.2018 00:13, Rob Herring wrote: > On Tue, Nov 27, 2018 at 11:57:25AM +, claudiu.bez...@microchip.com wrote: >> From: Claudiu Beznea >> >> Add documentation for regulator modes and suspend states. >> >> Signed-off-by: Claudiu Beznea >> --- >> .../bindings/regulator/act8945a-regulato

Re: [PATCH v2 5/5] regulator: add documentation for regulator modes and suspend states

2018-12-12 Thread Claudiu.Beznea
On 12.12.2018 15:32, Rob Herring wrote: > On Wed, Dec 12, 2018 at 3:13 AM wrote: >> >> >> >> On 12.12.2018 00:13, Rob Herring wrote: >>> On Tue, Nov 27, 2018 at 11:57:25AM +, claudiu.bez...@microchip.com >>> wrote: From: Claudiu Beznea Add documentation for regulator modes a

[PATCH v4 0/5] add PM functionality for act8945a PMIC

2018-12-13 Thread Claudiu.Beznea
From: Claudiu Beznea This series implements PM functionality for act8945a PMIC and use that support on SAMA5D2 Xplained board. Changes in v4: - move dt-bindings/regulator/active-semi,8945a-regulator.h in documentation patch; driver uses macros included in this file; due to this documentation

[PATCH v4 2/6] regulator: add documentation for regulator modes and suspend states

2018-12-13 Thread Claudiu.Beznea
From: Claudiu Beznea Add documentation for regulator modes and suspend states. Signed-off-by: Claudiu Beznea --- .../bindings/regulator/act8945a-regulator.txt | 34 ++ .../regulator/active-semi,8945a-regulator.h| 30 +++ 2 files changed, 64 inse

[PATCH v4 6/6] ARM: dts: at91: sama5d2_xplained: Add proper regulator states for suspend-to-mem

2018-12-13 Thread Claudiu.Beznea
From: Boris Brezillon When entering suspend-to-mem, all PMIC outputs are disabled except VDDIODDR which is put in power saving mode, and whose voltage is increased (probably to counter the poor accuracy of power saving mode). Signed-off-by: Boris Brezillon [claudiu.bez...@microchip.com: use reg

[PATCH v4 5/6] regulator: act8945a-regulator: add shutdown function

2018-12-13 Thread Claudiu.Beznea
From: Claudiu Beznea Implement shutdown method to make sure the PMIC will not enter the suspend state when the system is shutdown. This work is based on work done by Borris Brezillon on [1]. [1] https://www.spinics.net/lists/kernel/msg2942960.html Signed-off-by: Claudiu Beznea --- drivers/re

[PATCH v4 1/6] regulator: act8945a-regulator: unlock expert registers

2018-12-13 Thread Claudiu.Beznea
From: Claudiu Beznea Unlock expert registers for act8945a. This is based on orginal work of Boris Brezillon at [1]. [1] https://www.spinics.net/lists/kernel/msg2942960.html Signed-off-by: Claudiu Beznea --- drivers/regulator/act8945a-regulator.c | 13 - 1 file changed, 12 insertio

[PATCH v4 3/6] regulator: act8945a-regulator: Implement PM functionalities

2018-12-13 Thread Claudiu.Beznea
From: Boris Brezillon The regulator supports a dedicated suspend mode. Implement the appropriate ->set_suspend_xx() hooks, add support for ->set_mode(), and provide basic PM ops functionalities to setup the regulator in a suspend state when the system is entering suspend. Signed-off-by: Boris Br

[PATCH v4 4/6] regulator: act8945a-regulator: fix line over 80 chars warning

2018-12-13 Thread Claudiu.Beznea
From: Claudiu Beznea Fix line over 80 chars checkpatch.pl warning. Signed-off-by: Claudiu Beznea --- drivers/regulator/act8945a-regulator.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/regulator/act8945a-regulator.c b/drivers/regulator/act8945a-regulator.c ind

Re: [PATCH v4 0/5] add PM functionality for act8945a PMIC

2018-12-13 Thread Claudiu.Beznea
Hi Mark, I saw that previous version of this series was applied to your tree just after I've send this new one. The only difference b/w them is in the documentation patch where I moved the new header. No functionality change. Sorry for the noise, Claudiu Beznea On 13.12.2018 14:49, Claudiu Bezne

[PATCH v2] net: macb: restart tx after tx used bit read

2018-12-14 Thread Claudiu.Beznea
From: Claudiu Beznea On some platforms (currently detected only on SAMA5D4) TX might stuck even the pachets are still present in DMA memories and TX start was issued for them. This happens due to race condition between MACB driver updating next TX buffer descriptor to be used and IP reading the s

[PATCH v3] net: macb: restart tx after tx used bit read

2018-12-17 Thread Claudiu.Beznea
From: Claudiu Beznea On some platforms (currently detected only on SAMA5D4) TX might stuck even the pachets are still present in DMA memories and TX start was issued for them. This happens due to race condition between MACB driver updating next TX buffer descriptor to be used and IP reading the s

[PATCH] regulator: act8945a-regulator: fix 'defined but not used' compiler warning

2018-12-17 Thread Claudiu.Beznea
From: Claudiu Beznea Fix 'defined but not used' compiler warning for act8945a_suspend() function in case CONFIG_PM_SLEEP is not defined. Fixes: b5ebba46e694 ("regulator: act8945a-regulator: add shutdown function") Signed-off-by: Claudiu Beznea Reported-by: Andrei Stefanescu --- drivers/regula

[PATCH v6 1/6] pwm: extend PWM framework with PWM modes

2018-12-17 Thread Claudiu.Beznea
From: Claudiu Beznea Add basic PWM modes: normal and complementary. These modes should differentiate the single output PWM channels from two outputs PWM channels. These modes could be set as follow: 1. PWM channels with one output per channel: - normal mode 2. PWM channels with two outputs per ch

[PATCH v6 0/9] extend PWM framework to support PWM modes

2018-12-17 Thread Claudiu.Beznea
From: Claudiu Beznea Hi, This series extends PWM framework with PWM modes. The current patch series add the following PWM modes: - PWM mode normal - PWM mode complementary - PWM mode push-pull In the following description PWMx_y refers to output y of PWM with ID x. Normal mode - for PWM chann

[PATCH v6 6/6] pwm: atmel: add push-pull mode support

2018-12-17 Thread Claudiu.Beznea
From: Claudiu Beznea Add support for PWM push-pull mode. This is only supported by SAMA5D2 SoCs. Signed-off-by: Claudiu Beznea --- drivers/pwm/pwm-atmel.c | 40 1 file changed, 36 insertions(+), 4 deletions(-) diff --git a/drivers/pwm/pwm-atmel.c b/dri

[PATCH v6 4/6] pwm: add push-pull mode support

2018-12-17 Thread Claudiu.Beznea
From: Claudiu Beznea Add push-pull mode support. In push-pull mode the channels' outputs have same polarities and the edges are complementary delayed for one period. Signed-off-by: Claudiu Beznea --- drivers/pwm/core.c | 3 +++ include/linux/pwm.h | 3 +++ 2 files changed, 6 insertions(+) di

[PATCH v6 5/6] pwm: add documentation for pwm push-pull mode

2018-12-17 Thread Claudiu.Beznea
From: Claudiu Beznea Add documentation for PWM push-pull mode. Signed-off-by: Claudiu Beznea --- Hi Rob, In prevous version I had your Revie

[PATCH v6 3/6] pwm: atmel: add pwm capabilities

2018-12-17 Thread Claudiu.Beznea
From: Claudiu Beznea Add pwm capabilities for Atmel/Microchip PWM controllers. Signed-off-by: Claudiu Beznea --- drivers/pwm/pwm-atmel.c | 86 - 1 file changed, 57 insertions(+), 29 deletions(-) diff --git a/drivers/pwm/pwm-atmel.c b/drivers/pwm

[PATCH v6 2/6] pwm: add PWM modes

2018-12-17 Thread Claudiu.Beznea
From: Claudiu Beznea Add PWM normal and complementary modes. Signed-off-by: Claudiu Beznea --- Hi Rob, In prevous version I had your Acked-by tag on this patch but I removed it in this version since there are some changes b/w the previous one and this one. Please see bellow and let me know if

Re: [PATCH v6 0/9] extend PWM framework to support PWM modes

2018-12-17 Thread Claudiu.Beznea
Please ignore this one, the number of patches in cover letter is wrong: 0/9 should be 0/6. Thank you, Claudiu Beznea On 17.12.2018 16:03, Claudiu Beznea - M18063 wrote: > From: Claudiu Beznea > > Hi, > > This series extends PWM framework with PWM modes. > > The current patch series add the fo

[PATCH v7 0/6] extend PWM framework to support PWM modes

2018-12-17 Thread Claudiu.Beznea
From: Claudiu Beznea Hi, This series extends PWM framework with PWM modes. The current patch series add the following PWM modes: - PWM mode normal - PWM mode complementary - PWM mode push-pull In the following description PWMx_y refers to output y of PWM with ID x. Normal mode - for PWM chann

[PATCH v7 2/6] pwm: add PWM modes

2018-12-17 Thread Claudiu.Beznea
From: Claudiu Beznea Add PWM normal and complementary modes. Signed-off-by: Claudiu Beznea --- Hi Rob, In prevous version I had your Acked-by tag on this patch but I removed it in this version since there are some changes b/w the previous one and this one. Please see bellow and let me know if

[PATCH v7 6/6] pwm: atmel: add push-pull mode support

2018-12-17 Thread Claudiu.Beznea
From: Claudiu Beznea Add support for PWM push-pull mode. This is only supported by SAMA5D2 SoCs. Signed-off-by: Claudiu Beznea --- drivers/pwm/pwm-atmel.c | 40 1 file changed, 36 insertions(+), 4 deletions(-) diff --git a/drivers/pwm/pwm-atmel.c b/dri

[PATCH v7 3/6] pwm: atmel: add pwm capabilities

2018-12-17 Thread Claudiu.Beznea
From: Claudiu Beznea Add pwm capabilities for Atmel/Microchip PWM controllers. Signed-off-by: Claudiu Beznea --- drivers/pwm/pwm-atmel.c | 86 - 1 file changed, 57 insertions(+), 29 deletions(-) diff --git a/drivers/pwm/pwm-atmel.c b/drivers/pwm

[PATCH v7 5/6] pwm: add documentation for pwm push-pull mode

2018-12-17 Thread Claudiu.Beznea
From: Claudiu Beznea Add documentation for PWM push-pull mode. Signed-off-by: Claudiu Beznea --- Hi Rob, In prevous version I had your Revie

[PATCH v7 4/6] pwm: add push-pull mode support

2018-12-17 Thread Claudiu.Beznea
From: Claudiu Beznea Add push-pull mode support. In push-pull mode the channels' outputs have same polarities and the edges are complementary delayed for one period. Signed-off-by: Claudiu Beznea --- drivers/pwm/core.c | 3 +++ include/linux/pwm.h | 3 +++ 2 files changed, 6 insertions(+) di

[PATCH v7 1/6] pwm: extend PWM framework with PWM modes

2018-12-17 Thread Claudiu.Beznea
From: Claudiu Beznea Add basic PWM modes: normal and complementary. These modes should differentiate the single output PWM channels from two outputs PWM channels. These modes could be set as follow: 1. PWM channels with one output per channel: - normal mode 2. PWM channels with two outputs per ch

[PATCH v3 6/6] regulator: add documentation for regulator modes and suspend states

2018-12-11 Thread Claudiu.Beznea
From: Claudiu Beznea Add documentation for regulator modes and suspend states. Signed-off-by: Claudiu Beznea --- .../bindings/regulator/act8945a-regulator.txt | 34 ++ 1 file changed, 34 insertions(+) diff --git a/Documentation/devicetree/bindings/regulator/act8945a-r

[PATCH v3 4/6] regulator: act8945a-regulator: add shutdown function

2018-12-11 Thread Claudiu.Beznea
From: Claudiu Beznea Implement shutdown method to make sure the PMIC will not enter the suspend state when the system is shutdown. This work is based on work done by Borris Brezillon on [1]. [1] https://www.spinics.net/lists/kernel/msg2942960.html Signed-off-by: Claudiu Beznea --- drivers/re

[PATCH v3 5/6] ARM: dts: at91: sama5d2_xplained: Add proper regulator states for suspend-to-mem

2018-12-11 Thread Claudiu.Beznea
From: Boris Brezillon When entering suspend-to-mem, all PMIC outputs are disabled except VDDIODDR which is put in power saving mode, and whose voltage is increased (probably to counter the poor accuracy of power saving mode). Signed-off-by: Boris Brezillon [claudiu.bez...@microchip.com: use reg

[PATCH v3 3/6] regulator: act8945a-regulator: fix line over 80 chars warning

2018-12-11 Thread Claudiu.Beznea
From: Claudiu Beznea Fix line over 80 chars checkpatch.pl warning. Signed-off-by: Claudiu Beznea --- drivers/regulator/act8945a-regulator.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/regulator/act8945a-regulator.c b/drivers/regulator/act8945a-regulator.c ind

[PATCH v3 2/6] regulator: act8945a-regulator: Implement PM functionalities

2018-12-11 Thread Claudiu.Beznea
From: Boris Brezillon The regulator supports a dedicated suspend mode. Implement the appropriate ->set_suspend_xx() hooks, add support for ->set_mode(), and provide basic PM ops functionalities to setup the regulator in a suspend state when the system is entering suspend. Signed-off-by: Boris Br

[PATCH v3 0/5] add PM functionality for act8945a PMIC

2018-12-11 Thread Claudiu.Beznea
From: Claudiu Beznea This series implements PM functionality for act8945a PMIC and use that support on SAMA5D2 Xplained board. Changes in v3: - add patch "unlock expert registers"; it was wrongly missed in previous version Changes in v2: - split patch 1/1 from previous series in 3 patches: one

[PATCH v3 1/6] regulator: act8945a-regulator: unlock expert registers

2018-12-11 Thread Claudiu.Beznea
From: Claudiu Beznea Unlock expert registers for act8945a. This is based on orginal work of Boris Brezillon at [1]. [1] https://www.spinics.net/lists/kernel/msg2942960.html Signed-off-by: Claudiu Beznea --- drivers/regulator/act8945a-regulator.c | 13 - 1 file changed, 12 insertio

Re: [PATCH v8 1/6] pwm: extend PWM framework with PWM modes

2019-01-07 Thread Claudiu.Beznea
On 05.01.2019 23:05, Uwe Kleine-König wrote: > Hello, > > On Thu, Jan 03, 2019 at 01:29:44PM +, claudiu.bez...@microchip.com wrote: >> From: Claudiu Beznea >> >> Add basic PWM modes: normal and complementary. These modes should >> differentiate the single output PWM channels from two output

Re: [PATCH v8 2/6] pwm: add PWM modes

2019-01-07 Thread Claudiu.Beznea
On 05.01.2019 22:41, Uwe Kleine-König wrote: > On Thu, Jan 03, 2019 at 01:29:47PM +, claudiu.bez...@microchip.com wrote: >> From: Claudiu Beznea >> >> Add PWM normal and complementary modes. >> > > The Subject line and the commit log don't really match the patch > content as it only adds do

Re: [PATCH v8 1/6] pwm: extend PWM framework with PWM modes

2019-01-08 Thread Claudiu.Beznea
Hi Uwe, On 08.01.2019 00:10, Uwe Kleine-König wrote: > Hello Claudiu, > > On Mon, Jan 07, 2019 at 09:30:55AM +, claudiu.bez...@microchip.com wrote: >> On 05.01.2019 23:05, Uwe Kleine-König wrote: >>> On Thu, Jan 03, 2019 at 01:29:44PM +, claudiu.bez...@microchip.com >>> wrote: From:

[PATCH 2/3] regulator: core: add helper to check if regulator is disabled in suspend

2019-01-08 Thread Claudiu.Beznea
From: Claudiu Beznea Add helper to check if regulator will be disabled in suspend. Signed-off-by: Claudiu Beznea --- drivers/regulator/core.c | 17 + include/linux/regulator/consumer.h | 7 +++ 2 files changed, 24 insertions(+) diff --git a/drivers/regulator/cor

[PATCH 1/3] PM / Suspend: Add support to check if platform's power is off in suspend

2019-01-08 Thread Claudiu.Beznea
From: Claudiu Beznea Add support to check if platform's power will be cut off in suspend. This will help drivers shared by multiple platforms to take only the necessary actions while suspending/resuming (some platform may not need to save/restore all the registers if platforms remains powered whi

[PATCH 3/3] ARM: at91: pm: add support for .off_in_suspend

2019-01-08 Thread Claudiu.Beznea
From: Claudiu Beznea Add support to check if platform is off in suspend. The check is based on pm_data.mode and CPU's regulator which will be turn off in suspend. Signed-off-by: Claudiu Beznea --- arch/arm/mach-at91/pm.c | 61 + 1 file changed, 5

[PATCH 0/3] add support for power off check in suspend

2019-01-08 Thread Claudiu.Beznea
From: Claudiu Beznea Hi, AT91 platforms support a power saving mode where SoC's power is cut off (we call it backup mode). The resume is done with the help of bootloaders. To be able to suspend/resume Linux to/from this mode all the drivers suspend/resume callbacks should save/restore the conten

[PATCH v2 0/3] add support for power off check in suspend

2019-01-08 Thread Claudiu.Beznea
From: Claudiu Beznea Hi, AT91 platforms support a power saving mode where SoC's power is cut off (we call it backup mode). The resume is done with the help of bootloaders. To be able to suspend/resume Linux to/from this mode all the drivers suspend/resume callbacks should save/restore the conten

[PATCH v2 2/3] regulator: core: add helper to check if regulator is disabled in suspend

2019-01-08 Thread Claudiu.Beznea
From: Claudiu Beznea Add helper to check if regulator will be disabled in suspend. Signed-off-by: Claudiu Beznea --- drivers/regulator/core.c | 17 + include/linux/regulator/consumer.h | 7 +++ 2 files changed, 24 insertions(+) diff --git a/drivers/regulator/cor

[PATCH v2 3/3] ARM: at91: pm: add support for .off_in_suspend

2019-01-08 Thread Claudiu.Beznea
From: Claudiu Beznea Add support to check if platform is off in suspend. The check is based on pm_data.mode and CPU's regulator which will be turn off in suspend. Signed-off-by: Claudiu Beznea --- arch/arm/mach-at91/pm.c | 61 + 1 file changed, 5

[PATCH v2 1/3] PM / Suspend: Add support to check if platform's power is off in suspend

2019-01-08 Thread Claudiu.Beznea
From: Claudiu Beznea Add support to check if platform's power will be cut off in suspend. This will help drivers shared by multiple platforms to take only the necessary actions while suspending/resuming (some platform may not need to save/restore all the registers if platforms remains powered whi

[PATCH v8 4/6] pwm: add push-pull mode support

2019-01-03 Thread Claudiu.Beznea
From: Claudiu Beznea Add push-pull mode support. In push-pull mode the channels' outputs have same polarities and the edges are complementary delayed for one period. Signed-off-by: Claudiu Beznea --- drivers/pwm/core.c | 3 +++ include/linux/pwm.h | 3 +++ 2 files changed, 6 insertions(+) di

[PATCH v8 1/6] pwm: extend PWM framework with PWM modes

2019-01-03 Thread Claudiu.Beznea
From: Claudiu Beznea Add basic PWM modes: normal and complementary. These modes should differentiate the single output PWM channels from two outputs PWM channels. These modes could be set as follow: 1. PWM channels with one output per channel: - normal mode 2. PWM channels with two outputs per ch

[PATCH v8 5/6] pwm: add documentation for pwm push-pull mode

2019-01-03 Thread Claudiu.Beznea
From: Claudiu Beznea Add documentation for PWM push-pull mode. Signed-off-by: Claudiu Beznea --- Documentation/pwm.txt | 16 1 file changed, 16 insertions(+) diff --git a/Documentation/pwm.txt b/Documentation/pwm.txt index 669fd4c9cc8e..80552627627d 100644 --- a/Documentation

[PATCH v8 6/6] pwm: atmel: add push-pull mode support

2019-01-03 Thread Claudiu.Beznea
From: Claudiu Beznea Add support for PWM push-pull mode. This is only supported by SAMA5D2 SoCs. Signed-off-by: Claudiu Beznea --- drivers/pwm/pwm-atmel.c | 40 1 file changed, 36 insertions(+), 4 deletions(-) diff --git a/drivers/pwm/pwm-atmel.c b/dri

[PATCH v8 2/6] pwm: add PWM modes

2019-01-03 Thread Claudiu.Beznea
From: Claudiu Beznea Add PWM normal and complementary modes. Signed-off-by: Claudiu Beznea --- Documentation/pwm.txt | 22 ++ 1 file changed, 22 insertions(+) diff --git a/Documentation/pwm.txt b/Documentation/pwm.txt index 8fbf0aa3ba2d..669fd4c9cc8e 100644 --- a/Documenta

[PATCH v8 3/6] pwm: atmel: add pwm capabilities

2019-01-03 Thread Claudiu.Beznea
From: Claudiu Beznea Add pwm capabilities for Atmel/Microchip PWM controllers. Signed-off-by: Claudiu Beznea --- drivers/pwm/pwm-atmel.c | 86 - 1 file changed, 57 insertions(+), 29 deletions(-) diff --git a/drivers/pwm/pwm-atmel.c b/drivers/pwm

[PATCH v8 0/6] extend PWM framework to support PWM modes

2019-01-03 Thread Claudiu.Beznea
From: Claudiu Beznea Hi, This series extends PWM framework with PWM modes. The current patch series add the following PWM modes: - PWM mode normal - PWM mode complementary - PWM mode push-pull In the following description PWMx_y refers to output y of PWM with ID x. Normal mode - for PWM chann

[PATCH] net: macb: remove unnecessary code

2019-01-03 Thread Claudiu.Beznea
From: Claudiu Beznea Commit 653e92a9175e ("net: macb: add support for padding and fcs computation") introduced a bug fixed by commit 899ecaedd155 ("net: ethernet: cadence: fix socket buffer corruption problem"). Code removed in this patch is not reachable at all so remove it. Fixes: 653e92a9175e

Re: [PATCH] power: reset: at91-reset: enable I-cache for at91sam9260_reset

2018-10-16 Thread Claudiu.Beznea
Hi Jonas, On 07.10.2018 15:57, Jonas Danielsson wrote: > From: Jonas Danielsson > > This fixes a bug where our embedded system (AT91SAM9260 based) would > hang at reboot. At the most we managed 16 boot loops without a hang. > > With this patch applied the problem has not been observed and the b

Re: [PATCH] power: reset: at91-reset: enable I-cache for at91sam9260_reset

2018-10-17 Thread Claudiu.Beznea
On 17.10.2018 15:17, Jonas Danielsson wrote: > On Tue, Oct 16, 2018 at 4:52 PM Alexander Stein > wrote: >> >> On Tuesday, October 16, 2018, 3:30:24 PM CEST claudiu.bez...@microchip.com >> wrote: >>> Hi Jonas, >>> >>> On 07.10.2018 15:57, Jonas Danielsson wrote: From: Jonas Danielsson

Re: [PATCH 2/4] power: reset: at91-poweroff: move shdwc related data to one structure

2018-11-07 Thread Claudiu.Beznea
Hi Alexandre, On 06.11.2018 23:09, Alexandre Belloni wrote: > Hi Claudiu, > > On 05/11/2018 11:14:26+, claudiu.bez...@microchip.com wrote: >> static int __init at91_poweroff_probe(struct platform_device *pdev) >> @@ -154,16 +160,22 @@ static int __init at91_poweroff_probe(struct >> platform

Re: [PATCH 1/2] regulator: act8945: Implement PM functionalities

2018-11-07 Thread Claudiu.Beznea
On 07.11.2018 16:53, Mark Brown wrote: > On Fri, Oct 26, 2018 at 04:19:48PM +, claudiu.bez...@microchip.com wrote: > >> +static unsigned int act8945a_of_map_mode(unsigned int mode) >> +{ >> +if (mode == ACT8945A_DCDC_MODE_POWER_SAVING) >> +return REGULATOR_MODE_STANDBY; >> +

[PATCH 3/4] power: reset: at91-poweroff: check shdwc data structure at the beginning of probe

2018-11-05 Thread Claudiu.Beznea
Check at91_shdwc before continuing with probe since we want only one instance of this driver. Inspired from commit 9f1e44774be5 ("power: reset: at91-poweroff: do not procede if at91_shdwc is allocated"). Signed-off-by: Claudiu Beznea --- drivers/power/reset/at91-poweroff.c | 3 +++ 1 file change

[PATCH 2/4] power: reset: at91-poweroff: move shdwc related data to one structure

2018-11-05 Thread Claudiu.Beznea
Move SHDWC realted data to only one structure to have them grouped. Inspired from commit 9be74f0d39c1 ("power: reset: at91-poweroff: make mpddrc_base part of struct shdwc"). Signed-off-by: Claudiu Beznea --- drivers/power/reset/at91-poweroff.c | 60 +++-- 1 file c

[PATCH 1/4] power: reset: at91-poweroff: use one poweroff function for at91-poweroff

2018-11-05 Thread Claudiu.Beznea
Use only one poweroff function and adapt it to work for both scenarios (with LPDDR or not). The assignement of pm_power_off was moved at the end of probe after all initializations are OK. This patch adapt the idea from commit 4e018c1e9b05 ("power: reset: at91-poweroff: use only one poweroff functio

[PATCH 0/4] power: reset: at91-poweroff: cleanups

2018-11-05 Thread Claudiu.Beznea
Hi, This series includes cleanups for at91-poweroff.c similar to the one did for SAMA5D2 Xplained SHDWC on series at [1]. Changes were tested on SAMA5D3 Xplained, SAMA5D4 Xplained and AT91SAM9G35-EK boards. Thank you, Claudiu Beznea [1] https://www.spinics.net/lists/arm-kernel/msg673559.html C

[PATCH 4/4] power: reset: at91-poweroff: remove at91_ramc_of_match

2018-11-05 Thread Claudiu.Beznea
Remove at91_ramc_of_match[] since it is not used anywhere in this code. Signed-off-by: Claudiu Beznea --- drivers/power/reset/at91-poweroff.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/power/reset/at91-poweroff.c b/drivers/power/reset/at91-poweroff.c index e75d8f0f0526..43b

Re: [PATCH] power: reset: at91-reset: enable I-cache for at91sam9260_reset

2018-10-26 Thread Claudiu.Beznea
On 19.10.2018 13:30, Jonas Danielsson wrote: > On Wed, Oct 17, 2018 at 3:10 PM wrote: >> >>> >>> We take the normal path of sys_reboot => kernel_restart => machine_restart >>> ... >>> >>> I added code to print the c1 register in different paths. And I-cache >>> is enabled. >>> So now I am reall

[PATCH 0/2] add PM functionality for act8945

2018-10-26 Thread Claudiu.Beznea
This series implements PM functionality for act8945 and use that support on sama5d2_xplained board. Boris Brezillon (2): regulator: act8945: Implement PM functionalities ARM: dts: at91: sama5d2_xplained: Add proper regulator states for suspend-to-mem arch/arm/boot/dts/at91-sama5d2_xplain

[PATCH 1/2] regulator: act8945: Implement PM functionalities

2018-10-26 Thread Claudiu.Beznea
From: Boris Brezillon The regulator supports a dedicated suspend mode. Implement the appropriate ->set_suspend_xx() hooks, add support for ->set_mode(), and provide basic PM ops functionalities to setup the regulator in a suspend state when the system is entering suspend. We also implement the -

[PATCH 2/2] ARM: dts: at91: sama5d2_xplained: Add proper regulator states for suspend-to-mem

2018-10-26 Thread Claudiu.Beznea
From: Boris Brezillon When entering suspend-to-mem, all PMIC outputs are disabled except VDDIODDR which is put in power saving mode, and whose voltage is increased (probably to counter the poor accuracy of power saving mode). Signed-off-by: Boris Brezillon [claudiu.bez...@microchip.com: use reg

Re: [PATCH 1/7] drm: atmel-hlcdc: add config option for clock selection

2019-03-01 Thread Claudiu.Beznea
On 28.02.2019 23:38, Sam Ravnborg wrote: > Hi Claudiu > > One more reply to this patch... > > On Wed, Feb 27, 2019 at 04:24:16PM +, claudiu.bez...@microchip.com wrote: >> From: Claudiu Beznea >> >> SAM9x60 LCD Controller has no option to select clock source as previous >> controllers have.

Re: [PATCH 6/7] drm: atmel-hlcdc: enable sys_clk during initalization.

2019-03-01 Thread Claudiu.Beznea
On 28.02.2019 23:55, Sam Ravnborg wrote: > Hi Claudiu > > On Wed, Feb 27, 2019 at 04:24:40PM +, claudiu.bez...@microchip.com wrote: >> From: Sandeep Sheriker Mallikarjun >> >> >> For SAM9X60 SoC, sys_clk is through lcd_gclk clock source and this >> needs to be enabled before enabling lcd_c

Re: [PATCH 1/7] drm: atmel-hlcdc: add config option for clock selection

2019-03-01 Thread Claudiu.Beznea
On 28.02.2019 23:25, Sam Ravnborg wrote: > Hi Claudiu > > On Wed, Feb 27, 2019 at 04:24:16PM +, claudiu.bez...@microchip.com wrote: >> From: Claudiu Beznea >> >> SAM9x60 LCD Controller has no option to select clock source as previous >> controllers have. To be able to use the same driver ev

Re: [PATCH 0/7] add LCD support for SAM9X60

2019-03-01 Thread Claudiu.Beznea
On 28.02.2019 23:13, Sam Ravnborg wrote: > Hi Alexandre. > These patches adds support for SAM9X60's LCD controller. >>> Can you elaborate a little more which chips that are relevant. >>> To be able to look into the right data-sheet, while reviewing. >>> Link to data-sheet would be nice

[PATCH] spi: atmel-quadspi: fix crash while suspending

2019-04-24 Thread Claudiu.Beznea
From: Claudiu Beznea atmel_qspi objects are kept in spi_controller objects, so, first get pointer to spi_controller object and then get atmel_qspi object from spi_controller object. Fixes: 2d30ac5ed633 ("mtd: spi-nor: atmel-quadspi: Use spi-mem interface for atmel-quadspi driver") Signed-off-by

Re: [PATCH V3 2/5] pwm: Add i.MX TPM PWM driver support

2019-03-14 Thread Claudiu.Beznea
On 14.03.2019 08:27, Anson Huang wrote: > i.MX7ULP has TPM(Low Power Timer/Pulse Width Modulation Module) > inside, add TPM PWM driver support. > > Signed-off-by: Anson Huang > --- > Changes since V2: > - Add "IMX_" as prefix to macro define as TPM is already used; > - Use macro def

Re: [PATCH V3 2/5] pwm: Add i.MX TPM PWM driver support

2019-03-14 Thread Claudiu.Beznea
On 14.03.2019 15:07, Anson Huang wrote: > so here I just make it enabled > after probed, and ONLY disable it after driver is removed or suspended. Ok, agree!

[PATCH 0/2] add Microchip PIT64B timer

2019-03-14 Thread Claudiu.Beznea
From: Claudiu Beznea Hi, This series adds driver for Microchip PIT64B timer. Timer could be used in continuous or oneshot mode. It has 2x32 bit registers to emulate a 64 bit timer. The timer's period could be configured via LSB_PR and MSB_PR registers. The current timer's value could be checked

[PATCH 2/5] clocksource/drivers/timer-microchip-pit64b: add Microchip PIT64B support

2019-03-14 Thread Claudiu.Beznea
From: Claudiu Beznea Add driver for Microchip PIT64B timer. Timer could be used in continuous mode or oneshot mode. The hardware has 2x32 bit registers for period emulating a 64 bit timer. The LSB_PR and MSB_PR registers are used to set the period value (compare value). TLSB and TMSB keeps the cu

[PATCH 5/5] MAINTAINERS: add timer-microchip-pit64c.c

2019-03-14 Thread Claudiu.Beznea
From: Claudiu Beznea Add timer-microchip-pit64b.c as maintained file. Signed-off-by: Claudiu Beznea --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 85bc819867da..5af947c9f350 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10023,6 +10023,7 @@

[PATCH 1/5] dt-bindings: arm: atmel: add bindings for PIT64B

2019-03-14 Thread Claudiu.Beznea
From: Claudiu Beznea Add device tree bindings for PIT64B timer. Signed-off-by: Claudiu Beznea --- Documentation/devicetree/bindings/arm/atmel-sysregs.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/atmel-sysregs.txt b/Documentation/devicetr

[PATCH 4/5] MAINTAINERS: add myself as maintainer

2019-03-14 Thread Claudiu.Beznea
From: Claudiu Beznea Add myself as maintainer for Microchip timers and clocksource drivers. Signed-off-by: Claudiu Beznea --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 0948d6592ea5..85bc819867da 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@

[PATCH 3/5] MAINTAINERS: change section name to be more generic

2019-03-14 Thread Claudiu.Beznea
From: Claudiu Beznea Change Microchip timers section name to be more generic. Signed-off-by: Claudiu Beznea --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 4d04cebb4a71..0948d6592ea5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

Re: [PATCH v2 1/7] pinctrl: at91: add option to use drive strength bits

2019-02-06 Thread Claudiu.Beznea
On 06.02.2019 10:13, Ludovic Desroches wrote: > On Thu, Jan 31, 2019 at 05:18:04PM +0100, Claudiu Beznea - M18063 wrote: >> From: Claudiu Beznea >> >> SAM9X60 uses high and low drive strengths. To implement this, in >> at91_pinctrl_mux_ops::set_drivestrength and >> at91_pinctrl_mux_ops::get_driv

Re: [PATCH v2 1/7] pinctrl: at91: add option to use drive strength bits

2019-02-06 Thread Claudiu.Beznea
On 06.02.2019 12:24, Ludovic Desroches wrote: > On Wed, Feb 06, 2019 at 09:46:28AM +, claudiu.bez...@microchip.com wrote: >> >> >> On 06.02.2019 10:13, Ludovic Desroches wrote: >>> On Thu, Jan 31, 2019 at 05:18:04PM +0100, Claudiu Beznea - M18063 wrote: From: Claudiu Beznea SA

[PATCH v3 6/7] pinctrl: at91: add slewrate support for SAM9X60

2019-02-07 Thread Claudiu.Beznea
From: Claudiu Beznea Add slew rate support for SAM9X60 pin controller. Signed-off-by: Claudiu Beznea Acked-by: Ludovic Desroches --- drivers/pinctrl/pinctrl-at91.c | 48 ++ drivers/pinctrl/pinctrl-at91.h | 1 + include/dt-bindings/pinctrl/at91.h |

[PATCH v3 2/7] pinctrl: at91: add drive strength support for SAM9X60

2019-02-07 Thread Claudiu.Beznea
From: Claudiu Beznea Add drive strength support for SAM9X60 pin controller. Signed-off-by: Claudiu Beznea Acked-by: Ludovic Desroches --- drivers/pinctrl/pinctrl-at91.c | 52 ++ drivers/pinctrl/pinctrl-at91.h | 2 ++ 2 files changed, 54 insertions(+)

[PATCH v3 7/7] dt-bindings: add documentation for slew rate

2019-02-07 Thread Claudiu.Beznea
From: Claudiu Beznea Add documentation for slew rate. Signed-off-by: Claudiu Beznea Acked-by: Ludovic Desroches --- Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl

[PATCH v3 1/7] pinctrl: at91: add option to use drive strength bits

2019-02-07 Thread Claudiu.Beznea
From: Claudiu Beznea SAM9X60 uses high and low drive strengths. To implement this, in at91_pinctrl_mux_ops::set_drivestrength and at91_pinctrl_mux_ops::get_drivestrength we need bit numbers of drive strengths (1 for low, 2 for high), thus change the code to allow the usage of drive strength bit n

[PATCH v3 5/7] dt-bindings: add bindings for SAM9X60

2019-02-07 Thread Claudiu.Beznea
From: Claudiu Beznea Add device tree binding for SAM9X60 pin controller. Signed-off-by: Claudiu Beznea Acked-by: Ludovic Desroches --- Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/device

[PATCH v3 0/7] add support for SAM9X60 pin controller

2019-02-07 Thread Claudiu.Beznea
From: Claudiu Beznea This series adds drive strenght and slew rate support for SAMX60's pin controller. For drive strenght we could have 2 values: low, high. For slew rate we could have 2 values: enable, disabled. Besides this I took the chance and adapt the documentation for at91 pinctrl driver

[PATCH v3 3/7] pinctrl: at91: add compatibles for SAM9X60 pin controller

2019-02-07 Thread Claudiu.Beznea
From: Claudiu Beznea Add compatibles for SAM9X60 pin controller. Signed-off-by: Claudiu Beznea Acked-by: Ludovic Desroches --- drivers/pinctrl/pinctrl-at91.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c index 46443b97d81

  1   2   3   >