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


Groups > linux.kernel > #1226205 > unrolled thread

[PATCH v2 0/7] New Atmel PIO4 pinctrl/gpio driver

Started byLudovic Desroches <ludovic.desroches@atmel.com>
First post2015-09-16 17:40 +0200
Last post2015-09-23 16:50 +0200
Articles 6 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH v2 0/7] New Atmel PIO4 pinctrl/gpio driver Ludovic Desroches <ludovic.desroches@atmel.com> - 2015-09-16 17:40 +0200
    [PATCH v2 4/7] ARM: at91/dt: sama5d2: add pio controller node Ludovic Desroches <ludovic.desroches@atmel.com> - 2015-09-16 17:40 +0200
      Re: [PATCH v2 4/7] ARM: at91/dt: sama5d2: add pio controller node Linus Walleij <linus.walleij@linaro.org> - 2015-09-21 20:30 +0200
    Re: [PATCH v2 6/7] ARM: at91/dt: add sama5d2 pinmux Linus Walleij <linus.walleij@linaro.org> - 2015-09-21 20:30 +0200
    Re: [PATCH v2 0/7] New Atmel PIO4 pinctrl/gpio driver Linus Walleij <linus.walleij@linaro.org> - 2015-09-21 21:00 +0200
      Re: [PATCH v2 0/7] New Atmel PIO4 pinctrl/gpio driver Nicolas Ferre <nicolas.ferre@atmel.com> - 2015-09-23 16:50 +0200

#1226205 — [PATCH v2 0/7] New Atmel PIO4 pinctrl/gpio driver

FromLudovic Desroches <ludovic.desroches@atmel.com>
Date2015-09-16 17:40 +0200
Subject[PATCH v2 0/7] New Atmel PIO4 pinctrl/gpio driver
Message-ID<q9mYq-8y-9@gated-at.bofh.it>
Hi,

The Atmel PIO4 controller has been introduced with SAMA5D2 chip family. This
drivers manages both pinmux/pinconf and gpio stuff. It is inspired by Mediatek
pinctrl driver.

Changes from v1:
- remove some unneeded gpio specific ops (gpio_request, gpio_free,
  gpio_request_enable, gpio_disable_free and gpio_set_direction).
- code styling fixes.
- add sama5d2 pin description and device pin muxing.

Ludovic Desroches (7):
  pinctrl: introduce driver for Atmel PIO4 controller
  pinctrl: dt-binding: Add DT binding documentation for Atmel PIO4
  MAINTAINERS: Add an entry for pinctrl-at91-pio4
  ARM: at91/dt: sama5d2: add pio controller node
  ARM: at91/defconfig: sama5: add PIO4 controller support
  ARM: at91/dt: add sama5d2 pinmux
  ARM: at91/dt: sama5d2 Xplained: add device pin muxing

 .../bindings/pinctrl/atmel,at91-pio4-pinctrl.txt   |   90 ++
 MAINTAINERS                                        |    7 +
 arch/arm/boot/dts/at91-sama5d2_xplained.dts        |   61 ++
 arch/arm/boot/dts/sama5d2-pinfunc.h                |  880 +++++++++++++++++
 arch/arm/boot/dts/sama5d2.dtsi                     |   14 +
 arch/arm/mach-at91/Kconfig                         |    1 +
 drivers/pinctrl/Kconfig                            |   13 +
 drivers/pinctrl/Makefile                           |    1 +
 drivers/pinctrl/pinctrl-at91-pio4.c                | 1017 ++++++++++++++++++++
 9 files changed, 2084 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pinctrl/atmel,at91-pio4-pinctrl.txt
 create mode 100644 arch/arm/boot/dts/sama5d2-pinfunc.h
 create mode 100644 drivers/pinctrl/pinctrl-at91-pio4.c

-- 
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1226206 — [PATCH v2 4/7] ARM: at91/dt: sama5d2: add pio controller node

FromLudovic Desroches <ludovic.desroches@atmel.com>
Date2015-09-16 17:40 +0200
Subject[PATCH v2 4/7] ARM: at91/dt: sama5d2: add pio controller node
Message-ID<q9mYr-8y-29@gated-at.bofh.it>
In reply to#1226205
Add pio4 controller node to enable pinmux and gpio.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
---
 arch/arm/boot/dts/sama5d2.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm/boot/dts/sama5d2.dtsi b/arch/arm/boot/dts/sama5d2.dtsi
index 034cd48..cc05cde 100644
--- a/arch/arm/boot/dts/sama5d2.dtsi
+++ b/arch/arm/boot/dts/sama5d2.dtsi
@@ -921,6 +921,20 @@
 				clocks = <&twi1_clk>;
 				status = "disabled";
 			};
+
+			pioA: pinctrl@fc038000 {
+				compatible = "atmel,sama5d2-pinctrl";
+				reg = <0xfc038000 0x600>;
+				interrupts = <18 IRQ_TYPE_LEVEL_HIGH 7>,
+					     <68 IRQ_TYPE_LEVEL_HIGH 7>,
+					     <69 IRQ_TYPE_LEVEL_HIGH 7>,
+					     <70 IRQ_TYPE_LEVEL_HIGH 7>;
+				interrupt-controller;
+				#interrupt-cells = <2>;
+				gpio-controller;
+				#gpio-cells = <2>;
+				clocks = <&pioA_clk>;
+			};
 		};
 	};
 };
-- 
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

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


#1229635 — Re: [PATCH v2 4/7] ARM: at91/dt: sama5d2: add pio controller node

FromLinus Walleij <linus.walleij@linaro.org>
Date2015-09-21 20:30 +0200
SubjectRe: [PATCH v2 4/7] ARM: at91/dt: sama5d2: add pio controller node
Message-ID<qbe0G-6c1-21@gated-at.bofh.it>
In reply to#1226206
On Wed, Sep 16, 2015 at 8:37 AM, Ludovic Desroches
<ludovic.desroches@atmel.com> wrote:

> Add pio4 controller node to enable pinmux and gpio.
>
> Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>

Patch applied.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

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


#1229633 — Re: [PATCH v2 6/7] ARM: at91/dt: add sama5d2 pinmux

FromLinus Walleij <linus.walleij@linaro.org>
Date2015-09-21 20:30 +0200
SubjectRe: [PATCH v2 6/7] ARM: at91/dt: add sama5d2 pinmux
Message-ID<qbe0G-6c1-15@gated-at.bofh.it>
In reply to#1226205
On Wed, Sep 16, 2015 at 8:37 AM, Ludovic Desroches
<ludovic.desroches@atmel.com> wrote:

> Add sama5d2 pin descriptions.
>
> Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>

Acked-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

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


#1229650

FromLinus Walleij <linus.walleij@linaro.org>
Date2015-09-21 21:00 +0200
Message-ID<qbetH-6Kf-1@gated-at.bofh.it>
In reply to#1226205
On Wed, Sep 16, 2015 at 8:36 AM, Ludovic Desroches
<ludovic.desroches@atmel.com> wrote:

> The Atmel PIO4 controller has been introduced with SAMA5D2 chip family. This
> drivers manages both pinmux/pinconf and gpio stuff. It is inspired by Mediatek
> pinctrl driver.
>
> Changes from v1:
> - remove some unneeded gpio specific ops (gpio_request, gpio_free,
>   gpio_request_enable, gpio_disable_free and gpio_set_direction).
> - code styling fixes.
> - add sama5d2 pin description and device pin muxing.

Looks Good To Me, and has Sascha's ACKs, so merged patches
1, 2, 3, 4 to the pinctrl tree. Please merge the AT91 DT things into
the AT91 tree.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

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


#1231484

FromNicolas Ferre <nicolas.ferre@atmel.com>
Date2015-09-23 16:50 +0200
Message-ID<qbTwS-78H-15@gated-at.bofh.it>
In reply to#1229650
Le 21/09/2015 20:50, Linus Walleij a écrit :
> On Wed, Sep 16, 2015 at 8:36 AM, Ludovic Desroches
> <ludovic.desroches@atmel.com> wrote:
> 
>> The Atmel PIO4 controller has been introduced with SAMA5D2 chip family. This
>> drivers manages both pinmux/pinconf and gpio stuff. It is inspired by Mediatek
>> pinctrl driver.
>>
>> Changes from v1:
>> - remove some unneeded gpio specific ops (gpio_request, gpio_free,
>>   gpio_request_enable, gpio_disable_free and gpio_set_direction).
>> - code styling fixes.
>> - add sama5d2 pin description and device pin muxing.
> 
> Looks Good To Me, and has Sascha's ACKs, so merged patches
> 1, 2, 3, 4 to the pinctrl tree. Please merge the AT91 DT things into
> the AT91 tree.

Great!

So patch 5 is included in at91-4.4-defconfig branch.
patches 6 and 7 queued in at91-4.4-dt branch.
They are included in at91-next that is merged in linux-next and will
both take the arm-soc path later in the cycle.

Thanks, bye,
-- 
Nicolas Ferre
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web