Thread (1 message) 1 message, 1 author, 2017-08-02

[PATCH] ARM: dts: sun8i: h3: Enable EMAC with external PHY on NanoPi M1 Plus

From: Luis Araneda <hidden>
Date: 2017-08-02 02:39:41
Also in: linux-devicetree

Hi,

On Tue, Aug 1, 2017 at 3:55 AM, Chen-Yu Tsai [off-list ref] wrote:
On Tue, Aug 1, 2017 at 1:01 PM, Luis Araneda [off-list ref] wrote:
quoted
+&emac {
+       pinctrl-names = "default";
+       pinctrl-0 = <&emac_rgmii_pins>;
+       phy-supply = <&reg_gmac_3v3>;
+       phy-handle = <&ext_rgmii_phy>;
+       phy-mode = "rgmii";
+       allwinner,leds-active-low;
This property is for the internal PHY. You should not be using it
with an external PHY.
You're right. When reading the file "dwmac-sun8i.txt" I thought EPHY meant
External PHY, but it means Ethernet PHY (integrated).
I've tested the board without the property and the LEDs are working fine.
quoted
+       status = "okay";
+};
+
+&mdio {
+       ext_rgmii_phy: ethernet-phy at 1 {
+               compatible = "ethernet-phy-ieee802.3-c22";
+               reg = <0>;
Value in reg should match the address part of the node name.
Ok.

I'll be sending a v2 with the suggested changes.

Cheers,

Luis Araneda.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help