LKML Archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] ARM: berlin: add GPIO support for the BG2Q
@ 2014-04-16  7:46 Antoine Ténart
  2014-04-16  7:46 ` [PATCH v2 1/2] ARM: berlin: add the LIBGPIO as a dependency " Antoine Ténart
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Antoine Ténart @ 2014-04-16  7:46 UTC (permalink / raw
  To: sebastian.hesselbarth
  Cc: Antoine Ténart, alexandre.belloni, zmxu, jszhang,
	linux-arm-kernel, devicetree, linux-kernel

This series add the support for the GPIOs of the Berlin BG2Q. We use the
newly integrated dwapb GPIO driver here.

This applies on top of Alexandre's BG2Q symbol introduction[1] and the dwapb
gpio patch fixing IRQ initialization[2].

[1] https://patchwork.kernel.org/patch/3876141/
[2] https://lkml.org/lkml/2014/4/7/96

Changes since v1:
	- s/gpio-controller@/gpio-port@/ in device tree
	- moved ARCH_REQUIRE_GPIOLIB to ARCH_BERLIN in Kconfig

Antoine Ténart (2):
  ARM: berlin: add the LIBGPIO as a dependency for the BG2Q
  ARM: dts: berlin: add GPIO nodes for the BG2Q

 arch/arm/boot/dts/berlin2q.dtsi | 102 ++++++++++++++++++++++++++++++++++++++++
 arch/arm/mach-berlin/Kconfig    |   1 +
 2 files changed, 103 insertions(+)

-- 
1.8.3.2


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH v2 1/2] ARM: berlin: add the LIBGPIO as a dependency for the BG2Q
  2014-04-16  7:46 [PATCH v2 0/2] ARM: berlin: add GPIO support for the BG2Q Antoine Ténart
@ 2014-04-16  7:46 ` Antoine Ténart
  2014-04-16  7:46 ` [PATCH v2 2/2] ARM: dts: berlin: add GPIO nodes " Antoine Ténart
  2014-04-16  9:11 ` [PATCH v2 0/2] ARM: berlin: add GPIO support " Jisheng Zhang
  2 siblings, 0 replies; 5+ messages in thread
From: Antoine Ténart @ 2014-04-16  7:46 UTC (permalink / raw
  To: sebastian.hesselbarth
  Cc: Antoine Ténart, alexandre.belloni, zmxu, jszhang,
	linux-arm-kernel, devicetree, linux-kernel

The BG2Q has GPIOs driven by the dwapb GPIO driver. Add the LIBGPIO as a
dependency to be able to support them.

Signed-off-by: Antoine Ténart <antoine.tenart@free-electrons.com>
---
 arch/arm/mach-berlin/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-berlin/Kconfig b/arch/arm/mach-berlin/Kconfig
index 291f1cac6c3d..150fda8fe110 100644
--- a/arch/arm/mach-berlin/Kconfig
+++ b/arch/arm/mach-berlin/Kconfig
@@ -1,5 +1,6 @@
 config ARCH_BERLIN
 	bool "Marvell Berlin SoCs" if ARCH_MULTI_V7
+	select ARCH_REQUIRE_GPIOLIB
 	select ARM_GIC
 	select GENERIC_IRQ_CHIP
 	select DW_APB_ICTL
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH v2 2/2] ARM: dts: berlin: add GPIO nodes for the BG2Q
  2014-04-16  7:46 [PATCH v2 0/2] ARM: berlin: add GPIO support for the BG2Q Antoine Ténart
  2014-04-16  7:46 ` [PATCH v2 1/2] ARM: berlin: add the LIBGPIO as a dependency " Antoine Ténart
@ 2014-04-16  7:46 ` Antoine Ténart
  2014-04-16  9:11 ` [PATCH v2 0/2] ARM: berlin: add GPIO support " Jisheng Zhang
  2 siblings, 0 replies; 5+ messages in thread
From: Antoine Ténart @ 2014-04-16  7:46 UTC (permalink / raw
  To: sebastian.hesselbarth
  Cc: Antoine Ténart, alexandre.belloni, zmxu, jszhang,
	linux-arm-kernel, devicetree, linux-kernel

The Marvell Berlin BG2Q has 6 GPIO ports compatible with the snps,dw-apb-gpio
driver. This patch add the corresponding device tree nodes.

Signed-off-by: Antoine Ténart <antoine.tenart@free-electrons.com>
---
 arch/arm/boot/dts/berlin2q.dtsi | 102 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 102 insertions(+)

diff --git a/arch/arm/boot/dts/berlin2q.dtsi b/arch/arm/boot/dts/berlin2q.dtsi
index e6e556055dfc..82bf6910e227 100644
--- a/arch/arm/boot/dts/berlin2q.dtsi
+++ b/arch/arm/boot/dts/berlin2q.dtsi
@@ -109,6 +109,78 @@
 			ranges = <0 0xe80000 0x10000>;
 			interrupt-parent = <&aic>;
 
+			gpio0: gpio@0400 {
+				compatible = "snps,dw-apb-gpio";
+				reg = <0x0400 0x400>;
+				#address-cells = <1>;
+				#size-cells = <0>;
+
+				porta: gpio-port@0 {
+					compatible = "snps,dw-apb-gpio-port";
+					gpio-controller;
+					#gpio-cells = <2>;
+					snps,nr-gpios = <32>;
+					reg = <0>;
+					interrupt-controller;
+					#interrupt-cells = <2>;
+					interrupts = <0>;
+				};
+			};
+
+			gpio1: gpio@0800 {
+				compatible = "snps,dw-apb-gpio";
+				reg = <0x0800 0x400>;
+				#address-cells = <1>;
+				#size-cells = <0>;
+
+				portb: gpio-port@1 {
+					compatible = "snps,dw-apb-gpio-port";
+					gpio-controller;
+					#gpio-cells = <2>;
+					snps,nr-gpios = <32>;
+					reg = <0>;
+					interrupt-controller;
+					#interrupt-cells = <2>;
+					interrupts = <1>;
+				};
+			};
+
+			gpio2: gpio@0c00 {
+				compatible = "snps,dw-apb-gpio";
+				reg = <0x0c00 0x400>;
+				#address-cells = <1>;
+				#size-cells = <0>;
+
+				portc: gpio-port@2 {
+					compatible = "snps,dw-apb-gpio-port";
+					gpio-controller;
+					#gpio-cells = <2>;
+					snps,nr-gpios = <32>;
+					reg = <0>;
+					interrupt-controller;
+					#interrupt-cells = <2>;
+					interrupts = <2>;
+				};
+			};
+
+			gpio3: gpio@1000 {
+				compatible = "snps,dw-apb-gpio";
+				reg = <0x1000 0x400>;
+				#address-cells = <1>;
+				#size-cells = <0>;
+
+				portd: gpio-port@3 {
+					compatible = "snps,dw-apb-gpio-port";
+					gpio-controller;
+					#gpio-cells = <2>;
+					snps,nr-gpios = <32>;
+					reg = <0>;
+					interrupt-controller;
+					#interrupt-cells = <2>;
+					interrupts = <3>;
+				};
+			};
+
 			timer0: timer@2c00 {
 				compatible = "snps,dw-apb-timer";
 				reg = <0x2c00 0x14>;
@@ -181,6 +253,36 @@
 				interrupt-parent = <&gic>;
 				interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
 			};
+
+			gpio4: gpio@5000 {
+				compatible = "snps,dw-apb-gpio";
+				reg = <0x5000 0x400>;
+				#address-cells = <1>;
+				#size-cells = <0>;
+
+				porte: gpio-port@4 {
+					compatible = "snps,dw-apb-gpio-port";
+					gpio-controller;
+					#gpio-cells = <2>;
+					snps,nr-gpios = <32>;
+					reg = <0>;
+				};
+			};
+
+			gpio5: gpio@c000 {
+				compatible = "snps,dw-apb-gpio";
+				reg = <0xc000 0x400>;
+				#address-cells = <1>;
+				#size-cells = <0>;
+
+				portf: gpio-port@5 {
+					compatible = "snps,dw-apb-gpio-port";
+					gpio-controller;
+					#gpio-cells = <2>;
+					snps,nr-gpios = <32>;
+					reg = <0>;
+				};
+			};
 		};
 
 		pinctrl: pinctrl@0 {
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v2 0/2] ARM: berlin: add GPIO support for the BG2Q
  2014-04-16  7:46 [PATCH v2 0/2] ARM: berlin: add GPIO support for the BG2Q Antoine Ténart
  2014-04-16  7:46 ` [PATCH v2 1/2] ARM: berlin: add the LIBGPIO as a dependency " Antoine Ténart
  2014-04-16  7:46 ` [PATCH v2 2/2] ARM: dts: berlin: add GPIO nodes " Antoine Ténart
@ 2014-04-16  9:11 ` Jisheng Zhang
  2014-04-16 19:21   ` Sebastian Hesselbarth
  2 siblings, 1 reply; 5+ messages in thread
From: Jisheng Zhang @ 2014-04-16  9:11 UTC (permalink / raw
  To: Antoine Ténart
  Cc: sebastian.hesselbarth@gmail.com,
	alexandre.belloni@free-electrons.com, Jimmy Xu,
	linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org

On Wed, 16 Apr 2014 00:46:33 -0700
Antoine Ténart <antoine.tenart@free-electrons.com> wrote:

> This series add the support for the GPIOs of the Berlin BG2Q. We use the
> newly integrated dwapb GPIO driver here.
> 
> This applies on top of Alexandre's BG2Q symbol introduction[1] and the dwapb
> gpio patch fixing IRQ initialization[2].
> 
> [1] https://patchwork.kernel.org/patch/3876141/
> [2] https://lkml.org/lkml/2014/4/7/96
> 
> Changes since v1:
> 	- s/gpio-controller@/gpio-port@/ in device tree
> 	- moved ARCH_REQUIRE_GPIOLIB to ARCH_BERLIN in Kconfig
> 
> Antoine Ténart (2):
>   ARM: berlin: add the LIBGPIO as a dependency for the BG2Q
>   ARM: dts: berlin: add GPIO nodes for the BG2Q
> 
>  arch/arm/boot/dts/berlin2q.dtsi | 102
> ++++++++++++++++++++++++++++++++++++++++ arch/arm/mach-berlin/Kconfig
> |   1 + 2 files changed, 103 insertions(+)
> 

All the two patches look good

Thanks very much

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2 0/2] ARM: berlin: add GPIO support for the BG2Q
  2014-04-16  9:11 ` [PATCH v2 0/2] ARM: berlin: add GPIO support " Jisheng Zhang
@ 2014-04-16 19:21   ` Sebastian Hesselbarth
  0 siblings, 0 replies; 5+ messages in thread
From: Sebastian Hesselbarth @ 2014-04-16 19:21 UTC (permalink / raw
  To: Jisheng Zhang, Antoine Ténart
  Cc: alexandre.belloni@free-electrons.com, Jimmy Xu,
	linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org

On 04/16/2014 11:11 AM, Jisheng Zhang wrote:
> On Wed, 16 Apr 2014 00:46:33 -0700
> Antoine Ténart <antoine.tenart@free-electrons.com> wrote:
> 
>> This series add the support for the GPIOs of the Berlin BG2Q. We use the
>> newly integrated dwapb GPIO driver here.
>>
>> This applies on top of Alexandre's BG2Q symbol introduction[1] and the dwapb
>> gpio patch fixing IRQ initialization[2].
>>
>> [1] https://patchwork.kernel.org/patch/3876141/
>> [2] https://lkml.org/lkml/2014/4/7/96
>>
>> Changes since v1:
>> 	- s/gpio-controller@/gpio-port@/ in device tree
>> 	- moved ARCH_REQUIRE_GPIOLIB to ARCH_BERLIN in Kconfig
>>
>> Antoine Ténart (2):
>>   ARM: berlin: add the LIBGPIO as a dependency for the BG2Q
>>   ARM: dts: berlin: add GPIO nodes for the BG2Q
>>
>>  arch/arm/boot/dts/berlin2q.dtsi | 102
>> ++++++++++++++++++++++++++++++++++++++++ arch/arm/mach-berlin/Kconfig
>> |   1 + 2 files changed, 103 insertions(+)
>>
> 
> All the two patches look good

Patch 1 applied to berlin/soc,
Patch 2 applied to berlin/dt,

both with Jisheng's Reviewed-by.

Thanks!


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-04-16 19:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-16  7:46 [PATCH v2 0/2] ARM: berlin: add GPIO support for the BG2Q Antoine Ténart
2014-04-16  7:46 ` [PATCH v2 1/2] ARM: berlin: add the LIBGPIO as a dependency " Antoine Ténart
2014-04-16  7:46 ` [PATCH v2 2/2] ARM: dts: berlin: add GPIO nodes " Antoine Ténart
2014-04-16  9:11 ` [PATCH v2 0/2] ARM: berlin: add GPIO support " Jisheng Zhang
2014-04-16 19:21   ` Sebastian Hesselbarth

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 read-only IMAP folder(s) and NNTP newsgroup(s).