All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Simek <monstr@monstr.eu>
To: u-boot@lists.denx.de, git@xilinx.com
Cc: Michal Simek <michal.simek@xilinx.com>
Subject: [PATCH 08/10] arm64: zynqmp: Add PHY description for SGMII on vck190 SC
Date: Wed, 11 May 2022 11:52:52 +0200	[thread overview]
Message-ID: <8ad8d0c2fc9690cc90f95feddf87b0e94a685a43.1652262769.git.michal.simek@amd.com> (raw)
In-Reply-To: <cover.1652262769.git.michal.simek@amd.com>

From: Michal Simek <michal.simek@xilinx.com>

SGMII requires phy to be configured. The support for this has been added to
Linux and U-Boot already that's why also describe the phy via DT. Clock is
coming from si5332 chip (output 1) 125MHz which is only one GT line use on
this board.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@amd.com>
---

 arch/arm/dts/zynqmp-e-a2197-00-revA.dts | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/arch/arm/dts/zynqmp-e-a2197-00-revA.dts b/arch/arm/dts/zynqmp-e-a2197-00-revA.dts
index f229880a7021..726183782305 100644
--- a/arch/arm/dts/zynqmp-e-a2197-00-revA.dts
+++ b/arch/arm/dts/zynqmp-e-a2197-00-revA.dts
@@ -42,6 +42,12 @@
 		reg = <0x0 0x0 0x0 0x80000000>;
 	};
 
+	si5332_1: si5332_1 { /* u142 - GEM0 */
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <125000000>;
+	};
+
 	ina226-vccint {
 		compatible = "iio-hwmon";
 		io-channels = <&vccint 0>, <&vccint 1>, <&vccint 2>, <&vccint 3>;
@@ -135,8 +141,17 @@
 	xlnx,mio-bank = <1>;
 };
 
+/* GEM SGMII */
+&psgtr {
+	status = "okay";
+	/* gem0 */
+	clocks = <&si5332_1>;
+	clock-names = "ref0";
+};
+
 &gem0 {
 	status = "okay";
+	phys = <&psgtr 0 PHY_TYPE_SGMII 0 0>;
 	phy-handle = <&phy0>;
 	phy-mode = "sgmii";
 	is-internal-pcspma;
-- 
2.36.0


  parent reply	other threads:[~2022-05-11  9:54 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-11  9:52 [PATCH 00/10] arm64: zynqmp: Various DT fixes Michal Simek
2022-05-11  9:52 ` [PATCH 01/10] arm64: zynqmp: Add mode-pin GPIO controller DT node Michal Simek
2022-05-11  9:52 ` [PATCH 02/10] arm64: zynqmp: Add gpio labels for modepin Michal Simek
2022-05-11  9:52 ` [PATCH 03/10] arm64: zynqmp: Fix opp-table-cpu Michal Simek
2022-05-11  9:52 ` [PATCH 04/10] arm64: zynqmp: Add power domain description for PL Michal Simek
2022-05-11  9:52 ` [PATCH 05/10] arm64: zynqmp: Add pwm-fan node and fix ttc0 pwm-cells property Michal Simek
2022-05-11  9:52 ` [PATCH 06/10] arm64: zynqmp: Add dmas, gpu, rtc, watchdogs and opp nodes for SOM Michal Simek
2022-05-11  9:52 ` [PATCH 07/10] Revert "arm64: zynqmp: Add zynqmp firmware specific DT nodes" Michal Simek
2022-05-11  9:52 ` Michal Simek [this message]
2022-05-11  9:52 ` [PATCH 09/10] arm64: zynqmp: Add linux,code for fwuen button Michal Simek
2022-05-11  9:52 ` [PATCH 10/10] arm64: zynqmp: Add DT description for si5328 for zcu102/zcu106 Michal Simek
2022-05-18 11:11 ` [PATCH 00/10] arm64: zynqmp: Various DT fixes Michal Simek

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=8ad8d0c2fc9690cc90f95feddf87b0e94a685a43.1652262769.git.michal.simek@amd.com \
    --to=monstr@monstr.eu \
    --cc=git@xilinx.com \
    --cc=michal.simek@xilinx.com \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.