Modify

Opened 5 years ago

Last modified 4 years ago

#13632 new defect

just a few LED's working on RB2011*S

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: Cc:

Description

Not all LED's are working on RB2011*S - 1,2,3,4 are working as expected.. 5,6,7,8,9 and 10 keep dark.

affects 12.09 and trunk (r36817)

Attachments (0)

Change History (4)

comment:1 Changed 4 years ago by gminet

Here is a quick fix for at least the 5th gigabit led.
5 other FE leds are on the builtin AR8227 (switch1 on eth1). They are also connected to the AR8327 pins as they can act as 100mb link indication however.

--- mach-rb2011.c.orig	2013-12-31 13:03:16.136077523 +0100
+++ mach-rb2011.c	2014-01-01 13:25:03.784587433 +0100
@@ -117,11 +117,11 @@
 static struct ar8327_sgmii_cfg rb2011_ar8327_sgmii_cfg;

 static struct ar8327_led_cfg rb2011_ar8327_led_cfg = {
-	.led_ctrl0 = 0x0000c731,
+	.led_ctrl0 = 0xcf35cf35,
 	.led_ctrl1 = 0x00000000,
 	.led_ctrl2 = 0x00000000,
-	.led_ctrl3 = 0x0030c300,
-	.open_drain = false,
+	.led_ctrl3 = 0x03ffff00,
+	.open_drain = true,
 };

 static struct ar8327_platform_data rb2011_ar8327_data = {

comment:2 Changed 4 years ago by anonymous

I compile r39315 with that patch. No change in leds
what now ? more config needed?
/sys/class/leds is empty in Mikrotik RouterBOARD 2011UAS-2HnD

comment:3 Changed 4 years ago by gminet

No, nothing more needed. This has nothing to do with /sys/class/leds or gpio. These register settings configure the hardware chip to activate the directly wired leds. I had to clean the hole build tree however, patching an already built tree and rebuilding had no effect here.
Will try again against latest trunk.

comment:4 Changed 4 years ago by gminet

Similar change included in @39335

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.