ARM: dts: enable SD and GMAC at rk3288-evb
authorRandy Li <randy.li@rock-chips.com>
Wed, 20 Jul 2016 11:58:40 +0000 (19:58 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 30 Nov 2016 02:22:30 +0000 (10:22 +0800)
There is a bug in GMAC IP, it supports RGMII clock but not a speed
mode for it.

Change-Id: I8e5cca355c30920db37400901d3411eebca711ae
Signed-off-by: Randy Li <randy.li@rock-chips.com>
arch/arm/boot/dts/rk3288-evb.dtsi
arch/arm/boot/dts/rk3288.dtsi

index d621b540cac3c4e3f9d06b726ed18bad9b2c63fb..976f3276049cbf97ace726ae095f877f6c47d3aa 100644 (file)
         */
        vcc_sd: sdmmc-regulator {
                compatible = "regulator-fixed";
-               gpio = <&gpio7 11 GPIO_ACTIVE_LOW>;
                pinctrl-names = "default";
                pinctrl-0 = <&sdmmc_pwr>;
                regulator-name = "vcc_sd";
        status = "okay";
 };
 
+&gmac {
+       phy-supply = <&vcc_phy>;
+       phy-mode = "rgmii";
+       clock_in_out = "input";
+       snps,reset-gpio = <&gpio4 7 0>;
+       snps,reset-active-low;
+       snps,reset-delays-us = <0 10000 1000000>;
+       assigned-clocks = <&cru SCLK_MAC>;
+       assigned-clock-parents = <&ext_gmac>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&rgmii_pins>;
+       tx_delay = <0x30>;
+       rx_delay = <0x10>;
+       status = "ok";
+};
+
 &hdmi {
        #address-cells = <1>;
        #size-cells = <0>;
        status = "okay";
        vmmc-supply = <&vcc_sd>;
        vqmmc-supply = <&vccio_sd>;
+       supports-sd;
 };
 
 &gmac {
        pinctrl-0 = <&rgmii_pins>;
        tx_delay = <0x30>;
        rx_delay = <0x10>;
-       status = "ok";
+       status = "okay";
 };
 
 &edp_phy {
index f65e406f2a607b23b69151ad491132124542512f..422760e63814122de5b830db0c836d527611da75 100644 (file)
                        "aclk_mac", "pclk_mac";
                resets = <&cru SRST_MAC>;
                reset-names = "stmmaceth";
+               max-speed = <100>;
                status = "disabled";
        };