Skip to contentSkip to conversation

sunxi: Enable EMAC on A83T boards using Realtek RTL8211E PHY

PATCH Superseded Chen-Yu Tsai 1 participant 3 messages Apr 19, 2019

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

v2 cover sunxi: Enable EMAC on A83T boards using Realtek RTL8211E PHY

From: Chen-Yu Tsai <[email protected]>

Hi everyone,

This series enables EMAC (Ethernet controller) on two A83T boards, the Cubietruck Plus and Bananapi M3.

This series is now based on sunxi/next, which has patches that convert sun8i-emac to use the common CLK and DM_RESET framework.

The two patches enable the sun8i-emac and Realtek PHY driver in their respective defconfigs. The device trees already have the EMAC enabled. For the Bananapi M3, the regulator providing the I/O voltages is raised to 3.3V.

As I currently do not have access to my boards, testing by others is requested.

Regards
ChenYu

Changes in v2:
- Dropped clk/reset related changes in favor of DM CLK / RESET support
- Raised DLDO3 for RGMII I/O on Bananapi M3 to 3.3V per design

Chen-Yu Tsai (2):
sunxi: Enable EMAC on the Cubietruck Plus
sunxi: Enable EMAC on the Bananapi M3

 configs/Cubietruck_plus_defconfig | 2 ++
 configs/Sinovoip_BPI_M3_defconfig | 4 +++-
 2 files changed, 5 insertions(+), 1 deletion(-)
Signature · 1 line
2.20.1
#1 lore raw

PATCH v2 1/2 sunxi: Enable EMAC on the Cubietruck Plus

From: Chen-Yu Tsai <[email protected]>

The Cubietruck Plus has an RTL8211E PHY connected to the EMAC using RGMII. The PHY is powered by DLDO4 @ 3.3V, while the I/O pins are powered by DLDO3 @ 2.5V.

This patch enables the EMAC and Realtek PHY drivers in the defconfig. The device tree file already has the EMAC enabled.

---

Changes in v2: None

 configs/Cubietruck_plus_defconfig | 2 ++
 1 file changed, 2 insertions(+)
configs/Cubietruck_plus_defconfig +2 -0
index 869bffcfca0c..044af12779c6 100644
@@ -20,6 +20,8 @@ CONFIG_CONSOLE_MUX=y
 # CONFIG_SPL_DOS_PARTITION is not set
 # CONFIG_SPL_EFI_PARTITION is not set
 CONFIG_DEFAULT_DEVICE_TREE="sun8i-a83t-cubietruck-plus"
+CONFIG_PHY_REALTEK=y
+CONFIG_SUN8I_EMAC=y
 CONFIG_AXP_DLDO3_VOLT=2500
 CONFIG_AXP_DLDO4_VOLT=3300
 CONFIG_AXP_FLDO1_VOLT=1200
Signature · 1 line
2.20.1
#2 lore raw

PATCH v2 2/2 sunxi: Enable EMAC on the Bananapi M3

In reply to Chen-Yu Tsai

From: Chen-Yu Tsai <[email protected]>

The Bananapi M3 has an RTL8211E PHY connected to the EMAC using RGMII. The PHY is powered by DCDC1 through SW @ 3.3V.

The board is designed to use 3.3V with RGMII, instead of the standard reduced voltage of 2.5V we see everywhere. DLDO3, which provides the I/O voltages, is raised to match.

This patch enables the EMAC and Realtek PHY drivers in the defconfig. The device tree file already has the EMAC enabled.

---

Changes in v2:
- Dropped clk/reset related changes in favor of DM CLK / RESET support
- Raised DLDO3 for RGMII I/O on Bananapi M3 to 3.3V per design

 configs/Sinovoip_BPI_M3_defconfig | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
configs/Sinovoip_BPI_M3_defconfig +3 -1
index 79743a9c9a51..b9ab00cb8a29 100644
@@ -21,8 +21,10 @@ CONFIG_CONSOLE_MUX=y
 # CONFIG_SPL_DOS_PARTITION is not set
 # CONFIG_SPL_EFI_PARTITION is not set
 CONFIG_DEFAULT_DEVICE_TREE="sun8i-a83t-bananapi-m3"
+CONFIG_PHY_REALTEK=y
+CONFIG_SUN8I_EMAC=y
 CONFIG_AXP_DCDC5_VOLT=1200
-CONFIG_AXP_DLDO3_VOLT=2500
+CONFIG_AXP_DLDO3_VOLT=3300
 CONFIG_AXP_SW_ON=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_OHCI_HCD=y
Signature · 1 line
2.20.1