Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1707287 > unrolled thread

[PATCH v4 10/12] ARM: dts: rk3228-evb: Enable the internal phy for gmac

Started byDavid Wu <david.wu@rock-chips.com>
First post2017-08-09 14:10 +0200
Last post2017-08-10 01:00 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v4 10/12] ARM: dts: rk3228-evb: Enable the internal phy for gmac David Wu <david.wu@rock-chips.com> - 2017-08-09 14:10 +0200
    Re: [PATCH v4 10/12] ARM: dts: rk3228-evb: Enable the internal phy for gmac Florian Fainelli <f.fainelli@gmail.com> - 2017-08-10 01:00 +0200

#1707287 — [PATCH v4 10/12] ARM: dts: rk3228-evb: Enable the internal phy for gmac

FromDavid Wu <david.wu@rock-chips.com>
Date2017-08-09 14:10 +0200
Subject[PATCH v4 10/12] ARM: dts: rk3228-evb: Enable the internal phy for gmac
Message-ID<ucxYf-6SW-23@gated-at.bofh.it>
This patch enables the internal phy for rk3228 evb board
by default.
To use the external 1000M phy on evb board, need to make
some switch of evb board to be on.

Signed-off-by: David Wu <david.wu@rock-chips.com>
---
 arch/arm/boot/dts/rk3228-evb.dts | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/arch/arm/boot/dts/rk3228-evb.dts b/arch/arm/boot/dts/rk3228-evb.dts
index 5883433..3784f26 100644
--- a/arch/arm/boot/dts/rk3228-evb.dts
+++ b/arch/arm/boot/dts/rk3228-evb.dts
@@ -50,6 +50,16 @@
 		device_type = "memory";
 		reg = <0x60000000 0x40000000>;
 	};
+
+	vcc_phy: vcc-phy-regulator {
+		compatible = "regulator-fixed";
+		enable-active-high;
+		regulator-name = "vcc_phy";
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <1800000>;
+		regulator-always-on;
+		regulator-boot-on;
+	};
 };
 
 &emmc {
@@ -60,6 +70,28 @@
 	status = "okay";
 };
 
+&gmac {
+	assigned-clocks = <&cru SCLK_MAC_SRC>;
+	assigned-clock-rates = <50000000>;
+	clock_in_out = "output";
+	phy-supply = <&vcc_phy>;
+	phy-mode = "rmii";
+	phy-handle = <&phy0>;
+	status = "okay";
+
+	mdio {
+		compatible = "snps,dwmac-mdio";
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		phy@0 {
+			compatible = "ethernet-phy-id1234.d400", "ethernet-phy-802.3-c22";
+			reg = <0>;
+			phy-is-internal;
+		};
+	};
+};
+
 &tsadc {
 	status = "okay";
 
-- 
1.9.1

[toc] | [next] | [standalone]


#1708049

FromFlorian Fainelli <f.fainelli@gmail.com>
Date2017-08-10 01:00 +0200
Message-ID<ucI7g-5hs-7@gated-at.bofh.it>
In reply to#1707287
On August 9, 2017 5:13:19 AM PDT, David Wu <david.wu@rock-chips.com> wrote:
>This patch enables the internal phy for rk3228 evb board
>by default.
>To use the external 1000M phy on evb board, need to make
>some switch of evb board to be on.
>
>Signed-off-by: David Wu <david.wu@rock-chips.com>


LGTM

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>

-- 
Florian

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web