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


Groups > linux.kernel > #1195764 > unrolled thread

[PATCH 3/3] arm/dts/ls1021a: Add GPIO controller nodes

Started byShaveta Leekha <shaveta@freescale.com>
First post2015-07-30 09:50 +0200
Last post2015-08-03 10:20 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3/3] arm/dts/ls1021a: Add GPIO controller nodes Shaveta Leekha <shaveta@freescale.com> - 2015-07-30 09:50 +0200
    Re: [PATCH 3/3] arm/dts/ls1021a: Add GPIO controller nodes Linus Walleij <linus.walleij@linaro.org> - 2015-08-03 10:20 +0200
    Re: [PATCH 3/3] arm/dts/ls1021a: Add GPIO controller nodes Linus Walleij <linus.walleij@linaro.org> - 2015-08-03 10:20 +0200

#1195764 — [PATCH 3/3] arm/dts/ls1021a: Add GPIO controller nodes

FromShaveta Leekha <shaveta@freescale.com>
Date2015-07-30 09:50 +0200
Subject[PATCH 3/3] arm/dts/ls1021a: Add GPIO controller nodes
Message-ID<pRQLg-gS-15@gated-at.bofh.it>
Signed-off-by: Shaveta Leekha <shaveta@freescale.com>
---
Tested on Freescale SDK 1.8, as LS1021aQDS support is not yet complete in upstream

 arch/arm/boot/dts/ls1021a.dtsi |   47 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 47 insertions(+), 0 deletions(-)

diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.dtsi
index 71ea37d..2630b59 100644
--- a/arch/arm/boot/dts/ls1021a.dtsi
+++ b/arch/arm/boot/dts/ls1021a.dtsi
@@ -60,6 +60,11 @@
 		serial4 = &lpuart4;
 		serial5 = &lpuart5;
 		sysclk = &sysclk;
+		gpio0 = &gpio1;
+		gpio1 = &gpio2;
+		gpio2 = &gpio3;
+		gpio3 = &gpio4;
+
 	};
 
 	cpus {
@@ -332,6 +337,48 @@
 			status = "disabled";
 		};
 
+
+		gpio1: gpio@2300000 {
+			compatible = "fsl,ls1021a-gpio";
+			reg = <0x0 0x2300000 0x0 0x10000>;
+			interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
+			gpio-controller;
+			#gpio-cells = <2>;
+			interrupt-controller;
+			#interrupt-cells = <2>;
+		};
+
+		gpio2: gpio@2310000 {
+			compatible = "fsl,ls1021a-gpio";
+			reg = <0x0 0x2310000 0x0 0x10000>;
+			interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>;
+			gpio-controller;
+			#gpio-cells = <2>;
+			interrupt-controller;
+			#interrupt-cells = <2>;
+		};
+
+		gpio3: gpio@2320000 {
+			compatible = "fsl,ls1021a-gpio";
+			reg = <0x0 0x2320000 0x0 0x10000>;
+			interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
+			gpio-controller;
+			#gpio-cells = <2>;
+			interrupt-controller;
+			#interrupt-cells = <2>;
+		};
+
+		gpio4: gpio@2330000 {
+			compatible = "fsl,ls1021a-gpio";
+			reg = <0x0 0x2330000 0x0 0x10000>;
+			interrupts = <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>;
+			gpio-controller;
+        		#gpio-cells = <2>;
+			interrupt-controller;
+           		#interrupt-cells = <2>;
+		};
+
+
 		wdog0: watchdog@2ad0000 {
 			compatible = "fsl,imx21-wdt";
 			reg = <0x0 0x2ad0000 0x0 0x10000>;
-- 
1.7.7.4

--
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]


#1198625

FromLinus Walleij <linus.walleij@linaro.org>
Date2015-08-03 10:20 +0200
Message-ID<pTj8t-5Oc-5@gated-at.bofh.it>
In reply to#1195764
On Mon, Aug 3, 2015 at 10:10 AM, Linus Walleij <linus.walleij@linaro.org> wrote:
> On Thu, Jul 30, 2015 at 9:27 AM, Shaveta Leekha <shaveta@freescale.com> wrote:
>
>> Signed-off-by: Shaveta Leekha <shaveta@freescale.com>
>> ---
>> Tested on Freescale SDK 1.8, as LS1021aQDS support is not yet complete in upstream
> (...)
>> +               gpio1: gpio@2300000 {
>> +                       compatible = "fsl,ls1021a-gpio";
>
> Please patch
> Documentation/devicetree/bindings/gpio/8xxx_gpio.txt
>
> In patch 2/3 to provide this compatible string binding.

Patch 1/3 I mean. Sorry. So we introduce the binding and
use it.

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]


#1198628

FromLinus Walleij <linus.walleij@linaro.org>
Date2015-08-03 10:20 +0200
Message-ID<pTj8t-5Oc-7@gated-at.bofh.it>
In reply to#1195764
On Thu, Jul 30, 2015 at 9:27 AM, Shaveta Leekha <shaveta@freescale.com> wrote:

> Signed-off-by: Shaveta Leekha <shaveta@freescale.com>
> ---
> Tested on Freescale SDK 1.8, as LS1021aQDS support is not yet complete in upstream
(...)
> +               gpio1: gpio@2300000 {
> +                       compatible = "fsl,ls1021a-gpio";

Please patch
Documentation/devicetree/bindings/gpio/8xxx_gpio.txt

In patch 2/3 to provide this compatible string binding.

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] | [standalone]


Back to top | Article view | linux.kernel


csiph-web