Skip to content

GPIO reset support

Green Wan opensbi 2 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest posting 2/25 patches 0 repliesNew
  2. v4 posting 1/24 of 5 patches 0 repliesSuperseded

Changes in v4 from the cover letter

- Simplified GPIO reset driver in PATCH5
- Dropped PATCH6

Patches in v4 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5lib: utils/fdt: Add fdt_parse_phandle_with_args() APIinclude/sbi_utils/fdt/fdt_helper.h lib/utils/fdt/fdt_helper.c+58 -01 reply
2/5lib: utils/gpio: Add generic GPIO configuration libraryinclude/sbi_utils/gpio/gpio.h lib/utils/gpio/gpio.c lib/utils/gpio/objects.mk+225 -01 reply
3/5lib: utils/gpio: Add simple FDT based GPIO frameworkinclude/sbi_utils/gpio/fdt_gpio.h lib/utils/gpio/fdt_gpio.c lib/utils/gpio/objects.mk+167 -01 reply
4/5lib: utils/gpio: Add minimal SiFive GPIO driverlib/utils/gpio/fdt_gpio.c lib/utils/gpio/fdt_gpio_sifive.c lib/utils/gpio/objects.mk+109 -01 reply
5/5lib: utils/reset: Add generic GPIO reset driverlib/utils/reset/fdt_reset.c lib/utils/reset/fdt_reset_gpio.c lib/utils/reset/objects.mk+144 -01 reply

Reviews trailers per patch

2 of 5 patches have a Reviewed-by or Acked-by.

PatchAtish Patra
1/5R-b
2/5
3/5R-b
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/5] GPIO reset support

This series adds generic GPIO reset (poweroff/restart) support which is required by SiFive platforms.

These patches is on top of gpio_reset_v3 branch at:
https://github.com/avpatel/opensbi.git

Changes since v4:
- Added set() implementation
- Adjust mdelay loop count to '100000'

Changes since v3:
- Simplified GPIO reset driver in PATCH5
- Dropped PATCH6

Changes since v2:
- Re-designed the GPIO framework to probe GPIO drivers on demand and avoid touching generic OpenSBI library.

Anup Patel (3):
lib: utils/fdt: Add fdt_parse_phandle_with_args() API
lib: utils/gpio: Add generic GPIO configuration library
lib: utils/gpio: Add simple FDT based GPIO framework

Green Wan (2):
lib: utils/gpio: Add minimal SiFive GPIO driver
lib: utils/reset: Add generic GPIO reset driver

 include/sbi_utils/fdt/fdt_helper.h |  11 +++
 include/sbi_utils/gpio/fdt_gpio.h  |  34 +++++++
 include/sbi_utils/gpio/gpio.h      |  99 ++++++++++++++++++++
 lib/utils/fdt/fdt_helper.c         |  47 ++++++++++
 lib/utils/gpio/fdt_gpio.c          | 135 +++++++++++++++++++++++++++
 lib/utils/gpio/fdt_gpio_sifive.c   | 105 +++++++++++++++++++++
 lib/utils/gpio/gpio.c              | 116 ++++++++++++++++++++++++
 lib/utils/gpio/objects.mk          |  12 +++
 lib/utils/reset/fdt_reset.c        |   2 +
 lib/utils/reset/fdt_reset_gpio.c   | 141 +++++++++++++++++++++++++++++
 lib/utils/reset/objects.mk         |   1 +
 11 files changed, 703 insertions(+)
 create mode 100644 include/sbi_utils/gpio/fdt_gpio.h
 create mode 100644 include/sbi_utils/gpio/gpio.h
 create mode 100644 lib/utils/gpio/fdt_gpio.c
 create mode 100644 lib/utils/gpio/fdt_gpio_sifive.c
 create mode 100644 lib/utils/gpio/gpio.c
 create mode 100644 lib/utils/gpio/objects.mk
 create mode 100644 lib/utils/reset/fdt_reset_gpio.c
Signature · 1 line
2.17.1