From 24aeccc77a584aeeb60c1705793442513a641da8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Tue, 24 Sep 2019 12:18:13 +0200 Subject: [PATCH] [fix] Add a patch made to fix ethernet for pine64+ (#1576) --- ...-pine64-plus-add-PHY-regulator-delay.patch | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 patch/kernel/sunxi-dev/0001-arm64-pine64-plus-add-PHY-regulator-delay.patch diff --git a/patch/kernel/sunxi-dev/0001-arm64-pine64-plus-add-PHY-regulator-delay.patch b/patch/kernel/sunxi-dev/0001-arm64-pine64-plus-add-PHY-regulator-delay.patch new file mode 100644 index 0000000000..04629b8e82 --- /dev/null +++ b/patch/kernel/sunxi-dev/0001-arm64-pine64-plus-add-PHY-regulator-delay.patch @@ -0,0 +1,33 @@ +From bb0516f4d03ffe9bcc06f840e477ea665af94e9d Mon Sep 17 00:00:00 2001 +From: Jernej Skrabec +Date: Sun, 25 Aug 2019 14:40:10 +0200 +Subject: [PATCH] arm64: dts: allwinner: a64: pine64-plus: Add PHY regulator + delay + +Depending on kernel and bootloader configuration, it's possible that +Realtek ethernet PHY isn't powered on properly. It needs some time +before it can be used. + +Fix that by adding 100ms ramp delay to regulator responsible for +powering PHY. + +Fixes: 94dcfdc77fc5 ("arm64: allwinner: pine64-plus: Enable dwmac-sun8i") +Signed-off-by: Jernej Skrabec +--- + arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts +index 24f1aac366d6..9612a34c1762 100644 +--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts ++++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts +@@ -63,3 +63,7 @@ + reg = <1>; + }; + }; ++ ++®_dc1sw { ++ regulator-enable-ramp-delay = <100000>; ++}; +-- +2.23.0