[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241024064356.865055-1-inochiama@gmail.com>
Date: Thu, 24 Oct 2024 14:43:53 +0800
From: Inochi Amaoto <inochiama@...il.com>
To: Chen Wang <unicorn_wang@...look.com>,
Linus Walleij <linus.walleij@...aro.org>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Inochi Amaoto <inochiama@...look.com>,
Paul Walmsley <paul.walmsley@...ive.com>,
Palmer Dabbelt <palmer@...belt.com>,
Albert Ou <aou@...s.berkeley.edu>,
Guo Ren <guoren@...nel.org>,
Arnd Bergmann <arnd@...db.de>
Cc: Yixun Lan <dlan@...too.org>,
Inochi Amaoto <inochiama@...il.com>,
linux-gpio@...r.kernel.org,
devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-riscv@...ts.infradead.org
Subject: [PATCH 0/3] riscv: sophgo: Add pinctrl support for SG2042
SG2042 has a simple pinctrl device for all configurable pins.
It supports setting pull up/down, drive strength and input schmitt
trigger.
Add support for SG2042 pinctrl device.
Inochi Amaoto (3):
dt-bindings: pinctrl: Add pinctrl for Sophgo SG2042 series SoC
pinctrl: sophgo: add support for SG2042 SoC
riscv: dts: sophgo: sg2042: add pinctrl support
.../pinctrl/sophgo,sg2042-pinctrl.yaml | 96 +++
.../boot/dts/sophgo/sg2042-milkv-pioneer.dts | 72 ++
arch/riscv/boot/dts/sophgo/sg2042.dtsi | 6 +
drivers/pinctrl/sophgo/Kconfig | 14 +
drivers/pinctrl/sophgo/Makefile | 2 +
drivers/pinctrl/sophgo/pinctrl-sg2042-ops.c | 583 ++++++++++++++++
drivers/pinctrl/sophgo/pinctrl-sg2042.c | 642 ++++++++++++++++++
drivers/pinctrl/sophgo/pinctrl-sg2042.h | 50 ++
include/dt-bindings/pinctrl/pinctrl-sg2042.h | 196 ++++++
9 files changed, 1661 insertions(+)
create mode 100644 Documentation/devicetree/bindings/pinctrl/sophgo,sg2042-pinctrl.yaml
create mode 100644 drivers/pinctrl/sophgo/pinctrl-sg2042-ops.c
create mode 100644 drivers/pinctrl/sophgo/pinctrl-sg2042.c
create mode 100644 drivers/pinctrl/sophgo/pinctrl-sg2042.h
create mode 100644 include/dt-bindings/pinctrl/pinctrl-sg2042.h
--
2.47.0
Powered by blists - more mailing lists