ARM: dts: aspeed-g6: Add aliases for mdio nodes
authorPotin Lai <potin.lai.pt@gmail.com>
Tue, 25 Oct 2022 05:50:46 +0000 (13:50 +0800)
committerJoel Stanley <joel@jms.id.au>
Sun, 20 Nov 2022 10:17:31 +0000 (20:47 +1030)
Add aliases for mdio nodes so that we can use name to lookup the
bus address of Aspeed SOC.

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

Signed-off-by: Potin Lai <potin.lai.pt@gmail.com>
Link: https://lore.kernel.org/r/20221025055046.1704920-1-potin.lai.pt@gmail.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
arch/arm/boot/dts/aspeed-g6.dtsi

index ebbcfe445d9cdac63ef97f48e4f319e96f3bda98..cc2f8b785917a92d1596d11ea8208ffaaf27afdc 100644 (file)
                serial4 = &uart5;
                serial5 = &vuart1;
                serial6 = &vuart2;
+               mdio0 = &mdio0;
+               mdio1 = &mdio1;
+               mdio2 = &mdio2;
+               mdio3 = &mdio3;
        };