* [PATCH v2 1/1] ARM: dts: aspeed-g6: add aliases for mdio nodes
@ 2022-10-25 5:50 Potin Lai
2023-01-03 21:03 ` Patrick Williams
2023-01-18 3:20 ` Joel Stanley
0 siblings, 2 replies; 3+ messages in thread
From: Potin Lai @ 2022-10-25 5:50 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Joel Stanley, Andrew Jeffery
Cc: devicetree, linux-arm-kernel, linux-aspeed, linux-kernel,
Patrick Williams, Potin Lai, Potin Lai
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: [v1] https://lore.kernel.org/all/20221025024145.1561047-1-potin.lai.pt@gmail.com/
change v1 --> v2:
* move mdio aliases to aspeed-g6.dtsi
---
arch/arm/boot/dts/aspeed-g6.dtsi | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm/boot/dts/aspeed-g6.dtsi b/arch/arm/boot/dts/aspeed-g6.dtsi
index 0cc92874caa8..6f159ef1efbc 100644
--- a/arch/arm/boot/dts/aspeed-g6.dtsi
+++ b/arch/arm/boot/dts/aspeed-g6.dtsi
@@ -36,6 +36,10 @@ aliases {
serial4 = &uart5;
serial5 = &vuart1;
serial6 = &vuart2;
+ mdio0 = &mdio0;
+ mdio1 = &mdio1;
+ mdio2 = &mdio2;
+ mdio3 = &mdio3;
};
--
2.31.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH v2 1/1] ARM: dts: aspeed-g6: add aliases for mdio nodes
2022-10-25 5:50 [PATCH v2 1/1] ARM: dts: aspeed-g6: add aliases for mdio nodes Potin Lai
@ 2023-01-03 21:03 ` Patrick Williams
2023-01-18 3:20 ` Joel Stanley
1 sibling, 0 replies; 3+ messages in thread
From: Patrick Williams @ 2023-01-03 21:03 UTC (permalink / raw)
To: Potin Lai
Cc: Rob Herring, Krzysztof Kozlowski, Joel Stanley, Andrew Jeffery,
devicetree, linux-arm-kernel, linux-aspeed, linux-kernel,
Potin Lai
[-- Attachment #1: Type: text/plain, Size: 1378 bytes --]
On Tue, Oct 25, 2022 at 01:50:46PM +0800, Potin Lai wrote:
> 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: [v1] https://lore.kernel.org/all/20221025024145.1561047-1-potin.lai.pt@gmail.com/
>
> change v1 --> v2:
> * move mdio aliases to aspeed-g6.dtsi
> ---
> arch/arm/boot/dts/aspeed-g6.dtsi | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/arch/arm/boot/dts/aspeed-g6.dtsi b/arch/arm/boot/dts/aspeed-g6.dtsi
> index 0cc92874caa8..6f159ef1efbc 100644
> --- a/arch/arm/boot/dts/aspeed-g6.dtsi
> +++ b/arch/arm/boot/dts/aspeed-g6.dtsi
> @@ -36,6 +36,10 @@ aliases {
> serial4 = &uart5;
> serial5 = &vuart1;
> serial6 = &vuart2;
> + mdio0 = &mdio0;
> + mdio1 = &mdio1;
> + mdio2 = &mdio2;
> + mdio3 = &mdio3;
> };
>
>
> --
> 2.31.1
>
Reviewed-by: Patrick Williams <patrick@stwcx.xyz>
--
Patrick Williams
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH v2 1/1] ARM: dts: aspeed-g6: add aliases for mdio nodes
2022-10-25 5:50 [PATCH v2 1/1] ARM: dts: aspeed-g6: add aliases for mdio nodes Potin Lai
2023-01-03 21:03 ` Patrick Williams
@ 2023-01-18 3:20 ` Joel Stanley
1 sibling, 0 replies; 3+ messages in thread
From: Joel Stanley @ 2023-01-18 3:20 UTC (permalink / raw)
To: Potin Lai
Cc: Rob Herring, Krzysztof Kozlowski, Andrew Jeffery, devicetree,
linux-arm-kernel, linux-aspeed, linux-kernel, Patrick Williams,
Potin Lai
On Tue, 25 Oct 2022 at 05:52, Potin Lai <potin.lai.pt@gmail.com> wrote:
>
> 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>
Thanks, that's better I think.
Reviewed-by: Joel Stanley <joel@jms.id.au>
> ---
> LINK: [v1] https://lore.kernel.org/all/20221025024145.1561047-1-potin.lai.pt@gmail.com/
>
> change v1 --> v2:
> * move mdio aliases to aspeed-g6.dtsi
> ---
> arch/arm/boot/dts/aspeed-g6.dtsi | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/arch/arm/boot/dts/aspeed-g6.dtsi b/arch/arm/boot/dts/aspeed-g6.dtsi
> index 0cc92874caa8..6f159ef1efbc 100644
> --- a/arch/arm/boot/dts/aspeed-g6.dtsi
> +++ b/arch/arm/boot/dts/aspeed-g6.dtsi
> @@ -36,6 +36,10 @@ aliases {
> serial4 = &uart5;
> serial5 = &vuart1;
> serial6 = &vuart2;
> + mdio0 = &mdio0;
> + mdio1 = &mdio1;
> + mdio2 = &mdio2;
> + mdio3 = &mdio3;
> };
>
>
> --
> 2.31.1
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-01-18 3:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-25 5:50 [PATCH v2 1/1] ARM: dts: aspeed-g6: add aliases for mdio nodes Potin Lai
2023-01-03 21:03 ` Patrick Williams
2023-01-18 3:20 ` Joel Stanley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).