All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] mpc8349emitx: add bindings for GPIO, I2C and leds
@ 2009-11-16 13:58 Dmitry Eremin-Solenikov
  2009-11-16 13:58 ` [PATCH 1/4] mpc8349emitx: add gpio controller declarations Dmitry Eremin-Solenikov
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Dmitry Eremin-Solenikov @ 2009-11-16 13:58 UTC (permalink / raw)
  To: Kumar Gala; +Cc: linuxppc-dev

Hello,

Please apply the following patches:

Dmitry Eremin-Solenikov (4):
      mpc8349emitx: add gpio controller declarations
      mpc8349emitx: populate I2C busses
      mpc8349emitx: add OF descriptions of LocalBus devices
      mpc8349emitx: add leds-gpio binding

 arch/powerpc/boot/dts/mpc8349emitx.dts |   82 +++++++++++++++++++++++++++++++-
 1 files changed, 81 insertions(+), 1 deletions(-)

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

* [PATCH 1/4] mpc8349emitx: add gpio controller declarations
  2009-11-16 13:58 [PATCH 0/4] mpc8349emitx: add bindings for GPIO, I2C and leds Dmitry Eremin-Solenikov
@ 2009-11-16 13:58 ` Dmitry Eremin-Solenikov
  2009-12-09 21:17   ` Kumar Gala
  2009-11-16 13:58 ` [PATCH 2/4] mpc8349emitx: populate I2C busses Dmitry Eremin-Solenikov
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 11+ messages in thread
From: Dmitry Eremin-Solenikov @ 2009-11-16 13:58 UTC (permalink / raw)
  To: Kumar Gala; +Cc: linuxppc-dev

mpc8349 bears two GPIO controllers. Enable support for them.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
---
 arch/powerpc/boot/dts/mpc8349emitx.dts |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/boot/dts/mpc8349emitx.dts b/arch/powerpc/boot/dts/mpc8349emitx.dts
index feeeb7f..16872c9 100644
--- a/arch/powerpc/boot/dts/mpc8349emitx.dts
+++ b/arch/powerpc/boot/dts/mpc8349emitx.dts
@@ -63,6 +63,24 @@
 			reg = <0x200 0x100>;
 		};
 
+		gpio1: gpio-controller@c00 {
+			#gpio-cells = <2>;
+			compatible = "fsl,mpc8349-gpio";
+			reg = <0xc00 0x100>;
+			interrupts = <74 0x8>;
+			interrupt-parent = <&ipic>;
+			gpio-controller;
+		};
+
+		gpio2: gpio-controller@d00 {
+			#gpio-cells = <2>;
+			compatible = "fsl,mpc8349-gpio";
+			reg = <0xd00 0x100>;
+			interrupts = <75 0x8>;
+			interrupt-parent = <&ipic>;
+			gpio-controller;
+		};
+
 		i2c@3000 {
 			#address-cells = <1>;
 			#size-cells = <0>;
-- 
1.6.5

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

* [PATCH 2/4] mpc8349emitx: populate I2C busses
  2009-11-16 13:58 [PATCH 0/4] mpc8349emitx: add bindings for GPIO, I2C and leds Dmitry Eremin-Solenikov
  2009-11-16 13:58 ` [PATCH 1/4] mpc8349emitx: add gpio controller declarations Dmitry Eremin-Solenikov
@ 2009-11-16 13:58 ` Dmitry Eremin-Solenikov
  2009-12-09 21:17   ` Kumar Gala
  2009-11-16 13:58 ` [PATCH 3/4] mpc8349emitx: add OF descriptions of LocalBus devices Dmitry Eremin-Solenikov
  2009-11-16 13:58 ` [PATCH 4/4] mpc8349emitx: add leds-gpio binding Dmitry Eremin-Solenikov
  3 siblings, 1 reply; 11+ messages in thread
From: Dmitry Eremin-Solenikov @ 2009-11-16 13:58 UTC (permalink / raw)
  To: Kumar Gala; +Cc: linuxppc-dev

Add OF descriptions of EEPROM, two GPIO extenders and SPD hanging on I2C
on this board.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
---
 arch/powerpc/boot/dts/mpc8349emitx.dts |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/boot/dts/mpc8349emitx.dts b/arch/powerpc/boot/dts/mpc8349emitx.dts
index 16872c9..0fb78b2 100644
--- a/arch/powerpc/boot/dts/mpc8349emitx.dts
+++ b/arch/powerpc/boot/dts/mpc8349emitx.dts
@@ -90,6 +90,12 @@
 			interrupts = <14 0x8>;
 			interrupt-parent = <&ipic>;
 			dfsrr;
+
+			eeprom: at24@50 {
+				compatible = "st-micro,24c256";
+				reg = <0x50>;
+			};
+
 		};
 
 		i2c@3100 {
@@ -109,6 +115,25 @@
 				interrupt-parent = <&ipic>;
 			};
 
+			pcf1: iexp@38 {
+				#gpio-cells = <2>;
+				compatible = "ti,pcf8574a";
+				reg = <0x38>;
+				gpio-controller;
+			};
+
+			pcf2: iexp@39 {
+				#gpio-cells = <2>;
+				compatible = "ti,pcf8574a";
+				reg = <0x39>;
+				gpio-controller;
+			};
+
+			spd: at24@51 {
+				compatible = "at24,spd";
+				reg = <0x51>;
+			};
+
 			mcu_pio: mcu@a {
 				#gpio-cells = <2>;
 				compatible = "fsl,mc9s08qg8-mpc8349emitx",
-- 
1.6.5

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

* [PATCH 3/4] mpc8349emitx: add OF descriptions of LocalBus devices
  2009-11-16 13:58 [PATCH 0/4] mpc8349emitx: add bindings for GPIO, I2C and leds Dmitry Eremin-Solenikov
  2009-11-16 13:58 ` [PATCH 1/4] mpc8349emitx: add gpio controller declarations Dmitry Eremin-Solenikov
  2009-11-16 13:58 ` [PATCH 2/4] mpc8349emitx: populate I2C busses Dmitry Eremin-Solenikov
@ 2009-11-16 13:58 ` Dmitry Eremin-Solenikov
  2009-11-16 19:36   ` Scott Wood
  2009-11-16 13:58 ` [PATCH 4/4] mpc8349emitx: add leds-gpio binding Dmitry Eremin-Solenikov
  3 siblings, 1 reply; 11+ messages in thread
From: Dmitry Eremin-Solenikov @ 2009-11-16 13:58 UTC (permalink / raw)
  To: Kumar Gala; +Cc: linuxppc-dev

Describe all LocalBus chipselects on MPC8349E-MITX board. Also add flash
bindings.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
---
 arch/powerpc/boot/dts/mpc8349emitx.dts |   21 ++++++++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/boot/dts/mpc8349emitx.dts b/arch/powerpc/boot/dts/mpc8349emitx.dts
index 0fb78b2..097950c 100644
--- a/arch/powerpc/boot/dts/mpc8349emitx.dts
+++ b/arch/powerpc/boot/dts/mpc8349emitx.dts
@@ -374,7 +374,26 @@
 		compatible = "fsl,mpc8349e-localbus",
 			     "fsl,pq2pro-localbus";
 		reg = <0xe0005000 0xd8>;
-		ranges = <0x3 0x0 0xf0000000 0x210>;
+		ranges = <0x0 0x0 0xfe000000 0x1000000	/* flash */
+			  0x1 0x0 0xf8000000 0x20000	/* VSC 7385 */
+			  0x2 0x0 0xf9000000 0x200000	/* exp slot */
+			  0x3 0x0 0xf0000000 0x210>;	/* CF slot */
+
+		flash@0,0 {
+			compatible = "cfi-flash";
+			reg = <0x0      0x0 0x800000>;
+			bank-width = <2>;
+			device-width = <1>;
+		};
+
+		flash@0,1 {
+			#address-cells = <1>;
+			#size-cells = <1>;
+			compatible = "cfi-flash";
+			reg = <0x0 0x800000 0x800000>;
+			bank-width = <2>;
+			device-width = <1>;
+		};
 
 		pata@3,0 {
 			compatible = "fsl,mpc8349emitx-pata", "ata-generic";
-- 
1.6.5

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

* [PATCH 4/4] mpc8349emitx: add leds-gpio binding
  2009-11-16 13:58 [PATCH 0/4] mpc8349emitx: add bindings for GPIO, I2C and leds Dmitry Eremin-Solenikov
                   ` (2 preceding siblings ...)
  2009-11-16 13:58 ` [PATCH 3/4] mpc8349emitx: add OF descriptions of LocalBus devices Dmitry Eremin-Solenikov
@ 2009-11-16 13:58 ` Dmitry Eremin-Solenikov
  2009-12-09 21:17   ` Kumar Gala
  3 siblings, 1 reply; 11+ messages in thread
From: Dmitry Eremin-Solenikov @ 2009-11-16 13:58 UTC (permalink / raw)
  To: Kumar Gala; +Cc: linuxppc-dev

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
---
 arch/powerpc/boot/dts/mpc8349emitx.dts |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/boot/dts/mpc8349emitx.dts b/arch/powerpc/boot/dts/mpc8349emitx.dts
index 097950c..fb58a7c 100644
--- a/arch/powerpc/boot/dts/mpc8349emitx.dts
+++ b/arch/powerpc/boot/dts/mpc8349emitx.dts
@@ -318,6 +318,24 @@
 			reg = <0x700 0x100>;
 			device_type = "ipic";
 		};
+
+		gpio-leds {
+			compatible = "gpio-leds";
+
+			green {
+				label = "Green";
+				gpios = <&pcf1 0 1>;
+				linux,default-trigger = "heartbeat";
+			};
+
+			yellow {
+				label = "Yellow";
+				gpios = <&pcf1 1 1>;
+				/* linux,default-trigger = "heartbeat"; */
+				default-state = "on";
+			};
+		};
+
 	};
 
 	pci0: pci@e0008500 {
-- 
1.6.5

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

* Re: [PATCH 3/4] mpc8349emitx: add OF descriptions of LocalBus devices
  2009-11-16 13:58 ` [PATCH 3/4] mpc8349emitx: add OF descriptions of LocalBus devices Dmitry Eremin-Solenikov
@ 2009-11-16 19:36   ` Scott Wood
  2009-11-16 20:51     ` Dmitry Eremin-Solenikov
  0 siblings, 1 reply; 11+ messages in thread
From: Scott Wood @ 2009-11-16 19:36 UTC (permalink / raw)
  To: Dmitry Eremin-Solenikov; +Cc: linuxppc-dev

On Mon, Nov 16, 2009 at 04:58:53PM +0300, Dmitry Eremin-Solenikov wrote:
> +		flash@0,1 {
> +			#address-cells = <1>;
> +			#size-cells = <1>;
> +			compatible = "cfi-flash";
> +			reg = <0x0 0x800000 0x800000>;
> +			bank-width = <2>;
> +			device-width = <1>;
> +		};

Should be "flash@0,800000".

-Scott

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

* Re: [PATCH 3/4] mpc8349emitx: add OF descriptions of LocalBus devices
  2009-11-16 19:36   ` Scott Wood
@ 2009-11-16 20:51     ` Dmitry Eremin-Solenikov
  2009-12-09 21:17       ` Kumar Gala
  0 siblings, 1 reply; 11+ messages in thread
From: Dmitry Eremin-Solenikov @ 2009-11-16 20:51 UTC (permalink / raw)
  To: Scott Wood; +Cc: linuxppc-dev

Describe all LocalBus chipselects on MPC8349E-MITX board. Also add flash
bindings.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
---
 arch/powerpc/boot/dts/mpc8349emitx.dts |   21 ++++++++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/boot/dts/mpc8349emitx.dts b/arch/powerpc/boot/dts/mpc8349emitx.dts
index 0fb78b2..346d1ba 100644
--- a/arch/powerpc/boot/dts/mpc8349emitx.dts
+++ b/arch/powerpc/boot/dts/mpc8349emitx.dts
@@ -374,7 +374,26 @@
 		compatible = "fsl,mpc8349e-localbus",
 			     "fsl,pq2pro-localbus";
 		reg = <0xe0005000 0xd8>;
-		ranges = <0x3 0x0 0xf0000000 0x210>;
+		ranges = <0x0 0x0 0xfe000000 0x1000000	/* flash */
+			  0x1 0x0 0xf8000000 0x20000	/* VSC 7385 */
+			  0x2 0x0 0xf9000000 0x200000	/* exp slot */
+			  0x3 0x0 0xf0000000 0x210>;	/* CF slot */
+
+		flash@0,0 {
+			compatible = "cfi-flash";
+			reg = <0x0      0x0 0x800000>;
+			bank-width = <2>;
+			device-width = <1>;
+		};
+
+		flash@0,800000 {
+			#address-cells = <1>;
+			#size-cells = <1>;
+			compatible = "cfi-flash";
+			reg = <0x0 0x800000 0x800000>;
+			bank-width = <2>;
+			device-width = <1>;
+		};
 
 		pata@3,0 {
 			compatible = "fsl,mpc8349emitx-pata", "ata-generic";
-- 
1.6.5

-- 
With best wishes
Dmitry

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

* Re: [PATCH 1/4] mpc8349emitx: add gpio controller declarations
  2009-11-16 13:58 ` [PATCH 1/4] mpc8349emitx: add gpio controller declarations Dmitry Eremin-Solenikov
@ 2009-12-09 21:17   ` Kumar Gala
  0 siblings, 0 replies; 11+ messages in thread
From: Kumar Gala @ 2009-12-09 21:17 UTC (permalink / raw)
  To: Dmitry Eremin-Solenikov; +Cc: linuxppc-dev


On Nov 16, 2009, at 7:58 AM, Dmitry Eremin-Solenikov wrote:

> mpc8349 bears two GPIO controllers. Enable support for them.
> 
> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
> ---
> arch/powerpc/boot/dts/mpc8349emitx.dts |   18 ++++++++++++++++++
> 1 files changed, 18 insertions(+), 0 deletions(-)

applied to next

- k

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

* Re: [PATCH 2/4] mpc8349emitx: populate I2C busses
  2009-11-16 13:58 ` [PATCH 2/4] mpc8349emitx: populate I2C busses Dmitry Eremin-Solenikov
@ 2009-12-09 21:17   ` Kumar Gala
  0 siblings, 0 replies; 11+ messages in thread
From: Kumar Gala @ 2009-12-09 21:17 UTC (permalink / raw)
  To: Dmitry Eremin-Solenikov; +Cc: linuxppc-dev


On Nov 16, 2009, at 7:58 AM, Dmitry Eremin-Solenikov wrote:

> Add OF descriptions of EEPROM, two GPIO extenders and SPD hanging on I2C
> on this board.
> 
> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
> ---
> arch/powerpc/boot/dts/mpc8349emitx.dts |   25 +++++++++++++++++++++++++
> 1 files changed, 25 insertions(+), 0 deletions(-)

applied to next

- k

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

* Re: [PATCH 3/4] mpc8349emitx: add OF descriptions of LocalBus devices
  2009-11-16 20:51     ` Dmitry Eremin-Solenikov
@ 2009-12-09 21:17       ` Kumar Gala
  0 siblings, 0 replies; 11+ messages in thread
From: Kumar Gala @ 2009-12-09 21:17 UTC (permalink / raw)
  To: Dmitry Eremin-Solenikov; +Cc: Scott Wood, linuxppc-dev


On Nov 16, 2009, at 2:51 PM, Dmitry Eremin-Solenikov wrote:

> Describe all LocalBus chipselects on MPC8349E-MITX board. Also add flash
> bindings.
> 
> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
> ---
> arch/powerpc/boot/dts/mpc8349emitx.dts |   21 ++++++++++++++++++++-
> 1 files changed, 20 insertions(+), 1 deletions(-)

applied to next

- k

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

* Re: [PATCH 4/4] mpc8349emitx: add leds-gpio binding
  2009-11-16 13:58 ` [PATCH 4/4] mpc8349emitx: add leds-gpio binding Dmitry Eremin-Solenikov
@ 2009-12-09 21:17   ` Kumar Gala
  0 siblings, 0 replies; 11+ messages in thread
From: Kumar Gala @ 2009-12-09 21:17 UTC (permalink / raw)
  To: Dmitry Eremin-Solenikov; +Cc: linuxppc-dev


On Nov 16, 2009, at 7:58 AM, Dmitry Eremin-Solenikov wrote:

> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
> ---
> arch/powerpc/boot/dts/mpc8349emitx.dts |   18 ++++++++++++++++++
> 1 files changed, 18 insertions(+), 0 deletions(-)

applied to next

- k

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

end of thread, other threads:[~2009-12-09 21:17 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-16 13:58 [PATCH 0/4] mpc8349emitx: add bindings for GPIO, I2C and leds Dmitry Eremin-Solenikov
2009-11-16 13:58 ` [PATCH 1/4] mpc8349emitx: add gpio controller declarations Dmitry Eremin-Solenikov
2009-12-09 21:17   ` Kumar Gala
2009-11-16 13:58 ` [PATCH 2/4] mpc8349emitx: populate I2C busses Dmitry Eremin-Solenikov
2009-12-09 21:17   ` Kumar Gala
2009-11-16 13:58 ` [PATCH 3/4] mpc8349emitx: add OF descriptions of LocalBus devices Dmitry Eremin-Solenikov
2009-11-16 19:36   ` Scott Wood
2009-11-16 20:51     ` Dmitry Eremin-Solenikov
2009-12-09 21:17       ` Kumar Gala
2009-11-16 13:58 ` [PATCH 4/4] mpc8349emitx: add leds-gpio binding Dmitry Eremin-Solenikov
2009-12-09 21:17   ` Kumar Gala

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.