diff options
author | Jacob Chen <jacob2.chen@rock-chips.com> | 2017-02-23 14:20:16 +0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-03-16 16:03:47 -0600 |
commit | ee4bc340a0dd1b0d4e146c37049df28887895c6c (patch) | |
tree | d8207de18f16b93090634253b98b9f3141d5d421 /arch | |
parent | 9b21b4547f836c907f35734625e3317cc6c18201 (diff) |
ARM: dts: rockchip: enable gmac for rk3288 boards
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/dts/rk3288-evb.dtsi | 22 | ||||
-rw-r--r-- | arch/arm/dts/rk3288-popmetal.dtsi | 2 | ||||
-rw-r--r-- | arch/arm/dts/rk3288-tinker.dtsi | 2 |
3 files changed, 24 insertions, 2 deletions
diff --git a/arch/arm/dts/rk3288-evb.dtsi b/arch/arm/dts/rk3288-evb.dtsi index cb7d03e558..4960f3367c 100644 --- a/arch/arm/dts/rk3288-evb.dtsi +++ b/arch/arm/dts/rk3288-evb.dtsi @@ -11,6 +11,13 @@ 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>; @@ -98,6 +105,21 @@ 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"; diff --git a/arch/arm/dts/rk3288-popmetal.dtsi b/arch/arm/dts/rk3288-popmetal.dtsi index e5be4cb471..dd6ce8b69e 100644 --- a/arch/arm/dts/rk3288-popmetal.dtsi +++ b/arch/arm/dts/rk3288-popmetal.dtsi @@ -203,7 +203,7 @@ pinctrl-0 = <&rgmii_pins>; tx_delay = <0x30>; rx_delay = <0x10>; - status = "ok"; + status = "okay"; }; &hdmi { diff --git a/arch/arm/dts/rk3288-tinker.dtsi b/arch/arm/dts/rk3288-tinker.dtsi index ceb4e2bdb1..527493c9a3 100644 --- a/arch/arm/dts/rk3288-tinker.dtsi +++ b/arch/arm/dts/rk3288-tinker.dtsi @@ -149,7 +149,7 @@ pinctrl-0 = <&rgmii_pins>; tx_delay = <0x30>; rx_delay = <0x10>; - status = "ok"; + status = "okay"; }; &hdmi { |