ARM64: dts: rk3399-tb: add GMAC node for rk3399-tb
authorRoger Chen <roger.chen@rock-chips.com>
Fri, 18 Mar 2016 06:22:06 +0000 (14:22 +0800)
committerGerrit Code Review <gerrit@rock-chips.com>
Fri, 18 Mar 2016 11:55:37 +0000 (19:55 +0800)
Change-Id: I31f984a40bf8e2c04243e47fed7435bd3e400c4c
Signed-off-by: Roger Chen <roger.chen@rock-chips.com>
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";
+};