b71dd7260969cfde7beed03c5ce8b40934c16ea5
[openwrt/staging/pepe2k.git] /
1 From 81c0004a6433ff90fa6129418802c3c367e453c2 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Marek=20Beh=C3=BAn?= <kabel@kernel.org>
3 Date: Mon, 4 Jul 2022 13:36:21 +0200
4 Subject: [PATCH] ARM: dts: turris-omnia: configure LED[0] pin function to
5 link/activity
6 MIME-Version: 1.0
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
9
10 The marvell PHY driver changes the LED[0] pin function to "On - 1000
11 Mbps Link, Off - Else".
12
13 Turris Omnia expects that the function is "On - Link, Blink - Activity,
14 Off - No link".
15
16 Use the `marvell,reg-init` DT property to change the function.
17
18 In the future, once netdev trigger will support HW offloading, we will
19 be able to have this configured via the combination of PHY driver and
20 leds-turris-omnia driver.
21
22 Signed-off-by: Marek BehĂșn <kabel@kernel.org>
23 ---
24 arch/arm/boot/dts/armada-385-turris-omnia.dts | 3 ++-
25 1 file changed, 2 insertions(+), 1 deletion(-)
26
27 --- a/arch/arm/boot/dts/armada-385-turris-omnia.dts
28 +++ b/arch/arm/boot/dts/armada-385-turris-omnia.dts
29 @@ -398,7 +398,8 @@
30 status = "okay";
31 compatible = "ethernet-phy-ieee802.3-c22";
32 reg = <1>;
33 - marvell,reg-init = <3 18 0 0x4985>;
34 + marvell,reg-init = <3 18 0 0x4985>,
35 + <3 16 0xfff0 0x0001>;
36
37 /* irq is connected to &pcawan pin 7 */
38 };