linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Ninad Palsule <ninad@linux.ibm.com>
To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
	joel@jms.id.au, andrew@codeconstruct.com.au,
	devicetree@vger.kernel.org, eajames@linux.ibm.com,
	ninad@linux.ibm.com, linux-arm-kernel@lists.infradead.org,
	linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org
Cc: NINAD PALSULE <ninadpalsule@us.ibm.com>
Subject: [PATCH v1 3/8] ARM: dts: aspeed: system1: Add RGMII support
Date: Fri, 13 Dec 2024 08:50:29 -0600	[thread overview]
Message-ID: <20241213145037.3784931-4-ninad@linux.ibm.com> (raw)
In-Reply-To: <20241213145037.3784931-1-ninad@linux.ibm.com>

From: NINAD PALSULE <ninadpalsule@us.ibm.com>

system1 has 2 transceiver connected through the RGMII interfaces. Added
device tree entry to enable RGMII support.

Signed-off-by: Ninad Palsule <ninad@linux.ibm.com>
---
 .../dts/aspeed/aspeed-bmc-ibm-system1.dts     | 38 ++++++++++++++++---
 1 file changed, 33 insertions(+), 5 deletions(-)

diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
index db4b9fb674fe..775a95470f5c 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
@@ -425,14 +425,42 @@ &lpc_ctrl {
 	memory-region = <&flash_memory>;
 };
 
+&mdio0 {
+	status = "okay";
+
+	ethphy0: ethernet-phy@0 {
+		compatible = "ethernet-phy-ieee802.3-c22";
+		reg = <0>;
+	};
+};
+
+&mdio2 {
+	status = "okay";
+
+	ethphy2: ethernet-phy@0 {
+		compatible = "ethernet-phy-ieee802.3-c22";
+		reg = <0>;
+	};
+};
+
+&mac0 {
+	status = "okay";
+
+	phy-mode = "rgmii-rxid";
+	phy-handle = <&ethphy0>;
+
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_rgmii1_default>;
+};
+
 &mac2 {
 	status = "okay";
+
+	phy-mode = "rgmii";
+	phy-handle = <&ethphy2>;
+
 	pinctrl-names = "default";
-	pinctrl-0 = <&pinctrl_rmii3_default>;
-	clocks = <&syscon ASPEED_CLK_GATE_MAC3CLK>,
-		 <&syscon ASPEED_CLK_MAC3RCLK>;
-	clock-names = "MACCLK", "RCLK";
-	use-ncsi;
+	pinctrl-0 = <&pinctrl_rgmii3_default>;
 };
 
 &mac3 {
-- 
2.43.0



  parent reply	other threads:[~2024-12-13 14:57 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-13 14:50 [PATCH v1 0/8] DTS updates for system1 BMC Ninad Palsule
2024-12-13 14:50 ` [PATCH v1 1/8] ARM: dts: aspeed: system1: Add IPMB device Ninad Palsule
2024-12-13 15:48   ` Krzysztof Kozlowski
2024-12-13 14:50 ` [PATCH v1 2/8] ARM: dts: aspeed: system1: Add GPIO line name Ninad Palsule
2024-12-13 14:50 ` Ninad Palsule [this message]
2024-12-13 22:03   ` [PATCH v1 3/8] ARM: dts: aspeed: system1: Add RGMII support Andrew Lunn
2024-12-13 14:50 ` [PATCH v1 4/8] ARM: dts: aspeed: system1: Reduce sgpio speed Ninad Palsule
2024-12-13 14:50 ` [PATCH v1 5/8] ARM: dts: aspeed: system1: Update LED gpio name Ninad Palsule
2024-12-13 14:50 ` [PATCH v1 6/8] ARM: dts: aspeed: system1: Remove VRs max8952 Ninad Palsule
2024-12-13 14:50 ` [PATCH v1 7/8] ARM: dts: aspeed: system1: Mark GPIO line high/low Ninad Palsule
2024-12-13 15:49   ` Krzysztof Kozlowski
2025-01-07 14:28     ` Ninad Palsule
2024-12-13 14:50 ` [PATCH v1 8/8] ARM: dts: aspeed: system1: Disable gpio pull down Ninad Palsule
2024-12-16 16:29 ` [PATCH v1 0/8] DTS updates for system1 BMC Rob Herring (Arm)
2025-01-07 14:46   ` Ninad Palsule

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241213145037.3784931-4-ninad@linux.ibm.com \
    --to=ninad@linux.ibm.com \
    --cc=andrew@codeconstruct.com.au \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=eajames@linux.ibm.com \
    --cc=joel@jms.id.au \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-aspeed@lists.ozlabs.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ninadpalsule@us.ibm.com \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).