]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: imx6ul: segin: Make FEC and ethphy configurable in dts
authorStefan Riedmueller <s.riedmueller@phytec.de>
Tue, 9 Jul 2019 07:19:22 +0000 (09:19 +0200)
committerShawn Guo <shawnguo@kernel.org>
Tue, 23 Jul 2019 05:38:30 +0000 (13:38 +0800)
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: Stefan Riedmueller <s.riedmueller@phytec.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6ul-phytec-phycore-som.dtsi
arch/arm/boot/dts/imx6ul-phytec-segin-ff-rdk-nand.dts
arch/arm/boot/dts/imx6ul-phytec-segin.dtsi

index 73266b4a889b76a02727aa348e40ca903cc48463..fee7a7e938ee297dc81fd6b12f64a7466035a388 100644 (file)
@@ -42,20 +42,21 @@ &fec1 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_enet1>;
        phy-mode = "rmii";
-       phy-handle = <&ethphy0>;
-       status = "okay";
+       phy-handle = <&ethphy1>;
+       status = "disabled";
 
        mdio: mdio {
                #address-cells = <1>;
                #size-cells = <0>;
 
-               ethphy0: ethernet-phy@1 {
+               ethphy1: ethernet-phy@1 {
                        reg = <1>;
                        interrupt-parent = <&gpio1>;
                        interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
                        micrel,led-mode = <1>;
                        clocks = <&clks IMX6UL_CLK_ENET_REF>;
                        clock-names = "rmii-ref";
+                       status = "disabled";
                };
        };
 };
index dc06029c57017bad12ccd4680d5498d18e9a355a..81a82dd65019174ad3290c2c83253551b7f2f415 100644 (file)
@@ -34,6 +34,18 @@ &ecspi3 {
        status = "okay";
 };
 
+&ethphy1 {
+       status = "okay";
+};
+
+&ethphy2 {
+       status = "okay";
+};
+
+&fec1 {
+       status = "okay";
+};
+
 &fec2 {
        status = "okay";
 };
index 28ba3a4c4c74f86afc84ced406e690f3965766d5..7cd24ec40c36cf1bc33b002c62856eea667b5647 100644 (file)
@@ -107,7 +107,7 @@ &fec2 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_enet2>;
        phy-mode = "rmii";
-       phy-handle = <&ethphy1>;
+       phy-handle = <&ethphy2>;
        status = "disabled";
 };
 
@@ -160,11 +160,12 @@ i2c_rtc: rtc@68 {
 };
 
 &mdio {
-       ethphy1: ethernet-phy@2 {
+       ethphy2: ethernet-phy@2 {
                reg = <2>;
                micrel,led-mode = <1>;
                clocks = <&clks IMX6UL_CLK_ENET2_REF>;
                clock-names = "rmii-ref";
+               status = "disabled";
        };
 };