Commit f1da57d8 authored by Stefan Riedmueller's avatar Stefan Riedmueller Committed by Shawn Guo

ARM: dts: imx6ul: segin: Make FEC and ethphy configurable in dts

To disable Ethernet interfaces in case they are not populated
make the FEC and Ethernet PHY status configurable in the dts files.

Also change the Ethernet PHYs labels to make them correspond to
the MDIO address.
Signed-off-by: default avatarStefan Riedmueller <s.riedmueller@phytec.de>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent 783c10aa
...@@ -42,20 +42,21 @@ &fec1 { ...@@ -42,20 +42,21 @@ &fec1 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet1>; pinctrl-0 = <&pinctrl_enet1>;
phy-mode = "rmii"; phy-mode = "rmii";
phy-handle = <&ethphy0>; phy-handle = <&ethphy1>;
status = "okay"; status = "disabled";
mdio: mdio { mdio: mdio {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
ethphy0: ethernet-phy@1 { ethphy1: ethernet-phy@1 {
reg = <1>; reg = <1>;
interrupt-parent = <&gpio1>; interrupt-parent = <&gpio1>;
interrupts = <2 IRQ_TYPE_LEVEL_LOW>; interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
micrel,led-mode = <1>; micrel,led-mode = <1>;
clocks = <&clks IMX6UL_CLK_ENET_REF>; clocks = <&clks IMX6UL_CLK_ENET_REF>;
clock-names = "rmii-ref"; clock-names = "rmii-ref";
status = "disabled";
}; };
}; };
}; };
......
...@@ -34,6 +34,18 @@ &ecspi3 { ...@@ -34,6 +34,18 @@ &ecspi3 {
status = "okay"; status = "okay";
}; };
&ethphy1 {
status = "okay";
};
&ethphy2 {
status = "okay";
};
&fec1 {
status = "okay";
};
&fec2 { &fec2 {
status = "okay"; status = "okay";
}; };
......
...@@ -107,7 +107,7 @@ &fec2 { ...@@ -107,7 +107,7 @@ &fec2 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet2>; pinctrl-0 = <&pinctrl_enet2>;
phy-mode = "rmii"; phy-mode = "rmii";
phy-handle = <&ethphy1>; phy-handle = <&ethphy2>;
status = "disabled"; status = "disabled";
}; };
...@@ -160,11 +160,12 @@ i2c_rtc: rtc@68 { ...@@ -160,11 +160,12 @@ i2c_rtc: rtc@68 {
}; };
&mdio { &mdio {
ethphy1: ethernet-phy@2 { ethphy2: ethernet-phy@2 {
reg = <2>; reg = <2>;
micrel,led-mode = <1>; micrel,led-mode = <1>;
clocks = <&clks IMX6UL_CLK_ENET2_REF>; clocks = <&clks IMX6UL_CLK_ENET2_REF>;
clock-names = "rmii-ref"; clock-names = "rmii-ref";
status = "disabled";
}; };
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment