Skip to content

Allow GPIOs to be referenced by label

Andrey Smirnov barebox 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11gpio: VF610: Propagate error code of gpiochip_add() updrivers/gpio/gpio-vf610.c+1 -20 replies
2/11VF610: Initialize pinctrl driver before gpiodrivers/gpio/gpio-vf610.c drivers/pinctrl/pinctrl-vf610.c+2 -20 replies
3/11linux/ctype.h: Port _tolower()include/linux/ctype.h+9 -00 replies
4/11lib: Port kstrtox.c from Linux kernelinclude/linux/kernel.h include/linux/string.h lib/Makefile +2 more+473 -00 replies
5/11commands: gpio: Move argument parsing into a shared functioncommands/gpio.c+29 -190 replies
6/11commands: gpio: Use kstrtoint() instead of simple_strtoul()commands/gpio.c+6 -30 replies
7/11gpiolib: Introduce gpio_find_by_label()drivers/gpio/gpiolib.c include/gpio.h+23 -00 replies
8/11commands: gpio: Allow GPIOs to be specified by labelcommands/gpio.c+7 -40 replies
9/11VF610: zii-vf610-dev: Drop switch reset GPIO configurationarch/arm/boards/zii-vf610-dev/board.c+0 -50 replies
10/11VF610: zii-vf610-dev: Replace board code with gpio-hog nodesarch/arm/boards/zii-vf610-dev/board.c arch/arm/dts/vf610-zii-cfu1.dts arch/arm/dts/vf610-zii-ssmb-spu3.dts+34 -562 replies
11/11ARM: rdu2: Replace board code with gpio-hog nodesarch/arm/boards/zii-imx6q-rdu2/board.c arch/arm/dts/imx6qdl-zii-rdu2.dtsi+36 -382 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/11] Allow GPIOs to be referenced by label

Everyone:

This patch series is the result of my work on extending various gpio_* commands in Barebox CLI to allow referencing GPIOs by a label assigned to them via Device Tree or in any other way.

Sascha:

AFAICT majority of callers of simple_strto*() functions don't really do very strict error checking which seems really undesirable. With kstrto*() functions in place, and assuming there's no objections to that, what do you think about a separate patch series to replace all of the uses of simple_strto*() with kstrto*() and eventually drop majority of simple_strto*() implementation code?

Thanks,
Andrey Smirnov

Andrey Smirnov (11):
gpio: VF610: Propagate error code of gpiochip_add() up
VF610: Initialize pinctrl driver before gpio linux/ctype.h: Port _tolower()
lib: Port kstrtox.c from Linux kernel
commands: gpio: Move argument parsing into a shared function
commands: gpio: Use kstrtoint() instead of simple_strtoul()
gpiolib: Introduce gpio_find_by_label()
commands: gpio: Allow GPIOs to be specified by label
VF610: zii-vf610-dev: Drop switch reset GPIO configuration
VF610: zii-vf610-dev: Replace board code with gpio-hog nodes
ARM: rdu2: Replace board code with gpio-hog nodes

 arch/arm/boards/zii-imx6q-rdu2/board.c |  38 ---
 arch/arm/boards/zii-vf610-dev/board.c  |  61 -----
 arch/arm/dts/imx6qdl-zii-rdu2.dtsi     |  36 +++
 arch/arm/dts/vf610-zii-cfu1.dts        |  25 ++
 arch/arm/dts/vf610-zii-ssmb-spu3.dts   |   9 +
 commands/gpio.c                        |  54 ++--
 drivers/gpio/gpio-vf610.c              |   5 +-
 drivers/gpio/gpiolib.c                 |  17 ++
 drivers/pinctrl/pinctrl-vf610.c        |   2 +-
 include/gpio.h                         |   6 +
 include/linux/ctype.h                  |   9 +
 include/linux/kernel.h                 |  95 +++++++
 include/linux/string.h                 |   2 +
 lib/Makefile                           |   1 +
 lib/kstrtox.c                          | 366 +++++++++++++++++++++++++
 lib/kstrtox.h                          |   9 +
 16 files changed, 613 insertions(+), 122 deletions(-)
 create mode 100644 lib/kstrtox.c
 create mode 100644 lib/kstrtox.h
Signature · 7 lines
2.17.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox