diff mbox series

[9/9] arm64: dts: renesas: Add compatible properties to RTL8211E Ethernet PHYs

Message ID 3b366e3dddd4d3cd7e89b92d3a8f78f6dc18e244.1631174218.git.geert+renesas@glider.be
State Accepted
Commit d45ba2a5f718346e81483b7f6fd51f0aab5f4b35
Headers show
Series renesas: Add compatible properties to Ethernet PHY nodes | expand

Commit Message

Geert Uytterhoeven Sept. 9, 2021, 8:49 a.m. UTC
Add compatible values to Ethernet PHY subnodes representing Realtek
RTL8211E PHYs on RZ/G2 boards.  This allows software to identify the PHY
model at any time, regardless of the state of the PHY reset line.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 arch/arm64/boot/dts/renesas/cat875.dtsi         | 2 ++
 arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi | 2 ++
 2 files changed, 4 insertions(+)

Comments

Biju Das Sept. 23, 2021, 11:38 a.m. UTC | #1
Hi Geert,

Thanks for the patch. Tested the patch on Hihope RZ/G2M board.

Tested-by: Biju Das <biju.das.jz@bp.renesas.com>


Regards,
Biju

> -----Original Message-----

> From: Geert Uytterhoeven <geert+renesas@glider.be>

> Sent: 09 September 2021 09:50

> To: Magnus Damm <magnus.damm@gmail.com>

> Cc: Biju Das <biju.das.jz@bp.renesas.com>; Adam Ford <aford173@gmail.com>;

> Florian Fainelli <f.fainelli@gmail.com>; Andrew Lunn <andrew@lunn.ch>;

> Heiner Kallweit <hkallweit1@gmail.com>; Russell King

> <linux@armlinux.org.uk>; Grygorii Strashko <grygorii.strashko@ti.com>;

> linux-renesas-soc@vger.kernel.org; linux-arm-kernel@lists.infradead.org;

> netdev@vger.kernel.org; devicetree@vger.kernel.org; Geert Uytterhoeven

> <geert+renesas@glider.be>

> Subject: [PATCH 9/9] arm64: dts: renesas: Add compatible properties to

> RTL8211E Ethernet PHYs

> 

> Add compatible values to Ethernet PHY subnodes representing Realtek

> RTL8211E PHYs on RZ/G2 boards.  This allows software to identify the PHY

> model at any time, regardless of the state of the PHY reset line.

> 

> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

> ---

>  arch/arm64/boot/dts/renesas/cat875.dtsi         | 2 ++

>  arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi | 2 ++

>  2 files changed, 4 insertions(+)

> 

> diff --git a/arch/arm64/boot/dts/renesas/cat875.dtsi

> b/arch/arm64/boot/dts/renesas/cat875.dtsi

> index 801ea54b027c43d9..a69d24e9c61db052 100644

> --- a/arch/arm64/boot/dts/renesas/cat875.dtsi

> +++ b/arch/arm64/boot/dts/renesas/cat875.dtsi

> @@ -21,6 +21,8 @@ &avb {

>  	status = "okay";

> 

>  	phy0: ethernet-phy@0 {

> +		compatible = "ethernet-phy-id001c.c915",

> +			     "ethernet-phy-ieee802.3-c22";

>  		reg = <0>;

>  		interrupt-parent = <&gpio2>;

>  		interrupts = <21 IRQ_TYPE_LEVEL_LOW>; diff --git

> a/arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi

> b/arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi

> index dde3a07bc417c690..ad898c6db4e62df6 100644

> --- a/arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi

> +++ b/arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi

> @@ -24,6 +24,8 @@ &avb {

>  	status = "okay";

> 

>  	phy0: ethernet-phy@0 {

> +		compatible = "ethernet-phy-id001c.c915",

> +			     "ethernet-phy-ieee802.3-c22";

>  		reg = <0>;

>  		interrupt-parent = <&gpio2>;

>  		interrupts = <11 IRQ_TYPE_LEVEL_LOW>;

> --

> 2.25.1
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/renesas/cat875.dtsi b/arch/arm64/boot/dts/renesas/cat875.dtsi
index 801ea54b027c43d9..a69d24e9c61db052 100644
--- a/arch/arm64/boot/dts/renesas/cat875.dtsi
+++ b/arch/arm64/boot/dts/renesas/cat875.dtsi
@@ -21,6 +21,8 @@  &avb {
 	status = "okay";
 
 	phy0: ethernet-phy@0 {
+		compatible = "ethernet-phy-id001c.c915",
+			     "ethernet-phy-ieee802.3-c22";
 		reg = <0>;
 		interrupt-parent = <&gpio2>;
 		interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
diff --git a/arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi b/arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi
index dde3a07bc417c690..ad898c6db4e62df6 100644
--- a/arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi
+++ b/arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi
@@ -24,6 +24,8 @@  &avb {
 	status = "okay";
 
 	phy0: ethernet-phy@0 {
+		compatible = "ethernet-phy-id001c.c915",
+			     "ethernet-phy-ieee802.3-c22";
 		reg = <0>;
 		interrupt-parent = <&gpio2>;
 		interrupts = <11 IRQ_TYPE_LEVEL_LOW>;