mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-10 13:23:09 +00:00
9e778c7ffc
uDPU is a bit of a specific device in that it does not have any copper ports nor any ethernet PHY-s but 2 SFP ports. This is an issue since MVNETA requires a PHY phandle or a fixed-link to be defined under its node. Since U-boot has no SFP support this is reasonable in order to know how to configure the MAC. However this also means that networking does not work on uDPU at all currently, and fails with: uDPU>> dhcp Could not get PHY for neta@30000: addr 0 phy_connect failed Could not get PHY for neta@40000: addr 1 phy_connect failed So, to provide working networking using only SFP-s let add the fixed-link at 1G which is much more common than 2.5G SFP-s as well as disable the TX_DISABLE pins like done on Armada 7040 and 8040 platforms. Since uDPU is not using any of the GPIO-s on the SB controller for any purpose other than GPIO, a call to the pinctrl must be made in order for it to get probed and thus register the SB GPIO bank, otherwise SB GPIO-s are not registered at all. Signed-off-by: Robert Marko <robert.marko@sartura.hr> Reviewed-by: Stefan Roese <sr@denx.de>
57 lines
625 B
Text
57 lines
625 B
Text
// SPDX-License-Identifier: GPL-2.0+
|
|
|
|
/ {
|
|
smbios {
|
|
compatible = "u-boot,sysinfo-smbios";
|
|
|
|
smbios {
|
|
system {
|
|
product = "uDPU";
|
|
};
|
|
|
|
baseboard {
|
|
product = "uDPU";
|
|
};
|
|
|
|
chassis {
|
|
product = "uDPU";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&spi0 {
|
|
u-boot,dm-pre-reloc;
|
|
|
|
spi-flash@0 {
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
};
|
|
|
|
&sdhci0 {
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
|
|
&pinctrl_sb {
|
|
sfp_pin: sfp-pin {
|
|
groups = "pcie1_clkreq";
|
|
function = "gpio";
|
|
};
|
|
};
|
|
|
|
ð0 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&sfp_pin>;
|
|
|
|
fixed-link {
|
|
speed = <1000>;
|
|
full-duplex;
|
|
};
|
|
};
|
|
|
|
ð1 {
|
|
fixed-link {
|
|
speed = <1000>;
|
|
full-duplex;
|
|
};
|
|
};
|