colinh
Posts: 123
Joined: Tue Dec 03, 2013 11:59 pm

Is the green STATUS "ACT" LED (D5) accessible on an RPi 4B ?

Sun Mar 12, 2023 12:43 pm

ie. Can it be switched on/off using a GPIO pin? If so, which one?

I can't tell from the *reduced* schematic :-(


It used to be on GPIO_16 (STATUS_LED_N) on the original RPi.

colinh
Posts: 123
Joined: Tue Dec 03, 2013 11:59 pm

Re: Is the green STATUS "ACT" LED (D5) accessible on an RPi 4B ?

Sun Mar 12, 2023 1:59 pm

OK, so I'm learning about device-trees...

Code: Select all

$ dtc -O dts bcm2711-rpi-4-b.dtb 
gives

Code: Select all

...
    leds {
        compatible = "gpio-leds";
        phandle = <0xe3>;

        led-act {
            label = "led0";
            default-state = "keep";
            linux,default-trigger = "mmc0";
            gpios = <0x07 0x2a 0x00>;
            phandle = <0x42>;
        };
...
So, I'll try 0x2a (ie. 42)...

aBUGSworstnightmare
Posts: 7042
Joined: Tue Jun 30, 2015 1:35 pm

Re: Is the green STATUS "ACT" LED (D5) accessible on an RPi 4B ?

Mon Mar 20, 2023 3:22 pm

colinh wrote:
Sun Mar 12, 2023 1:59 pm
OK, so I'm learning about device-trees...

Code: Select all

$ dtc -O dts bcm2711-rpi-4-b.dtb 
gives

Code: Select all

...
    leds {
        compatible = "gpio-leds";
        phandle = <0xe3>;

        led-act {
            label = "led0";
            default-state = "keep";
            linux,default-trigger = "mmc0";
            gpios = <0x07 0x2a 0x00>;
            phandle = <0x42>;
        };
...
So, I'll try 0x2a (ie. 42)...
... why not simply look at the source file
https://github.com/raspberrypi/linux/bl ... -b.dts#L16 and https://github.com/raspberrypi/linux/bl ... b.dts#L523

Return to “Bare metal, Assembly language”