[PATCH v5 3/6] dt-bindings: power: Introduce properties to present the battery OCV capacity table

2018-10-19 Thread Baolin Wang
Reichel Signed-off-by: Baolin Wang Reviewed-by: Linus Walleij --- Changes from v4: - Improve the description of ocv-capacity-table-n to make the order clear. Changes from v3: - Split binding into one separate patch. - Rename ocv-capacity-table-temperatures to ocv-capacity-celsius. - Add some

[PATCH v5 4/6] power: supply: core: Add some helpers to use the battery OCV capacity table

2018-10-19 Thread Baolin Wang
We have introduced some battery properties to present the OCV table temperatures and OCV capacity table values. Thus this patch add OCV temperature and OCV table for battery information, as well as providing some helper functions to use the OCV capacity table for users. Signed-off-by: Baolin Wang

[PATCH v5 2/6] power: supply: core: Add one field to present the battery internal resistance

2018-10-19 Thread Baolin Wang
Add one field for 'struct power_supply_battery_info' to present the battery factory internal resistance. Signed-off-by: Baolin Wang Reviewed-by: Linus Walleij --- Changes from v4: - None. Changes from v3: - New patch in v3, which splits code into one separate patch. - Add Linusw reviewed

[PATCH v5 6/6] power: supply: Add Spreadtrum SC27XX fuel gauge unit driver

2018-10-19 Thread Baolin Wang
This patch adds the Spreadtrum SC27XX serial PMICs fuel gauge support, which is used to calculate the battery capacity. Original-by: Yuanjiang Yu Signed-off-by: Baolin Wang Acked-by: Linus Walleij --- Changes from v4: - None. Changes from v3: - None. Changes from v2: - Use core helper

[PATCH v5 3/6] dt-bindings: power: Introduce properties to present the battery OCV capacity table

2018-10-19 Thread Baolin Wang
Reichel Signed-off-by: Baolin Wang Reviewed-by: Linus Walleij --- Changes from v4: - Improve the description of ocv-capacity-table-n to make the order clear. Changes from v3: - Split binding into one separate patch. - Rename ocv-capacity-table-temperatures to ocv-capacity-celsius. - Add some

[PATCH v5 5/6] dt-bindings: power: Add Spreadtrum SC27XX fuel gauge unit documentation

2018-10-19 Thread Baolin Wang
This patch adds the binding documentation for Spreadtrum SC27XX series PMICs fuel gauge unit device, which is used to calculate the battery capacity. Signed-off-by: Baolin Wang Reviewed-by: Linus Walleij Reviewed-by: Rob Herring --- Changes from v4: - None. Changes from v3: - Add reviewed

[PATCH v5 5/6] dt-bindings: power: Add Spreadtrum SC27XX fuel gauge unit documentation

2018-10-19 Thread Baolin Wang
This patch adds the binding documentation for Spreadtrum SC27XX series PMICs fuel gauge unit device, which is used to calculate the battery capacity. Signed-off-by: Baolin Wang Reviewed-by: Linus Walleij Reviewed-by: Rob Herring --- Changes from v4: - None. Changes from v3: - Add reviewed

[PATCH v5 1/6] dt-bindings: power: Introduce one property to present the battery internal resistance

2018-10-19 Thread Baolin Wang
factory internal resistance for battery information. Signed-off-by: Baolin Wang Reviewed-by: Linus Walleij --- Changes from v4: - None. Changes from v3: - Split binding into one separate patch. - Add LinusW reviewed tag. Changes from v2: - Rename the property. - Improve the commit message

[PATCH v5 1/6] dt-bindings: power: Introduce one property to present the battery internal resistance

2018-10-19 Thread Baolin Wang
factory internal resistance for battery information. Signed-off-by: Baolin Wang Reviewed-by: Linus Walleij --- Changes from v4: - None. Changes from v3: - Split binding into one separate patch. - Add LinusW reviewed tag. Changes from v2: - Rename the property. - Improve the commit message

Re: [PATCH v4 3/6] dt-bindings: power: Introduce properties to present the battery OCV capacity table

2018-10-18 Thread Baolin Wang
On 19 October 2018 at 00:51, Rob Herring wrote: > On Mon, Oct 15, 2018 at 04:09:22PM +0800, Baolin Wang wrote: >> Some battery driver will use the open circuit voltage (OCV) value to look >> up the corresponding battery capacity percent in one certain degree Celsius. >> Thu

Re: [PATCH v4 3/6] dt-bindings: power: Introduce properties to present the battery OCV capacity table

2018-10-18 Thread Baolin Wang
On 19 October 2018 at 00:51, Rob Herring wrote: > On Mon, Oct 15, 2018 at 04:09:22PM +0800, Baolin Wang wrote: >> Some battery driver will use the open circuit voltage (OCV) value to look >> up the corresponding battery capacity percent in one certain degree Celsius. >> Thu

Re: [PATCH 0/7] Add some fixes and new feature for SPRD DMA

2018-10-18 Thread Baolin Wang
Hi Vinod, On 29 September 2018 at 13:48, Baolin Wang wrote: > This patchset removes the direction usage from struct dma_slave_config, > and add one new field to save the direction. It also fixes some issues > for link-list transfer. Moreover this patchset adds new 2-stage transfer

Re: [PATCH 0/7] Add some fixes and new feature for SPRD DMA

2018-10-18 Thread Baolin Wang
Hi Vinod, On 29 September 2018 at 13:48, Baolin Wang wrote: > This patchset removes the direction usage from struct dma_slave_config, > and add one new field to save the direction. It also fixes some issues > for link-list transfer. Moreover this patchset adds new 2-stage transfer

[PATCH 3/5] rtc: sc27xx: Remove interrupts disable and clear in probe()

2018-10-18 Thread Baolin Wang
When registering one rtc device, it will check to see if there is an alarm already set in rtc hardware by issuing __rtc_read_alarm(). So we should not disable the RTC interrupts and clear the interrupts status in probe() function. Signed-off-by: Baolin Wang --- drivers/rtc/rtc-sc27xx.c | 20

[PATCH 2/5] rtc: sc27xx: Clear SPG value update interrupt status

2018-10-18 Thread Baolin Wang
We should clear the SPG value update interrupt status once the SPG value is updated successfully, in case incorrect status validation for next time. Signed-off-by: Baolin Wang --- drivers/rtc/rtc-sc27xx.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/rtc/rtc

[PATCH 5/5] rtc: sc27xx: Always read normal alarm when registering RTC device

2018-10-18 Thread Baolin Wang
When registering one RTC device, it will check to see if there is an alarm already set in RTC hardware by reading RTC alarm, at this time we should always read the normal alarm put in always-on region by checking the rtc->registered flag. Signed-off-by: Baolin Wang --- drivers/rtc/rtc-sc27x

[PATCH 1/5] rtc: sc27xx: Set wakeup capability before registering rtc device

2018-10-18 Thread Baolin Wang
Set wakeup capability before registering rtc device, in case the alarmtimer can find one available rtc device. Signed-off-by: Baolin Wang --- drivers/rtc/rtc-sc27xx.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-sc27xx.c b/drivers/rtc/rtc-sc27xx.c

[PATCH 2/5] rtc: sc27xx: Clear SPG value update interrupt status

2018-10-18 Thread Baolin Wang
We should clear the SPG value update interrupt status once the SPG value is updated successfully, in case incorrect status validation for next time. Signed-off-by: Baolin Wang --- drivers/rtc/rtc-sc27xx.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/rtc/rtc

[PATCH 5/5] rtc: sc27xx: Always read normal alarm when registering RTC device

2018-10-18 Thread Baolin Wang
When registering one RTC device, it will check to see if there is an alarm already set in RTC hardware by reading RTC alarm, at this time we should always read the normal alarm put in always-on region by checking the rtc->registered flag. Signed-off-by: Baolin Wang --- drivers/rtc/rtc-sc27x

[PATCH 1/5] rtc: sc27xx: Set wakeup capability before registering rtc device

2018-10-18 Thread Baolin Wang
Set wakeup capability before registering rtc device, in case the alarmtimer can find one available rtc device. Signed-off-by: Baolin Wang --- drivers/rtc/rtc-sc27xx.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-sc27xx.c b/drivers/rtc/rtc-sc27xx.c

[PATCH 3/5] rtc: sc27xx: Remove interrupts disable and clear in probe()

2018-10-18 Thread Baolin Wang
When registering one rtc device, it will check to see if there is an alarm already set in rtc hardware by issuing __rtc_read_alarm(). So we should not disable the RTC interrupts and clear the interrupts status in probe() function. Signed-off-by: Baolin Wang --- drivers/rtc/rtc-sc27xx.c | 20

[PATCH 4/5] rtc: sc27xx: Add check to see if need to enable the alarm interrupt

2018-10-18 Thread Baolin Wang
The RTC interrupt enable register is not put in always-power-on region supplied by VDDRTC, so we should check if we need enable the alarm interrupt when system booting. Signed-off-by: Baolin Wang --- drivers/rtc/rtc-sc27xx.c | 33 + 1 file changed, 33

[PATCH 4/5] rtc: sc27xx: Add check to see if need to enable the alarm interrupt

2018-10-18 Thread Baolin Wang
The RTC interrupt enable register is not put in always-power-on region supplied by VDDRTC, so we should check if we need enable the alarm interrupt when system booting. Signed-off-by: Baolin Wang --- drivers/rtc/rtc-sc27xx.c | 33 + 1 file changed, 33

[PATCH 0/5] Fix some issues for RTC alarm function

2018-10-18 Thread Baolin Wang
This patch set fixes some issues when setting one RTC alarm. Baolin Wang (5): rtc: sc27xx: Set wakeup capability before registering rtc device rtc: sc27xx: Clear SPG value update interrupt status rtc: sc27xx: Remove interrupts disable and clear in probe() rtc: sc27xx: Add check to see

[PATCH 0/5] Fix some issues for RTC alarm function

2018-10-18 Thread Baolin Wang
This patch set fixes some issues when setting one RTC alarm. Baolin Wang (5): rtc: sc27xx: Set wakeup capability before registering rtc device rtc: sc27xx: Clear SPG value update interrupt status rtc: sc27xx: Remove interrupts disable and clear in probe() rtc: sc27xx: Add check to see

[PATCH v4 2/6] power: supply: core: Add one field to present the battery internal resistance

2018-10-15 Thread Baolin Wang
Add one field for 'struct power_supply_battery_info' to present the battery factory internal resistance. Signed-off-by: Baolin Wang Reviewed-by: Linus Walleij --- Changes from v3: - New patch in v3, which splits code into one separate patch. - Add Linusw reviewed tag. --- drivers/power

[PATCH v4 1/6] dt-bindings: power: Introduce one property to present the battery internal resistance

2018-10-15 Thread Baolin Wang
factory internal resistance for battery information. Signed-off-by: Baolin Wang Reviewed-by: Linus Walleij --- Changes from v3: - Split binding into one separate patch. - Add LinusW reviewed tag. Changes from v2: - Rename the property. - Improve the commit message. Changes from v1: - New

[PATCH v4 4/6] power: supply: core: Add some helpers to use the battery OCV capacity table

2018-10-15 Thread Baolin Wang
We have introduced some battery properties to present the OCV table temperatures and OCV capacity table values. Thus this patch add OCV temperature and OCV table for battery information, as well as providing some helper functions to use the OCV capacity table for users. Signed-off-by: Baolin Wang

[PATCH v4 5/6] dt-bindings: power: Add Spreadtrum SC27XX fuel gauge unit documentation

2018-10-15 Thread Baolin Wang
This patch adds the binding documentation for Spreadtrum SC27XX series PMICs fuel gauge unit device, which is used to calculate the battery capacity. Signed-off-by: Baolin Wang Reviewed-by: Linus Walleij Reviewed-by: Rob Herring --- Changes from v3: Add reviewed tag from Rob. Changes from v2

[PATCH v4 6/6] power: supply: Add Spreadtrum SC27XX fuel gauge unit driver

2018-10-15 Thread Baolin Wang
This patch adds the Spreadtrum SC27XX serial PMICs fuel gauge support, which is used to calculate the battery capacity. Original-by: Yuanjiang Yu Signed-off-by: Baolin Wang Acked-by: Linus Walleij --- Changes from v3: - None. Changes from v2: - Use core helper functions to look up OCV

[PATCH v4 2/6] power: supply: core: Add one field to present the battery internal resistance

2018-10-15 Thread Baolin Wang
Add one field for 'struct power_supply_battery_info' to present the battery factory internal resistance. Signed-off-by: Baolin Wang Reviewed-by: Linus Walleij --- Changes from v3: - New patch in v3, which splits code into one separate patch. - Add Linusw reviewed tag. --- drivers/power

[PATCH v4 1/6] dt-bindings: power: Introduce one property to present the battery internal resistance

2018-10-15 Thread Baolin Wang
factory internal resistance for battery information. Signed-off-by: Baolin Wang Reviewed-by: Linus Walleij --- Changes from v3: - Split binding into one separate patch. - Add LinusW reviewed tag. Changes from v2: - Rename the property. - Improve the commit message. Changes from v1: - New

[PATCH v4 4/6] power: supply: core: Add some helpers to use the battery OCV capacity table

2018-10-15 Thread Baolin Wang
We have introduced some battery properties to present the OCV table temperatures and OCV capacity table values. Thus this patch add OCV temperature and OCV table for battery information, as well as providing some helper functions to use the OCV capacity table for users. Signed-off-by: Baolin Wang

[PATCH v4 5/6] dt-bindings: power: Add Spreadtrum SC27XX fuel gauge unit documentation

2018-10-15 Thread Baolin Wang
This patch adds the binding documentation for Spreadtrum SC27XX series PMICs fuel gauge unit device, which is used to calculate the battery capacity. Signed-off-by: Baolin Wang Reviewed-by: Linus Walleij Reviewed-by: Rob Herring --- Changes from v3: Add reviewed tag from Rob. Changes from v2

[PATCH v4 6/6] power: supply: Add Spreadtrum SC27XX fuel gauge unit driver

2018-10-15 Thread Baolin Wang
This patch adds the Spreadtrum SC27XX serial PMICs fuel gauge support, which is used to calculate the battery capacity. Original-by: Yuanjiang Yu Signed-off-by: Baolin Wang Acked-by: Linus Walleij --- Changes from v3: - None. Changes from v2: - Use core helper functions to look up OCV

[PATCH v4 3/6] dt-bindings: power: Introduce properties to present the battery OCV capacity table

2018-10-15 Thread Baolin Wang
Reichel Signed-off-by: Baolin Wang Reviewed-by: Linus Walleij --- Changes from v3: - Split binding into one separate patch. - Rename ocv-capacity-table-temperatures to ocv-capacity-celsius. - Add some words to specify the OCV's unit. Changes from v2: - Use type __be32 to calculate the table

[PATCH v4 3/6] dt-bindings: power: Introduce properties to present the battery OCV capacity table

2018-10-15 Thread Baolin Wang
Reichel Signed-off-by: Baolin Wang Reviewed-by: Linus Walleij --- Changes from v3: - Split binding into one separate patch. - Rename ocv-capacity-table-temperatures to ocv-capacity-celsius. - Add some words to specify the OCV's unit. Changes from v2: - Use type __be32 to calculate the table

Re: [PATCH v3 2/4] power: supply: core: Introduce properties to present the battery OCV capacity table

2018-10-14 Thread Baolin Wang
Hi Rob, On 12 October 2018 at 22:35, Rob Herring wrote: > On Thu, Sep 27, 2018 at 03:26:55PM +0800, Baolin Wang wrote: >> Some battery driver will use the open circuit voltage (OCV) value to look >> up the corresponding battery capacity percent in one certain degree Celsius. >

Re: [PATCH v3 2/4] power: supply: core: Introduce properties to present the battery OCV capacity table

2018-10-14 Thread Baolin Wang
Hi Rob, On 12 October 2018 at 22:35, Rob Herring wrote: > On Thu, Sep 27, 2018 at 03:26:55PM +0800, Baolin Wang wrote: >> Some battery driver will use the open circuit voltage (OCV) value to look >> up the corresponding battery capacity percent in one certain degree Celsius. >

Re: [PATCH v15 1/2] leds: core: Introduce LED pattern trigger

2018-10-11 Thread Baolin Wang
Hi, On 12 October 2018 at 04:07, Jacek Anaszewski wrote: > Hi Baolin, > > On 10/11/2018 06:07 AM, Baolin Wang wrote: >> This patch adds a new led trigger that LED device can employ >> software or hardware pattern engine. >> >> Consumers can write 'pattern' fi

Re: [PATCH v15 1/2] leds: core: Introduce LED pattern trigger

2018-10-11 Thread Baolin Wang
Hi, On 12 October 2018 at 04:07, Jacek Anaszewski wrote: > Hi Baolin, > > On 10/11/2018 06:07 AM, Baolin Wang wrote: >> This patch adds a new led trigger that LED device can employ >> software or hardware pattern engine. >> >> Consumers can write 'pattern' fi

[PATCH v15 1/2] leds: core: Introduce LED pattern trigger

2018-10-10 Thread Baolin Wang
to enable the hardware pattern for some LED controllers which can autonomously control brightness over time, according to some preprogrammed hardware patterns. Signed-off-by: Raphael Teysseyre Signed-off-by: Baolin Wang --- Changes from v14: - Improve the commit message and ABI documentation. - Fix

[PATCH v15 1/2] leds: core: Introduce LED pattern trigger

2018-10-10 Thread Baolin Wang
to enable the hardware pattern for some LED controllers which can autonomously control brightness over time, according to some preprogrammed hardware patterns. Signed-off-by: Raphael Teysseyre Signed-off-by: Baolin Wang --- Changes from v14: - Improve the commit message and ABI documentation. - Fix

[PATCH v15 2/2] leds: sc27xx: Add pattern_set/clear interfaces for LED controller

2018-10-10 Thread Baolin Wang
This patch implements the 'pattern_set'and 'pattern_clear' interfaces to support SC27XX LED breathing mode. Signed-off-by: Baolin Wang Acked-by: Pavel Machek --- Chnages from v14: - None. Changes from v13: - None. Changes from v12: - None. Changes from v11: - None. Changes from v10

[PATCH v15 2/2] leds: sc27xx: Add pattern_set/clear interfaces for LED controller

2018-10-10 Thread Baolin Wang
This patch implements the 'pattern_set'and 'pattern_clear' interfaces to support SC27XX LED breathing mode. Signed-off-by: Baolin Wang Acked-by: Pavel Machek --- Chnages from v14: - None. Changes from v13: - None. Changes from v12: - None. Changes from v11: - None. Changes from v10

Re: [PATCH v14 1/2] leds: core: Introduce LED pattern trigger

2018-10-10 Thread Baolin Wang
i.e. the subsequent brightness will be > applied without adding intervening dimming intervals" For gradual dimming, we also do not need to limit the duration larger than 50 ms. So below patterns are all valid now: echo "10 1 10 0 20 1 20 0 30 1 30 0" > pattern ec

Re: [PATCH v14 1/2] leds: core: Introduce LED pattern trigger

2018-10-10 Thread Baolin Wang
i.e. the subsequent brightness will be > applied without adding intervening dimming intervals" For gradual dimming, we also do not need to limit the duration larger than 50 ms. So below patterns are all valid now: echo "10 1 10 0 20 1 20 0 30 1 30 0" > pattern ec

Re: [PATCH v14 1/2] leds: core: Introduce LED pattern trigger

2018-10-10 Thread Baolin Wang
ming_interval" knob, but I'd suggest waiting until > such need arises. > > [Now, I don't have strong feelings here, and patch would probably be > okay with me even if it has dimming_interval, but I'd prefer to keep > it simple. We are at v14 of the patch...] Make sense. I will leave this feature until someone has the dimming_interval adjustment. Thanks. -- Baolin Wang Best Regards

Re: [PATCH v14 1/2] leds: core: Introduce LED pattern trigger

2018-10-10 Thread Baolin Wang
ming_interval" knob, but I'd suggest waiting until > such need arises. > > [Now, I don't have strong feelings here, and patch would probably be > okay with me even if it has dimming_interval, but I'd prefer to keep > it simple. We are at v14 of the patch...] Make sense. I will leave this feature until someone has the dimming_interval adjustment. Thanks. -- Baolin Wang Best Regards

Re: [PATCH v14 1/2] leds: core: Introduce LED pattern trigger

2018-10-09 Thread Baolin Wang
Hi Jacek, On 10 October 2018 at 02:37, Jacek Anaszewski wrote: > Hi Baolin, > > On 10/09/2018 02:01 PM, Baolin Wang wrote: >> Hi Jacek and Pavel, >> >> On 5 October 2018 at 04:00, Jacek Anaszewski >> wrote: >>> Hi Baolin, >>> >>&

Re: [PATCH v14 1/2] leds: core: Introduce LED pattern trigger

2018-10-09 Thread Baolin Wang
Hi Jacek, On 10 October 2018 at 02:37, Jacek Anaszewski wrote: > Hi Baolin, > > On 10/09/2018 02:01 PM, Baolin Wang wrote: >> Hi Jacek and Pavel, >> >> On 5 October 2018 at 04:00, Jacek Anaszewski >> wrote: >>> Hi Baolin, >>> >>&

Re: [PATCH v14 1/2] leds: core: Introduce LED pattern trigger

2018-10-09 Thread Baolin Wang
Hi Jacek and Pavel, On 5 October 2018 at 04:00, Jacek Anaszewski wrote: > Hi Baolin, > > On 10/03/2018 03:21 AM, Baolin Wang wrote: >> Hi Jacek, >> >> On 3 October 2018 at 04:25, Jacek Anaszewski >> wrote: >>> Hi Baolin, >>> >>

Re: [PATCH v14 1/2] leds: core: Introduce LED pattern trigger

2018-10-09 Thread Baolin Wang
Hi Jacek and Pavel, On 5 October 2018 at 04:00, Jacek Anaszewski wrote: > Hi Baolin, > > On 10/03/2018 03:21 AM, Baolin Wang wrote: >> Hi Jacek, >> >> On 3 October 2018 at 04:25, Jacek Anaszewski >> wrote: >>> Hi Baolin, >>> >>

Re: [PATCH v14 1/2] leds: core: Introduce LED pattern trigger

2018-10-02 Thread Baolin Wang
Hi Jacek, On 3 October 2018 at 04:25, Jacek Anaszewski wrote: > Hi Baolin, > > Thank you for the v14. We'll probably need v15, though :-) > > I added the comments in the code below. > > On 10/02/2018 05:43 PM, Baolin Wang wrote: >> This patch adds one new led

Re: [PATCH v14 1/2] leds: core: Introduce LED pattern trigger

2018-10-02 Thread Baolin Wang
Hi Jacek, On 3 October 2018 at 04:25, Jacek Anaszewski wrote: > Hi Baolin, > > Thank you for the v14. We'll probably need v15, though :-) > > I added the comments in the code below. > > On 10/02/2018 05:43 PM, Baolin Wang wrote: >> This patch adds one new led

[PATCH v14 2/2] leds: sc27xx: Add pattern_set/clear interfaces for LED controller

2018-10-02 Thread Baolin Wang
This patch implements the 'pattern_set'and 'pattern_clear' interfaces to support SC27XX LED breathing mode. Signed-off-by: Baolin Wang Acked-by: Pavel Machek --- Changes from v13: - None. Changes from v12: - None. Changes from v11: - None. Changes from v10: - Add duration alignment

[PATCH v14 2/2] leds: sc27xx: Add pattern_set/clear interfaces for LED controller

2018-10-02 Thread Baolin Wang
This patch implements the 'pattern_set'and 'pattern_clear' interfaces to support SC27XX LED breathing mode. Signed-off-by: Baolin Wang Acked-by: Pavel Machek --- Changes from v13: - None. Changes from v12: - None. Changes from v11: - None. Changes from v10: - Add duration alignment

[PATCH v14 1/2] leds: core: Introduce LED pattern trigger

2018-10-02 Thread Baolin Wang
'hw_pattern' file to enable the hardware pattern for some LED controllers which can autonomously control brightness over time, according to some preprogrammed hardware patterns. Signed-off-by: Raphael Teysseyre Signed-off-by: Baolin Wang --- Changes from v13: - Add duration validation for gradual

[PATCH v14 1/2] leds: core: Introduce LED pattern trigger

2018-10-02 Thread Baolin Wang
'hw_pattern' file to enable the hardware pattern for some LED controllers which can autonomously control brightness over time, according to some preprogrammed hardware patterns. Signed-off-by: Raphael Teysseyre Signed-off-by: Baolin Wang --- Changes from v13: - Add duration validation for gradual

Re: [PATCH v13 1/2] leds: core: Introduce LED pattern trigger

2018-10-01 Thread Baolin Wang
11] secondary_startup_64+0xa4/0xb0 > > Probably the best solution would be to avoid the dimming if > delta_t is lower than UPDATE_INTERVAL. Thanks for your testing. Yes, I will valid the delta_t value when user use the gradual dimming, and add some comments in ABI to make it clear, th

Re: [PATCH v13 1/2] leds: core: Introduce LED pattern trigger

2018-10-01 Thread Baolin Wang
11] secondary_startup_64+0xa4/0xb0 > > Probably the best solution would be to avoid the dimming if > delta_t is lower than UPDATE_INTERVAL. Thanks for your testing. Yes, I will valid the delta_t value when user use the gradual dimming, and add some comments in ABI to make it clear, th

[PATCH 6/7] dmaengine: sprd: Support DMA 2-stage transfer mode

2018-09-28 Thread Baolin Wang
automatically by hardware signal. Signed-off-by: Eric Long Signed-off-by: Baolin Wang --- drivers/dma/sprd-dma.c | 98 +- include/linux/dma/sprd-dma.h | 62 -- 2 files changed, 156 insertions(+), 4 deletions(-) diff --git

[PATCH 6/7] dmaengine: sprd: Support DMA 2-stage transfer mode

2018-09-28 Thread Baolin Wang
automatically by hardware signal. Signed-off-by: Eric Long Signed-off-by: Baolin Wang --- drivers/dma/sprd-dma.c | 98 +- include/linux/dma/sprd-dma.h | 62 -- 2 files changed, 156 insertions(+), 4 deletions(-) diff --git

[PATCH 4/7] dmaengine: sprd: Set cur_desc as NULL when free or terminate one dma channel

2018-09-28 Thread Baolin Wang
hannel to avoid this issue. Signed-off-by: Eric Long Signed-off-by: Baolin Wang --- drivers/dma/sprd-dma.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/sprd-dma.c b/drivers/dma/sprd-dma.c index e6a74dc..1b39661 100644 --- a/drivers/dma/sprd-dma.c +++ b/drivers/dma/sprd

[PATCH 0/7] Add some fixes and new feature for SPRD DMA

2018-09-28 Thread Baolin Wang
This patchset removes the direction usage from struct dma_slave_config, and add one new field to save the direction. It also fixes some issues for link-list transfer. Moreover this patchset adds new 2-stage transfer support for our DMA. Baolin Wang (1): dmaengine: sprd: Remove direction usage

[PATCH 1/7] dmaengine: sprd: Remove direction usage from struct dma_slave_config

2018-09-28 Thread Baolin Wang
The direction field of struct dma_slave_config was marked deprecated, thus remove the usage. Signed-off-by: Baolin Wang --- drivers/dma/sprd-dma.c |3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/dma/sprd-dma.c b/drivers/dma/sprd-dma.c index 38d4e4f..c226dc93 100644

[PATCH 7/7] dmaengine: sprd: Add me as one of the module authors

2018-09-28 Thread Baolin Wang
From: Eric Long Add me as one of the module authors. Signed-off-by: Eric Long Signed-off-by: Baolin Wang --- drivers/dma/sprd-dma.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/sprd-dma.c b/drivers/dma/sprd-dma.c index 50d6569..e2f0167 100644 --- a/drivers/dma/sprd

[PATCH 4/7] dmaengine: sprd: Set cur_desc as NULL when free or terminate one dma channel

2018-09-28 Thread Baolin Wang
hannel to avoid this issue. Signed-off-by: Eric Long Signed-off-by: Baolin Wang --- drivers/dma/sprd-dma.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/sprd-dma.c b/drivers/dma/sprd-dma.c index e6a74dc..1b39661 100644 --- a/drivers/dma/sprd-dma.c +++ b/drivers/dma/sprd

[PATCH 0/7] Add some fixes and new feature for SPRD DMA

2018-09-28 Thread Baolin Wang
This patchset removes the direction usage from struct dma_slave_config, and add one new field to save the direction. It also fixes some issues for link-list transfer. Moreover this patchset adds new 2-stage transfer support for our DMA. Baolin Wang (1): dmaengine: sprd: Remove direction usage

[PATCH 1/7] dmaengine: sprd: Remove direction usage from struct dma_slave_config

2018-09-28 Thread Baolin Wang
The direction field of struct dma_slave_config was marked deprecated, thus remove the usage. Signed-off-by: Baolin Wang --- drivers/dma/sprd-dma.c |3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/dma/sprd-dma.c b/drivers/dma/sprd-dma.c index 38d4e4f..c226dc93 100644

[PATCH 7/7] dmaengine: sprd: Add me as one of the module authors

2018-09-28 Thread Baolin Wang
From: Eric Long Add me as one of the module authors. Signed-off-by: Eric Long Signed-off-by: Baolin Wang --- drivers/dma/sprd-dma.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/sprd-dma.c b/drivers/dma/sprd-dma.c index 50d6569..e2f0167 100644 --- a/drivers/dma/sprd

[PATCH 5/7] dmaengine: sprd: Support DMA link-list cyclic callback

2018-09-28 Thread Baolin Wang
From: Eric Long The Spreadtrum DMA link-list mode is always one cyclic transfer, so we should clear the SPRD_DMA_LLIST_END flag for the link-list configuration. Moreover add cyclic callback support for the cyclic transfer. Signed-off-by: Eric Long Signed-off-by: Baolin Wang --- drivers/dma

[PATCH 5/7] dmaengine: sprd: Support DMA link-list cyclic callback

2018-09-28 Thread Baolin Wang
From: Eric Long The Spreadtrum DMA link-list mode is always one cyclic transfer, so we should clear the SPRD_DMA_LLIST_END flag for the link-list configuration. Moreover add cyclic callback support for the cyclic transfer. Signed-off-by: Eric Long Signed-off-by: Baolin Wang --- drivers/dma

[PATCH 2/7] dmaengine: sprd: Get transfer residue depending on the transfer direction

2018-09-28 Thread Baolin Wang
From: Eric Long Add one field to save the transfer direction for struct sprd_dma_desc, which is used to get correct transfer residue depending on the transfer direction. [Baolin Wang adds one field to present the transfer direction] Signed-off-by: Eric Long Signed-off-by: Baolin Wang

[PATCH 3/7] dmaengine: sprd: Fix the last link-list configuration

2018-09-28 Thread Baolin Wang
-by: Baolin Wang --- drivers/dma/sprd-dma.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/dma/sprd-dma.c b/drivers/dma/sprd-dma.c index 4f3587b..e6a74dc 100644 --- a/drivers/dma/sprd-dma.c +++ b/drivers/dma/sprd-dma.c @@ -697,7 +697,8 @@ static int

[PATCH 2/7] dmaengine: sprd: Get transfer residue depending on the transfer direction

2018-09-28 Thread Baolin Wang
From: Eric Long Add one field to save the transfer direction for struct sprd_dma_desc, which is used to get correct transfer residue depending on the transfer direction. [Baolin Wang adds one field to present the transfer direction] Signed-off-by: Eric Long Signed-off-by: Baolin Wang

[PATCH 3/7] dmaengine: sprd: Fix the last link-list configuration

2018-09-28 Thread Baolin Wang
-by: Baolin Wang --- drivers/dma/sprd-dma.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/dma/sprd-dma.c b/drivers/dma/sprd-dma.c index 4f3587b..e6a74dc 100644 --- a/drivers/dma/sprd-dma.c +++ b/drivers/dma/sprd-dma.c @@ -697,7 +697,8 @@ static int

[PATCH] pinctrl: sprd: Move DT parsing before registering pinctrl device

2018-09-27 Thread Baolin Wang
. Signed-off-by: Baolin Wang --- drivers/pinctrl/sprd/pinctrl-sprd.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/pinctrl/sprd/pinctrl-sprd.c b/drivers/pinctrl/sprd/pinctrl-sprd.c index 78c2f54..4537b54 100644 --- a/drivers/pinctrl/sprd/pinctrl

[PATCH] pinctrl: sprd: Move DT parsing before registering pinctrl device

2018-09-27 Thread Baolin Wang
. Signed-off-by: Baolin Wang --- drivers/pinctrl/sprd/pinctrl-sprd.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/pinctrl/sprd/pinctrl-sprd.c b/drivers/pinctrl/sprd/pinctrl-sprd.c index 78c2f54..4537b54 100644 --- a/drivers/pinctrl/sprd/pinctrl

[PATCH v3 2/4] power: supply: core: Introduce properties to present the battery OCV capacity table

2018-09-27 Thread Baolin Wang
some helper functions to use the OCV capacity table for users. Suggested-by: Sebastian Reichel Signed-off-by: Baolin Wang Reviewed-by: Linus Walleij --- Changes from v2: - Use type __be32 to calculate the table length. - Update error messages. - Add some helper functions. Changes from v1

[PATCH v3 3/4] dt-bindings: power: Add Spreadtrum SC27XX fuel gauge unit documentation

2018-09-27 Thread Baolin Wang
This patch adds the binding documentation for Spreadtrum SC27XX series PMICs fuel gauge unit device, which is used to calculate the battery capacity. Signed-off-by: Baolin Wang Reviewed-by: Linus Walleij --- Changes from v2: - Add reviewed tag from Linus. Changes from v1: - Renamed GPIO

[PATCH v3 2/4] power: supply: core: Introduce properties to present the battery OCV capacity table

2018-09-27 Thread Baolin Wang
some helper functions to use the OCV capacity table for users. Suggested-by: Sebastian Reichel Signed-off-by: Baolin Wang Reviewed-by: Linus Walleij --- Changes from v2: - Use type __be32 to calculate the table length. - Update error messages. - Add some helper functions. Changes from v1

[PATCH v3 3/4] dt-bindings: power: Add Spreadtrum SC27XX fuel gauge unit documentation

2018-09-27 Thread Baolin Wang
This patch adds the binding documentation for Spreadtrum SC27XX series PMICs fuel gauge unit device, which is used to calculate the battery capacity. Signed-off-by: Baolin Wang Reviewed-by: Linus Walleij --- Changes from v2: - Add reviewed tag from Linus. Changes from v1: - Renamed GPIO

[PATCH v3 4/4] power: supply: Add Spreadtrum SC27XX fuel gauge unit driver

2018-09-27 Thread Baolin Wang
This patch adds the Spreadtrum SC27XX serial PMICs fuel gauge support, which is used to calculate the battery capacity. Original-by: Yuanjiang Yu Signed-off-by: Baolin Wang Acked-by: Linus Walleij --- Changes from v2: - Use core helper functions to look up OCV capacity table. - Use

[PATCH v3 4/4] power: supply: Add Spreadtrum SC27XX fuel gauge unit driver

2018-09-27 Thread Baolin Wang
This patch adds the Spreadtrum SC27XX serial PMICs fuel gauge support, which is used to calculate the battery capacity. Original-by: Yuanjiang Yu Signed-off-by: Baolin Wang Acked-by: Linus Walleij --- Changes from v2: - Use core helper functions to look up OCV capacity table. - Use

[PATCH v3 1/4] power: supply: core: Introduce one property to present the battery internal resistance

2018-09-27 Thread Baolin Wang
factory internal resistance for battery information. Signed-off-by: Baolin Wang --- Changes from v2: - Rename the property. - Improve the commit message. Changes from v1: - New patch in v2. --- .../devicetree/bindings/power/supply/battery.txt |2 ++ drivers/power/supply

[PATCH v3 1/4] power: supply: core: Introduce one property to present the battery internal resistance

2018-09-27 Thread Baolin Wang
factory internal resistance for battery information. Signed-off-by: Baolin Wang --- Changes from v2: - Rename the property. - Improve the commit message. Changes from v1: - New patch in v2. --- .../devicetree/bindings/power/supply/battery.txt |2 ++ drivers/power/supply

Re: [PATCH v2 4/4] power: supply: Add Spreadtrum SC27XX fuel gauge unit driver

2018-09-26 Thread Baolin Wang
On 26 September 2018 at 23:30, Sebastian Reichel wrote: > Hi, > > On Wed, Sep 26, 2018 at 10:59:14AM +0800, Baolin Wang wrote: >> This patch adds the Spreadtrum SC27XX serial PMICs fuel gauge support, >> which is used to calculate the battery capacity. >> >> Ori

Re: [PATCH v2 4/4] power: supply: Add Spreadtrum SC27XX fuel gauge unit driver

2018-09-26 Thread Baolin Wang
On 26 September 2018 at 23:30, Sebastian Reichel wrote: > Hi, > > On Wed, Sep 26, 2018 at 10:59:14AM +0800, Baolin Wang wrote: >> This patch adds the Spreadtrum SC27XX serial PMICs fuel gauge support, >> which is used to calculate the battery capacity. >> >> Ori

[PATCH v13 2/2] leds: sc27xx: Add pattern_set/clear interfaces for LED controller

2018-09-26 Thread Baolin Wang
This patch implements the 'pattern_set'and 'pattern_clear' interfaces to support SC27XX LED breathing mode. Signed-off-by: Baolin Wang Acked-by: Pavel Machek --- Changes from v12: - None. Changes from v11: - None. Changes from v10: - Add duration alignment function suggested by Jacek

[PATCH v13 1/2] leds: core: Introduce LED pattern trigger

2018-09-26 Thread Baolin Wang
'hw_pattern' file to enable the hardware pattern for some LED controllers which can autonomously control brightness over time, according to some preprogrammed hardware patterns. Signed-off-by: Raphael Teysseyre Signed-off-by: Baolin Wang --- Changes from v12: - Add gradual dimming support for software

[PATCH v13 2/2] leds: sc27xx: Add pattern_set/clear interfaces for LED controller

2018-09-26 Thread Baolin Wang
This patch implements the 'pattern_set'and 'pattern_clear' interfaces to support SC27XX LED breathing mode. Signed-off-by: Baolin Wang Acked-by: Pavel Machek --- Changes from v12: - None. Changes from v11: - None. Changes from v10: - Add duration alignment function suggested by Jacek

[PATCH v13 1/2] leds: core: Introduce LED pattern trigger

2018-09-26 Thread Baolin Wang
'hw_pattern' file to enable the hardware pattern for some LED controllers which can autonomously control brightness over time, according to some preprogrammed hardware patterns. Signed-off-by: Raphael Teysseyre Signed-off-by: Baolin Wang --- Changes from v12: - Add gradual dimming support for software

Re: [PATCH v2 2/4] power: supply: core: Introduce properties to present the battery OCV table

2018-09-26 Thread Baolin Wang
On 26 September 2018 at 21:51, Sebastian Reichel wrote: > Hi, > > On Wed, Sep 26, 2018 at 10:59:12AM +0800, Baolin Wang wrote: >> Some battery driver will use the open circuit voltage (OCV) value to look >> up the corresponding battery capacity percent in one certain de

Re: [PATCH v2 2/4] power: supply: core: Introduce properties to present the battery OCV table

2018-09-26 Thread Baolin Wang
On 26 September 2018 at 21:51, Sebastian Reichel wrote: > Hi, > > On Wed, Sep 26, 2018 at 10:59:12AM +0800, Baolin Wang wrote: >> Some battery driver will use the open circuit voltage (OCV) value to look >> up the corresponding battery capacity percent in one certain de

Re: [PATCH v2 1/4] power: supply: core: Introduce one property to present the battery internal resistance

2018-09-26 Thread Baolin Wang
On 26 September 2018 at 20:45, Sebastian Reichel wrote: > Hi, > > On Wed, Sep 26, 2018 at 04:30:39PM +0800, Baolin Wang wrote: >> Hi Linus, >> >> On 26 September 2018 at 16:00, Linus Walleij >> wrote: >> > On Wed, Sep 26, 2018 at 4:59 AM Baolin Wang

Re: [PATCH v2 1/4] power: supply: core: Introduce one property to present the battery internal resistance

2018-09-26 Thread Baolin Wang
On 26 September 2018 at 20:45, Sebastian Reichel wrote: > Hi, > > On Wed, Sep 26, 2018 at 04:30:39PM +0800, Baolin Wang wrote: >> Hi Linus, >> >> On 26 September 2018 at 16:00, Linus Walleij >> wrote: >> > On Wed, Sep 26, 2018 at 4:59 AM Baolin Wang

Re: [PATCH] spi: sprd: don't mark remove function as __exit

2018-09-26 Thread Baolin Wang
section `.data' of drivers/spi/spi-sprd.o: > defined in discarded section `.exit.text' of drivers/spi/spi-sprd.o > > Fixes: e7d973a31c24 ("spi: sprd: Add SPI driver for Spreadtrum SC9860") > Signed-off-by: Arnd Bergmann Thanks Arnd. Acked-by: Baolin Wang > --- &g

Re: [PATCH] spi: sprd: don't mark remove function as __exit

2018-09-26 Thread Baolin Wang
section `.data' of drivers/spi/spi-sprd.o: > defined in discarded section `.exit.text' of drivers/spi/spi-sprd.o > > Fixes: e7d973a31c24 ("spi: sprd: Add SPI driver for Spreadtrum SC9860") > Signed-off-by: Arnd Bergmann Thanks Arnd. Acked-by: Baolin Wang > --- &g

Re: [PATCH v2 4/4] power: supply: Add Spreadtrum SC27XX fuel gauge unit driver

2018-09-26 Thread Baolin Wang
Hi Linus, On 26 September 2018 at 16:09, Linus Walleij wrote: > On Wed, Sep 26, 2018 at 5:00 AM Baolin Wang wrote: > >> This patch adds the Spreadtrum SC27XX serial PMICs fuel gauge support, >> which is used to calculate the battery capacity. >> >> Original-b

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