Skip to contentSkip to conversation

ARM: dts: OMAP2+: Enable gpio controller for GPMC and add NAND ready pin

PATCH In review Roger Quadros 2 participants 15 messages Apr 7, 2016 – Apr 12, 2016 1 message not in the archive Device tree bindings

lore
Share & tools
lore
#0 lore raw

cover ARM: dts: OMAP2+: Enable gpio controller for GPMC and add NAND ready pin

Hi Tony,

We will be adding gpio controller support to GPMC in [1]. The GPIO controller can also be used to provide the Read/Busy# pin status to the OMAP2+ nand driver.

These patches enable the gpio controller in the gpmc nodes and add ready pin information to the NAND nodes.

Tested on dra-evm, am437x-gp-evm, beagleboard-c4.

[1] - http://thread.gmane.org/gmane.linux.kernel/2192971

cheers,
-roger

Roger Quadros (13):
ARM: dts: omap24xx: Enable gpio and interrupt controller for GPMC
ARM: dts: omap4: Enable gpio and interrupt controller for GPMC
ARM: dts: omap5: Enable gpio and interrupt controller for GPMC
ARM: dts: dra7: Enable gpio controller for GPMC
ARM: dts: am335x: Enable gpio controller for GPMC
ARM: dts: am4372: Enable gpio controller for GPMC
ARM: dts: omap3: Enable gpio controller for GPMC
ARM: dts: dm814x: Enable gpio controller for GPMC
ARM: dts: dm816x: Enable gpio controller for GPMC
ARM: dts: dra7x-evm: Provide NAND ready pin
ARM: dts: am437x: Provide NAND ready pin
ARM: dts: am335x: Provide NAND ready pin
ARM: dts: omap3-beagle: Provide NAND ready pin

 arch/arm/boot/dts/am335x-baltos-ir5221.dts | 1 +
 arch/arm/boot/dts/am335x-chilisom.dtsi     | 1 +
 arch/arm/boot/dts/am335x-cm-t335.dts       | 1 +
 arch/arm/boot/dts/am335x-evm.dts           | 1 +
 arch/arm/boot/dts/am335x-igep0033.dtsi     | 1 +
 arch/arm/boot/dts/am335x-phycore-som.dtsi  | 1 +
 arch/arm/boot/dts/am33xx.dtsi              | 2 ++
 arch/arm/boot/dts/am4372.dtsi              | 2 ++
 arch/arm/boot/dts/am437x-gp-evm.dts        | 1 +
 arch/arm/boot/dts/am43x-epos-evm.dts       | 1 +
 arch/arm/boot/dts/dm814x.dtsi              | 2 ++
 arch/arm/boot/dts/dm816x.dtsi              | 2 ++
 arch/arm/boot/dts/dra7-evm.dts             | 1 +
 arch/arm/boot/dts/dra7.dtsi                | 2 ++
 arch/arm/boot/dts/dra72-evm.dts            | 1 +
 arch/arm/boot/dts/omap2420.dtsi            | 4 ++++
 arch/arm/boot/dts/omap2430.dtsi            | 4 ++++
 arch/arm/boot/dts/omap3-beagle.dts         | 1 +
 arch/arm/boot/dts/omap3.dtsi               | 2 ++
 arch/arm/boot/dts/omap4.dtsi               | 4 ++++
 arch/arm/boot/dts/omap5.dtsi               | 4 ++++
 21 files changed, 39 insertions(+)
Signature · 6 lines
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 1460024740-19716-1-git-send-email-rogerq-l0cyMroinI0@public.gmane.org

#2 lore raw

PATCH 1/13 ARM: dts: omap24xx: Enable gpio and interrupt controller for GPMC

GPMC driver provides interrupts and gpio for the GPMC_WAIT pins. Mark it as gpio and interrupt capable.

---
 arch/arm/boot/dts/omap2420.dtsi | 4 ++++
 arch/arm/boot/dts/omap2430.dtsi | 4 ++++
 2 files changed, 8 insertions(+)
arch/arm/boot/dts/omap2420.dtsi +4 -0
index 5b9a376..fb712b9 100644
@@ -130,6 +130,10 @@
 			gpmc,num-cs = <8>;
 			gpmc,num-waitpins = <4>;
 			ti,hwmods = "gpmc";
+			interrupt-controller;
+			#interrupt-cells = <2>;
+			gpio-controller;
+			#gpio-cells = <2>;
 		};
 
 		mcbsp1: mcbsp@48074000 {
arch/arm/boot/dts/omap2430.dtsi +4 -0
index 798dda0..5c16a1f 100644
@@ -154,6 +154,10 @@
 			gpmc,num-cs = <8>;
 			gpmc,num-waitpins = <4>;
 			ti,hwmods = "gpmc";
+			interrupt-controller;
+			#interrupt-cells = <2>;
+			gpio-controller;
+			#gpio-cells = <2>;
 		};
 
 		mcbsp1: mcbsp@48074000 {
Signature · 6 lines
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#3 lore raw

PATCH 2/13 ARM: dts: omap4: Enable gpio and interrupt controller for GPMC

In reply to a message not in the archive

GPMC driver provides interrupts and gpio for the GPMC_WAIT pins. Mark it as gpio and interrupt capable.

---
 arch/arm/boot/dts/omap4.dtsi | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/omap4.dtsi +4 -0
index 2bd9c83..5965e89 100644
@@ -370,6 +370,10 @@
 			ti,no-idle-on-init;
 			clocks = <&l3_div_ck>;
 			clock-names = "fck";
+			interrupt-controller;
+			#interrupt-cells = <2>;
+			gpio-controller;
+			#gpio-cells = <2>;
 		};
 
 		uart1: serial@4806a000 {
Signature · 6 lines
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#4 lore raw

PATCH 3/13 ARM: dts: omap5: Enable gpio and interrupt controller for GPMC

In reply to a message not in the archive

GPMC driver provides interrupts and gpio for the GPMC_WAIT pins. Mark it as gpio and interrupt capable.

---
 arch/arm/boot/dts/omap5.dtsi | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/omap5.dtsi +4 -0
index 38805eb..aecdc69 100644
@@ -398,6 +398,10 @@
 			ti,hwmods = "gpmc";
 			clocks = <&l3_iclk_div>;
 			clock-names = "fck";
+			interrupt-controller;
+			#interrupt-cells = <2>;
+			gpio-controller;
+			#gpio-cells = <2>;
 		};
 
 		i2c1: i2c@48070000 {
Signature · 6 lines
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#5 lore raw

PATCH 4/13 ARM: dts: dra7: Enable gpio controller for GPMC

In reply to a message not in the archive

GPMC driver provides GPI support for the GPMC_WAIT pins. Mark it gpio controller capable.

---
 arch/arm/boot/dts/dra7.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/boot/dts/dra7.dtsi +2 -0
index 13ac882..111594e 100644
@@ -1404,6 +1404,8 @@
 			#size-cells = <1>;
 			interrupt-controller;
 			#interrupt-cells = <2>;
+			gpio-controller;
+			#gpio-cells = <2>;
 			status = "disabled";
 		};
 
Signature · 6 lines
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#6 lore raw

PATCH 5/13 ARM: dts: am335x: Enable gpio controller for GPMC

In reply to a message not in the archive

GPMC driver provides GPI support for the GPMC_WAIT pins. Mark it gpio controller capable.

---
 arch/arm/boot/dts/am33xx.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/boot/dts/am33xx.dtsi +2 -0
index 55ca9c7..d4e0414 100644
@@ -868,6 +868,8 @@
 			#size-cells = <1>;
 			interrupt-controller;
 			#interrupt-cells = <2>;
+			gpio-controller;
+			#gpio-cells = <2>;
 			status = "disabled";
 		};
 
Signature · 6 lines
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#7 lore raw

PATCH 6/13 ARM: dts: am4372: Enable gpio controller for GPMC

In reply to a message not in the archive

GPMC driver provides GPI support for the GPMC_WAIT pins. Mark it gpio controller capable.

---
 arch/arm/boot/dts/am4372.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/boot/dts/am4372.dtsi +2 -0
index 6e4f5af..f2cc207 100644
@@ -896,6 +896,8 @@
 			#size-cells = <1>;
 			interrupt-controller;
 			#interrupt-cells = <2>;
+			gpio-controller;
+			#gpio-cells = <2>;
 			status = "disabled";
 		};
 
Signature · 6 lines
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#8 lore raw

PATCH 7/13 ARM: dts: omap3: Enable gpio controller for GPMC

In reply to a message not in the archive

GPMC driver provides GPI support for the GPMC_WAIT pins. Mark it gpio controller capable.

---
 arch/arm/boot/dts/omap3.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/boot/dts/omap3.dtsi +2 -0
index b41d07e..47d1e77 100644
@@ -725,6 +725,8 @@
 			#size-cells = <1>;
 			interrupt-controller;
 			#interrupt-cells = <2>;
+			gpio-controller;
+			#gpio-cells = <2>;
 		};
 
 		usb_otg_hs: usb_otg_hs@480ab000 {
Signature · 6 lines
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#9 lore raw

PATCH 8/13 ARM: dts: dm814x: Enable gpio controller for GPMC

In reply to a message not in the archive

GPMC driver provides GPI support for the GPMC_WAIT pins. Mark it gpio controller capable.

---
 arch/arm/boot/dts/dm814x.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/boot/dts/dm814x.dtsi +2 -0
index 4a6ce8c..d4537dc 100644
@@ -568,6 +568,8 @@
 			#size-cells = <1>;
 			interrupt-controller;
 			#interrupt-cells = <2>;
+			gpio-controller;
+			#gpio-cells = <2>;
 		};
 	};
 };
Signature · 6 lines
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#10 lore raw

PATCH 9/13 ARM: dts: dm816x: Enable gpio controller for GPMC

In reply to a message not in the archive

GPMC driver provides GPI support for the GPMC_WAIT pins. Mark it gpio controller capable.

---
 arch/arm/boot/dts/dm816x.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/boot/dts/dm816x.dtsi +2 -0
index d9309a0..44e39c74 100644
@@ -185,6 +185,8 @@
 			gpmc,num-waitpins = <2>;
 			interrupt-controller;
 			#interrupt-cells = <2>;
+			gpio-controller;
+			#gpio-cells = <2>;
 		};
 
 		i2c1: i2c@48028000 {
Signature · 6 lines
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#11 lore raw

PATCH 10/13 ARM: dts: dra7x-evm: Provide NAND ready pin

In reply to a message not in the archive

On these boards NAND ready pin status is avilable over GPMC_WAIT0 pin.

Read speed increases from 13768 KiB/ to 17246 KiB/s. Write speed was unchanged at 7123 KiB/s. Measured using mtd_speedtest.ko.

---
 arch/arm/boot/dts/dra7-evm.dts  | 1 +
 arch/arm/boot/dts/dra72-evm.dts | 1 +
 2 files changed, 2 insertions(+)
arch/arm/boot/dts/dra7-evm.dts +1 -0
index d9b8723..c1c6d6f 100644
@@ -748,6 +748,7 @@
 		interrupt-parent = <&gpmc>;
 		interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
 			     <1 IRQ_TYPE_NONE>; /* termcount */
+		rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 pin */
 		ti,nand-ecc-opt = "bch8";
 		ti,elm-id = <&elm>;
 		nand-bus-width = <16>;
arch/arm/boot/dts/dra72-evm.dts +1 -0
index 6affe2d..c819724 100644
@@ -503,6 +503,7 @@
 		interrupt-parent = <&gpmc>;
 		interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
 			     <1 IRQ_TYPE_NONE>;	/* termcount */
+		rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 pin */
 		ti,nand-ecc-opt = "bch8";
 		ti,elm-id = <&elm>;
 		nand-bus-width = <16>;
Signature · 6 lines
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#12 lore raw

PATCH 11/13 ARM: dts: am437x: Provide NAND ready pin

In reply to a message not in the archive

On these boards NAND ready pin status is avilable over GPMC_WAIT0 pin.

For NAND we don't use GPMC wait pin monitoring but get the NAND Ready/Busy# status using GPIOlib. GPMC driver provides the WAIT0 pin status over GPIOlib.

Read speed increases from 16516 KiB/ to 18813 KiB/s and write speed was unchanged at 9941 KiB/s.

Measured using mtd_speedtest.ko.

---
 arch/arm/boot/dts/am437x-gp-evm.dts  | 1 +
 arch/arm/boot/dts/am43x-epos-evm.dts | 1 +
 2 files changed, 2 insertions(+)
arch/arm/boot/dts/am437x-gp-evm.dts +1 -0
index 8889be1..5e63e59 100644
@@ -817,6 +817,7 @@
 		interrupt-parent = <&gpmc>;
 		interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
 			     <1 IRQ_TYPE_NONE>;	/* termcount */
+		rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>;	/* gpmc_wait0 */
 		ti,nand-ecc-opt = "bch16";
 		ti,elm-id = <&elm>;
 		nand-bus-width = <8>;
arch/arm/boot/dts/am43x-epos-evm.dts +1 -0
index 83dfafa..2708f11 100644
@@ -568,6 +568,7 @@
 		interrupt-parent = <&gpmc>;
 		interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
 			     <1 IRQ_TYPE_NONE>;	/* termcount */
+		rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>;	/* gpmc_wait0 */
 		ti,nand-ecc-opt = "bch16";
 		ti,elm-id = <&elm>;
 		nand-bus-width = <8>;
Signature · 6 lines
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#13 lore raw

PATCH 12/13 ARM: dts: am335x: Provide NAND ready pin

In reply to a message not in the archive

On these boards NAND ready pin status is avilable over GPMC_WAIT0 pin.

For NAND we don't use GPMC wait pin monitoring but get the NAND Ready/Busy# status using GPIOlib. GPMC driver provides the WAIT0 pin status over GPIOlib.

Read speed increases from 7869 KiB/ to 8875 KiB/s
and write speed was unchanged at 5100 KiB/s.

Measured using mtd_speedtest.ko on am335x-evm.

Cc Teresa Remmet <t.remmet-guT5V/[email protected]>
Cc Ilya Ledvich <ilya-UTxiZqZC01RS1MOuV/[email protected]>
Cc Yegor Yefremov <yegorslists-gM/[email protected]>
Cc Rostislav Lisovy <[email protected]>
Cc Enric Balletbo i Serra <[email protected]>
---
 arch/arm/boot/dts/am335x-baltos-ir5221.dts | 1 +
 arch/arm/boot/dts/am335x-chilisom.dtsi     | 1 +
 arch/arm/boot/dts/am335x-cm-t335.dts       | 1 +
 arch/arm/boot/dts/am335x-evm.dts           | 1 +
 arch/arm/boot/dts/am335x-igep0033.dtsi     | 1 +
 arch/arm/boot/dts/am335x-phycore-som.dtsi  | 1 +
 6 files changed, 6 insertions(+)
arch/arm/boot/dts/am335x-baltos-ir5221.dts +1 -0
index 6c667fb..17e92e8 100644
@@ -241,6 +241,7 @@
 		interrupt-parent = <&gpmc>;
 		interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
 			     <1 IRQ_TYPE_NONE>;	/* termcount */
+		rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
 		nand-bus-width = <8>;
 		ti,nand-ecc-opt = "bch8";
 		ti,nand-xfer-type = "polled";
arch/arm/boot/dts/am335x-chilisom.dtsi +1 -0
index 95461a2..e48c282 100644
@@ -214,6 +214,7 @@
 		interrupt-parent = <&gpmc>;
 		interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
 			     <1 IRQ_TYPE_NONE>;	/* termcount */
+		rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
 		ti,nand-ecc-opt = "bch8";
 		ti,elm-id = <&elm>;
 		nand-bus-width = <8>;
arch/arm/boot/dts/am335x-cm-t335.dts +1 -0
index e835644..817b1de 100644
@@ -411,6 +411,7 @@ status = "okay";
 		interrupt-parent = <&gpmc>;
 		interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
 			     <1 IRQ_TYPE_NONE>;	/* termcount */
+		rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
 		ti,nand-ecc-opt = "bch8";
 		ti,elm-id = <&elm>;
 		nand-bus-width = <8>;
arch/arm/boot/dts/am335x-evm.dts +1 -0
index 28b9162..516673b 100644
@@ -524,6 +524,7 @@
 		interrupt-parent = <&gpmc>;
 		interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
 			     <1 IRQ_TYPE_NONE>;	/* termcount */
+		rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
 		ti,nand-ecc-opt = "bch8";
 		ti,elm-id = <&elm>;
 		nand-bus-width = <8>;
arch/arm/boot/dts/am335x-igep0033.dtsi +1 -0
index 6c3a9bf..df63484 100644
@@ -135,6 +135,7 @@
 		interrupt-parent = <&gpmc>;
 		interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
 			     <1 IRQ_TYPE_NONE>;	/* termcount */
+		rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
 		nand-bus-width = <8>;
 		ti,nand-ecc-opt = "bch8";
 		gpmc,device-width = <1>;
arch/arm/boot/dts/am335x-phycore-som.dtsi +1 -0
index d4b7f3b..86f7731 100644
@@ -171,6 +171,7 @@
 		interrupt-parent = <&gpmc>;
 		interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
 			     <1 IRQ_TYPE_NONE>;	/* termcount */
+		rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
 		nand-bus-width = <8>;
 		ti,nand-ecc-opt = "bch8";
 		gpmc,device-nand = "true";
Signature · 6 lines
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#14 lore raw

PATCH 13/13 ARM: dts: omap3-beagle: Provide NAND ready pin

In reply to a message not in the archive

On these boards NAND ready pin status is avilable over GPMC_WAIT0 pin.

For NAND we don't use GPMC wait pin monitoring but get the NAND Ready/Busy# status using GPIOlib. GPMC driver provides the WAIT0 pin status over GPIOlib.

Read speed increases from 13212 KiB/ to 15753 KiB/s and write speed was unchanged at 4404 KiB/s.

Measured using mtd_speedtest.ko on omap3-beagle-c4.

---
 arch/arm/boot/dts/omap3-beagle.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/omap3-beagle.dts +1 -0
index 4602866..a4deff0 100644
@@ -390,6 +390,7 @@
 		interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
 			     <1 IRQ_TYPE_NONE>;	/* termcount */
 		ti,nand-ecc-opt = "ham1";
+		rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
 		nand-bus-width = <16>;
 		#address-cells = <1>;
 		#size-cells = <1>;
Signature · 6 lines
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#15 lore raw
In reply to a message not in the archive
Quoted 8 lines · Roger Quadros

Hi Tony,

We will be adding gpio controller support to GPMC in [1]. The GPIO controller can also be used to provide the Read/Busy# pin status to the OMAP2+ nand driver.

These patches enable the gpio controller in the gpmc nodes and add ready pin information to the NAND nodes.

Thanks applying all into omap-for-v4.7/dt.

Tony
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html