]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm64: zynqmp: Add PHY description for SGMII on vck190 SC
authorMichal Simek <michal.simek@xilinx.com>
Wed, 11 May 2022 09:52:52 +0000 (11:52 +0200)
committerMichal Simek <michal.simek@amd.com>
Wed, 18 May 2022 11:17:54 +0000 (13:17 +0200)
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>
Link: https://lore.kernel.org/r/8ad8d0c2fc9690cc90f95feddf87b0e94a685a43.1652262769.git.michal.simek@amd.com
arch/arm/dts/zynqmp-e-a2197-00-revA.dts

index f229880a70210b6ad5bf386faabe3e2e9cb1f83e..726183782305b9569b627af35d5e94ba3652242c 100644 (file)
                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>;
        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;