Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1600491
| Path | csiph.com!goblin2!goblin.stu.neva.ru!news.unit0.net!news.mixmin.net!aioe.org!news.servidellagleba.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Corentin Labbe <clabbe.montjoie@gmail.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 08/20] ARM: dts: sun8i: Enable dwmac-sun8i on the Banana Pi M2+ |
| Date | Tue, 14 Mar 2017 15:30:02 +0100 |
| Message-ID | <tkVCy-1ny-29@gated-at.bofh.it> (permalink) |
| References | <tkVCx-1ny-1@gated-at.bofh.it> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=tZ5YQyuGPte3GXd080YsX6SwlwXX717MXWH/efhC4GA=; b=WQwN1o+XDmjdt0MwOt/e/Z267m7XPftbD7niARYqq5+rT6D0i4NRDwAnLKPWWf6aXl 9451B/I+45gBUY0UmMkEOBGctfNQAfHgjBZ4csDQuS05gIDhDgmiIS0G8yXwWIdzB3dv hh7eNPg00Zi9mGZqoLpmPvUszlG12IsLMZq3/JkaQ3rw5CvIOygWvKsA51MbildH2a+V B9Fhfjl4i72VjrDN2C1HjxAgT2GiEf9VHzN8jaViyd0Tn0pTwGcZNt2w8QvVysDH+qhQ yjOAJadTyP3+w9zJIA24gz6jerOsutMRhYEORe1KTUM10GluIj6obNCndOo7aYHAOeHF UXLg== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=tZ5YQyuGPte3GXd080YsX6SwlwXX717MXWH/efhC4GA=; b=FOgUArELXXPFo6H9SD/7N10Kmk/Enr9HRlxmtYrbIC4S0L/kePEvdnt112k5F8Wygv gDXZ7/izXHxTCKk0xTMi4gmqSWFDqx3Mq72gP0MCln9IC3ajZDhpMT520IgvhS9PVaC1 DHqsQFjn3iTMA/SKK4a8Hr3i1p0ktaSSRtMSH4JBeziVDcQJ+JChkzzPHZwDe+2vW3je 6Boux2qj2zv98y1xmTDYbcW6hswwCrktjc7nr9/Hs9KIOXIVdMuNrTzveoB/87a3QN14 EXTrBQjMDw9QEKzk08r0M0njJU0yAK8R9PQ3rdlivaiigI5xU2S35EXvJfQ7ALJ2Trg1 bgLQ== |
| X-Gm-Message-State | AFeK/H190tk/DSXgN813rBaJyOMTzpvHyTsWhutvbikTjP+5GXIrpmSJry8MXb1/f1pXrA== |
| X-Received | by 10.28.57.131 with SMTP id g125mr28220wma.33.1489501281540; Tue, 14 Mar 2017 07:21:21 -0700 (PDT) |
| X-Mailer | git-send-email 2.10.2 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 66 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | f.fainelli@gmail.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, LABBE Corentin <clabbe.montjoie@gmail.com> |
| X-Original-Date | Tue, 14 Mar 2017 15:18:44 +0100 |
| X-Original-Message-ID | <20170314141856.24560-9-clabbe.montjoie@gmail.com> |
| X-Original-References | <20170314141856.24560-1-clabbe.montjoie@gmail.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1600491 |
Show key headers only | View raw
From: LABBE Corentin <clabbe.montjoie@gmail.com>
The dwmac-sun8i hardware is present on the Banana Pi M2+
It uses an external PHY rtl8211e via RGMII.
This patch create the needed regulator, emac and phy nodes.
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
---
arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts | 37 +++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts b/arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts
index 52acbe1..30b0a41 100644
--- a/arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts
+++ b/arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts
@@ -90,6 +90,18 @@
pinctrl-0 = <&wifi_en_bpi_m2p>;
reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; /* PL7 */
};
+
+ reg_gmac_3v3: gmac-3v3 {
+ compatible = "regulator-fixed";
+ pinctrl-names = "default";
+ pinctrl-0 = <&gmac_power_pin_orangepi>;
+ regulator-name = "gmac-3v3";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ startup-delay-us = <100000>;
+ enable-active-high;
+ gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>;
+ };
};
&ehci1 {
@@ -186,3 +198,28 @@
/* USB VBUS is on as long as VCC-IO is on */
status = "okay";
};
+
+&pio {
+ gmac_power_pin_orangepi: gmac_power_pin@0 {
+ pins = "PD6";
+ function = "gpio_out";
+ drive-strength = <10>;
+ };
+};
+
+&mdio {
+ ext_rgmii_phy: ethernet-phy@1 {
+ reg = <0>;
+ };
+};
+
+&emac {
+ pinctrl-names = "default";
+ pinctrl-0 = <&emac_rgmii_pins>;
+ phy-supply = <®_gmac_3v3>;
+ phy-handle = <&ext_rgmii_phy>;
+ phy-mode = "rgmii";
+
+ allwinner,leds-active-low;
+ status = "okay";
+};
--
2.10.2
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 00/20] net-next: stmmac: add dwmac-sun8i ethernet driver Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-03-14 15:30 +0100
[PATCH v2 03/20] ARM: sun8i: dt: Add DT bindings documentation for Allwinner dwmac-sun8i Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-03-14 15:30 +0100
Re: [PATCH v2 03/20] ARM: sun8i: dt: Add DT bindings documentation for Allwinner dwmac-sun8i Rob Herring <robh@kernel.org> - 2017-03-20 23:30 +0100
[PATCH v2 18/20] ARM: dts: sun50i-a64: enable dwmac-sun8i on the BananaPi M64 Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-03-14 15:30 +0100
[PATCH v2 06/20] ARM: dts: sunxi-h3-h5: Add dt node for the syscon control module Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-03-14 15:30 +0100
[PATCH v2 13/20] ARM: dts: sun8i: orangepi-pc-plus: Set EMAC activity LEDs to active high Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-03-14 15:30 +0100
[PATCH v2 16/20] ARM: dts: sun50i-a64: enable dwmac-sun8i on pine64 Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-03-14 15:30 +0100
Re: [PATCH v2 16/20] ARM: dts: sun50i-a64: enable dwmac-sun8i on pine64 Florian Fainelli <f.fainelli@gmail.com> - 2017-03-14 19:30 +0100
[PATCH v2 14/20] ARM64: dts: sun50i-a64: Add dt node for the syscon control module Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-03-14 15:30 +0100
Re: [PATCH v2 14/20] ARM64: dts: sun50i-a64: Add dt node for the syscon control module Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> - 2017-03-15 12:10 +0100
[PATCH v2 17/20] ARM: dts: sun50i-a64: enable dwmac-sun8i on pine64 plus Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-03-14 15:30 +0100
[PATCH v2 01/20] net-next: stmmac: export stmmac_set_mac_addr/stmmac_get_mac_addr Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-03-14 15:30 +0100
[PATCH v2 04/20] ARM: sun8i: dt: Add DT bindings documentation for Allwinner syscon Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-03-14 15:30 +0100
Re: [PATCH v2 04/20] ARM: sun8i: dt: Add DT bindings documentation for Allwinner syscon Rob Herring <robh@kernel.org> - 2017-03-21 02:10 +0100
[PATCH v2 19/20] ARM: sunxi: Enable dwmac-sun8i driver on sunxi_defconfig Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-03-14 15:30 +0100
[PATCH v2 20/20] ARM: sunxi: Enable dwmac-sun8i driver on multi_v7_defconfig Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-03-14 15:30 +0100
[PATCH v2 09/20] ARM: dts: sun8i: Enable dwmac-sun8i on the Orange PI PC Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-03-14 15:30 +0100
[PATCH v2 12/20] ARM: dts: sun8i: Enable dwmac-sun8i on the Orange Pi plus Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-03-14 15:30 +0100
[PATCH v2 08/20] ARM: dts: sun8i: Enable dwmac-sun8i on the Banana Pi M2+ Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-03-14 15:30 +0100
[PATCH v2 05/20] net-next: stmmac: Add dwmac-sun8i Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-03-14 15:30 +0100
[PATCH v2 11/20] ARM: dts: sun8i: Enable dwmac-sun8i on the Orange PI One Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-03-14 15:30 +0100
[PATCH v2 10/20] ARM: dts: sun8i: Enable dwmac-sun8i on the Orange Pi 2 Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-03-14 15:30 +0100
[PATCH v2 15/20] ARM64: dts: sun50i-a64: add dwmac-sun8i Ethernet driver Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-03-14 15:30 +0100
[PATCH v2 07/20] ARM: dts: sunxi-h3-h5: add dwmac-sun8i ethernet driver Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-03-14 15:30 +0100
[PATCH v2 02/20] net-next: stmmac: add optional setup function Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-03-14 15:30 +0100
csiph-web