[PATCH 00/19] ARM: dts: renesas: Name pfc subnodes after device names

STALE3714d

12 messages, 2 authors, 2016-06-14 · open the first message on its own page

[PATCH 00/19] ARM: dts: renesas: Name pfc subnodes after device names

From: Geert Uytterhoeven <geert+renesas@glider.be>
Date: 2016-06-10 13:00:46

	Hi Simon, Magnus,

Currently board DTS files use various naming conventions for the Pin
Function Controller subnodes.  This may cause conflicts when enabling
support for more instances later, either directly in board DT files, or
in DT overlays.  These conflicts are most likely to happen for devices
that use/require aliases (e.g. "serial1"), or when using generic and
indexless names (e.g. "mmc").  Hence this series changes the names of
(most of) the submodes, to match the corresponding device names, which
are unique on a specific SoC.

I did not change the following node names:
  - "sdX", as they always matched the corresponding "sdhiX" name,
  - "touchscreen", as there's not much opportunity for conflicts,
  - "mmc", for "mmcif_pins" on sh73a0/kzm9g (which has a single mmc
    instance),
  - "sounda" for fsia_pins on SH-Mobile,
If you think these should be changed too, please let me know.

This series is against renesas-devel-20160606-v4.7-rc2.

Thanks!

Geert Uytterhoeven (19):
  ARM: dts: ape6evm: Name serial port pfc subnode after device name
  ARM: dts: ape6evm: Name mmc pfc subnode after device name
  ARM: dts: armadillo800eva: Name serial port pfc subnode after device
    name
  ARM: dts: bockw: Name serial port pfc subnode after device name
  ARM: dts: marzen: Name serial port pfc subnodes after device names
  ARM: dts: lager: Name serial port pfc subnodes after device names
  ARM: dts: lager: Name spi pfc subnodes after device names
  ARM: dts: lager: Name vin pfc subnode after device name
  ARM: dts: koelsch: Name serial port pfc subnodes after device names
  ARM: dts: koelsch: Name spi pfc subnodes after device names
  ARM: dts: porter: Name serial port pfc subnode after device name
  ARM: dts: porter: Name spi pfc subnode after device name
  ARM: dts: gose: Name serial port pfc subnodes after device names
  ARM: dts: gose: Name spi pfc subnode after device name
  ARM: dts: alt: Name serial port pfc subnode after device name
  ARM: dts: alt: Name spi pfc subnode after device name
  ARM: dts: silk: Name serial port pfc subnode after device name
  ARM: dts: silk: Name spi pfc subnode after device name
  ARM: dts: kzm9g: Name serial port pfc subnode after device name

 arch/arm/boot/dts/r8a73a4-ape6evm.dts         |  4 ++--
 arch/arm/boot/dts/r8a7740-armadillo800eva.dts |  2 +-
 arch/arm/boot/dts/r8a7778-bockw.dts           |  2 +-
 arch/arm/boot/dts/r8a7779-marzen.dts          |  4 ++--
 arch/arm/boot/dts/r8a7790-lager.dts           | 10 +++++-----
 arch/arm/boot/dts/r8a7791-koelsch.dts         |  8 ++++----
 arch/arm/boot/dts/r8a7791-porter.dts          |  4 ++--
 arch/arm/boot/dts/r8a7793-gose.dts            |  6 +++---
 arch/arm/boot/dts/r8a7794-alt.dts             |  4 ++--
 arch/arm/boot/dts/r8a7794-silk.dts            |  4 ++--
 arch/arm/boot/dts/sh73a0-kzm9g.dts            |  2 +-
 11 files changed, 25 insertions(+), 25 deletions(-)

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

[PATCH 01/19] ARM: dts: ape6evm: Name serial port pfc subnode after device name

From: Geert Uytterhoeven <geert+renesas@glider.be>
Date: 2016-06-10 13:00:47

Name the Pin Function Controller subnode for SCIFA0 after its device
name, instead of after the serial port alias.

This avoids conflicts when enabling support for more serial ports later,
either here or in a DT overlay.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 arch/arm/boot/dts/r8a73a4-ape6evm.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/r8a73a4-ape6evm.dts b/arch/arm/boot/dts/r8a73a4-ape6evm.dts
index 740e5d23f7c70843..5bccc7d229d766c7 100644
--- a/arch/arm/boot/dts/r8a73a4-ape6evm.dts
+++ b/arch/arm/boot/dts/r8a73a4-ape6evm.dts
@@ -188,7 +188,7 @@
 };
 
 &pfc {
-	scifa0_pins: serial0 {
+	scifa0_pins: scifa0 {
 		groups = "scifa0_data";
 		function = "scifa0";
 	};
-- 
1.9.1

[PATCH 04/19] ARM: dts: bockw: Name serial port pfc subnode after device name

From: Geert Uytterhoeven <geert+renesas@glider.be>
Date: 2016-06-10 13:00:50

Name the Pin Function Controller subnode for SCIF0 after its device
name, instead of after the serial port alias.

This avoids conflicts when enabling support for more serial ports later,
either here or in a DT overlay.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 arch/arm/boot/dts/r8a7778-bockw.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/r8a7778-bockw.dts b/arch/arm/boot/dts/r8a7778-bockw.dts
index 0a0bd3b6bb401ce2..211d239d9041a886 100644
--- a/arch/arm/boot/dts/r8a7778-bockw.dts
+++ b/arch/arm/boot/dts/r8a7778-bockw.dts
@@ -129,7 +129,7 @@
 	pinctrl-0 = <&scif_clk_pins>;
 	pinctrl-names = "default";
 
-	scif0_pins: serial0 {
+	scif0_pins: scif0 {
 		groups = "scif0_data_a", "scif0_ctrl";
 		function = "scif0";
 	};
-- 
1.9.1

[PATCH 08/19] ARM: dts: lager: Name vin pfc subnode after device name

From: Geert Uytterhoeven <geert+renesas@glider.be>
Date: 2016-06-10 13:00:54

Name the Pin Function Controller subnode for VIN1 after its device name,
instead of using the generic and indexless "vin".

This avoids conflicts when enabling support for more video inputs later,
either here or in a DT overlay.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 arch/arm/boot/dts/r8a7790-lager.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts
index 2d72c75ba4cb9c97..5e43763cec6575d3 100644
--- a/arch/arm/boot/dts/r8a7790-lager.dts
+++ b/arch/arm/boot/dts/r8a7790-lager.dts
@@ -427,7 +427,7 @@
 		function = "usb2";
 	};
 
-	vin1_pins: vin {
+	vin1_pins: vin1 {
 		groups = "vin1_data8", "vin1_clk";
 		function = "vin1";
 	};
-- 
1.9.1

[PATCH 09/19] ARM: dts: koelsch: Name serial port pfc subnodes after device names

From: Geert Uytterhoeven <geert+renesas@glider.be>
Date: 2016-06-10 13:00:55

Name the Pin Function Controller subnodes for SCIF0 and SCIF1 after
their device names, instead of after the serial port aliases.

This avoids conflicts when enabling support for more serial ports later,
either here or in a DT overlay.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 arch/arm/boot/dts/r8a7791-koelsch.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts
index 20fbc8c36a785bd3..73e5ecf036e1b968 100644
--- a/arch/arm/boot/dts/r8a7791-koelsch.dts
+++ b/arch/arm/boot/dts/r8a7791-koelsch.dts
@@ -332,12 +332,12 @@
 		function = "du";
 	};
 
-	scif0_pins: serial0 {
+	scif0_pins: scif0 {
 		groups = "scif0_data_d";
 		function = "scif0";
 	};
 
-	scif1_pins: serial1 {
+	scif1_pins: scif1 {
 		groups = "scif1_data_d";
 		function = "scif1";
 	};
-- 
1.9.1

[PATCH 11/19] ARM: dts: porter: Name serial port pfc subnode after device name

From: Geert Uytterhoeven <geert+renesas@glider.be>
Date: 2016-06-10 13:00:57

Name the Pin Function Controller subnode for SCIF0 after its device
name, instead of after the serial port alias.

This avoids conflicts when enabling support for more serial ports later,
either here or in a DT overlay.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 arch/arm/boot/dts/r8a7791-porter.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/r8a7791-porter.dts b/arch/arm/boot/dts/r8a7791-porter.dts
index e9151e946da8099b..85d109a5f43c4017 100644
--- a/arch/arm/boot/dts/r8a7791-porter.dts
+++ b/arch/arm/boot/dts/r8a7791-porter.dts
@@ -142,7 +142,7 @@
 };
 
 &pfc {
-	scif0_pins: serial0 {
+	scif0_pins: scif0 {
 		groups = "scif0_data_d";
 		function = "scif0";
 	};
-- 
1.9.1

[PATCH 12/19] ARM: dts: porter: Name spi pfc subnode after device name

From: Geert Uytterhoeven <geert+renesas@glider.be>
Date: 2016-06-10 13:00:58

Name the Pin Function Controller subnode for QSPI after its device name,
instead of after the spi interface alias.

This avoids conflicts when enabling support for more spi interfaces
later, either here or in a DT overlay.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 arch/arm/boot/dts/r8a7791-porter.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/r8a7791-porter.dts b/arch/arm/boot/dts/r8a7791-porter.dts
index 85d109a5f43c4017..6761d11d3f9e1317 100644
--- a/arch/arm/boot/dts/r8a7791-porter.dts
+++ b/arch/arm/boot/dts/r8a7791-porter.dts
@@ -167,7 +167,7 @@
 		function = "sdhi2";
 	};
 
-	qspi_pins: spi0 {
+	qspi_pins: qspi {
 		groups = "qspi_ctrl", "qspi_data4";
 		function = "qspi";
 	};
-- 
1.9.1

[PATCH 13/19] ARM: dts: gose: Name serial port pfc subnodes after device names

From: Geert Uytterhoeven <geert+renesas@glider.be>
Date: 2016-06-10 13:00:59

Name the Pin Function Controller subnodes for SCIF0 and SCIF1 after
their device names, instead of after the serial port aliases.

This avoids conflicts when enabling support for more serial ports later,
either here or in a DT overlay.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 arch/arm/boot/dts/r8a7793-gose.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/r8a7793-gose.dts b/arch/arm/boot/dts/r8a7793-gose.dts
index f748360ee85712f1..995e1e0fb1ff4f57 100644
--- a/arch/arm/boot/dts/r8a7793-gose.dts
+++ b/arch/arm/boot/dts/r8a7793-gose.dts
@@ -320,12 +320,12 @@
 		function = "du";
 	};
 
-	scif0_pins: serial0 {
+	scif0_pins: scif0 {
 		groups = "scif0_data_d";
 		function = "scif0";
 	};
 
-	scif1_pins: serial1 {
+	scif1_pins: scif1 {
 		groups = "scif1_data_d";
 		function = "scif1";
 	};
-- 
1.9.1

[PATCH 16/19] ARM: dts: alt: Name spi pfc subnode after device name

From: Geert Uytterhoeven <geert+renesas@glider.be>
Date: 2016-06-10 13:01:02

Name the Pin Function Controller subnode for QSPI after its device name,
instead of after the spi interface alias.

This avoids conflicts when enabl support for more spi interfaces later,
either here or in a DT overlay.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 arch/arm/boot/dts/r8a7794-alt.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/r8a7794-alt.dts b/arch/arm/boot/dts/r8a7794-alt.dts
index 1335664b2f886a17..1ad37d431a2a3bfc 100644
--- a/arch/arm/boot/dts/r8a7794-alt.dts
+++ b/arch/arm/boot/dts/r8a7794-alt.dts
@@ -147,7 +147,7 @@
 };
 
 &pfc {
-	qspi_pins: spi0 {
+	qspi_pins: qspi {
 		groups = "qspi_ctrl", "qspi_data4";
 		function = "qspi";
 	};
-- 
1.9.1

[PATCH 18/19] ARM: dts: silk: Name spi pfc subnode after device name

From: Geert Uytterhoeven <geert+renesas@glider.be>
Date: 2016-06-10 13:01:04

Name the Pin Function Controller subnode for QSPI after its device name,
instead of after the spi interface alias.

This avoids conflicts when enabling support for more spi interfaces
later, either here or in a DT overlay.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 arch/arm/boot/dts/r8a7794-silk.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/r8a7794-silk.dts b/arch/arm/boot/dts/r8a7794-silk.dts
index 7e88f6fe55cdcc02..488de730bee89f42 100644
--- a/arch/arm/boot/dts/r8a7794-silk.dts
+++ b/arch/arm/boot/dts/r8a7794-silk.dts
@@ -164,7 +164,7 @@
 		function = "sdhi1";
 	};
 
-	qspi_pins: spi0 {
+	qspi_pins: qspi {
 		groups = "qspi_ctrl", "qspi_data4";
 		function = "qspi";
 	};
-- 
1.9.1

[PATCH 19/19] ARM: dts: kzm9g: Name serial port pfc subnode after device name

From: Geert Uytterhoeven <geert+renesas@glider.be>
Date: 2016-06-10 13:01:05

Name the Pin Function Controller subnode for SCIFA4 after its device
name, instead of after the serial port alias.

This avoids conflicts when adding support for more serial ports later,
either here or in a DT overlay.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 arch/arm/boot/dts/sh73a0-kzm9g.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/sh73a0-kzm9g.dts b/arch/arm/boot/dts/sh73a0-kzm9g.dts
index 36567cbf2e1c32dd..1df68b1670339491 100644
--- a/arch/arm/boot/dts/sh73a0-kzm9g.dts
+++ b/arch/arm/boot/dts/sh73a0-kzm9g.dts
@@ -352,7 +352,7 @@
 		};
 	};
 
-	scifa4_pins: serial4 {
+	scifa4_pins: scifa4 {
 		groups = "scifa4_data", "scifa4_ctrl";
 		function = "scifa4";
 	};
-- 
1.9.1

Re: [PATCH 00/19] ARM: dts: renesas: Name pfc subnodes after device names

From: Simon Horman <horms@verge.net.au>
Date: 2016-06-14 00:13:14

On Fri, Jun 10, 2016 at 03:00:46PM +0200, Geert Uytterhoeven wrote:
	Hi Simon, Magnus,

Currently board DTS files use various naming conventions for the Pin
Function Controller subnodes.  This may cause conflicts when enabling
support for more instances later, either directly in board DT files, or
in DT overlays.  These conflicts are most likely to happen for devices
that use/require aliases (e.g. "serial1"), or when using generic and
indexless names (e.g. "mmc").  Hence this series changes the names of
(most of) the submodes, to match the corresponding device names, which
are unique on a specific SoC.

I did not change the following node names:
  - "sdX", as they always matched the corresponding "sdhiX" name,
  - "touchscreen", as there's not much opportunity for conflicts,
  - "mmc", for "mmcif_pins" on sh73a0/kzm9g (which has a single mmc
    instance),
  - "sounda" for fsia_pins on SH-Mobile,
If you think these should be changed too, please let me know.
Thanks, I think this looks good, I have queued up this series.

I don't see any pressing need to rename the nodes you mention above
and we can always do so later if the need arises.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help