Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LibreSDR - LED support #65

Open
sq6emm opened this issue Feb 14, 2025 · 3 comments
Open

LibreSDR - LED support #65

sq6emm opened this issue Feb 14, 2025 · 3 comments
Labels
enhancement New feature or request libresdr

Comments

@sq6emm
Copy link
Contributor

sq6emm commented Feb 14, 2025

It seems that we dont have any LED communication of LibreSDR with outside world.

I was able to identify 4 LEDs on schematic and the real PCB:

https://github.com/day0wl/libresdr-fw/blob/main/zynqsdr_rev5.pdf

D1 - R11 / DONE_0 (I guess this is our activity/flashing LED)
D2 - PS_POR# - PG_ALL / C7 - PS_POR_B_500 (seems like power LED on 3.3V)
D10 - PL_LED0 - J20 / IO_L17P_T2_AD5P_35 (I guess this is 10mhz or pps ref)
D13 - PL_LED1 - H20 / IO_L17N_T2_AD5N_35 (I guess this is 10mhz or pps ref)
ACTLED0 - ethernet LED
ACTLED1 - ethernet LED

The only reference to LEDs in the code I was able to find in:
board/libre/dts/zynq-libre.dts

                led0 {
                        label = "led0:green";
                        gpios = <&gpio0 15 0>;
                        linux,default-trigger = "heartbeat";
                };

Unfortunatelly I am unable to map that anyhow to schematics... I guess its done in fpga?

Maybe it would be worth to map D1 diode to have that activity?

@F5OEO F5OEO added enhancement New feature or request libresdr labels Feb 17, 2025
@F5OEO
Copy link
Owner

F5OEO commented Feb 18, 2025

Until I misunderstand :
DONE_0(R11) is wire to D1 : it should be 1 as soon as the fpga is running. It could not be programmed by PS, so it could not be an activity led.
D2 is power led : fixed
So only D10 and D13 could be use to indicate some status.

@sq6emm
Copy link
Contributor Author

sq6emm commented Feb 19, 2025

Seems you are right:)
Only the D10/D13 so 10MHz/PPS diodes can be used to indicate status. But then most probably they should be only used for their designed role... So led0 should be removed from the code?

@sq6emm
Copy link
Contributor Author

sq6emm commented Feb 19, 2025

LibreSDR from OpenSourceSDR on their default firmware after booting from flash is blinking with PPS LED (D13)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request libresdr
Projects
None yet
Development

No branches or pull requests

2 participants