[PATCH 0/5] Add support control UP board CPLD/FPGA pin control
From: chengwei
Date: Tue Oct 18 2022 - 22:26:21 EST
The UP board <http://www.upboard.com> is the computer board for
Professional Makers and Industrial Applications. We want to upstream
the UP board 40-pin GP-bus Kernel driver for giving the users better
experience on the software release. (not just download from UP board
github)
These patches are generated from the Linux kernel mainline tag v6.0.
(1) PATCH 1 (mfd: Add support for UP board CPLD/FPGA)
We did git send-email this patch to maintainer on 2022/10/11 for reviewing.
(2) PATCH 2 (regmap: Expose regmap_writable function to check if a register is
writable)
The regmap patch expose the regmap_writeable function for pinctrl-upboard
reference.
(3) PATCH 3 (ACPI: acpi_node_add_pin_mapping added to header file)
Declare acpi_node_add_pin_mapping added in header file.
(4) PATCH 4 (GPIO ACPI: Add support to map GPIO resources to ranges)
Add a pin mapping for named GPIO resources for pinctrl-upboard
reference.
(3) PATCH 5 (pinctrl: Add support pin control for UP board CPLD/FPGA)
The UP board implements certain features (pin control) through an on-board CPLD.
** This patch depends on PATCH 1 (mfd: Add support for UP board CPLD/FPGA).
** This patch depends on PATCH 2 to refer to regmap_writeable function.
** This patch depends on PATCH 3 and PATCH 4 to refer to acpi_node_add_pin_mapping
function.
chengwei (5):
mfd: Add support for UP board CPLD/FPGA
regmap: Expose regmap_writeable function to check if a register is
writable
ACPI: acpi_node_add_pin_mapping added to header file
GPIO ACPI: Add support to map GPIO resources to ranges
pinctrl: Add support pin control for UP board CPLD/FPGA
drivers/base/regmap/internal.h | 5 -
drivers/base/regmap/regmap.c | 5 +
drivers/gpio/gpiolib-acpi.c | 88 ++-
drivers/mfd/Kconfig | 12 +
drivers/mfd/Makefile | 1 +
drivers/mfd/upboard-fpga.c | 482 ++++++++++++++
drivers/pinctrl/Kconfig | 15 +
drivers/pinctrl/Makefile | 1 +
drivers/pinctrl/pinctrl-upboard.c | 1003 +++++++++++++++++++++++++++++
include/linux/acpi.h | 14 +
include/linux/mfd/upboard-fpga.h | 49 ++
include/linux/regmap.h | 6 +
12 files changed, 1659 insertions(+), 22 deletions(-)
create mode 100644 drivers/mfd/upboard-fpga.c
create mode 100644 drivers/pinctrl/pinctrl-upboard.c
create mode 100644 include/linux/mfd/upboard-fpga.h
base-commit: 4fe89d07dcc2804c8b562f6c7896a45643d34b2f
--
2.17.1