Re: [PATCH v4 1/3] pinctrl: Add sleep related configuration

2017-07-12 Thread Baolin Wang
Hi, On 12 July 2017 at 20:30, Linus Walleij wrote: > On Tue, Jun 27, 2017 at 2:06 PM, Baolin Wang > wrote: > >> If we introduce "sleep-input-enable" config, we can set the pin's config >> as below: >> >> vio_sd0_ms_3: regctrl3 { >> pins = "SC9860_RFCTL30", "SC9860_RFCTL31", "SC9860_RFCT

Re: [PATCH v4 1/3] pinctrl: Add sleep related configuration

2017-07-12 Thread Linus Walleij
On Tue, Jun 27, 2017 at 2:06 PM, Baolin Wang wrote: > If we introduce "sleep-input-enable" config, we can set the pin's config > as below: > > vio_sd0_ms_3: regctrl3 { > pins = "SC9860_RFCTL30", "SC9860_RFCTL31", "SC9860_RFCTL32"; > function = "func1"; > sprd,sleep-mode =

Re: [PATCH v4 1/3] pinctrl: Add sleep related configuration

2017-07-07 Thread Baolin Wang
Hi Linusw and Rob, On 二, 6月 27, 2017 at 08:06:26下午 +0800, Baolin Wang wrote: > Hi, > > On 二, 6月 27, 2017 at 04:21:32下午 +0800, Baolin Wang wrote: > > On 一, 6月 26, 2017 at 11:13:48上午 -0500, Rob Herring wrote: > > > On Wed, Jun 21, 2017 at 07:55:37PM +0800, Baolin Wang wrote: > > > > In some scen

Re: [PATCH v4 1/3] pinctrl: Add sleep related configuration

2017-06-27 Thread Baolin Wang
Hi, On 二, 6月 27, 2017 at 04:21:32下午 +0800, Baolin Wang wrote: > On 一, 6月 26, 2017 at 11:13:48上午 -0500, Rob Herring wrote: > > On Wed, Jun 21, 2017 at 07:55:37PM +0800, Baolin Wang wrote: > > > In some scenarios, we should set some pins as input/output/pullup/pulldown > > > when the specified sys

Re: [PATCH v4 1/3] pinctrl: Add sleep related configuration

2017-06-27 Thread Baolin Wang
On 一, 6月 26, 2017 at 11:13:48上午 -0500, Rob Herring wrote: > On Wed, Jun 21, 2017 at 07:55:37PM +0800, Baolin Wang wrote: > > In some scenarios, we should set some pins as input/output/pullup/pulldown > > when the specified system goes into deep sleep mode, then when the system > > goes into deep s

Re: [PATCH v4 1/3] pinctrl: Add sleep related configuration

2017-06-26 Thread Rob Herring
On Wed, Jun 21, 2017 at 07:55:37PM +0800, Baolin Wang wrote: > In some scenarios, we should set some pins as input/output/pullup/pulldown > when the specified system goes into deep sleep mode, then when the system > goes into deep sleep mode, these pins will be set automatically by hardware. > > U

[PATCH v4 1/3] pinctrl: Add sleep related configuration

2017-06-21 Thread Baolin Wang
In some scenarios, we should set some pins as input/output/pullup/pulldown when the specified system goes into deep sleep mode, then when the system goes into deep sleep mode, these pins will be set automatically by hardware. Usually we can set the "sleep" state to set sleep related config, but on