Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1474727
| From | Caesar Wang <wxt@rock-chips.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v4 6/6] arm64: dts: rockchip: enable the gmac for rk3399 evb board |
| Date | 2016-09-02 00:00 +0200 |
| Message-ID | <scIbD-7ol-23@gated-at.bofh.it> (permalink) |
| References | <scHSj-7dg-57@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Roger Chen <roger.chen@rock-chips.com>
We add the required and optional properties for evb board.
See the [0] to get the detail information.
[0]:
Documentation/devicetree/bindings/net/rockchip-dwmac.txt
Signed-off-by: Roger Chen <roger.chen@rock-chips.com>
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
---
Changes in v4: None
Changes in v3: None
Changes in v2: None
arch/arm64/boot/dts/rockchip/rk3399-evb.dts | 31 +++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-evb.dts b/arch/arm64/boot/dts/rockchip/rk3399-evb.dts
index d47b4e9..ed6f2e8 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-evb.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-evb.dts
@@ -94,12 +94,43 @@
regulator-always-on;
regulator-boot-on;
};
+
+ 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";
+ regulator-always-on;
+ regulator-boot-on;
+ };
+
};
&emmc_phy {
status = "okay";
};
+&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";
+};
+
&pwm0 {
status = "okay";
};
--
1.9.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v4 0/6] Support the rk3399 gmac and pd function Caesar Wang <wxt@rock-chips.com> - 2016-09-01 23:50 +0200
[PATCH v4 6/6] arm64: dts: rockchip: enable the gmac for rk3399 evb board Caesar Wang <wxt@rock-chips.com> - 2016-09-02 00:00 +0200
Re: [PATCH v4 6/6] arm64: dts: rockchip: enable the gmac for rk3399 evb board Heiko Stuebner <heiko@sntech.de> - 2016-09-07 20:20 +0200
[PATCH v4 2/6] net: stmmac: dwmac-rk: fixes the gmac resume after PD on/off Caesar Wang <wxt@rock-chips.com> - 2016-09-02 00:00 +0200
Re: [PATCH v4 4/6] arm64: dts: rockchip: add the gmac power domain on rk3399 Doug Anderson <dianders@chromium.org> - 2016-09-02 00:00 +0200
[PATCH v4 4/6] arm64: dts: rockchip: add the gmac power domain on rk3399 Caesar Wang <wxt@rock-chips.com> - 2016-09-02 00:10 +0200
Re: [PATCH v4 4/6] arm64: dts: rockchip: add the gmac power domain on rk3399 Heiko Stübner <heiko@sntech.de> - 2016-09-02 13:10 +0200
[PATCH v4 3/6] net: stmmac: dwmac-rk: add pd_gmac support for rk3399 Caesar Wang <wxt@rock-chips.com> - 2016-09-02 00:10 +0200
Re: [PATCH v4 0/6] Support the rk3399 gmac and pd function David Miller <davem@davemloft.net> - 2016-09-03 02:10 +0200
csiph-web