]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ARM64: dts: rockchip: Enable gmac2phy for rk3328-evb
authorDavid Wu <david.wu@rock-chips.com>
Thu, 10 Aug 2017 14:02:01 +0000 (22:02 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Aug 2017 21:28:59 +0000 (14:28 -0700)
Enable the gmac2phy, make the gmac2phy work on
the rk3328-evb board.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/arm64/boot/dts/rockchip/rk3328-evb.dts

index cf272392cebf4712367dcf8c3f5009349f0ed4ad..b9f36dad17e6dda378c486e98e202aaac00234ab 100644 (file)
        chosen {
                stdout-path = "serial2:1500000n8";
        };
+
+       vcc_phy: vcc-phy-regulator {
+               compatible = "regulator-fixed";
+               regulator-name = "vcc_phy";
+               regulator-always-on;
+               regulator-boot-on;
+       };
+};
+
+&gmac2phy {
+       phy-supply = <&vcc_phy>;
+       clock_in_out = "output";
+       assigned-clocks = <&cru SCLK_MAC2PHY_SRC>;
+       assigned-clock-rate = <50000000>;
+       assigned-clocks = <&cru SCLK_MAC2PHY>;
+       assigned-clock-parents = <&cru SCLK_MAC2PHY_SRC>;
+       status = "okay";
 };
 
 &uart2 {