Skip to contentSkip to conversation

ARM: dts: aspeed-g6: add aliases for mdio nodes

PATCH In review Potin Lai 3 participants 3 messages Oct 25, 2022 – Jan 18, 2023

Subsystems (2)
lore
Share & tools
lore

Potin Lai

author
#0 lore raw

PATCH v2 1/1 ARM: dts: aspeed-g6: add aliases for mdio nodes

Add aliases for mdio nodes so that we can use name to lookup the bus address of Aspeed SOC.

For example:
root at bletchley:~# cat /sys/firmware/devicetree/base/aliases/mdio0 /ahb/mdio at 1e650000
root at bletchley:~# cat /sys/firmware/devicetree/base/aliases/mdio1 /ahb/mdio at 1e650008
root at bletchley:~# cat /sys/firmware/devicetree/base/aliases/mdio2 /ahb/mdio at 1e650010
root at bletchley:~# cat /sys/firmware/devicetree/base/aliases/mdio3 /ahb/mdio at 1e650018

---

change v1 --> v2:
* move mdio aliases to aspeed-g6.dtsi

---
 arch/arm/boot/dts/aspeed-g6.dtsi | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/aspeed-g6.dtsi +4 -0
index 0cc92874caa8..6f159ef1efbc 100644
@@ -36,6 +36,10 @@ aliases {
 		serial4 = &uart5;
 		serial5 = &vuart1;
 		serial6 = &vuart2;
+		mdio0 = &mdio0;
+		mdio1 = &mdio1;
+		mdio2 = &mdio2;
+		mdio3 = &mdio3;
 	};
 
 
Signature · 1 line
2.31.1
Reviewed-by on v2 1/1
#1 lore raw
Quoted 41 lines · Potin Lai

Add aliases for mdio nodes so that we can use name to lookup the bus address of Aspeed SOC.

For example:
root at bletchley:~# cat /sys/firmware/devicetree/base/aliases/mdio0 /ahb/mdio at 1e650000
root at bletchley:~# cat /sys/firmware/devicetree/base/aliases/mdio1 /ahb/mdio at 1e650008
root at bletchley:~# cat /sys/firmware/devicetree/base/aliases/mdio2 /ahb/mdio at 1e650010
root at bletchley:~# cat /sys/firmware/devicetree/base/aliases/mdio3 /ahb/mdio at 1e650018

---

change v1 --> v2:
* move mdio aliases to aspeed-g6.dtsi

---
 arch/arm/boot/dts/aspeed-g6.dtsi | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/aspeed-g6.dtsi +4 -0
index 0cc92874caa8..6f159ef1efbc 100644
@@ -36,6 +36,10 @@ aliases {
 		serial4 = &uart5;
 		serial5 = &vuart1;
 		serial6 = &vuart2;
+		mdio0 = &mdio0;
+		mdio1 = &mdio1;
+		mdio2 = &mdio2;
+		mdio3 = &mdio3;
 	};
 
 
Signature · 1 line
2.31.1
Signature · 8 lines
Patrick Williams
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linux-aspeed/attachments/20230103/59225aeb/attachment.sig>
maintainer Reviewed-by on v2 1/1
#2 lore raw
In reply to Potin Lai
Quoted 14 lines · Potin Lai

Add aliases for mdio nodes so that we can use name to lookup the bus address of Aspeed SOC.

For example:
root at bletchley:~# cat /sys/firmware/devicetree/base/aliases/mdio0 /ahb/mdio at 1e650000
root at bletchley:~# cat /sys/firmware/devicetree/base/aliases/mdio1 /ahb/mdio at 1e650008
root at bletchley:~# cat /sys/firmware/devicetree/base/aliases/mdio2 /ahb/mdio at 1e650010
root at bletchley:~# cat /sys/firmware/devicetree/base/aliases/mdio3 /ahb/mdio at 1e650018

Quoted 1 line

Thanks, that's better I think.

Quoted 27 lines

---

change v1 --> v2:
* move mdio aliases to aspeed-g6.dtsi

---
 arch/arm/boot/dts/aspeed-g6.dtsi | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/aspeed-g6.dtsi +4 -1
index 0cc92874caa8..6f159ef1efbc 100644
@@ -36,6 +36,10 @@ aliases {
                serial4 = &uart5;
                serial5 = &vuart1;
                serial6 = &vuart2;
+               mdio0 = &mdio0;
+               mdio1 = &mdio1;
+               mdio2 = &mdio2;
+               mdio3 = &mdio3;
        };
 
 
--

2.31.1