From: Alexandre TORGUE <alexandre.torgue@st.com>
To: Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Linus Walleij <linus.walleij@linaro.org>,
Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Arnd Bergmann <arnd@arndb.de>,
Russell King <linux@armlinux.org.uk>,
Olof Johansson <olof@lixom.net>,
lee.jones@linaro.org, Jonathan Corbet <corbet@lwn.net>
Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org
Subject: [PATCH v2 0/7] Add STM32F469 pinctrl and fix issues in STM32 pinctrl
Date: Fri, 7 Apr 2017 14:42:57 +0200 [thread overview]
Message-ID: <1491568984-20169-1-git-send-email-alexandre.torgue@st.com> (raw)
This series adds support of a dedicated driver for STM32F469 MCU pinctroller.
This add generates some changes inside STM32 pinctrl driver and inside STM32
device tree.
Changes in STM32 pinctrl driver:
-------------------------------
- Add STM32F469 driver.
- Change STM32 pinctrl core in order to use "gpio-ranges" devicetree definitions.
Indeed, on STM32F469 there an hole in BANK J. We need to declare a gpio-ranges
in gpioj controller node to handle this hole.
Changes in STM32 device tree:
----------------------------
I propose a new architecture (a new file split) for pinmux definition:
- Create a common stm32f4-pinctrl.dtsi for pinmuxing definitions
which are common between STM32F429 and STM32F469 MCU.
- Create dedicated stm32fxxx-pinctrl.dtsi file for each MCU
(stm32f429-pinctrl.dtsi and stm32f469-pinctrl.dtsi) each one will
include stm32f4-pinctrl.dtsi. All differences (pinmuxing or GPIO
bank holes) will be put inside the dedicated files.
This series fix a locking issue when a gpio is used as IRQ.
Changes since v1:
-Rebase on 4.11-rc1.
-Fix issues for "gpio-ranges" patch.
Regards
Alex
Alexandre TORGUE (7):
pinctrl: stm32: add possibility to use gpio-ranges to declare bank
range
Documentation: dt: Remove bindings for STM32 pinctrl
includes: dt-bindings: Rename STM32F429 pinctrl DT bindings
pinctrl: stm32: Add STM32F469 MCU support
Documentation: dt: Add new compatible to STM32 pinctrl driver bindings
ARM: Kconfig: Introduce MACH_STM32F469 flag
ARM: dts: stm32: create dedicated files for pinctrl definitions
.../bindings/pinctrl/st,stm32-pinctrl.txt | 3 +-
arch/arm/Kconfig | 5 +
arch/arm/boot/dts/stm32429i-eval.dts | 1 +
arch/arm/boot/dts/stm32f4-pinctrl.dtsi | 243 +++
arch/arm/boot/dts/stm32f429-disco.dts | 1 +
arch/arm/boot/dts/stm32f429-pinctrl.dtsi | 95 ++
arch/arm/boot/dts/stm32f429.dtsi | 196 ---
arch/arm/boot/dts/stm32f469-disco.dts | 1 +
arch/arm/boot/dts/stm32f469-pinctrl.dtsi | 96 ++
drivers/pinctrl/stm32/Kconfig | 6 +
drivers/pinctrl/stm32/Makefile | 1 +
drivers/pinctrl/stm32/pinctrl-stm32.c | 115 +-
drivers/pinctrl/stm32/pinctrl-stm32f469.c | 1578 ++++++++++++++++++++
include/dt-bindings/pinctrl/stm32f4-pinfunc.h | 1302 ++++++++++++++++
include/dt-bindings/pinctrl/stm32f429-pinfunc.h | 1239 ---------------
15 files changed, 3395 insertions(+), 1487 deletions(-)
create mode 100644 arch/arm/boot/dts/stm32f4-pinctrl.dtsi
create mode 100644 arch/arm/boot/dts/stm32f429-pinctrl.dtsi
create mode 100644 arch/arm/boot/dts/stm32f469-pinctrl.dtsi
create mode 100644 drivers/pinctrl/stm32/pinctrl-stm32f469.c
create mode 100644 include/dt-bindings/pinctrl/stm32f4-pinfunc.h
delete mode 100644 include/dt-bindings/pinctrl/stm32f429-pinfunc.h
--
1.9.1
next reply other threads:[~2017-04-07 12:42 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-07 12:42 Alexandre TORGUE [this message]
2017-04-07 12:42 ` [PATCH v2 1/7] pinctrl: stm32: add possibility to use gpio-ranges to declare bank range Alexandre TORGUE
[not found] ` <1491568984-20169-2-git-send-email-alexandre.torgue-qxv4g6HH51o@public.gmane.org>
2017-04-24 12:20 ` Linus Walleij
2017-04-07 12:42 ` [PATCH v2 2/7] Documentation: dt: Remove bindings for STM32 pinctrl Alexandre TORGUE
2017-04-10 20:20 ` Rob Herring
2017-04-12 13:24 ` Alexandre Torgue
2017-04-24 12:25 ` Linus Walleij
2017-04-07 12:43 ` [PATCH v2 3/7] includes: dt-bindings: Rename STM32F429 pinctrl DT bindings Alexandre TORGUE
[not found] ` <1491568984-20169-4-git-send-email-alexandre.torgue-qxv4g6HH51o@public.gmane.org>
2017-04-10 20:27 ` Rob Herring
2017-04-12 13:31 ` Alexandre Torgue
2017-06-07 16:35 ` Alexandre Torgue
2017-06-14 13:05 ` Rob Herring
2017-04-07 12:43 ` [PATCH v2 4/7] pinctrl: stm32: Add STM32F469 MCU support Alexandre TORGUE
[not found] ` <1491568984-20169-5-git-send-email-alexandre.torgue-qxv4g6HH51o@public.gmane.org>
2017-04-24 12:27 ` Linus Walleij
[not found] ` <1491568984-20169-1-git-send-email-alexandre.torgue-qxv4g6HH51o@public.gmane.org>
2017-04-07 12:43 ` [PATCH v2 5/7] Documentation: dt: Add new compatible to STM32 pinctrl driver bindings Alexandre TORGUE
2017-04-10 20:30 ` Rob Herring
2017-04-24 12:29 ` Linus Walleij
2017-04-07 12:43 ` [PATCH v2 6/7] ARM: Kconfig: Introduce MACH_STM32F469 flag Alexandre TORGUE
2017-04-24 12:30 ` Linus Walleij
2017-04-24 16:06 ` Alexandre Torgue
2017-04-07 12:43 ` [PATCH v2 7/7] ARM: dts: stm32: create dedicated files for pinctrl definitions Alexandre TORGUE
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1491568984-20169-1-git-send-email-alexandre.torgue@st.com \
--to=alexandre.torgue@st.com \
--cc=arnd@arndb.de \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=lee.jones@linaro.org \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=mark.rutland@arm.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=olof@lixom.net \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).