mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v2 0/7] sandbox: add gpio support with libftdi1
@ 2018-01-14 21:22 Antony Pavlov
  2018-01-14 21:22 ` [PATCH v2 1/7] sandbox: avoid symbol conflict for {open, read, close}dir Antony Pavlov
                   ` (8 more replies)
  0 siblings, 9 replies; 16+ messages in thread
From: Antony Pavlov @ 2018-01-14 21:22 UTC (permalink / raw)
  To: barebox

This patch series makes it possible to use FT2232H ACBUS[7:0]
pins as gpio pins from sandbox barebox.

There are ready-to-use FT2232H-based boards:

  * FT2232H-56Q Mini-Module (http://www.ftdichip.com/Products/Modules/DevelopmentModules.htm#FT2232H-56_Mini)
  * FT2232 breakout board (http://dangerousprototypes.com/docs/FT2232_breakout_board)

The main goal of adding gpio functionality to sandbox barebox
is using it for connecting real i2c and spi devices to sandbox barebox.

Sample dts-file for at24 i2c eeprom and at25 spi flash is included.

Changes since v1 patch series (http://lists.infradead.org/pipermail/barebox/2017-October/031306.html):

  * rebase on top barebox v2017.12.0;
  * ds1307 i2c rtc driver works fine (i2c-gpio,scl-output-only is used);
  * parseopt_* functions are used for cmdline parsing.

Changes since RFC v1 patch series (http://lists.infradead.org/pipermail/barebox/2017-February/029106.html):

  * rebase on top barebox v2017.10.0;
  * libftdi cmdline options are added;
  * device tree support is added.

Antony Pavlov (7):
  sandbox: avoid symbol conflict for {open,read,close}dir
  sandbox: add gpio support with libftdi1
  sandbox: add i2c and spi libftdi1 bit-bang example
  move parseopt to lib/
  include/parseopt.h: add guard macro
  parseopt: introduce parseopt_u16() and parseopt_str()
  sandbox: parse libftdi options

 arch/sandbox/Kconfig                           |   1 +
 arch/sandbox/Makefile                          |  10 +-
 arch/sandbox/configs/sandbox_defconfig         |  26 +++-
 arch/sandbox/dts/sandbox.dts                   |  52 +++++++
 arch/sandbox/mach-sandbox/include/mach/linux.h |  11 ++
 arch/sandbox/os/Makefile                       |   3 +
 arch/sandbox/os/common.c                       |  12 +-
 arch/sandbox/os/ftdi.c                         | 181 +++++++++++++++++++++++++
 drivers/gpio/Kconfig                           |   4 +
 drivers/gpio/Makefile                          |   1 +
 drivers/gpio/gpio-libftdi1.c                   | 125 +++++++++++++++++
 fs/Makefile                                    |   2 +-
 fs/fs.c                                        |   3 +-
 fs/nfs.c                                       |   3 +-
 fs/parseopt.c                                  |  60 --------
 fs/parseopt.h                                  |   2 -
 include/parseopt.h                             |   9 ++
 lib/Makefile                                   |   1 +
 lib/parseopt.c                                 | 124 +++++++++++++++++
 19 files changed, 558 insertions(+), 72 deletions(-)
 create mode 100644 arch/sandbox/os/ftdi.c
 create mode 100644 drivers/gpio/gpio-libftdi1.c
 delete mode 100644 fs/parseopt.c
 delete mode 100644 fs/parseopt.h
 create mode 100644 include/parseopt.h
 create mode 100644 lib/parseopt.c

-- 
2.15.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2018-01-19 11:25 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-14 21:22 [PATCH v2 0/7] sandbox: add gpio support with libftdi1 Antony Pavlov
2018-01-14 21:22 ` [PATCH v2 1/7] sandbox: avoid symbol conflict for {open, read, close}dir Antony Pavlov
2018-01-14 21:22 ` [PATCH v2 2/7] sandbox: add gpio support with libftdi1 Antony Pavlov
2018-01-14 21:22 ` [PATCH v2 3/7] sandbox: add i2c and spi libftdi1 bit-bang example Antony Pavlov
2018-01-17 10:01   ` Sascha Hauer
2018-01-19  9:14     ` Antony Pavlov
2018-01-14 21:22 ` [PATCH v2 4/7] move parseopt to lib/ Antony Pavlov
2018-01-14 21:22 ` [PATCH v2 5/7] include/parseopt.h: add guard macro Antony Pavlov
2018-01-14 21:22 ` [PATCH v2 6/7] parseopt: introduce parseopt_u16() and parseopt_str() Antony Pavlov
2018-01-14 21:22 ` [PATCH v2 7/7] sandbox: parse libftdi options Antony Pavlov
2018-01-17  9:53 ` [PATCH v2 0/7] sandbox: add gpio support with libftdi1 Sascha Hauer
2018-01-19  9:29   ` Antony Pavlov
2018-01-19  9:40     ` Sascha Hauer
2018-01-19 11:39       ` Antony Pavlov
2018-01-18 18:13 ` Antony Pavlov
2018-01-19  7:32   ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox