mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 17:18:59 +00:00
2835df54ab
Removed upstreamed: generic/101-Use-stddefs.h-instead-of-compiler.h.patch[1] All patches automatically rebased. 1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.163&id=ddd2bb08bd99b7ee4442fbbe0f9b80236fdd71d2 Build system: x86_64 Build-tested: ramips/tplink_archer-a6-v3 Run-tested: ramips/tplink_archer-a6-v3 Signed-off-by: John Audia <therealgraysky@proton.me>
39 lines
1.2 KiB
Diff
39 lines
1.2 KiB
Diff
From 81c0004a6433ff90fa6129418802c3c367e453c2 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Marek=20Beh=C3=BAn?= <kabel@kernel.org>
|
|
Date: Mon, 4 Jul 2022 13:36:21 +0200
|
|
Subject: [PATCH] ARM: dts: turris-omnia: configure LED[0] pin function to
|
|
link/activity
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
The marvell PHY driver changes the LED[0] pin function to "On - 1000
|
|
Mbps Link, Off - Else".
|
|
|
|
Turris Omnia expects that the function is "On - Link, Blink - Activity,
|
|
Off - No link".
|
|
|
|
Use the `marvell,reg-init` DT property to change the function.
|
|
|
|
In the future, once netdev trigger will support HW offloading, we will
|
|
be able to have this configured via the combination of PHY driver and
|
|
leds-turris-omnia driver.
|
|
|
|
Signed-off-by: Marek Behún <kabel@kernel.org>
|
|
---
|
|
arch/arm/boot/dts/armada-385-turris-omnia.dts | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
--- a/arch/arm/boot/dts/armada-385-turris-omnia.dts
|
|
+++ b/arch/arm/boot/dts/armada-385-turris-omnia.dts
|
|
@@ -398,7 +398,8 @@
|
|
status = "okay";
|
|
compatible = "ethernet-phy-ieee802.3-c22";
|
|
reg = <1>;
|
|
- marvell,reg-init = <3 18 0 0x4985>;
|
|
+ marvell,reg-init = <3 18 0 0x4985>,
|
|
+ <3 16 0xfff0 0x0001>;
|
|
|
|
/* irq is connected to &pcawan pin 7 */
|
|
};
|