Re: [PATCH v2 2/5] gpio: syscon: Add gpio-syscon for rockchip

2018-05-27 Thread Levin
On 2018-05-24 8:18 PM, Heiko Stuebner wrote: Hi Levin, Am Donnerstag, 24. Mai 2018, 03:59:36 CEST schrieb Levin Du: Hi all, I'd like to quote reply of Robin Murphy at http://lists.infradead.org/pipermail/linux-rockchip/2018-May/020619.html I would suggest s/pin number/bit number in the

Re: [PATCH v2 2/5] gpio: syscon: Add gpio-syscon for rockchip

2018-05-27 Thread Levin
On 2018-05-24 8:18 PM, Heiko Stuebner wrote: Hi Levin, Am Donnerstag, 24. Mai 2018, 03:59:36 CEST schrieb Levin Du: Hi all, I'd like to quote reply of Robin Murphy at http://lists.infradead.org/pipermail/linux-rockchip/2018-May/020619.html I would suggest s/pin number/bit number in the

Re: [PATCH v2 2/5] gpio: syscon: Add gpio-syscon for rockchip

2018-05-24 Thread Rob Herring
On Thu, May 24, 2018 at 7:07 AM, Heiko Stuebner wrote: > Hi Rob, > > Am Mittwoch, 23. Mai 2018, 21:53:53 CEST schrieb Rob Herring: >> On Wed, May 23, 2018 at 10:12 AM, Heiko Stübner wrote: >> > Am Mittwoch, 23. Mai 2018, 16:43:07 CEST schrieb Rob Herring: >> >>

Re: [PATCH v2 2/5] gpio: syscon: Add gpio-syscon for rockchip

2018-05-24 Thread Rob Herring
On Thu, May 24, 2018 at 7:07 AM, Heiko Stuebner wrote: > Hi Rob, > > Am Mittwoch, 23. Mai 2018, 21:53:53 CEST schrieb Rob Herring: >> On Wed, May 23, 2018 at 10:12 AM, Heiko Stübner wrote: >> > Am Mittwoch, 23. Mai 2018, 16:43:07 CEST schrieb Rob Herring: >> >> On Tue, May 22, 2018 at 9:02 PM,

Re: [PATCH v2 2/5] gpio: syscon: Add gpio-syscon for rockchip

2018-05-24 Thread Heiko Stuebner
Hi Levin, Am Donnerstag, 24. Mai 2018, 03:59:36 CEST schrieb Levin Du: > Hi all, I'd like to quote reply of Robin Murphy at > http://lists.infradead.org/pipermail/linux-rockchip/2018-May/020619.html > > > > > I would suggest s/pin number/bit number in the associated GRF register/ > > here. At

Re: [PATCH v2 2/5] gpio: syscon: Add gpio-syscon for rockchip

2018-05-24 Thread Heiko Stuebner
Hi Levin, Am Donnerstag, 24. Mai 2018, 03:59:36 CEST schrieb Levin Du: > Hi all, I'd like to quote reply of Robin Murphy at > http://lists.infradead.org/pipermail/linux-rockchip/2018-May/020619.html > > > > > I would suggest s/pin number/bit number in the associated GRF register/ > > here. At

Re: [PATCH v2 2/5] gpio: syscon: Add gpio-syscon for rockchip

2018-05-24 Thread Heiko Stuebner
Hi Rob, Am Mittwoch, 23. Mai 2018, 21:53:53 CEST schrieb Rob Herring: > On Wed, May 23, 2018 at 10:12 AM, Heiko Stübner wrote: > > Am Mittwoch, 23. Mai 2018, 16:43:07 CEST schrieb Rob Herring: > >> On Tue, May 22, 2018 at 9:02 PM, Levin Du wrote: > >> > On

Re: [PATCH v2 2/5] gpio: syscon: Add gpio-syscon for rockchip

2018-05-24 Thread Heiko Stuebner
Hi Rob, Am Mittwoch, 23. Mai 2018, 21:53:53 CEST schrieb Rob Herring: > On Wed, May 23, 2018 at 10:12 AM, Heiko Stübner wrote: > > Am Mittwoch, 23. Mai 2018, 16:43:07 CEST schrieb Rob Herring: > >> On Tue, May 22, 2018 at 9:02 PM, Levin Du wrote: > >> > On 2018-05-23 2:02 AM, Rob Herring wrote:

Re: [PATCH v2 2/5] gpio: syscon: Add gpio-syscon for rockchip

2018-05-24 Thread Linus Walleij
On Thu, May 24, 2018 at 10:35 AM, Heiko Stübner wrote: > Am Donnerstag, 24. Mai 2018, 10:28:44 CEST schrieb Linus Walleij: >> On Wed, May 23, 2018 at 5:12 PM, Heiko Stübner wrote: >> > So the gpio controller should definitly also be a subnode. >> > >> > The gpio

Re: [PATCH v2 2/5] gpio: syscon: Add gpio-syscon for rockchip

2018-05-24 Thread Linus Walleij
On Thu, May 24, 2018 at 10:35 AM, Heiko Stübner wrote: > Am Donnerstag, 24. Mai 2018, 10:28:44 CEST schrieb Linus Walleij: >> On Wed, May 23, 2018 at 5:12 PM, Heiko Stübner wrote: >> > So the gpio controller should definitly also be a subnode. >> > >> > The gpio in question is called "mute", so

Re: [PATCH v2 2/5] gpio: syscon: Add gpio-syscon for rockchip

2018-05-24 Thread Heiko Stübner
Hi Linus, Am Donnerstag, 24. Mai 2018, 10:28:44 CEST schrieb Linus Walleij: > On Wed, May 23, 2018 at 5:12 PM, Heiko Stübner wrote: > > So the gpio controller should definitly also be a subnode. > > > > The gpio in question is called "mute", so I'd think the gpio-syscon driver

Re: [PATCH v2 2/5] gpio: syscon: Add gpio-syscon for rockchip

2018-05-24 Thread Heiko Stübner
Hi Linus, Am Donnerstag, 24. Mai 2018, 10:28:44 CEST schrieb Linus Walleij: > On Wed, May 23, 2018 at 5:12 PM, Heiko Stübner wrote: > > So the gpio controller should definitly also be a subnode. > > > > The gpio in question is called "mute", so I'd think the gpio-syscon driver > > should just

Re: [PATCH v2 2/5] gpio: syscon: Add gpio-syscon for rockchip

2018-05-24 Thread Linus Walleij
On Wed, May 23, 2018 at 5:12 PM, Heiko Stübner wrote: > So the gpio controller should definitly also be a subnode. > > The gpio in question is called "mute", so I'd think the gpio-syscon driver > should just define a "rockchip,rk3328-gpio-mute" compatible and contain > all the

Re: [PATCH v2 2/5] gpio: syscon: Add gpio-syscon for rockchip

2018-05-24 Thread Linus Walleij
On Wed, May 23, 2018 at 5:12 PM, Heiko Stübner wrote: > So the gpio controller should definitly also be a subnode. > > The gpio in question is called "mute", so I'd think the gpio-syscon driver > should just define a "rockchip,rk3328-gpio-mute" compatible and contain > all the register voodoo in

Re: [PATCH v2 2/5] gpio: syscon: Add gpio-syscon for rockchip

2018-05-23 Thread Levin Du
Hi all, I'd like to quote reply of Robin Murphy at  http://lists.infradead.org/pipermail/linux-rockchip/2018-May/020619.html I would suggest s/pin number/bit number in the associated GRF register/ here. At least in this RK3328 case there's only one pin, which isn't numbered, and if you naively

Re: [PATCH v2 2/5] gpio: syscon: Add gpio-syscon for rockchip

2018-05-23 Thread Levin Du
Hi all, I'd like to quote reply of Robin Murphy at  http://lists.infradead.org/pipermail/linux-rockchip/2018-May/020619.html I would suggest s/pin number/bit number in the associated GRF register/ here. At least in this RK3328 case there's only one pin, which isn't numbered, and if you naively

Re: [PATCH v2 2/5] gpio: syscon: Add gpio-syscon for rockchip

2018-05-23 Thread Rob Herring
On Wed, May 23, 2018 at 10:12 AM, Heiko Stübner wrote: > Hi Rob, Levin, > > sorry for being late to the party. > > Am Mittwoch, 23. Mai 2018, 16:43:07 CEST schrieb Rob Herring: >> On Tue, May 22, 2018 at 9:02 PM, Levin Du wrote: >> > On 2018-05-23 2:02 AM,

Re: [PATCH v2 2/5] gpio: syscon: Add gpio-syscon for rockchip

2018-05-23 Thread Rob Herring
On Wed, May 23, 2018 at 10:12 AM, Heiko Stübner wrote: > Hi Rob, Levin, > > sorry for being late to the party. > > Am Mittwoch, 23. Mai 2018, 16:43:07 CEST schrieb Rob Herring: >> On Tue, May 22, 2018 at 9:02 PM, Levin Du wrote: >> > On 2018-05-23 2:02 AM, Rob Herring wrote: >> >> On Fri, May

Re: [PATCH v2 2/5] gpio: syscon: Add gpio-syscon for rockchip

2018-05-23 Thread Heiko Stübner
Hi Rob, Levin, sorry for being late to the party. Am Mittwoch, 23. Mai 2018, 16:43:07 CEST schrieb Rob Herring: > On Tue, May 22, 2018 at 9:02 PM, Levin Du wrote: > > On 2018-05-23 2:02 AM, Rob Herring wrote: > >> On Fri, May 18, 2018 at 11:52:05AM +0800, d...@t-chip.com.cn

Re: [PATCH v2 2/5] gpio: syscon: Add gpio-syscon for rockchip

2018-05-23 Thread Heiko Stübner
Hi Rob, Levin, sorry for being late to the party. Am Mittwoch, 23. Mai 2018, 16:43:07 CEST schrieb Rob Herring: > On Tue, May 22, 2018 at 9:02 PM, Levin Du wrote: > > On 2018-05-23 2:02 AM, Rob Herring wrote: > >> On Fri, May 18, 2018 at 11:52:05AM +0800, d...@t-chip.com.cn wrote: > >>> From:

Re: [PATCH v2 2/5] gpio: syscon: Add gpio-syscon for rockchip

2018-05-23 Thread Rob Herring
On Tue, May 22, 2018 at 9:02 PM, Levin Du wrote: > On 2018-05-23 2:02 AM, Rob Herring wrote: >> >> On Fri, May 18, 2018 at 11:52:05AM +0800, d...@t-chip.com.cn wrote: >>> >>> From: Levin Du >>> >>> Some GPIOs sit in the GRF_SOC_CON registers of Rockchip

Re: [PATCH v2 2/5] gpio: syscon: Add gpio-syscon for rockchip

2018-05-23 Thread Rob Herring
On Tue, May 22, 2018 at 9:02 PM, Levin Du wrote: > On 2018-05-23 2:02 AM, Rob Herring wrote: >> >> On Fri, May 18, 2018 at 11:52:05AM +0800, d...@t-chip.com.cn wrote: >>> >>> From: Levin Du >>> >>> Some GPIOs sit in the GRF_SOC_CON registers of Rockchip SoCs, >>> which do not belong to the

Re: [PATCH v2 2/5] gpio: syscon: Add gpio-syscon for rockchip

2018-05-22 Thread Levin Du
On 2018-05-23 2:02 AM, Rob Herring wrote: On Fri, May 18, 2018 at 11:52:05AM +0800, d...@t-chip.com.cn wrote: From: Levin Du Some GPIOs sit in the GRF_SOC_CON registers of Rockchip SoCs, which do not belong to the general pinctrl. Adding gpio-syscon support makes

Re: [PATCH v2 2/5] gpio: syscon: Add gpio-syscon for rockchip

2018-05-22 Thread Levin Du
On 2018-05-23 2:02 AM, Rob Herring wrote: On Fri, May 18, 2018 at 11:52:05AM +0800, d...@t-chip.com.cn wrote: From: Levin Du Some GPIOs sit in the GRF_SOC_CON registers of Rockchip SoCs, which do not belong to the general pinctrl. Adding gpio-syscon support makes controlling regulator or LED

Re: [PATCH v2 2/5] gpio: syscon: Add gpio-syscon for rockchip

2018-05-22 Thread Rob Herring
On Fri, May 18, 2018 at 11:52:05AM +0800, d...@t-chip.com.cn wrote: > From: Levin Du > > Some GPIOs sit in the GRF_SOC_CON registers of Rockchip SoCs, > which do not belong to the general pinctrl. > > Adding gpio-syscon support makes controlling regulator or > LED using

Re: [PATCH v2 2/5] gpio: syscon: Add gpio-syscon for rockchip

2018-05-22 Thread Rob Herring
On Fri, May 18, 2018 at 11:52:05AM +0800, d...@t-chip.com.cn wrote: > From: Levin Du > > Some GPIOs sit in the GRF_SOC_CON registers of Rockchip SoCs, > which do not belong to the general pinctrl. > > Adding gpio-syscon support makes controlling regulator or > LED using these special pins very

[PATCH v2 2/5] gpio: syscon: Add gpio-syscon for rockchip

2018-05-17 Thread djw
From: Levin Du Some GPIOs sit in the GRF_SOC_CON registers of Rockchip SoCs, which do not belong to the general pinctrl. Adding gpio-syscon support makes controlling regulator or LED using these special pins very easy by reusing existing drivers, such as gpio-regulator and

[PATCH v2 2/5] gpio: syscon: Add gpio-syscon for rockchip

2018-05-17 Thread djw
From: Levin Du Some GPIOs sit in the GRF_SOC_CON registers of Rockchip SoCs, which do not belong to the general pinctrl. Adding gpio-syscon support makes controlling regulator or LED using these special pins very easy by reusing existing drivers, such as gpio-regulator and led-gpio.