ARM: dts: Disable second phy when one ethernet selected.
authorJosep Orga <jorga@somdevices.com>
Sat, 18 Apr 2020 16:06:46 +0000 (18:06 +0200)
committerJosep Orga <jorga@somdevices.com>
Sat, 18 Apr 2020 16:06:46 +0000 (18:06 +0200)
Signed-off-by: Josep Orga <jorga@somdevices.com>
arch/arm/boot/dts/imx6ull-somdevices.dtsi

index f3d1322..6c742d7 100644 (file)
                        gpios = <&gpio5 3 GPIO_ACTIVE_HIGH>;
                        states = <1300000 0x1 1400000 0x0>;
                };
+#ifndef DUAL_ETH
+               reg_fec2_reset: regulator-fec2 {
+                       //GPIO to disable FEC2 when one ethernet is selected.
+                       compatible = "regulator-fixed";
+                       regulator-name = "fec2_reset";
+                       regulator-min-microvolt = <3300000>;
+                       regulator-max-microvolt = <3300000>;
+                       gpio = <&gpio5 11 GPIO_ACTIVE_LOW>;
+                       off-on-delay = <20000>;
+                       regulator-boot-on;
+                       regulator-always-on;
+               };
+#endif
        };
 
        sound {