]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: dts: rockchip: enable gmac for rk3288 boards
authorJacob Chen <jacob2.chen@rock-chips.com>
Thu, 23 Feb 2017 06:20:16 +0000 (14:20 +0800)
committerSimon Glass <sjg@chromium.org>
Thu, 16 Mar 2017 22:03:47 +0000 (16:03 -0600)
Enable gmac interface for rk3288 board dts.
use "okay" not "ok"

Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/arm/dts/rk3288-evb.dtsi
arch/arm/dts/rk3288-popmetal.dtsi
arch/arm/dts/rk3288-tinker.dtsi

index cb7d03e5589b1ca9a6f1885659d42910c7cefba0..4960f3367c26828f2c3ca8d9f55e7d33c8bfeb1c 100644 (file)
                reg = <0 0x80000000>;
        };
 
+       ext_gmac: external-gmac-clock {
+               compatible = "fixed-clock";
+               #clock-cells = <0>;
+               clock-frequency = <125000000>;
+               clock-output-names = "ext_gmac";
+       };
+
        keys: gpio-keys {
                compatible = "gpio-keys";
                #address-cells = <1>;
        status = "okay";
 };
 
+&gmac {
+       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 = "okay";
+};
+
 &hdmi {
        ddc-i2c-bus = <&i2c5>;
        status = "okay";
index e5be4cb471ac99742f781c1ee9c5b0407ec5be83..dd6ce8b69e634c8fb9709e78d0ee4e5d04e9765d 100644 (file)
        pinctrl-0 = <&rgmii_pins>;
        tx_delay = <0x30>;
        rx_delay = <0x10>;
-       status = "ok";
+       status = "okay";
 };
 
 &hdmi {
index ceb4e2bdb191c8961dae04a06e25e63f1dc2b8a8..527493c9a36dc4fcf43af21d845b74a7fe1d6f5e 100644 (file)
        pinctrl-0 = <&rgmii_pins>;
        tx_delay = <0x30>;
        rx_delay = <0x10>;
-       status = "ok";
+       status = "okay";
 };
 
 &hdmi {