* [PATCH v2 0/2] ARM: berlin: add GPIO support for the BG2Q @ 2014-04-16 7:46 ` Antoine Ténart 0 siblings, 0 replies; 11+ messages in thread From: Antoine Ténart @ 2014-04-16 7:46 UTC (permalink / raw) To: linux-arm-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] 11+ messages in thread
* [PATCH v2 0/2] ARM: berlin: add GPIO support for the BG2Q @ 2014-04-16 7:46 ` Antoine Ténart 0 siblings, 0 replies; 11+ 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] 11+ messages in thread
* [PATCH v2 1/2] ARM: berlin: add the LIBGPIO as a dependency for the BG2Q 2014-04-16 7:46 ` Antoine Ténart @ 2014-04-16 7:46 ` Antoine Ténart -1 siblings, 0 replies; 11+ messages in thread From: Antoine Ténart @ 2014-04-16 7:46 UTC (permalink / raw) To: linux-arm-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] 11+ messages in thread
* [PATCH v2 1/2] ARM: berlin: add the LIBGPIO as a dependency for the BG2Q @ 2014-04-16 7:46 ` Antoine Ténart 0 siblings, 0 replies; 11+ 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] 11+ messages in thread
* [PATCH v2 2/2] ARM: dts: berlin: add GPIO nodes for the BG2Q 2014-04-16 7:46 ` Antoine Ténart @ 2014-04-16 7:46 ` Antoine Ténart -1 siblings, 0 replies; 11+ messages in thread From: Antoine Ténart @ 2014-04-16 7:46 UTC (permalink / raw) To: linux-arm-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 at 0400 { + compatible = "snps,dw-apb-gpio"; + reg = <0x0400 0x400>; + #address-cells = <1>; + #size-cells = <0>; + + porta: gpio-port at 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 at 0800 { + compatible = "snps,dw-apb-gpio"; + reg = <0x0800 0x400>; + #address-cells = <1>; + #size-cells = <0>; + + portb: gpio-port at 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 at 0c00 { + compatible = "snps,dw-apb-gpio"; + reg = <0x0c00 0x400>; + #address-cells = <1>; + #size-cells = <0>; + + portc: gpio-port at 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 at 1000 { + compatible = "snps,dw-apb-gpio"; + reg = <0x1000 0x400>; + #address-cells = <1>; + #size-cells = <0>; + + portd: gpio-port at 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 at 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 at 5000 { + compatible = "snps,dw-apb-gpio"; + reg = <0x5000 0x400>; + #address-cells = <1>; + #size-cells = <0>; + + porte: gpio-port at 4 { + compatible = "snps,dw-apb-gpio-port"; + gpio-controller; + #gpio-cells = <2>; + snps,nr-gpios = <32>; + reg = <0>; + }; + }; + + gpio5: gpio at c000 { + compatible = "snps,dw-apb-gpio"; + reg = <0xc000 0x400>; + #address-cells = <1>; + #size-cells = <0>; + + portf: gpio-port at 5 { + compatible = "snps,dw-apb-gpio-port"; + gpio-controller; + #gpio-cells = <2>; + snps,nr-gpios = <32>; + reg = <0>; + }; + }; }; pinctrl: pinctrl at 0 { -- 1.8.3.2 ^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v2 2/2] ARM: dts: berlin: add GPIO nodes for the BG2Q @ 2014-04-16 7:46 ` Antoine Ténart 0 siblings, 0 replies; 11+ 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] 11+ messages in thread
* [PATCH v2 0/2] ARM: berlin: add GPIO support for the BG2Q 2014-04-16 7:46 ` Antoine Ténart @ 2014-04-16 9:11 ` Jisheng Zhang -1 siblings, 0 replies; 11+ messages in thread From: Jisheng Zhang @ 2014-04-16 9:11 UTC (permalink / raw) To: linux-arm-kernel 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] 11+ messages in thread
* Re: [PATCH v2 0/2] ARM: berlin: add GPIO support for the BG2Q @ 2014-04-16 9:11 ` Jisheng Zhang 0 siblings, 0 replies; 11+ 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] 11+ messages in thread
* [PATCH v2 0/2] ARM: berlin: add GPIO support for the BG2Q 2014-04-16 9:11 ` Jisheng Zhang (?) @ 2014-04-16 19:21 ` Sebastian Hesselbarth -1 siblings, 0 replies; 11+ messages in thread From: Sebastian Hesselbarth @ 2014-04-16 19:21 UTC (permalink / raw) To: linux-arm-kernel 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] 11+ messages in thread
* Re: [PATCH v2 0/2] ARM: berlin: add GPIO support for the BG2Q @ 2014-04-16 19:21 ` Sebastian Hesselbarth 0 siblings, 0 replies; 11+ 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] 11+ messages in thread
* Re: [PATCH v2 0/2] ARM: berlin: add GPIO support for the BG2Q @ 2014-04-16 19:21 ` Sebastian Hesselbarth 0 siblings, 0 replies; 11+ messages in thread From: Sebastian Hesselbarth @ 2014-04-16 19:21 UTC (permalink / raw) To: Jisheng Zhang, Antoine Ténart Cc: alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org, Jimmy Xu, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.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-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> 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! -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2014-04-16 19:21 UTC | newest] Thread overview: 11+ 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 ` 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 7:46 ` [PATCH v2 2/2] ARM: dts: berlin: add GPIO nodes " 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 2014-04-16 9:11 ` Jisheng Zhang 2014-04-16 19:21 ` Sebastian Hesselbarth 2014-04-16 19:21 ` Sebastian Hesselbarth 2014-04-16 19:21 ` Sebastian Hesselbarth
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.