riscv: dts: starfive: beaglev-starlight: Setup phy reset gpio
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Wed, 20 Dec 2023 21:17:42 +0000 (23:17 +0200)
committerConor Dooley <conor.dooley@microchip.com>
Wed, 31 Jan 2024 12:23:26 +0000 (12:23 +0000)
The BeagleV Starlight SBC uses a Microchip KSZ9031RNXCA PHY supporting
RGMII-ID which doesn't require any particular setup, other than defining
a reset gpio, as opposed to VisionFive V1 for which the RX internal
delay had to be adjusted.

Co-developed-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
Signed-off-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
arch/riscv/boot/dts/starfive/jh7100-beaglev-starlight.dts

index 7cda3a89020a49f70a83dcac02d633e786dc0f7d..168f5d9895a9ddc24d864ebf2e2b6a648dc554c8 100644 (file)
        model = "BeagleV Starlight Beta";
        compatible = "beagle,beaglev-starlight-jh7100-r0", "starfive,jh7100";
 };
+
+&gmac {
+       phy-handle = <&phy>;
+};
+
+&mdio {
+       phy: ethernet-phy@7 {
+               reg = <7>;
+               reset-gpios = <&gpio 63 GPIO_ACTIVE_LOW>;
+       };
+};