Hi,

At this stage, this is still just an idea.

I initially thought I could dive into the Flashrom source code and easily clone/modify an existing bitbang programmer, but the project turned out to be much more complex than I expected, and I got lost navigating through numerous files and trying to guess their purpose.

Could you point me to a file defining one of the simplest existing bitbang SPI programmers? That way, I can use its structure as a reference while just replacing the low-level routines.

Thanks in advance for your help!


Le 17/03/2025 à 13:15, Anastasia Klimchuk a écrit :
Hello Pierre,

Thank you for sharing your idea!

I wanted to ask, which phase is your idea currently? Do you have
something working locally, or have you tried?

If you can make something working and share it as a patch, we can then
look at it and think of structure etc. The patch doesn't have to be
perfect from the very beginning, especially if you are looking for
guidance and open to advice and comments. Sometimes patches get
transformed a lot during code review.

If you can try to put what's in your head into a code and make it work
(your second paragraph)? What do you think?

On Thu, Mar 6, 2025 at 6:46 PM Pierre Colombier <pie...@abeille.com> wrote:
Hello,

I am proposing the introduction of a new programmer type based on
Bit-banging SPI using generic GPIO lines that are available on most
SoCs. While there is existing support for linux_spi, creating a
software-based SPI device using GPIOs currently involves complex
configurations with the device-tree or sysfs, which can be quite
cumbersome and technical.

I noticed there is a file named bitbang_spi.c within the source that
performs similar functionality. It might only be necessary to map the
lower layer to the appropriate functions from libgpiod to achieve this
and the most complicated may be the parsing of cmdline parameters.

I initially considered writing a patch directly and contributing it to
this project. However, given my limited familiarity with the current
codebase structure, I am not very confident in my ability to implement
this feature without guidance.

Thank you for considering this Request.

Best regards,



_______________________________________________
flashrom mailing list -- flashrom@flashrom.org
To unsubscribe send an email to flashrom-le...@flashrom.org


_______________________________________________
flashrom mailing list -- flashrom@flashrom.org
To unsubscribe send an email to flashrom-le...@flashrom.org

Reply via email to