The red LED on the on EspressoBin v5 stopped working.


Recommended Posts

Hi there,

 

The red LED on the EspressoBin v5 stopped working at Version 20.11.

 

I opgrade from Armbian_20.02.0-rc1_Espressobin_buster_current_4.19.98
to the laetest version Armbian_20.11_Espressobin_buster_current_5.8.18.
Also not working with Armbian_21.02.0-trunk.18_Espressobin_buster_current_5.8.18.


On Armbian_20.02.0-rc1 to Armbian_20.05.2:

root@espressobin:/sys/class/leds# ls -al
total 0
drwxr-xr-x  2 root root 0 Jan 25  2020 .
drwxr-xr-x 51 root root 0 Feb 14  2019 ..
lrwxrwxrwx  1 root root 0 Jan 25  2020 espressobin:red:usr -> ../../devices/platform/leds/leds/espressobin:red:usr
lrwxrwxrwx  1 root root 0 Jan 25  2020 mmc0:: -> ../../devices/platform/soc/soc:internal-regs@d0000000/d00d8000.sdhci/leds/mmc0::
lrwxrwxrwx  1 root root 0 Jan 25  2020 mmc1:: -> ../../devices/platform/soc/soc:internal-regs@d0000000/d00d0000.sdhci/leds/mmc1::
root@espressobin:/sys/class/leds#
root@espressobin:/sys/class/leds/espressobin:red:usr# ls -al
total 0
-rw-r--r-- 1 root root 4096 Nov 30 15:37 brightness
lrwxrwxrwx 1 root root    0 Nov 30 15:37 device -> ../../../leds
-r--r--r-- 1 root root 4096 Nov 30 15:37 max_brightness
drwxr-xr-x 2 root root    0 Jan 25  2020 power
lrwxrwxrwx 1 root root    0 Jan 25  2020 subsystem -> ../../../../../class/leds
-rw-r--r-- 1 root root 4096 Nov 30 15:37 trigger
-rw-r--r-- 1 root root 4096 Jan 25  2020 uevent
root@espressobin:/sys/class/leds/espressobin:red:usr#

user_led_on:
echo 255 > /sys/class/leds/espressobin:red:usr/brightness

 

user_led_off:
echo 0 > /sys/class/leds/espressobin:red:usr/brightness

 

user_led_trigger:
echo heartbeat > /sys/class/leds/espressobin:red:usr/trigger

 

Now on Armbian_20.11:

root@espressobin:/sys/class/leds# ls -al
total 0
drwxr-xr-x  2 root root 0 Nov 25 12:19 .
drwxr-xr-x 54 root root 0 Feb 14  2019 ..
lrwxrwxrwx  1 root root 0 Nov 25 12:19 mmc0:: -> ../../devices/platform/soc/soc:internal-regs@d0000000/d00d0000.sdhci/leds/mmc0::
root@espressobin:/sys/class/leds#

Its seems file armada-3720-espressobin.dtb this not supported more.
Is there also another way that it works again?

Any suggestion ? 

 

Kind regards,
Thanks

Link to post
Share on other sites
Donate and support the project!

Which one is red led? IIRC espressobin v5 has only 2 leds: power which is always on (when power adapter is attached) and wifi led which is conrolled by wifi card (if you have e.g. ath9k card you can control it via ath9k driver). There is also third led (labeled led2) but this one is non-working due to HW bug.

Link to post
Share on other sites

I have good news!!!

 

The red LED2 now also work with Armbian_20.11.6_Espressobin_buster_current_5.8.18.

 _____                                   _     _
| ____|___ _ __  _ __ ___  ___ ___  ___ | |__ (_)_ __
|  _| / __| '_ \| '__/ _ \/ __/ __|/ _ \| '_ \| | '_ \
| |___\__ \ |_) | | |  __/\__ \__ \ (_) | |_) | | | | |
|_____|___/ .__/|_|  \___||___/___/\___/|_.__/|_|_| |_|
          |_|
Welcome to Armbian 20.11.6 Buster with Linux 5.8.18-mvebu64

 

Compiled successfully with "linux-source-5.8.18-mvebu64"
Added to the file "armada-3720-espressobin.dtsi".

        vcc_sd_reg1: regulator {
		compatible = "regulator-gpio";
		regulator-name = "vcc_sd1";
		regulator-min-microvolt = <1800000>;
		regulator-max-microvolt = <3300000>;
		regulator-boot-on;

		gpios = <&gpionb 4 GPIO_ACTIVE_HIGH>;
		gpios-states = <0>;
		states = <1800000 0x1
			  3300000 0x0>;
                enable-active-high;
	};
	
	leds {
		compatible = "gpio-leds";
		
		red {
			label = "espressobin:red:usr";
			gpios = <&gpionb 2 GPIO_ACTIVE_LOW>;
		};
	};

These files are compiled:
armada-3720-espressobin.dtb
armada-3720-espressobin-emmc.dtb
armada-3720-espressobin-v7.dtb
armada-3720-espressobin-v7-emmc.dtb

 

Maybe it can be added to future versions if it is approved.

Link to post
Share on other sites

This LED2 just works for me. So what is "Pali" talking about?

I wanted to upload a photo that shows that LED2 is on, but there is no facility on the web to add a photo.

Can "Pali" show the other EspressoBin v7 users how to turn LED2 on and off?

Link to post
Share on other sites

I have been communicating with Globalscaletechnologies and they confirmed me that LED2 is broken on v5 and cannot be fixed. On v7 it is working fine, I have prepared patch (now in mainline kernel) for it which other people tested and it worked. I do not have v7 so cannot show it, but relevant file is exported via /sys/class/leds/led2/brightness.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...