Skip to contentSkip to conversation

ARM: dts: aspeed: bletchley: add aliases for mdio0 and mdio3

PATCH In review Potin Lai 2 participants 3 messages Oct 25, 2022

Subsystems (2)
lore
Share & tools
lore

Potin Lai

author
#0 lore raw

PATCH 1/1 ARM: dts: aspeed: bletchley: add aliases for mdio0 and mdio3

Add aliases for mdio0 and mdio3 so that we can use name to lookup the 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/mdio3 /ahb/mdio at 1e650018

---
 arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts +2 -0
index c02c15f15465..2825d5f3f78b 100644
@@ -15,6 +15,8 @@ / {
 
 	aliases {
 		serial4 = &uart5;
+		mdio0 = &mdio0;
+		mdio3 = &mdio3;
 	};
 
 	chosen {
Signature · 1 line
2.31.1
maintainer
#1 lore raw
Quoted 20 lines · Potin Lai

Add aliases for mdio0 and mdio3 so that we can use name to lookup the 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/mdio3 /ahb/mdio at 1e650018

---
 arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts +0 -0
index c02c15f15465..2825d5f3f78b 100644

arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts / { · line 19

Quoted 5 lines
arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts +2 -0
@@ -15,6 +15,8 @@ / {
 
        aliases {
                serial4 = &uart5;
+               mdio0 = &mdio0;
+               mdio3 = &mdio3;

Should this go into the dtsi instead?

Quoted 6 lines
arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts +0 -1
        };
 
        chosen {
--

2.31.1

author
#2 lore raw
Quoted 21 lines · Joel Stanley
Quoted 20 lines · Potin Lai

Add aliases for mdio0 and mdio3 so that we can use name to lookup the 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/mdio3 /ahb/mdio at 1e650018

---
 arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts +0 -0
index c02c15f15465..2825d5f3f78b 100644
@@ -15,6 +15,8 @@ / {
 
Quoted 5 lines

arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts / { · line 19

Quoted 4 lines
arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts +2 -0
        aliases {
                serial4 = &uart5;
+               mdio0 = &mdio0;
+               mdio3 = &mdio3;

Should this go into the dtsi instead?

Thanks for suggestion, I will move this to aspeed-g6.dtsi in next version.

Quoted 6 lines
Quoted 6 lines
arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts +0 -1
        };
 
        chosen {
--

2.31.1