Skip to contentSkip to conversation

MIPS: dts: tl_wr1043nd_v1: fix "aliases" node name

PATCH In review Antony Pavlov 4 participants 6 messages Jan 14, 2016 – Jan 20, 2016 2 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: dts: tl_wr1043nd_v1: fix "aliases" node name

The correct name for aliases node is "aliases" not "alias".

An overview of the "aliases" node usage can be found on the device tree usage page at devicetree.org [1].

Also please see chapter 3.3 ("Aliases node") of the ePAPR 1.1 [2].

[1] http://devicetree.org/Device_Tree_Usage#aliases_Node
[2] https://www.power.org/documentation/epapr-version-1-1/

---
 arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts +1 -1
index 003015a..4b6d38c 100644
@@ -9,7 +9,7 @@
 	compatible = "tplink,tl-wr1043nd-v1", "qca,ar9132";
 	model = "TP-Link TL-WR1043ND Version 1";
 
-	alias {
+	aliases {
 		serial0 = "/ahb/apb/uart@18020000";
 	};
 
Signature · 6 lines
2.6.2

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 1452759657-7114-1-git-send-email-antonynpavlov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

Acked-by
#2 lore raw
Quoted 9 lines · On Thu, 14 Jan 2016 11:20:57 +0300 Antony Pavlov…

The correct name for aliases node is "aliases" not "alias".

An overview of the "aliases" node usage can be found on the device tree usage page at devicetree.org [1].

Also please see chapter 3.3 ("Aliases node") of the ePAPR 1.1 [2].

[1] http://devicetree.org/Device_Tree_Usage#aliases_Node
[2] https://www.power.org/documentation/epapr-version-1-1/

Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
In reply to a message not in the archive
Quoted 23 lines · Antony Pavlov

The correct name for aliases node is "aliases" not "alias".

An overview of the "aliases" node usage can be found on the device tree usage page at devicetree.org [1].

Also please see chapter 3.3 ("Aliases node") of the ePAPR 1.1 [2].

[1] http://devicetree.org/Device_Tree_Usage#aliases_Node
[2] https://www.power.org/documentation/epapr-version-1-1/

---
  arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts +0 -0
index 003015a..4b6d38c 100644

arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts line 14

Quoted 7 lines
arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts +1 -1
@@ -9,7 +9,7 @@
  	compatible = "tplink,tl-wr1043nd-v1", "qca,ar9132";
  	model = "TP-Link TL-WR1043ND Version 1";
 
-	alias {
+	aliases {
  		serial0 = "/ahb/apb/uart@18020000";
  	};

What uses this alias? If the answer is nothing (likely, as it was broken and nobody seems to have noticed), just remove the whole thing.

Quoted 2 lines

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw
Quoted 27 lines · On Fri, 15 Jan 2016 10:48:21 -0800 David Daney <[email protected]> wrote:
Quoted 26 lines · Antony Pavlov

The correct name for aliases node is "aliases" not "alias".

An overview of the "aliases" node usage can be found on the device tree usage page at devicetree.org [1].

Also please see chapter 3.3 ("Aliases node") of the ePAPR 1.1 [2].

[1] http://devicetree.org/Device_Tree_Usage#aliases_Node
[2] https://www.power.org/documentation/epapr-version-1-1/

---
  arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts +0 -0
index 003015a..4b6d38c 100644
@@ -9,7 +9,7 @@
  	compatible = "tplink,tl-wr1043nd-v1", "qca,ar9132";
  	model = "TP-Link TL-WR1043ND Version 1";
 
Quoted 7 lines

arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts line 14

Quoted 4 lines
arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts +1 -1
-	alias {
+	aliases {
  		serial0 = "/ahb/apb/uart@18020000";
  	};

What uses this alias? If the answer is nothing (likely, as it was broken and nobody seems to have noticed), just remove the whole thing.

I have used ar9132_tl_wr1043nd_v1.dts as a template for AR9331-based board dts-file. AR9331 uses it's own very special UART implementation (the ar933x_uart.c driver is used). ar933x_uart.c relies on alias and does not work if alias is not set.
I have not yet runned linux on TL-WR1034ND, but I suppose that uart alias is not actually used for TL-WR1034ND and this aliases node can be safely removed.

Alban, have you any comments?

--
Best regards,
  Antony Pavlov

#6 lore raw
Quoted 39 lines · On Sat, 16 Jan 2016 08:02:05 +0300 Antony Pavlov <[email protected]>…
Quoted 27 lines · On Fri, 15 Jan 2016 10:48:21 -0800 David Daney <[email protected]> wrote:
Quoted 26 lines · Antony Pavlov

The correct name for aliases node is "aliases" not "alias".

An overview of the "aliases" node usage can be found on the device tree usage page at devicetree.org [1].

Also please see chapter 3.3 ("Aliases node") of the ePAPR 1.1 [2].

[1] http://devicetree.org/Device_Tree_Usage#aliases_Node
[2] https://www.power.org/documentation/epapr-version-1-1/

---
  arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts index 003015a..4b6d38c 100644 --- a/arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts +++ b/arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts @@ -9,7 +9,7 @@
compatible = "tplink,tl-wr1043nd-v1", "qca,ar9132"; model = "TP-Link TL-WR1043ND Version 1";

Quoted 8 lines

arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts line 14

Quoted 4 lines
arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts +1 -1
-	alias {
+	aliases {
  		serial0 = "/ahb/apb/uart@18020000";
  	};

What uses this alias? If the answer is nothing (likely, as it was broken and nobody seems to have noticed), just remove the whole thing.

Quoted 8 lines

I have used ar9132_tl_wr1043nd_v1.dts as a template for AR9331-based board dts-file. AR9331 uses it's own very special UART implementation (the ar933x_uart.c driver is used). ar933x_uart.c relies on alias and does not work if alias is not set. I have not yet runned linux on TL-WR1034ND, but I suppose that uart alias is not actually used for TL-WR1034ND and this aliases node can be safely removed.

Alban, have you any comments?

David is right, we should just remove it.

Alban

#7 lore raw
Quoted 49 lines · On Wed, 20 Jan 2016 00:43:36 +0100 Alban <[email protected]> wrote:
Quoted 46 lines · On Sat, 16 Jan 2016 08:02:05 +0300 Antony Pavlov <[email protected]>…
Quoted 27 lines · On Fri, 15 Jan 2016 10:48:21 -0800 David Daney <[email protected]> wrote:
Quoted 26 lines · Antony Pavlov

The correct name for aliases node is "aliases" not "alias".

An overview of the "aliases" node usage can be found on the device tree usage page at devicetree.org [1].

Also please see chapter 3.3 ("Aliases node") of the ePAPR 1.1 [2].

[1] http://devicetree.org/Device_Tree_Usage#aliases_Node
[2] https://www.power.org/documentation/epapr-version-1-1/

---
  arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts index 003015a..4b6d38c 100644 --- a/arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts +++ b/arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts @@ -9,7 +9,7 @@
compatible = "tplink,tl-wr1043nd-v1", "qca,ar9132"; model = "TP-Link TL-WR1043ND Version 1";

Quoted 8 lines

arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts line 14

Quoted 4 lines
arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts +1 -1
-	alias {
+	aliases {
  		serial0 = "/ahb/apb/uart@18020000";
  	};

What uses this alias? If the answer is nothing (likely, as it was broken and nobody seems to have noticed), just remove the whole thing.

I have used ar9132_tl_wr1043nd_v1.dts as a template for AR9331-based board dts-file. AR9331 uses it's own very special UART implementation (the ar933x_uart.c driver is used). ar933x_uart.c relies on alias and does not work if alias is not set. I have not yet runned linux on TL-WR1034ND, but I suppose that uart alias is not actually used for TL-WR1034ND and this aliases node can be safely removed.

Quoted 3 lines
Quoted 1 line

Alban, have you any comments?

David is right, we should just remove it.

Ok.

Several days ago I have got one TP-Link WR1043ND v1.8, so I can prepare the patch, check it on my real hardware and then send it to the maillist.

--
Best regards,
  Antony Pavlov