Skip to contentSkip to conversation

mpc8349emitx: add bindings for GPIO, I2C and leds

PATCH Applied Dmitry Eremin-Solenikov 3 participants 11 messages Nov 16, 2009 – Dec 9, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover mpc8349emitx: add bindings for GPIO, I2C and leds

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(-)
#1 lore raw

PATCH 1/4 mpc8349emitx: add gpio controller declarations

mpc8349 bears two GPIO controllers. Enable support for them.

---
 arch/powerpc/boot/dts/mpc8349emitx.dts |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)
arch/powerpc/boot/dts/mpc8349emitx.dts +18 -0
index feeeb7f..16872c9 100644
@@ -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>;
Signature · 1 line
1.6.5
Applied
#2 lore raw

Re: [PATCH 1/4] mpc8349emitx: add gpio controller declarations

Quoted 6 lines · Dmitry Eremin-Solenikov

mpc8349 bears two GPIO controllers. Enable support for them.

---
arch/powerpc/boot/dts/mpc8349emitx.dts | 18 ++++++++++++++++++

1 files changed, 18 insertions(+), 0 deletions(-)

applied to next

- k

#3 lore raw

PATCH 2/4 mpc8349emitx: populate I2C busses

In reply to Dmitry Eremin-Solenikov

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

---
 arch/powerpc/boot/dts/mpc8349emitx.dts |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)
arch/powerpc/boot/dts/mpc8349emitx.dts +25 -0
index 16872c9..0fb78b2 100644
@@ -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",
Signature · 1 line
1.6.5
Applied
#4 lore raw

Re: [PATCH 2/4] mpc8349emitx: populate I2C busses

Quoted 7 lines · Dmitry Eremin-Solenikov

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

---
arch/powerpc/boot/dts/mpc8349emitx.dts | 25 +++++++++++++++++++++++++

1 files changed, 25 insertions(+), 0 deletions(-)

applied to next

- k

#5 lore raw

PATCH 3/4 mpc8349emitx: add OF descriptions of LocalBus devices

In reply to Dmitry Eremin-Solenikov

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

---
 arch/powerpc/boot/dts/mpc8349emitx.dts |   21 ++++++++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)
arch/powerpc/boot/dts/mpc8349emitx.dts +20 -1
index 0fb78b2..097950c 100644
@@ -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";
Signature · 1 line
1.6.5
#6 lore raw

Re: [PATCH 3/4] mpc8349emitx: add OF descriptions of LocalBus devices

arch/powerpc/boot/dts/mpc8349emitx.dts line 396

Quoted 8 lines · Dmitry Eremin-Solenikov
arch/powerpc/boot/dts/mpc8349emitx.dts +8 -0
+		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

#7 lore raw

Re: [PATCH 3/4] mpc8349emitx: add OF descriptions of LocalBus devices

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

---
 arch/powerpc/boot/dts/mpc8349emitx.dts |   21 ++++++++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)
arch/powerpc/boot/dts/mpc8349emitx.dts +20 -1
index 0fb78b2..346d1ba 100644
@@ -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";
Signature · 5 lines
1.6.5

-- 
With best wishes
Dmitry
Applied
#8 lore raw

Re: [PATCH 3/4] mpc8349emitx: add OF descriptions of LocalBus devices

Quoted 7 lines · Dmitry Eremin-Solenikov

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

---
arch/powerpc/boot/dts/mpc8349emitx.dts | 21 ++++++++++++++++++++-

1 files changed, 20 insertions(+), 1 deletions(-)

applied to next

- k

#9 lore raw

PATCH 4/4 mpc8349emitx: add leds-gpio binding

In reply to Dmitry Eremin-Solenikov
---
 arch/powerpc/boot/dts/mpc8349emitx.dts |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)
arch/powerpc/boot/dts/mpc8349emitx.dts +18 -0
index 097950c..fb58a7c 100644
@@ -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 {
Signature · 1 line
1.6.5
Applied
#10 lore raw

Re: [PATCH 4/4] mpc8349emitx: add leds-gpio binding

Quoted 4 lines · Dmitry Eremin-Solenikov

---
arch/powerpc/boot/dts/mpc8349emitx.dts | 18 ++++++++++++++++++

1 files changed, 18 insertions(+), 0 deletions(-)

applied to next

- k