avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avrdude-dev] [PATCH 0/1] New programmer type: linuxspi


From: Ralf Ramsauer
Subject: [avrdude-dev] [PATCH 0/1] New programmer type: linuxspi
Date: Mon, 24 Sep 2018 22:49:31 +0200

Hi Joerg,
Dear avrdude devs,

this adds the linuxspi programmer type to avrdude. It allows to flash AVRs via
Linux's spidev interface (/dev/spidev...) together with a GPIO reset pin that is
attached to a gpiochip (/dev/gpiochip...).

Initially, this code was written by Kevin (CC'ed) almost half a decade ago.
Back then, he sent it to the list with no responses. Nevertheless, there are
quite a few upvotes on the web interface [1] :-)

I picked up his code, rebased it to latest upstream, switched from the
deprecated Linux GPIO sysfs accessors to the 'newer' linux/gpio.h API and
massaged some parts here and there.

This programmer type helps me in one of my projects where I have a Raspberry Pi
with an AVR microcontroller attached to a Pi hat. This code allows me to easily
flash it on-line, as I can simply use the Raspberry's SPI lines.

I'd appreciate if you could drop some comments on the code and consider its
integration.

Let me also Cc Radoslav Kolev, who wrote the linuxgpio driver, a similar
programmer. Some parts (afaict) might be c&p'ed from his code.

Thanks!
  Ralf

[1] https://savannah.nongnu.org/patch/?8228

Kevin Cuzner (1):
  Implement new programmer type: linuxspi

 avrdude/Makefile.am      |   2 +
 avrdude/avrdude.conf.in  |  14 ++
 avrdude/configure.ac     |  27 +++-
 avrdude/doc/avrdude.texi |  20 +++
 avrdude/linuxspi.c       | 302 +++++++++++++++++++++++++++++++++++++++
 avrdude/linuxspi.h       |  35 +++++
 avrdude/pgm_type.c       |   2 +
 7 files changed, 401 insertions(+), 1 deletion(-)
 create mode 100644 avrdude/linuxspi.c
 create mode 100644 avrdude/linuxspi.h

-- 
2.19.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]