From: Roger Chen <roger.chen@rock-chips.com>
To: heiko@sntech.de
Cc: linux-rockchip@lists.infradead.org, zhengxing@rock-chips.com,
robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com,
ijc+devicetree@hellion.org.uk, galak@codeaurora.org,
peppe.cavallaro@st.com, alexandre.torgue@st.com,
davem@davemloft.net, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
roger.chen@rock-chips.com
Subject: [PATCH 3/3] arm64: dts: rockchip: add GMAC dt nodes for RK3399 evb
Date: Thu, 11 Aug 2016 15:24:48 +0800 [thread overview]
Message-ID: <1470900288-10109-4-git-send-email-roger.chen@rock-chips.com> (raw)
In-Reply-To: <1470900288-10109-1-git-send-email-roger.chen@rock-chips.com>
This patch add ethernet GMAC dt nodes for RK3399 evaluation board.
Signed-off-by: Roger Chen <roger.chen@rock-chips.com>
---
arch/arm64/boot/dts/rockchip/rk3399-evb.dts | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-evb.dts b/arch/arm64/boot/dts/rockchip/rk3399-evb.dts
index d33aa06..5a076e0 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-evb.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-evb.dts
@@ -69,6 +69,13 @@
regulator-max-microvolt = <3300000>;
};
+ clkin_gmac: external-gmac-clock {
+ compatible = "fixed-clock";
+ clock-frequency = <125000000>;
+ clock-output-names = "clkin_gmac";
+ #clock-cells = <0>;
+ };
+
vcc_phy: vcc-phy-regulator {
compatible = "regulator-fixed";
regulator-name = "vcc_phy";
@@ -134,3 +141,19 @@
};
};
};
+
+&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_RMII_SRC>;
+ assigned-clock-parents = <&clkin_gmac>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&rgmii_pins>;
+ tx_delay = <0x28>;
+ rx_delay = <0x11>;
+ status = "okay";
+};
--
1.9.1
next prev parent reply other threads:[~2016-08-11 7:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-11 7:24 [PATCH 0/3] support GMAC for RK3399 & RK3366 Roger Chen
2016-08-11 7:24 ` [PATCH 1/3] net: stmmac: dwmac-rk: add rk3366 & rk3399 specific data Roger Chen
[not found] ` <1470900288-10109-2-git-send-email-roger.chen-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2016-08-11 8:12 ` Heiko Stübner
2016-08-12 18:37 ` Rob Herring
[not found] ` <1470900288-10109-1-git-send-email-roger.chen-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2016-08-11 7:24 ` [PATCH 2/3] arm64: dts: rockchip: add GMAC dt nodes for rk3399 SoC Roger Chen
2016-09-01 11:39 ` [PATCH 0/3] support GMAC for RK3399 & RK3366 Heiko Stübner
2016-08-11 7:24 ` Roger Chen [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-07-06 10:51 [PATCH 0/3] *** support GMAC for RK3399 & RK3366 *** Roger Chen
[not found] ` <1467802291-6487-1-git-send-email-roger.chen-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2016-07-06 10:51 ` [PATCH 3/3] arm64: dts: rockchip: add GMAC dt nodes for RK3399 evb Roger Chen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1470900288-10109-4-git-send-email-roger.chen@rock-chips.com \
--to=roger.chen@rock-chips.com \
--cc=alexandre.torgue@st.com \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=heiko@sntech.de \
--cc=ijc+devicetree@hellion.org.uk \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=mark.rutland@arm.com \
--cc=netdev@vger.kernel.org \
--cc=pawel.moll@arm.com \
--cc=peppe.cavallaro@st.com \
--cc=robh+dt@kernel.org \
--cc=zhengxing@rock-chips.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).