linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] arm64: dts: renesas: r8a779a0: Add GPIO support
@ 2021-01-08 10:28 Geert Uytterhoeven
  2021-01-08 10:28 ` [PATCH/RFC v2 1/2] arm64: dts: renesas: r8a779a0: Add PFC node Geert Uytterhoeven
  2021-01-08 10:28 ` [PATCH v2 2/2] arm64: dts: renesas: r8a779a0: Add GPIO nodes Geert Uytterhoeven
  0 siblings, 2 replies; 5+ messages in thread
From: Geert Uytterhoeven @ 2021-01-08 10:28 UTC (permalink / raw)
  To: Magnus Damm
  Cc: linux-renesas-soc, Ulrich Hecht, Geert Uytterhoeven, linux-arm-kernel

	Hi all,

This patch series enables GPIO in the R-Car V3U DTS file.
It includes an RFC patch to add a Pin Controller device node, as the
PFC node is a dependency for proper GPIO support.  It would be good to
resolve the PFC issue soon, as PFC and GPIO are dependencies for most
hardware support on the Falcon board.

Changes compared to v1:
  - Include RFC patch to add PFC node,
  - Add Tested-by,
  - Fix "V3u" typo in patch description,
  - Uncomment "gpio-ranges" properties,
  - Verified resets values.

Thanks!

Geert Uytterhoeven (2):
  [RFC] arm64: dts: renesas: r8a779a0: Add PFC node
  arm64: dts: renesas: r8a779a0: Add GPIO nodes

 arch/arm64/boot/dts/renesas/r8a779a0.dtsi | 149 ++++++++++++++++++++++
 1 file changed, 149 insertions(+)

-- 
2.25.1

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

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH/RFC v2 1/2] arm64: dts: renesas: r8a779a0: Add PFC node
  2021-01-08 10:28 [PATCH v2 0/2] arm64: dts: renesas: r8a779a0: Add GPIO support Geert Uytterhoeven
@ 2021-01-08 10:28 ` Geert Uytterhoeven
  2021-01-08 10:28 ` [PATCH v2 2/2] arm64: dts: renesas: r8a779a0: Add GPIO nodes Geert Uytterhoeven
  1 sibling, 0 replies; 5+ messages in thread
From: Geert Uytterhoeven @ 2021-01-08 10:28 UTC (permalink / raw)
  To: Magnus Damm
  Cc: linux-renesas-soc, Ulrich Hecht, Geert Uytterhoeven, linux-arm-kernel

Add a device node for the Pin Function (PFC) instance on the Renesas
R-Car V3U (r8a779a0) SoC.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
RFC because:
  - The compatible value hasn't been documented yet,
  - The System Group (Port Group 10) register block is missing (do we
    need it?).
---
 arch/arm64/boot/dts/renesas/r8a779a0.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r8a779a0.dtsi b/arch/arm64/boot/dts/renesas/r8a779a0.dtsi
index 6bb7eaea5b246f51..0facee255237f8a5 100644
--- a/arch/arm64/boot/dts/renesas/r8a779a0.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a779a0.dtsi
@@ -90,6 +90,15 @@ rwdt: watchdog@e6020000 {
 			status = "disabled";
 		};
 
+		pfc: pin-controller@e6050000 {
+			compatible = "renesas,pfc-r8a779a0";
+			reg = <0 0xe6050000 0 0x16c>, <0 0xe6050800 0 0x16c>,
+			      <0 0xe6058000 0 0x16c>, <0 0xe6058800 0 0x16c>,
+			      <0 0xe6060000 0 0x16c>, <0 0xe6060800 0 0x16c>,
+			      <0 0xe6068000 0 0x16c>, <0 0xe6068800 0 0x16c>,
+			      <0 0xe6069000 0 0x16c>, <0 0xe6069800 0 0x16c>;
+		};
+
 		cpg: clock-controller@e6150000 {
 			compatible = "renesas,r8a779a0-cpg-mssr";
 			reg = <0 0xe6150000 0 0x4000>;
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH v2 2/2] arm64: dts: renesas: r8a779a0: Add GPIO nodes
  2021-01-08 10:28 [PATCH v2 0/2] arm64: dts: renesas: r8a779a0: Add GPIO support Geert Uytterhoeven
  2021-01-08 10:28 ` [PATCH/RFC v2 1/2] arm64: dts: renesas: r8a779a0: Add PFC node Geert Uytterhoeven
@ 2021-01-08 10:28 ` Geert Uytterhoeven
  2021-01-08 10:30   ` Wolfram Sang
  1 sibling, 1 reply; 5+ messages in thread
From: Geert Uytterhoeven @ 2021-01-08 10:28 UTC (permalink / raw)
  To: Magnus Damm
  Cc: linux-renesas-soc, Wolfram Sang, Ulrich Hecht,
	Geert Uytterhoeven, linux-arm-kernel

Add device nodes for the General Purpose Input/Output (GPIO) block on
the Renesas R-Car V3U (r8a779a0) SoC.

As there is no node for the PFC yet, all "gpio-ranges" properties are
commented out.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
v2:
  - Add Tested-by,
  - Fix "V3u" typo in patch description,
  - Uncomment "gpio-ranges" properties,
  - Verified resets values.
---
 arch/arm64/boot/dts/renesas/r8a779a0.dtsi | 140 ++++++++++++++++++++++
 1 file changed, 140 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r8a779a0.dtsi b/arch/arm64/boot/dts/renesas/r8a779a0.dtsi
index 0facee255237f8a5..695913c8911afdeb 100644
--- a/arch/arm64/boot/dts/renesas/r8a779a0.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a779a0.dtsi
@@ -99,6 +99,146 @@ pfc: pin-controller@e6050000 {
 			      <0 0xe6069000 0 0x16c>, <0 0xe6069800 0 0x16c>;
 		};
 
+		gpio0: gpio@e6058180 {
+			compatible = "renesas,gpio-r8a779a0";
+			reg = <0 0xe6058180 0 0x54>;
+			interrupts = <GIC_SPI 832 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 916>;
+			power-domains = <&sysc R8A779A0_PD_ALWAYS_ON>;
+			resets =  <&cpg 916>;
+			gpio-controller;
+			#gpio-cells = <2>;
+			gpio-ranges = <&pfc 0 0 28>;
+			interrupt-controller;
+			#interrupt-cells = <2>;
+		};
+
+		gpio1: gpio@e6050180 {
+			compatible = "renesas,gpio-r8a779a0";
+			reg = <0 0xe6050180 0 0x54>;
+			interrupts = <GIC_SPI 836 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 915>;
+			power-domains = <&sysc R8A779A0_PD_ALWAYS_ON>;
+			resets =  <&cpg 915>;
+			gpio-controller;
+			#gpio-cells = <2>;
+			gpio-ranges = <&pfc 0 32 31>;
+			interrupt-controller;
+			#interrupt-cells = <2>;
+		};
+
+		gpio2: gpio@e6050980 {
+			compatible = "renesas,gpio-r8a779a0";
+			reg = <0 0xe6050980 0 0x54>;
+			interrupts = <GIC_SPI 840 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 915>;
+			power-domains = <&sysc R8A779A0_PD_ALWAYS_ON>;
+			resets =  <&cpg 915>;
+			gpio-controller;
+			#gpio-cells = <2>;
+			gpio-ranges = <&pfc 0 64 25>;
+			interrupt-controller;
+			#interrupt-cells = <2>;
+		};
+
+		gpio3: gpio@e6058980 {
+			compatible = "renesas,gpio-r8a779a0";
+			reg = <0 0xe6058980 0 0x54>;
+			interrupts = <GIC_SPI 844 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 916>;
+			power-domains = <&sysc R8A779A0_PD_ALWAYS_ON>;
+			resets =  <&cpg 916>;
+			gpio-controller;
+			#gpio-cells = <2>;
+			gpio-ranges = <&pfc 0 96 17>;
+			interrupt-controller;
+			#interrupt-cells = <2>;
+		};
+
+		gpio4: gpio@e6060180 {
+			compatible = "renesas,gpio-r8a779a0";
+			reg = <0 0xe6060180 0 0x54>;
+			interrupts = <GIC_SPI 848 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 917>;
+			power-domains = <&sysc R8A779A0_PD_ALWAYS_ON>;
+			resets =  <&cpg 917>;
+			gpio-controller;
+			#gpio-cells = <2>;
+			gpio-ranges = <&pfc 0 128 27>;
+			interrupt-controller;
+			#interrupt-cells = <2>;
+		};
+
+		gpio5: gpio@e6060980 {
+			compatible = "renesas,gpio-r8a779a0";
+			reg = <0 0xe6060980 0 0x54>;
+			interrupts = <GIC_SPI 852 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 917>;
+			power-domains = <&sysc R8A779A0_PD_ALWAYS_ON>;
+			resets =  <&cpg 917>;
+			gpio-controller;
+			#gpio-cells = <2>;
+			gpio-ranges = <&pfc 0 160 21>;
+			interrupt-controller;
+			#interrupt-cells = <2>;
+		};
+
+		gpio6: gpio@e6068180 {
+			compatible = "renesas,gpio-r8a779a0";
+			reg = <0 0xe6068180 0 0x54>;
+			interrupts = <GIC_SPI 856 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 918>;
+			power-domains = <&sysc R8A779A0_PD_ALWAYS_ON>;
+			resets =  <&cpg 918>;
+			gpio-controller;
+			#gpio-cells = <2>;
+			gpio-ranges = <&pfc 0 192 21>;
+			interrupt-controller;
+			#interrupt-cells = <2>;
+		};
+
+		gpio7: gpio@e6068980 {
+			compatible = "renesas,gpio-r8a779a0";
+			reg = <0 0xe6068980 0 0x54>;
+			interrupts = <GIC_SPI 860 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 918>;
+			power-domains = <&sysc R8A779A0_PD_ALWAYS_ON>;
+			resets =  <&cpg 918>;
+			gpio-controller;
+			#gpio-cells = <2>;
+			gpio-ranges = <&pfc 0 224 21>;
+			interrupt-controller;
+			#interrupt-cells = <2>;
+		};
+
+		gpio8: gpio@e6069180 {
+			compatible = "renesas,gpio-r8a779a0";
+			reg = <0 0xe6069180 0 0x54>;
+			interrupts = <GIC_SPI 864 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 918>;
+			power-domains = <&sysc R8A779A0_PD_ALWAYS_ON>;
+			resets =  <&cpg 918>;
+			gpio-controller;
+			#gpio-cells = <2>;
+			gpio-ranges = <&pfc 0 256 21>;
+			interrupt-controller;
+			#interrupt-cells = <2>;
+		};
+
+		gpio9: gpio@e6069980 {
+			compatible = "renesas,gpio-r8a779a0";
+			reg = <0 0xe6069980 0 0x54>;
+			interrupts = <GIC_SPI 868 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 918>;
+			power-domains = <&sysc R8A779A0_PD_ALWAYS_ON>;
+			resets =  <&cpg 918>;
+			gpio-controller;
+			#gpio-cells = <2>;
+			gpio-ranges = <&pfc 0 288 21>;
+			interrupt-controller;
+			#interrupt-cells = <2>;
+		};
+
 		cpg: clock-controller@e6150000 {
 			compatible = "renesas,r8a779a0-cpg-mssr";
 			reg = <0 0xe6150000 0 0x4000>;
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v2 2/2] arm64: dts: renesas: r8a779a0: Add GPIO nodes
  2021-01-08 10:28 ` [PATCH v2 2/2] arm64: dts: renesas: r8a779a0: Add GPIO nodes Geert Uytterhoeven
@ 2021-01-08 10:30   ` Wolfram Sang
  2021-01-08 10:40     ` Geert Uytterhoeven
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfram Sang @ 2021-01-08 10:30 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: linux-renesas-soc, Ulrich Hecht, Magnus Damm, linux-arm-kernel


[-- Attachment #1.1: Type: text/plain, Size: 601 bytes --]

On Fri, Jan 08, 2021 at 11:28:54AM +0100, Geert Uytterhoeven wrote:
> Add device nodes for the General Purpose Input/Output (GPIO) block on
> the Renesas R-Car V3U (r8a779a0) SoC.
> 
> As there is no node for the PFC yet, all "gpio-ranges" properties are
> commented out.

This paragraph is obsolete by now.

> 
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
> ---
> v2:
>   - Add Tested-by,
>   - Fix "V3u" typo in patch description,
>   - Uncomment "gpio-ranges" properties,
>   - Verified resets values.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2 2/2] arm64: dts: renesas: r8a779a0: Add GPIO nodes
  2021-01-08 10:30   ` Wolfram Sang
@ 2021-01-08 10:40     ` Geert Uytterhoeven
  0 siblings, 0 replies; 5+ messages in thread
From: Geert Uytterhoeven @ 2021-01-08 10:40 UTC (permalink / raw)
  To: Wolfram Sang, Magnus Damm, Ulrich Hecht, Linux-Renesas, Linux ARM

Hi Wolfram,

On Fri, Jan 8, 2021 at 11:30 AM Wolfram Sang
<wsa+renesas@sang-engineering.com> wrote:
> On Fri, Jan 08, 2021 at 11:28:54AM +0100, Geert Uytterhoeven wrote:
> > Add device nodes for the General Purpose Input/Output (GPIO) block on
> > the Renesas R-Car V3U (r8a779a0) SoC.
> >
> > As there is no node for the PFC yet, all "gpio-ranges" properties are
> > commented out.
>
> This paragraph is obsolete by now.

Oops, thanks, will remove in v3.

> > v2:
> >   - Add Tested-by,
> >   - Fix "V3u" typo in patch description,
> >   - Uncomment "gpio-ranges" properties,
> >   - Verified resets values.

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

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-01-08 10:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-08 10:28 [PATCH v2 0/2] arm64: dts: renesas: r8a779a0: Add GPIO support Geert Uytterhoeven
2021-01-08 10:28 ` [PATCH/RFC v2 1/2] arm64: dts: renesas: r8a779a0: Add PFC node Geert Uytterhoeven
2021-01-08 10:28 ` [PATCH v2 2/2] arm64: dts: renesas: r8a779a0: Add GPIO nodes Geert Uytterhoeven
2021-01-08 10:30   ` Wolfram Sang
2021-01-08 10:40     ` Geert Uytterhoeven

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).