Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1504894 > unrolled thread

[PATCH 0/2] STM32 pinctrl: remove dependency between pinctrl driver and device tree

Started byAlexandre TORGUE <alexandre.torgue@st.com>
First post2016-10-20 15:30 +0200
Last post2016-10-24 02:00 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH 0/2] STM32 pinctrl: remove dependency between pinctrl driver and device tree Alexandre TORGUE <alexandre.torgue@st.com> - 2016-10-20 15:30 +0200
    [PATCH 2/2] pinctrl: stm32: move gpio irqs binding to optional Alexandre TORGUE <alexandre.torgue@st.com> - 2016-10-20 15:30 +0200
      Re: [PATCH 2/2] pinctrl: stm32: move gpio irqs binding to optional Linus Walleij <linus.walleij@linaro.org> - 2016-10-24 02:00 +0200

#1504894 — [PATCH 0/2] STM32 pinctrl: remove dependency between pinctrl driver and device tree

FromAlexandre TORGUE <alexandre.torgue@st.com>
Date2016-10-20 15:30 +0200
Subject[PATCH 0/2] STM32 pinctrl: remove dependency between pinctrl driver and device tree
Message-ID<sulzY-84O-35@gated-at.bofh.it>
Hi, 

Currently 4.9-rc1 is not booting correctly on STM32F4. 
By adding gpios irqs support to stm32 pinctrl, a dependency has been 
added between pinctrl stm32 and stm32f4 device tree (my mistake). 
This series breaks this dependency and has to be taken on 4.9_rcs. 

Regards
Alex


Alexandre TORGUE (2):
  pinctrl: stm32: remove dependency with interrupt controller
  pinctrl: stm32: move gpio irqs binding to optional

 Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt | 10 +++++-----
 drivers/pinctrl/stm32/pinctrl-stm32.c                          |  8 +++++---
 2 files changed, 10 insertions(+), 8 deletions(-)

-- 
1.9.1

[toc] | [next] | [standalone]


#1504895 — [PATCH 2/2] pinctrl: stm32: move gpio irqs binding to optional

FromAlexandre TORGUE <alexandre.torgue@st.com>
Date2016-10-20 15:30 +0200
Subject[PATCH 2/2] pinctrl: stm32: move gpio irqs binding to optional
Message-ID<sulzY-84O-37@gated-at.bofh.it>
In reply to#1504894
stm32 pinctrl driver could be probed even if no interrupt controller
is defined to manage gpio irqs. Entries related to gpio irq management
are moved to optional.

Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>

diff --git a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt
index f9753c4..b24583a 100644
--- a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt
+++ b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt
@@ -14,11 +14,6 @@ Required properies:
  - #size-cells	: The value of this property must be 1
  - ranges	: defines mapping between pin controller node (parent) to
    gpio-bank node (children).
- - interrupt-parent: phandle of the interrupt parent to which the external
-   GPIO interrupts are forwarded to.
- - st,syscfg: Should be phandle/offset pair. The phandle to the syscon node
-   which includes IRQ mux selection register, and the offset of the IRQ mux
-   selection register.
  - pins-are-numbered: Specify the subnodes are using numbered pinmux to
    specify pins.
 
@@ -37,6 +32,11 @@ Required properties:
 
 Optional properties:
  - reset:	  : Reference to the reset controller
+ - interrupt-parent: phandle of the interrupt parent to which the external
+   GPIO interrupts are forwarded to.
+ - st,syscfg: Should be phandle/offset pair. The phandle to the syscon node
+   which includes IRQ mux selection register, and the offset of the IRQ mux
+   selection register.
 
 Example:
 #include <dt-bindings/pinctrl/stm32f429-pinfunc.h>
-- 
1.9.1

[toc] | [prev] | [next] | [standalone]


#1506798 — Re: [PATCH 2/2] pinctrl: stm32: move gpio irqs binding to optional

FromLinus Walleij <linus.walleij@linaro.org>
Date2016-10-24 02:00 +0200
SubjectRe: [PATCH 2/2] pinctrl: stm32: move gpio irqs binding to optional
Message-ID<svAQh-85f-13@gated-at.bofh.it>
In reply to#1504895
On Thu, Oct 20, 2016 at 3:26 PM, Alexandre TORGUE
<alexandre.torgue@st.com> wrote:

> stm32 pinctrl driver could be probed even if no interrupt controller
> is defined to manage gpio irqs. Entries related to gpio irq management
> are moved to optional.
>
> Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>

Patch applied for fixes.

Yours,
Linus Walleij

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web