Skip to contentSkip to conversation

ARM: dts: r8a7743: add PFC support

PATCH Superseded Sergei Shtylyov 3 participants 4 messages Apr 14, 2017 – Apr 20, 2017 Device tree bindings

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 ARM: dts: r8a7743: add PFC support

Define the generic R8A7743 part of the PFC device node.

---
 arch/arm/boot/dts/r8a7743.dtsi |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
arch/arm/boot/dts/r8a7743.dtsi +6 -1
Index: renesas/arch/arm/boot/dts/r8a7743.dtsi
===================================================================
@@ -1,7 +1,7 @@
 /*
  * Device Tree Source for the r8a7743 SoC
  *
- * Copyright (C) 2016 Cogent Embedded Inc.
+ * Copyright (C) 2016-2017 Cogent Embedded Inc.
  *
  * This file is licensed under the terms of the GNU General Public License
  * version 2. This program is licensed "as is" without any warranty of any
@@ -123,6 +123,11 @@
 			#power-domain-cells = <1>;
 		};
 
+		pfc: pin-controller at e6060000 {
+			compatible = "renesas,pfc-r8a7743";
+			reg = <0 0xe6060000 0 0x250>;
+		};
+
 		dmac0: dma-controller at e6700000 {
 			compatible = "renesas,dmac-r8a7743",
 				     "renesas,rcar-dmac";
#1 lore raw

PATCH 1/3 ARM: dts: r8a7743: add PFC support

Quoted 22 lines · Sergei Shtylyov

Define the generic R8A7743 part of the PFC device node.

---
 arch/arm/boot/dts/r8a7743.dtsi |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Index: renesas/arch/arm/boot/dts/r8a7743.dtsi
===================================================================

arch/arm/boot/dts/r8a7743.dtsi +1 -1
@@ -1,7 +1,7 @@
 /*
  * Device Tree Source for the r8a7743 SoC
  *
- * Copyright (C) 2016 Cogent Embedded Inc.
+ * Copyright (C) 2016-2017 Cogent Embedded Inc.
  *
  * This file is licensed under the terms of the GNU General Public License
  * version 2. This program is licensed "as is" without any warranty of any

arch/arm/boot/dts/r8a7743.dtsi line 130

Quoted 8 lines
arch/arm/boot/dts/r8a7743.dtsi +5 -0
@@ -123,6 +123,11 @@
 			#power-domain-cells = <1>;
 		};
 
+		pfc: pin-controller at e6060000 {
+			compatible = "renesas,pfc-r8a7743";
+			reg = <0 0xe6060000 0 0x250>;
+		};
+

I am curious to know why pin-controller was chosen rather than pfc which is dominant in the DT for Renesas SoCs. And as a follow-up question, do you think it would be worth creating patches to make this uniform across the DT for Renesas SoCs.

Quoted 4 lines
arch/arm/boot/dts/r8a7743.dtsi +0 -0
 		dmac0: dma-controller at e6700000 {
 			compatible = "renesas,dmac-r8a7743",
 				     "renesas,rcar-dmac";
#2 lore raw

PATCH 1/3 ARM: dts: r8a7743: add PFC support

Hello.

Quoted 25 lines · Simon Horman
Quoted 25 lines

Define the generic R8A7743 part of the PFC device node.

---
 arch/arm/boot/dts/r8a7743.dtsi |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Index: renesas/arch/arm/boot/dts/r8a7743.dtsi
===================================================================

arch/arm/boot/dts/r8a7743.dtsi +1 -1
@@ -1,7 +1,7 @@
 /*
  * Device Tree Source for the r8a7743 SoC
  *
- * Copyright (C) 2016 Cogent Embedded Inc.
+ * Copyright (C) 2016-2017 Cogent Embedded Inc.
  *
  * This file is licensed under the terms of the GNU General Public License
  * version 2. This program is licensed "as is" without any warranty of any
@@ -123,6 +123,11 @@
 			#power-domain-cells = <1>;
 		};
 
Quoted 8 lines

arch/arm/boot/dts/r8a7743.dtsi line 130

Quoted 5 lines
arch/arm/boot/dts/r8a7743.dtsi +5 -0
+		pfc: pin-controller at e6060000 {
+			compatible = "renesas,pfc-r8a7743";
+			reg = <0 0xe6060000 0 0x250>;
+		};
+

I am curious to know why pin-controller was chosen rather than pfc which is dominant in the DT for Renesas SoCs.

The reason is simple: I was trying to follow the DT specs which require
generic node names. The "pin-controller" looked more generic than "pfc".

Quoted 3 lines

And as a follow-up question, do
you think it would be worth creating patches to make this uniform across the DT for Renesas SoCs.

Yes, probably.

[...]

MBR, Sergei

#3 lore raw

PATCH 1/3 ARM: dts: r8a7743: add PFC support

In reply to Sergei Shtylyov
Quoted 3 lines · Sergei Shtylyov

Define the generic R8A7743 part of the PFC device node.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at 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