* [PATCH v2 0/2] Add R8A7794 GPIO DT support
@ 2015-08-03 21:36 Sergei Shtylyov
2015-08-03 21:38 ` [PATCH v2 1/2] ARM: shmobile: r8a7794: add GPIO clocks Sergei Shtylyov
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Sergei Shtylyov @ 2015-08-03 21:36 UTC (permalink / raw)
To: horms, linux-sh, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak, devicetree
Cc: magnus.damm, linux, linux-arm-kernel
Hello.
Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
'renesas-devel-20150803-v4.2-rc5' tag. Here we add the GPIO device tree support
for the R8A7794 SoC.
[1/2] ARM: shmobile: r8a7794: add GPIO clocks
[2/2] ARM: shmobile: r8a7794: add GPIO DT support
WBR, Sergei
^ permalink raw reply [flat|nested] 9+ messages in thread* [PATCH v2 1/2] ARM: shmobile: r8a7794: add GPIO clocks 2015-08-03 21:36 [PATCH v2 0/2] Add R8A7794 GPIO DT support Sergei Shtylyov @ 2015-08-03 21:38 ` Sergei Shtylyov 2015-08-03 21:39 ` [PATCH v2 2/2] ARM: shmobile: r8a7794: add GPIO DT support Sergei Shtylyov 2015-08-06 0:47 ` [PATCH v2 0/2] Add R8A7794 " Simon Horman 2 siblings, 0 replies; 9+ messages in thread From: Sergei Shtylyov @ 2015-08-03 21:38 UTC (permalink / raw) To: horms, linux-sh, robh+dt, pawel.moll, mark.rutland, ijc+devicetree, galak, devicetree Cc: magnus.damm, linux, linux-arm-kernel Describe the GPIO clocks in the R8A7794 device tree. Based on the original patch by Koji Matsuoka <koji.matsuoka.xm@renesas.com>. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> --- Changes in version 2: - refreshed the patch; - added Geert's and Laurent's ACKs. arch/arm/boot/dts/r8a7794.dtsi | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) Index: renesas/arch/arm/boot/dts/r8a7794.dtsi =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7794.dtsi +++ renesas/arch/arm/boot/dts/r8a7794.dtsi @@ -720,16 +720,22 @@ mstp9_clks: mstp9_clks@e6150994 { compatible = "renesas,r8a7794-mstp-clocks", "renesas,cpg-mstp-clocks"; reg = <0 0xe6150994 0 4>, <0 0xe61509a4 0 4>; - clocks = <&cpg_clocks R8A7794_CLK_QSPI>, <&hp_clk>, <&hp_clk>, - <&hp_clk>, <&hp_clk>, <&hp_clk>, <&hp_clk>; + clocks = <&cp_clk>, <&cp_clk>, <&cp_clk>, <&cp_clk>, + <&cp_clk>, <&cp_clk>, <&cp_clk>, + <&cpg_clocks R8A7794_CLK_QSPI>, <&hp_clk>, <&hp_clk>, + <&hp_clk>, <&hp_clk>, <&hp_clk>, <&hp_clk>; #clock-cells = <1>; - clock-indices = < - R8A7794_CLK_QSPI_MOD R8A7794_CLK_I2C5 R8A7794_CLK_I2C4 - R8A7794_CLK_I2C3 R8A7794_CLK_I2C2 R8A7794_CLK_I2C1 - R8A7794_CLK_I2C0 - >; + clock-indices = <R8A7794_CLK_GPIO6 R8A7794_CLK_GPIO5 + R8A7794_CLK_GPIO4 R8A7794_CLK_GPIO3 + R8A7794_CLK_GPIO2 R8A7794_CLK_GPIO1 + R8A7794_CLK_GPIO0 R8A7794_CLK_QSPI_MOD + R8A7794_CLK_I2C5 R8A7794_CLK_I2C4 + R8A7794_CLK_I2C3 R8A7794_CLK_I2C2 + R8A7794_CLK_I2C1 R8A7794_CLK_I2C0>; clock-output-names = - "qspi_mod", "i2c5", "i2c4", "i2c3", "i2c2", "i2c1", "i2c0"; + "gpio6", "gpio5", "gpio4", "gpio3", "gpio2", + "gpio1", "gpio0", "qspi_mod", + "i2c5", "i2c4", "i2c3", "i2c2", "i2c1", "i2c0"; }; mstp11_clks: mstp11_clks@e615099c { compatible = "renesas,r8a7794-mstp-clocks", "renesas,cpg-mstp-clocks"; ^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH v2 2/2] ARM: shmobile: r8a7794: add GPIO DT support 2015-08-03 21:36 [PATCH v2 0/2] Add R8A7794 GPIO DT support Sergei Shtylyov 2015-08-03 21:38 ` [PATCH v2 1/2] ARM: shmobile: r8a7794: add GPIO clocks Sergei Shtylyov @ 2015-08-03 21:39 ` Sergei Shtylyov 2015-08-06 7:22 ` Geert Uytterhoeven 2015-08-06 0:47 ` [PATCH v2 0/2] Add R8A7794 " Simon Horman 2 siblings, 1 reply; 9+ messages in thread From: Sergei Shtylyov @ 2015-08-03 21:39 UTC (permalink / raw) To: horms, linux-sh, robh+dt, pawel.moll, mark.rutland, ijc+devicetree, galak, devicetree Cc: magnus.damm, linux, linux-arm-kernel Describe GPIO[0-6] controllers in the R8A7794 device tree. Based on original patch by Hisashi Nakamura <hisashi.nakamura.ak@renesas.com>. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be> --- Changes in version 2: - fixed "gpio-ranges" property's last value for GPIO1/5/6; - added Geert's ACK. arch/arm/boot/dts/r8a7794.dtsi | 84 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) Index: renesas/arch/arm/boot/dts/r8a7794.dtsi =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7794.dtsi +++ renesas/arch/arm/boot/dts/r8a7794.dtsi @@ -50,6 +50,90 @@ interrupts = <1 9 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>; }; + gpio0: gpio@e6050000 { + compatible = "renesas,gpio-r8a7794", "renesas,gpio-rcar"; + reg = <0 0xe6050000 0 0x50>; + interrupts = <0 4 IRQ_TYPE_LEVEL_HIGH>; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pfc 0 0 32>; + #interrupt-cells = <2>; + interrupt-controller; + clocks = <&mstp9_clks R8A7794_CLK_GPIO0>; + }; + + gpio1: gpio@e6051000 { + compatible = "renesas,gpio-r8a7794", "renesas,gpio-rcar"; + reg = <0 0xe6051000 0 0x50>; + interrupts = <0 5 IRQ_TYPE_LEVEL_HIGH>; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pfc 0 32 26>; + #interrupt-cells = <2>; + interrupt-controller; + clocks = <&mstp9_clks R8A7794_CLK_GPIO1>; + }; + + gpio2: gpio@e6052000 { + compatible = "renesas,gpio-r8a7794", "renesas,gpio-rcar"; + reg = <0 0xe6052000 0 0x50>; + interrupts = <0 6 IRQ_TYPE_LEVEL_HIGH>; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pfc 0 64 32>; + #interrupt-cells = <2>; + interrupt-controller; + clocks = <&mstp9_clks R8A7794_CLK_GPIO2>; + }; + + gpio3: gpio@e6053000 { + compatible = "renesas,gpio-r8a7794", "renesas,gpio-rcar"; + reg = <0 0xe6053000 0 0x50>; + interrupts = <0 7 IRQ_TYPE_LEVEL_HIGH>; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pfc 0 96 32>; + #interrupt-cells = <2>; + interrupt-controller; + clocks = <&mstp9_clks R8A7794_CLK_GPIO3>; + }; + + gpio4: gpio@e6054000 { + compatible = "renesas,gpio-r8a7794", "renesas,gpio-rcar"; + reg = <0 0xe6054000 0 0x50>; + interrupts = <0 8 IRQ_TYPE_LEVEL_HIGH>; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pfc 0 128 32>; + #interrupt-cells = <2>; + interrupt-controller; + clocks = <&mstp9_clks R8A7794_CLK_GPIO4>; + }; + + gpio5: gpio@e6055000 { + compatible = "renesas,gpio-r8a7794", "renesas,gpio-rcar"; + reg = <0 0xe6055000 0 0x50>; + interrupts = <0 9 IRQ_TYPE_LEVEL_HIGH>; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pfc 0 160 28>; + #interrupt-cells = <2>; + interrupt-controller; + clocks = <&mstp9_clks R8A7794_CLK_GPIO5>; + }; + + gpio6: gpio@e6055400 { + compatible = "renesas,gpio-r8a7794", "renesas,gpio-rcar"; + reg = <0 0xe6055400 0 0x50>; + interrupts = <0 10 IRQ_TYPE_LEVEL_HIGH>; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pfc 0 192 26>; + #interrupt-cells = <2>; + interrupt-controller; + clocks = <&mstp9_clks R8A7794_CLK_GPIO6>; + }; + cmt0: timer@ffca0000 { compatible = "renesas,cmt-48-gen2"; reg = <0 0xffca0000 0 0x1004>; ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 2/2] ARM: shmobile: r8a7794: add GPIO DT support 2015-08-03 21:39 ` [PATCH v2 2/2] ARM: shmobile: r8a7794: add GPIO DT support Sergei Shtylyov @ 2015-08-06 7:22 ` Geert Uytterhoeven 0 siblings, 0 replies; 9+ messages in thread From: Geert Uytterhoeven @ 2015-08-06 7:22 UTC (permalink / raw) To: Sergei Shtylyov Cc: Simon Horman, Linux-sh list, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, devicetree@vger.kernel.org, Magnus Damm, Russell King, linux-arm-kernel@lists.infradead.org Hi Sergei, On Mon, Aug 3, 2015 at 11:39 PM, Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> wrote: > Describe GPIO[0-6] controllers in the R8A7794 device tree. > > Based on original patch by Hisashi Nakamura <hisashi.nakamura.ak@renesas.com>. > > Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> > Acked-by: Geert Uytterhoeven <geert+renesas@glider.be> As CPG/MSTP Clock Domain support is in, I have to withdraw my Acked-by. > Index: renesas/arch/arm/boot/dts/r8a7794.dtsi > =================================================================== > --- renesas.orig/arch/arm/boot/dts/r8a7794.dtsi > +++ renesas/arch/arm/boot/dts/r8a7794.dtsi > @@ -50,6 +50,90 @@ > interrupts = <1 9 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>; > }; > > + gpio0: gpio@e6050000 { > + compatible = "renesas,gpio-r8a7794", "renesas,gpio-rcar"; > + reg = <0 0xe6050000 0 0x50>; > + interrupts = <0 4 IRQ_TYPE_LEVEL_HIGH>; > + #gpio-cells = <2>; > + gpio-controller; > + gpio-ranges = <&pfc 0 0 32>; > + #interrupt-cells = <2>; > + interrupt-controller; > + clocks = <&mstp9_clks R8A7794_CLK_GPIO0>; Missing "power-domains = <&cpg_clocks>;" > + }; Same comment for the other gpio device nodes. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 0/2] Add R8A7794 GPIO DT support 2015-08-03 21:36 [PATCH v2 0/2] Add R8A7794 GPIO DT support Sergei Shtylyov 2015-08-03 21:38 ` [PATCH v2 1/2] ARM: shmobile: r8a7794: add GPIO clocks Sergei Shtylyov 2015-08-03 21:39 ` [PATCH v2 2/2] ARM: shmobile: r8a7794: add GPIO DT support Sergei Shtylyov @ 2015-08-06 0:47 ` Simon Horman 2015-08-06 7:21 ` Geert Uytterhoeven 2015-08-06 20:06 ` Sergei Shtylyov 2 siblings, 2 replies; 9+ messages in thread From: Simon Horman @ 2015-08-06 0:47 UTC (permalink / raw) To: Sergei Shtylyov Cc: linux-sh, robh+dt, pawel.moll, mark.rutland, ijc+devicetree, galak, devicetree, magnus.damm, linux, linux-arm-kernel On Tue, Aug 04, 2015 at 12:36:27AM +0300, Sergei Shtylyov wrote: > Hello. > > Here's the set of 2 patches against Simon Horman's 'renesas.git' repo, > 'renesas-devel-20150803-v4.2-rc5' tag. Here we add the GPIO device tree support > for the R8A7794 SoC. > > [1/2] ARM: shmobile: r8a7794: add GPIO clocks > [2/2] ARM: shmobile: r8a7794: add GPIO DT support Thanks, I have queued these up for v4.4. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 0/2] Add R8A7794 GPIO DT support 2015-08-06 0:47 ` [PATCH v2 0/2] Add R8A7794 " Simon Horman @ 2015-08-06 7:21 ` Geert Uytterhoeven 2015-08-07 0:40 ` Simon Horman 2015-08-06 20:06 ` Sergei Shtylyov 1 sibling, 1 reply; 9+ messages in thread From: Geert Uytterhoeven @ 2015-08-06 7:21 UTC (permalink / raw) To: Simon Horman Cc: Sergei Shtylyov, Linux-sh list, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, devicetree@vger.kernel.org, Magnus Damm, Russell King, linux-arm-kernel@lists.infradead.org On Thu, Aug 6, 2015 at 2:47 AM, Simon Horman <horms@verge.net.au> wrote: > On Tue, Aug 04, 2015 at 12:36:27AM +0300, Sergei Shtylyov wrote: >> Here's the set of 2 patches against Simon Horman's 'renesas.git' repo, >> 'renesas-devel-20150803-v4.2-rc5' tag. Here we add the GPIO device tree support >> for the R8A7794 SoC. >> >> [1/2] ARM: shmobile: r8a7794: add GPIO clocks >> [2/2] ARM: shmobile: r8a7794: add GPIO DT support > > Thanks, I have queued these up for v4.4. Woops, Since CPG/MSTP support is in, GPIO won't work, as the nodes lack "power-domains" properties. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 0/2] Add R8A7794 GPIO DT support 2015-08-06 7:21 ` Geert Uytterhoeven @ 2015-08-07 0:40 ` Simon Horman 0 siblings, 0 replies; 9+ messages in thread From: Simon Horman @ 2015-08-07 0:40 UTC (permalink / raw) To: Geert Uytterhoeven Cc: Sergei Shtylyov, Linux-sh list, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, devicetree@vger.kernel.org, Magnus Damm, Russell King, linux-arm-kernel@lists.infradead.org On Thu, Aug 06, 2015 at 09:21:34AM +0200, Geert Uytterhoeven wrote: > On Thu, Aug 6, 2015 at 2:47 AM, Simon Horman <horms@verge.net.au> wrote: > > On Tue, Aug 04, 2015 at 12:36:27AM +0300, Sergei Shtylyov wrote: > >> Here's the set of 2 patches against Simon Horman's 'renesas.git' repo, > >> 'renesas-devel-20150803-v4.2-rc5' tag. Here we add the GPIO device tree support > >> for the R8A7794 SoC. > >> > >> [1/2] ARM: shmobile: r8a7794: add GPIO clocks > >> [2/2] ARM: shmobile: r8a7794: add GPIO DT support > > > > Thanks, I have queued these up for v4.4. > > Woops, Since CPG/MSTP support is in, GPIO won't work, as the nodes > lack "power-domains" properties. Sorry for letting that through. I will drop these patches accordingly. Sergei, could you please re-spin them? ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 0/2] Add R8A7794 GPIO DT support 2015-08-06 0:47 ` [PATCH v2 0/2] Add R8A7794 " Simon Horman 2015-08-06 7:21 ` Geert Uytterhoeven @ 2015-08-06 20:06 ` Sergei Shtylyov [not found] ` <55C3BE35.8020408-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org> 1 sibling, 1 reply; 9+ messages in thread From: Sergei Shtylyov @ 2015-08-06 20:06 UTC (permalink / raw) To: Simon Horman Cc: linux-sh, robh+dt, pawel.moll, mark.rutland, ijc+devicetree, galak, devicetree, magnus.damm, linux, linux-arm-kernel Hello. On 08/06/2015 03:47 AM, Simon Horman wrote: >> Here's the set of 2 patches against Simon Horman's 'renesas.git' repo, >> 'renesas-devel-20150803-v4.2-rc5' tag. Here we add the GPIO device tree support >> for the R8A7794 SoC. >> [1/2] ARM: shmobile: r8a7794: add GPIO clocks >> [2/2] ARM: shmobile: r8a7794: add GPIO DT support > Thanks, I have queued these up for v4.4. Not seeing anything new in your repo. Which is probably a good thing considering Geert's comments. MBR, Sergei ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <55C3BE35.8020408-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>]
* Re: [PATCH v2 0/2] Add R8A7794 GPIO DT support [not found] ` <55C3BE35.8020408-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org> @ 2015-08-07 0:41 ` Simon Horman 0 siblings, 0 replies; 9+ messages in thread From: Simon Horman @ 2015-08-07 0:41 UTC (permalink / raw) To: Sergei Shtylyov Cc: linux-sh-u79uwXL29TY76Z2rM5mHXA, robh+dt-DgEjT+Ai2ygdnm+yROfE0A, pawel.moll-5wv7dgnIgG8, mark.rutland-5wv7dgnIgG8, ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg, galak-sgV2jX0FEOL9JmXXK+q4OQ, devicetree-u79uwXL29TY76Z2rM5mHXA, magnus.damm-Re5JQEeQqe8AvxtiuMwx3w, linux-lFZ/pmaqli7XmaaqVzeoHQ, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r On Thu, Aug 06, 2015 at 11:06:13PM +0300, Sergei Shtylyov wrote: > Hello. > > On 08/06/2015 03:47 AM, Simon Horman wrote: > > >> Here's the set of 2 patches against Simon Horman's 'renesas.git' repo, > >>'renesas-devel-20150803-v4.2-rc5' tag. Here we add the GPIO device tree support > >>for the R8A7794 SoC. > > >>[1/2] ARM: shmobile: r8a7794: add GPIO clocks > >>[2/2] ARM: shmobile: r8a7794: add GPIO DT support > > >Thanks, I have queued these up for v4.4. > > Not seeing anything new in your repo. Which is probably a good thing > considering Geert's comments. It seems that I forgot to push yesterday, which as you say, does seem quite fortunate given Geert's comments. -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2015-08-07 0:41 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-03 21:36 [PATCH v2 0/2] Add R8A7794 GPIO DT support Sergei Shtylyov
2015-08-03 21:38 ` [PATCH v2 1/2] ARM: shmobile: r8a7794: add GPIO clocks Sergei Shtylyov
2015-08-03 21:39 ` [PATCH v2 2/2] ARM: shmobile: r8a7794: add GPIO DT support Sergei Shtylyov
2015-08-06 7:22 ` Geert Uytterhoeven
2015-08-06 0:47 ` [PATCH v2 0/2] Add R8A7794 " Simon Horman
2015-08-06 7:21 ` Geert Uytterhoeven
2015-08-07 0:40 ` Simon Horman
2015-08-06 20:06 ` Sergei Shtylyov
[not found] ` <55C3BE35.8020408-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
2015-08-07 0:41 ` Simon Horman
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).