Add support for HiSource K0402WS-V3.0.#97
Conversation
5b303f1 to
d37628f
Compare
|
Could you give PR #107 a try regarding the LED configuration? I see that the LED-pads are configured very differently, but the logical side, i.e. the led-sets and the led-ids could already be adapted. This then allows to assign different functions to the LEDs. I will have to look into what to do about the LED-pads, which is the hardware configuration side, whereas the ledids/ledsets are the logic for the ASIC... |
|
I had thought, that maybe the values for I will look how to set this up in |
|
@logicog I tried the PR - and as expected it is not working correctly. I can only get 4 of the needed 12 needed LEDs working. |
|
Did you add the correct numbers for the LED-pad values in a "magic" configuration routine, or are already the LED-sets wrong? In the discussion for PR #107 it seems we may configure just the LED-sets with the de-magiced setup, but keep unstructured values for the LED-pads. But I am also working on configuring those via a mapping table pad <-> LED. |
|
@logicog A "combined" approach seems to work - I can strip down the magic number function to: Plus run your new configuration, and I get a functional though not totally identical led signaling. |
|
You should be able to replace even the 6 bits of the |
d37628f to
dbb8fe1
Compare
There is now a custom machine init function in the General LED setup PR. If you still need that, it should get you there. |
|
@logicog Currently it does not look like that is needed for the K0402WS. |
Perfect! Sounds like that both PRs are on the right way. For the PR #107 we will need to see whether the offered options are really all that is needed to support the LEDs of all the currently known devices, and there is that switch from @vDorst that still is resisting our efforts. |
|
A comment on the merges from main into this PR. To get a clean PR, many people use the following strategy: If you need to change a PR, you can do: This way your commits always sit on top of the current main, and only those are seen in the PR. |
ed3ee0e to
d2edb92
Compare
c1673cb to
75b06ac
Compare
|
This is ready for merge now. |
|
@TylerDurden-23 this PR looks good, one question: Could you also make some documentation about your device, like a PCB photo and a simple markdown file? See examples in the |
|
@vDorst The PCB photos are already committed. |
|
That is great, would you like to make a small/simple document about the device? |
Added information about UART baud rate and installation method.
Emphasize the efficiency improvement with 5V power supply.
|
@vDorst Added a small documentation. |
|
Thanks you very much! |
|
I just see this not correct, but I guess I prompted that due to me incorrectly naming that variable. The numbers may be 0, 1, 2, where 0 is not an SFP, 1 is the left SFP port and 2 is the right port. This associates a port with the respective SFP cage. |
|
Sorry, I did not pay enough attention, there was a misunderstanding about the role of the variable. See also PR #122 . I don not think it is possible to just remove a commit. And probably it would not be good practice, as it is no longer traceable. Can you make a PR for this? Sorry for the additional work :-( |
|
@logicog I create a new PR. |
As discussed in #86.
The magic number LED approach is taken from #44 and can be reused there.