ARM64: dts: rk3399-tb: add GMAC node for rk3399-tb
[firefly-linux-kernel-4.4.55.git] / arch / arm64 / boot / dts / rockchip / rk3399-tb.dtsi
index f09c9bd8b788c057e8c1df0c5448f4195499b267..8680cceb9bd5788c7e7d39ff330fa328ec559de1 100644 (file)
                enable-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
        };
 
+       ext_gmac: external-gmac-clock {
+               compatible = "fixed-clock";
+               clock-frequency = <125000000>;
+               clock-output-names = "ext_gmac";
+               #clock-cells = <0>;
+       };
+
+       vcc_phy: vcc-phy-regulator {
+               compatible = "regulator-fixed";
+               regulator-name = "vcc_phy";
+               regulator-always-on;
+               regulator-boot-on;
+       };
+
        io-domains {
                compatible = "rockchip,rk3399-io-voltage-domain";
                rockchip,grf = <&grf>;
 &cpu_b1 {
        cpu-supply = <&vdd_cpu_b>;
 };
+
+&gmac {
+       phy-supply = <&vcc_phy>;
+       phy-mode = "rgmii";
+       clock_in_out = "input";
+       snps,reset-gpio = <&gpio3 15 GPIO_ACTIVE_LOW>;
+       snps,reset-active-low;
+       snps,reset-delays-us = <0 10000 50000>;
+       assigned-clocks = <&cru SCLK_MAC>;
+       assigned-clock-parents = <&ext_gmac>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&rgmii_pins>;
+       tx_delay = <0x30>;
+       rx_delay = <0x10>;
+       status = "disabled";
+};