Skip to content
Snippets Groups Projects
Commit 90c0d7ed authored by Frieder Schrempf's avatar Frieder Schrempf
Browse files

kontron_mx6ul: Fix ethernet support


With the current devicetrees from Linux ethernet didn't work for some
reason. Disable the second ethernet and let the first one control MDIO
to make it work in U-Boot.

Signed-off-by: default avatarFrieder Schrempf <frieder.schrempf@kontron.de>
parent 99df4d34
No related branches found
No related tags found
No related merge requests found
......@@ -5,15 +5,38 @@
*/
/*
* To make both PHYs work, we need to set the reset pin once. Afterwards
* To make the PHYs work, we need to set the reset pin once. Afterwards
* in Linux we can't assign the shared reset GPIO to the PHYs, as this
* would cause Linux to reset both PHYs every time one of them gets
* reinitialized.
*
* Also we disable the second ethernet as it currently doesn't work with
* the devicetree setup in U-Boot.
*/
&fec1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet1 &pinctrl_enet1_mdio>;
phy-mode = "rmii";
phy-handle = <&ethphy1>;
phy-reset-gpios = <&gpio5 9 GPIO_ACTIVE_HIGH>;
status = "okay";
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethphy1: ethernet-phy@1 {
reg = <1>;
micrel,led-mode = <0>;
clocks = <&clks IMX6UL_CLK_ENET_REF>;
clock-names = "rmii-ref";
};
};
};
&fec2 {
phy-reset-gpios = <&gpio5 9 GPIO_ACTIVE_HIGH>;
status = "disabled";
/delete-property/ phy-handle;
/delete-node/ mdio;
};
......@@ -66,7 +66,7 @@
* #######################################
*/
#ifdef CONFIG_FEC_MXC
#define CONFIG_ETHPRIME "eth0"
#define CONFIG_ETHPRIME "eth1"
#else
#define CONFIG_ETHPRIME
#endif
......@@ -90,7 +90,7 @@
*/
#define CONFIG_EXTRA_ENV_SETTINGS \
"bootargs_base=" KONTRON_ENV_KERNEL_MTDPARTS " " \
KONTRON_ENV_KERNEL_CONSOLE "\0" \
KONTRON_ENV_KERNEL_CONSOLE " \0" \
"script=boot.scr\0" \
"fdt_high=0xffffffff\0" \
"initrd_high=0xffffffff\0" \
......@@ -109,6 +109,16 @@
"hostname=" CONFIG_HOSTNAME "\0" \
"bootubipart=spi-nand0\0" \
"bootubivol=boot\0" \
BOOTENV
"bootdelay=0\0" \
"ethaddr=22:33:44:44:33:22\0" \
"nfsroot=/nfsroot\0" \
"netargs=setenv bootargs root=/dev/nfs rw video=HDMI-A-1:1280x720 " \
"ip=192.168.1.11:192.168.1.10:192.168.1.10:255.255.255.0:n8010:eth1:any: nfsroot=192.168.1.10:${nfsroot},v3,tcp\0" \
"bootcmd=run netargs; tftp 0x82000000 fitImage; bootm 0x82000000#conf@imx6ull-kontron-n6411-s.dtb"
// "ip=192.168.1.11:192.168.1.10:192.168.1.10:255.255.255.0:n8010:eth1:any: nfsroot=192.168.1.10:${nfsroot},v3,tcp\0" \
// "bootcmd=run netargs; tftp 0x82000000 fitImage; bootm 0x82000000#conf@imx6ul-kontron-n6310-s.dtb"
// "bootcmd=run netargs; tftp 0x43000000 fitImage; bootm 0x43000000#conf@freescale_imx8mm-kontron-n8010-s-lvds.dtb"
// "bootcmd=bootm 0x43000000#conf@freescale_imx8mm-kontron-n8011-s.dtb\0"
// BOOTENV
#endif /* __KONTRON_COMMON_CONFIG_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment