All of lore.kernel.org
 help / color / mirror / Atom feed
From: andre.przywara@arm.com (Andre Przywara)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 07/10] arm64: dts: allwinner: a64: NanoPi-A64: Add Ethernet
Date: Fri,  6 Jul 2018 09:52:07 +0100	[thread overview]
Message-ID: <20180706085210.17952-8-andre.przywara@arm.com> (raw)
In-Reply-To: <20180706085210.17952-1-andre.przywara@arm.com>

The NanoPi-A64 has the usual Realtek Gbit PHY connected to the EMAC,
so add the respective nodes to the DT. The PHY is powered by the
VDD_SYS_3.3V line, which is always on.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
---
 arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts
index 5caba225b4f7..bd35a093e6cd 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts
@@ -51,6 +51,7 @@
 	compatible = "friendlyarm,nanopi-a64", "allwinner,sun50i-a64";
 
 	aliases {
+		ethernet0 = &emac;
 		serial0 = &uart0;
 	};
 
@@ -67,6 +68,15 @@
 	status = "okay";
 };
 
+&emac {
+	pinctrl-names = "default";
+	pinctrl-0 = <&rgmii_pins>;
+	phy-mode = "rgmii";
+	phy-handle = <&ext_rgmii_phy>;
+	phy-supply = <&reg_dcdc1>;
+	status = "okay";
+};
+
 /* i2c1 connected with gpio headers like pine64, bananapi */
 &i2c1 {
 	pinctrl-names = "default";
@@ -78,6 +88,13 @@
 	bias-pull-up;
 };
 
+&mdio {
+	ext_rgmii_phy: ethernet-phy at 1 {
+		compatible = "ethernet-phy-ieee802.3-c22";
+		reg = <1>;
+	};
+};
+
 &mmc0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&mmc0_pins>;
-- 
2.14.4

  parent reply	other threads:[~2018-07-06  8:52 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-06  8:52 [PATCH 00/10] arm64: dts: allwinner: A64 boards DT updates Andre Przywara
2018-07-06  8:52 ` [PATCH 01/10] arm64: dts: allwinner: a64: Add L2 cache nodes Andre Przywara
2018-07-06  8:52 ` [PATCH 02/10] arm64: dts: allwinner: a64: Add Pine64-LTS device tree file Andre Przywara
2018-07-06  8:52 ` [PATCH 03/10] arm64: dts: allwinner: a64: Olinuxino: fix DRAM voltage Andre Przywara
2018-07-06  8:55   ` [linux-sunxi] " Icenowy Zheng
2018-07-06  9:05     ` Andre Przywara
2018-07-06 14:58   ` Martin Lucina
2018-07-06  8:52 ` [PATCH 04/10] arm64: dts: allwinner: a64: Olinuxino: add Ethernet nodes Andre Przywara
2018-07-06 15:01   ` Martin Lucina
2018-07-06  8:52 ` [PATCH 05/10] arm64: dts: allwinner: a64: Olinuxino: enable USB Andre Przywara
2018-07-06 15:04   ` Martin Lucina
2018-07-06 15:35     ` Andre Przywara
2018-07-06 15:36       ` [linux-sunxi] " Icenowy Zheng
2018-07-06 15:46         ` Andre Przywara
2018-07-06 15:50           ` Icenowy Zheng
2018-07-06 16:17             ` Andre Przywara
2018-07-09 10:15               ` Martin Lucina
2018-07-09 11:30                 ` Andre Przywara
2018-07-09 11:54                   ` Martin Lucina
2018-07-09 13:43                     ` Andre Przywara
2018-07-09 14:49                       ` Martin Lucina
2018-07-09 15:27                         ` Andre Przywara
2018-07-06  8:52 ` [PATCH 06/10] arm64: dts: allwinner: a64: NanoPi-A64: Fix DCDC1 voltage Andre Przywara
2018-07-06  8:52 ` Andre Przywara [this message]
2018-07-06  8:52 ` [PATCH 08/10] arm64: dts: allwinner: a64: NanoPi-A64: Fix PortE voltage Andre Przywara
2018-07-06  9:03   ` Icenowy Zheng
2018-07-06  9:39     ` Andre Przywara
2018-07-06  9:45       ` Chen-Yu Tsai
2018-07-06  8:52 ` [PATCH 09/10] arm64: dts: allwinner: a64: NanoPi-A64: Add Wifi/Bluetooth chip Andre Przywara
2018-07-06  9:04   ` Icenowy Zheng
2018-07-06  9:38     ` Andre Przywara
2018-07-06 14:23   ` Sergey Suloev
2018-07-06 14:49     ` Andre Przywara
2018-07-06 14:49       ` [linux-sunxi] " Icenowy Zheng
2018-07-06 21:33       ` Sergey Suloev
2018-07-06  8:52 ` [PATCH 10/10] arm64: dts: allwinner: a64: NanoPi-A64: Add blue status LED Andre Przywara

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=20180706085210.17952-8-andre.przywara@arm.com \
    --to=andre.przywara@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.