Skip to contentSkip to conversation

ARM: dts: sk-rzg1m: add SCIF0 pins

PATCH Superseded Sergei Shtylyov 2 participants 3 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 2/3 ARM: dts: sk-rzg1m: add SCIF0 pins

Add the (previously omitted) SCIF0 pin data to the SK-RZG1M board's device tree.

---
 arch/arm/boot/dts/r8a7743-sk-rzg1m.dts |   12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
arch/arm/boot/dts/r8a7743-sk-rzg1m.dts +11 -1
Index: renesas/arch/arm/boot/dts/r8a7743-sk-rzg1m.dts
===================================================================
@@ -1,7 +1,7 @@
 /*
  * Device Tree Source for the SK-RZG1M board
  *
- * 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
@@ -39,7 +39,17 @@
 	clock-frequency = <20000000>;
 };
 
+&pfc {
+	scif0_pins: scif0 {
+		groups = "scif0_data";
+		function = "scif0";
+	};
+};
+
 &scif0 {
+	pinctrl-0 = <&scif0_pins>;
+	pinctrl-names = "default";
+
 	status = "okay";
 };
 
#1 lore raw

PATCH 2/3 ARM: dts: sk-rzg1m: add SCIF0 pins

Hi Sergei,

Quoted 23 lines · Sergei Shtylyov

Add the (previously omitted) SCIF0 pin data to the SK-RZG1M board's device tree.

---
 arch/arm/boot/dts/r8a7743-sk-rzg1m.dts |   12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

Index: renesas/arch/arm/boot/dts/r8a7743-sk-rzg1m.dts
===================================================================

arch/arm/boot/dts/r8a7743-sk-rzg1m.dts +1 -1
@@ -1,7 +1,7 @@
 /*
  * Device Tree Source for the SK-RZG1M board
  *
- * 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-sk-rzg1m.dts line 44

Quoted 6 lines
arch/arm/boot/dts/r8a7743-sk-rzg1m.dts +3 -0
@@ -39,7 +39,17 @@
        clock-frequency = <20000000>;
 };
 
+&pfc {
+       scif0_pins: scif0 {
+               groups = "scif0_data";

I don't have schematics for this board, but you told me it's very similar to Porter. Hence I'd expect "scif0_data_d" instead.

In my experience, when changing pinctrl to map the lines of a device to a new set of pins, but not mapping another device to the old set of pins, it may output the signals on both the old and the new set of pins.

Does serial console input work with "scif0_data"?

arch/arm/boot/dts/r8a7743-sk-rzg1m.dts line 53

Quoted 9 lines
arch/arm/boot/dts/r8a7743-sk-rzg1m.dts +7 -0
+               function = "scif0";
+       };
+};
+
 &scif0 {
+       pinctrl-0 = <&scif0_pins>;
+       pinctrl-names = "default";
+
        status = "okay";

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

#2 lore raw

PATCH 2/3 ARM: dts: sk-rzg1m: add SCIF0 pins

Quoted 13 lines · Geert Uytterhoeven
Quoted 13 lines

Add the (previously omitted) SCIF0 pin data to the SK-RZG1M board's device tree.

---
 arch/arm/boot/dts/r8a7743-sk-rzg1m.dts |   12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

Index: renesas/arch/arm/boot/dts/r8a7743-sk-rzg1m.dts
===================================================================

arch/arm/boot/dts/r8a7743-sk-rzg1m.dts +0 -0

[...]

Quoted 10 lines

arch/arm/boot/dts/r8a7743-sk-rzg1m.dts line 44

Quoted 7 lines
arch/arm/boot/dts/r8a7743-sk-rzg1m.dts +3 -0
@@ -39,7 +39,17 @@
        clock-frequency = <20000000>;
 };
 
+&pfc {
+       scif0_pins: scif0 {
+               groups = "scif0_data";

I don't have schematics for this board, but you told me it's very similar to Porter. Hence I'd expect "scif0_data_d" instead.

And you are absolutely right! Sorry about my overlook...

Quoted 5 lines

In my experience, when changing pinctrl to map the lines of a device to a new set of pins, but not mapping another device to the old set of pins, it may output the signals on both the old and the new set of pins.

Does serial console input work with "scif0_data"?

    Sure. :-)

MBR, Sergei