From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Thu, 2 Jul 2020 18:46:15 -0600 Subject: [PATCH v4 04/12] pinctrl: Add support for Kendryte K210 FPIOA In-Reply-To: <20200624102947.359794-5-seanga2@gmail.com> References: <20200624102947.359794-1-seanga2@gmail.com> <20200624102947.359794-5-seanga2@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, 24 Jun 2020 at 04:30, Sean Anderson wrote: > > The Fully-Programmable Input/Output Array (FPIOA) device controls pin > multiplexing on the K210. The FPIOA can remap any supported function to any > multifunctional IO pin. It can also perform basic GPIO functions, such as > reading the current value of a pin. However, GPIO functionality remains > largely unimplemented (in favor of the dedicated GPIO peripherals). > > Signed-off-by: Sean Anderson > --- > This patch was previously submitted as part of > https://patchwork.ozlabs.org/project/uboot/list/?series=161576 > > Changes from that version include: > - Reformat to reduce errors from checkpatch > > (no changes since v2) > > Changes in v2: > - Don't clear existing pinctrl settings on probe > - Rewrite to use pinmux property > - Support muxing the output enable signal for each function > - Support output and input inversion > - Update binding documentation > > MAINTAINERS | 2 + > .../pinctrl/kendryte,k210-fpioa.txt | 102 +++ > drivers/pinctrl/Kconfig | 1 + > drivers/pinctrl/Makefile | 1 + > drivers/pinctrl/kendryte/Kconfig | 7 + > drivers/pinctrl/kendryte/Makefile | 1 + > drivers/pinctrl/kendryte/pinctrl.c | 678 ++++++++++++++++++ > drivers/pinctrl/kendryte/pinctrl.h | 70 ++ > include/dt-bindings/pinctrl/k210-pinctrl.h | 277 +++++++ > 9 files changed, 1139 insertions(+) > create mode 100644 doc/device-tree-bindings/pinctrl/kendryte,k210-fpioa.txt > create mode 100644 drivers/pinctrl/kendryte/Kconfig > create mode 100644 drivers/pinctrl/kendryte/Makefile > create mode 100644 drivers/pinctrl/kendryte/pinctrl.c > create mode 100644 drivers/pinctrl/kendryte/pinctrl.h > create mode 100644 include/dt-bindings/pinctrl/k210-pinctrl.h > Reviewed-by: Simon Glass