mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 09:54:35 +00:00

The i.MX6 Cubox-i and HummingBoards can have different PHYs at varying addresses. U-Boot needs to auto-detect which phy is actually present, and at which address it is responding. Auto-detection from multiple phy nodes specified in device-tree does not currently work correct. As a work-around merge all three possible phys into one node with the special address 0xffffffff which indicates to the generic phy driver to probe all addresses. Signed-off-by: Josua Mayer <josua@solid-run.com> [fabio: Added the changes to imx6qdl-sr-som-u-boot.dtsi.] Signed-off-by: Fabio Estevam <festevam@gmail.com> Tested-by: Christian Gmeiner <cgmeiner@igalia.com> Tested-by: Christian Gmeiner <cgmeiner@igalia.com>
71 lines
703 B
Text
71 lines
703 B
Text
// SPDX-License-Identifier: GPL-2.0+
|
|
|
|
#include "imx6qdl-u-boot.dtsi"
|
|
#include "imx6qdl-sr-som-u-boot.dtsi"
|
|
|
|
/ {
|
|
board-detect {
|
|
compatible = "solidrun,hummingboard-detect";
|
|
detect-gpios = <
|
|
&gpio2 8 0
|
|
&gpio3 4 0
|
|
&gpio4 9 0
|
|
&gpio6 0 0
|
|
&gpio6 4 0
|
|
>;
|
|
};
|
|
|
|
wdt-reboot {
|
|
compatible = "wdt-reboot";
|
|
wdt = <&wdog1>;
|
|
bootph-pre-ram;
|
|
};
|
|
};
|
|
|
|
&soc {
|
|
bootph-all;
|
|
};
|
|
|
|
&aips1 {
|
|
bootph-all;
|
|
};
|
|
|
|
&pinctrl_microsom_uart1 {
|
|
bootph-all;
|
|
};
|
|
|
|
&uart1 {
|
|
bootph-all;
|
|
};
|
|
|
|
&gpio2 {
|
|
bootph-all;
|
|
};
|
|
|
|
&gpio3 {
|
|
bootph-all;
|
|
};
|
|
|
|
&gpio4 {
|
|
bootph-all;
|
|
};
|
|
|
|
&gpio6 {
|
|
bootph-all;
|
|
};
|
|
|
|
&usdhc1 {
|
|
status = "disabled";
|
|
};
|
|
|
|
&usdhc2 {
|
|
bootph-all;
|
|
};
|
|
|
|
&usdhc3 {
|
|
bootph-all;
|
|
};
|
|
|
|
&wdog1 {
|
|
bootph-pre-ram;
|
|
};
|