linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] powerpc/5200: mpc5200b.dtsi: add spi node address- and size-cells properties
@ 2011-05-16 16:02 Anatolij Gustschin
  2011-05-16 16:02 ` [PATCH 2/2] powerpc/5200: dts: digsy_mtc.dts: update to add can, pci, serial and spi Anatolij Gustschin
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Anatolij Gustschin @ 2011-05-16 16:02 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: devicetree-discuss

Both, #address-cells and #size-cells properties are required
for spi bus node, so add them.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
---
 arch/powerpc/boot/dts/mpc5200b.dtsi |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/boot/dts/mpc5200b.dtsi b/arch/powerpc/boot/dts/mpc5200b.dtsi
index bc27548..7ab286a 100644
--- a/arch/powerpc/boot/dts/mpc5200b.dtsi
+++ b/arch/powerpc/boot/dts/mpc5200b.dtsi
@@ -147,6 +147,8 @@
 		};
 
 		spi@f00 {
+			#address-cells = <1>;
+			#size-cells = <0>;
 			compatible = "fsl,mpc5200b-spi","fsl,mpc5200-spi";
 			reg = <0xf00 0x20>;
 			interrupts = <2 13 0 2 14 0>;
-- 
1.7.1

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

* [PATCH 2/2] powerpc/5200: dts: digsy_mtc.dts: update to add can, pci, serial and spi
  2011-05-16 16:02 [PATCH 1/2] powerpc/5200: mpc5200b.dtsi: add spi node address- and size-cells properties Anatolij Gustschin
@ 2011-05-16 16:02 ` Anatolij Gustschin
  2011-06-06 22:27 ` [PATCH] powerpc/5200: dts: digsy_mtc.dts: add timer0 and timer1 gpio properties Anatolij Gustschin
  2011-07-06  9:43 ` [PATCH 1/2] powerpc/5200: mpc5200b.dtsi: add spi node address- and size-cells properties Anatolij Gustschin
  2 siblings, 0 replies; 7+ messages in thread
From: Anatolij Gustschin @ 2011-05-16 16:02 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: devicetree-discuss, Heiko Schocher

Add new nodes to describe more hardware the board is
equipped with:
 - two can nodes for SJA1000 on localbus
 - pci node to support Coral-PA graphics controller
 - serial node for SC28L92 DUART on localbus
 - spi node for MSP430 device

Also correct i2c eeprom node name.

Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
---
 arch/powerpc/boot/dts/digsy_mtc.dts |   50 ++++++++++++++++++++++++++++++++--
 1 files changed, 47 insertions(+), 3 deletions(-)

diff --git a/arch/powerpc/boot/dts/digsy_mtc.dts b/arch/powerpc/boot/dts/digsy_mtc.dts
index 27bd267..e205d17 100644
--- a/arch/powerpc/boot/dts/digsy_mtc.dts
+++ b/arch/powerpc/boot/dts/digsy_mtc.dts
@@ -38,6 +38,14 @@
 			status = "disabled";
 		};
 
+		spi@f00 {
+			msp430@0 {
+				compatible = "spidev";
+				spi-max-frequency = <32000>;
+				reg = <0>;
+			};
+		};
+
 		psc@2000 {		// PSC1
 			status = "disabled";
 		};
@@ -73,11 +81,16 @@
 		};
 
 		i2c@3d00 {
-			rtc@50 {
+			eeprom@50 {
 				compatible = "at,24c08";
 				reg = <0x50>;
 			};
 
+			rtc@56 {
+				compatible = "mc,rv3029c2";
+				reg = <0x56>;
+			};
+
 			rtc@68 {
 				compatible = "dallas,ds1339";
 				reg = <0x68>;
@@ -90,11 +103,22 @@
 	};
 
 	pci@f0000d00 {
-		status = "disabled";
+		interrupt-map-mask = <0xf800 0 0 7>;
+		interrupt-map = <0xc000 0 0 1 &mpc5200_pic 0 0 3
+				 0xc000 0 0 2 &mpc5200_pic 0 0 3
+				 0xc000 0 0 3 &mpc5200_pic 0 0 3
+				 0xc000 0 0 4 &mpc5200_pic 0 0 3>;
+		clock-frequency = <0>; // From boot loader
+		interrupts = <2 8 0 2 9 0 2 10 0>;
+		bus-range = <0 0>;
+		ranges = <0x42000000 0 0x80000000 0x80000000 0 0x10000000
+			  0x02000000 0 0x90000000 0x90000000 0 0x10000000
+			  0x01000000 0 0x00000000 0xa0000000 0 0x01000000>;
 	};
 
 	localbus {
-		ranges = <0 0 0xff000000 0x1000000>;
+		ranges = <0 0 0xff000000 0x1000000
+			  4 0 0x60000000 0x0001000>;
 
 		// 16-bit flash device at LocalPlus Bus CS0
 		flash@0,0 {
@@ -122,5 +146,25 @@
 				reg = <0x00f00000 0x100000>;
 			};
 		};
+
+		can@4,0 {
+			compatible = "nxp,sja1000";
+			reg = <4 0x000 0x80>;
+			nxp,external-clock-frequency = <24000000>;
+			interrupts = <1 2 3>; // Level-low
+		};
+
+		can@4,100 {
+			compatible = "nxp,sja1000";
+			reg = <4 0x100 0x80>;
+			nxp,external-clock-frequency = <24000000>;
+			interrupts = <1 2 3>;  // Level-low
+		};
+
+		serial@4,200 {
+			compatible = "nxp,sc28l92";
+			reg = <4 0x200 0x10>;
+			interrupts = <1 3 3>;
+		};
 	};
 };
-- 
1.7.1

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

* [PATCH] powerpc/5200: dts: digsy_mtc.dts: add timer0 and timer1 gpio properties
  2011-05-16 16:02 [PATCH 1/2] powerpc/5200: mpc5200b.dtsi: add spi node address- and size-cells properties Anatolij Gustschin
  2011-05-16 16:02 ` [PATCH 2/2] powerpc/5200: dts: digsy_mtc.dts: update to add can, pci, serial and spi Anatolij Gustschin
@ 2011-06-06 22:27 ` Anatolij Gustschin
  2011-07-06  9:46   ` Anatolij Gustschin
  2011-07-06  9:43 ` [PATCH 1/2] powerpc/5200: mpc5200b.dtsi: add spi node address- and size-cells properties Anatolij Gustschin
  2 siblings, 1 reply; 7+ messages in thread
From: Anatolij Gustschin @ 2011-06-06 22:27 UTC (permalink / raw)
  To: linuxppc-dev, grant.likely; +Cc: Anatolij Gustschin

timer0 and timer1 pins are used as simple GPIO on this board.
Add gpio-controller and #gpio-cells properties to timer nodes
so that we can control gpio lines using available MPC52xx
GPT driver.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
---
 arch/powerpc/boot/dts/digsy_mtc.dts |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/boot/dts/digsy_mtc.dts b/arch/powerpc/boot/dts/digsy_mtc.dts
index e205d17..2aad7ae 100644
--- a/arch/powerpc/boot/dts/digsy_mtc.dts
+++ b/arch/powerpc/boot/dts/digsy_mtc.dts
@@ -23,7 +23,14 @@
 
 	soc5200@f0000000 {
 		timer@600 {	// General Purpose Timer
+			#gpio-cells = <2>;
 			fsl,has-wdt;
+			gpio-controller;
+		};
+
+		timer@610 {
+			#gpio-cells = <2>;
+			gpio-controller;
 		};
 
 		rtc@800 {
-- 
1.7.1

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

* Re: [PATCH 1/2] powerpc/5200: mpc5200b.dtsi: add spi node address- and size-cells properties
  2011-05-16 16:02 [PATCH 1/2] powerpc/5200: mpc5200b.dtsi: add spi node address- and size-cells properties Anatolij Gustschin
  2011-05-16 16:02 ` [PATCH 2/2] powerpc/5200: dts: digsy_mtc.dts: update to add can, pci, serial and spi Anatolij Gustschin
  2011-06-06 22:27 ` [PATCH] powerpc/5200: dts: digsy_mtc.dts: add timer0 and timer1 gpio properties Anatolij Gustschin
@ 2011-07-06  9:43 ` Anatolij Gustschin
  2011-07-06 17:27   ` Grant Likely
  2 siblings, 1 reply; 7+ messages in thread
From: Anatolij Gustschin @ 2011-07-06  9:43 UTC (permalink / raw)
  To: Grant Likely; +Cc: devicetree-discuss, linuxppc-dev

Hi Grant,

can you please pick these patches for 3.1 ?

On Mon, 16 May 2011 18:02:43 +0200
Anatolij Gustschin <agust@denx.de> wrote:

> Both, #address-cells and #size-cells properties are required
> for spi bus node, so add them.
> 
> Signed-off-by: Anatolij Gustschin <agust@denx.de>
> ---
>  arch/powerpc/boot/dts/mpc5200b.dtsi |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/powerpc/boot/dts/mpc5200b.dtsi b/arch/powerpc/boot/dts/mpc5200b.dtsi
> index bc27548..7ab286a 100644
> --- a/arch/powerpc/boot/dts/mpc5200b.dtsi
> +++ b/arch/powerpc/boot/dts/mpc5200b.dtsi
> @@ -147,6 +147,8 @@
>  		};
>  
>  		spi@f00 {
> +			#address-cells = <1>;
> +			#size-cells = <0>;
>  			compatible = "fsl,mpc5200b-spi","fsl,mpc5200-spi";
>  			reg = <0xf00 0x20>;
>  			interrupts = <2 13 0 2 14 0>;

Thanks,
Anatolij

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

* Re: [PATCH] powerpc/5200: dts: digsy_mtc.dts: add timer0 and timer1 gpio properties
  2011-06-06 22:27 ` [PATCH] powerpc/5200: dts: digsy_mtc.dts: add timer0 and timer1 gpio properties Anatolij Gustschin
@ 2011-07-06  9:46   ` Anatolij Gustschin
  2011-07-06 17:16     ` Grant Likely
  0 siblings, 1 reply; 7+ messages in thread
From: Anatolij Gustschin @ 2011-07-06  9:46 UTC (permalink / raw)
  To: grant.likely; +Cc: linuxppc-dev

Hi Grant,

Can you please pick this patch for 3.1 ?

On Tue,  7 Jun 2011 00:27:05 +0200
Anatolij Gustschin <agust@denx.de> wrote:

> timer0 and timer1 pins are used as simple GPIO on this board.
> Add gpio-controller and #gpio-cells properties to timer nodes
> so that we can control gpio lines using available MPC52xx
> GPT driver.
> 
> Signed-off-by: Anatolij Gustschin <agust@denx.de>
> ---
>  arch/powerpc/boot/dts/digsy_mtc.dts |    7 +++++++
>  1 files changed, 7 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/powerpc/boot/dts/digsy_mtc.dts b/arch/powerpc/boot/dts/digsy_mtc.dts
> index e205d17..2aad7ae 100644
> --- a/arch/powerpc/boot/dts/digsy_mtc.dts
> +++ b/arch/powerpc/boot/dts/digsy_mtc.dts
> @@ -23,7 +23,14 @@
>  
>  	soc5200@f0000000 {
>  		timer@600 {	// General Purpose Timer
> +			#gpio-cells = <2>;
>  			fsl,has-wdt;
> +			gpio-controller;
> +		};
> +
> +		timer@610 {
> +			#gpio-cells = <2>;
> +			gpio-controller;
>  		};
>  
>  		rtc@800 {


Thanks,
Anatolij

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

* Re: [PATCH] powerpc/5200: dts: digsy_mtc.dts: add timer0 and timer1 gpio properties
  2011-07-06  9:46   ` Anatolij Gustschin
@ 2011-07-06 17:16     ` Grant Likely
  0 siblings, 0 replies; 7+ messages in thread
From: Grant Likely @ 2011-07-06 17:16 UTC (permalink / raw)
  To: Anatolij Gustschin; +Cc: linuxppc-dev

On Wed, Jul 06, 2011 at 11:46:27AM +0200, Anatolij Gustschin wrote:
> Hi Grant,
> 
> Can you please pick this patch for 3.1 ?
> 
> On Tue,  7 Jun 2011 00:27:05 +0200
> Anatolij Gustschin <agust@denx.de> wrote:
> 
> > timer0 and timer1 pins are used as simple GPIO on this board.
> > Add gpio-controller and #gpio-cells properties to timer nodes
> > so that we can control gpio lines using available MPC52xx
> > GPT driver.
> > 
> > Signed-off-by: Anatolij Gustschin <agust@denx.de>

Merged, thanks.

g.

> > ---
> >  arch/powerpc/boot/dts/digsy_mtc.dts |    7 +++++++
> >  1 files changed, 7 insertions(+), 0 deletions(-)
> > 
> > diff --git a/arch/powerpc/boot/dts/digsy_mtc.dts b/arch/powerpc/boot/dts/digsy_mtc.dts
> > index e205d17..2aad7ae 100644
> > --- a/arch/powerpc/boot/dts/digsy_mtc.dts
> > +++ b/arch/powerpc/boot/dts/digsy_mtc.dts
> > @@ -23,7 +23,14 @@
> >  
> >  	soc5200@f0000000 {
> >  		timer@600 {	// General Purpose Timer
> > +			#gpio-cells = <2>;
> >  			fsl,has-wdt;
> > +			gpio-controller;
> > +		};
> > +
> > +		timer@610 {
> > +			#gpio-cells = <2>;
> > +			gpio-controller;
> >  		};
> >  
> >  		rtc@800 {
> 
> 
> Thanks,
> Anatolij

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

* Re: [PATCH 1/2] powerpc/5200: mpc5200b.dtsi: add spi node address- and size-cells properties
  2011-07-06  9:43 ` [PATCH 1/2] powerpc/5200: mpc5200b.dtsi: add spi node address- and size-cells properties Anatolij Gustschin
@ 2011-07-06 17:27   ` Grant Likely
  0 siblings, 0 replies; 7+ messages in thread
From: Grant Likely @ 2011-07-06 17:27 UTC (permalink / raw)
  To: Anatolij Gustschin; +Cc: devicetree-discuss, linuxppc-dev

On Wed, Jul 06, 2011 at 11:43:19AM +0200, Anatolij Gustschin wrote:
> Hi Grant,
> 
> can you please pick these patches for 3.1 ?
> 
> On Mon, 16 May 2011 18:02:43 +0200
> Anatolij Gustschin <agust@denx.de> wrote:
> 
> > Both, #address-cells and #size-cells properties are required
> > for spi bus node, so add them.
> > 
> > Signed-off-by: Anatolij Gustschin <agust@denx.de>

Merged, thanks.

g.

> > ---
> >  arch/powerpc/boot/dts/mpc5200b.dtsi |    2 ++
> >  1 files changed, 2 insertions(+), 0 deletions(-)
> > 
> > diff --git a/arch/powerpc/boot/dts/mpc5200b.dtsi b/arch/powerpc/boot/dts/mpc5200b.dtsi
> > index bc27548..7ab286a 100644
> > --- a/arch/powerpc/boot/dts/mpc5200b.dtsi
> > +++ b/arch/powerpc/boot/dts/mpc5200b.dtsi
> > @@ -147,6 +147,8 @@
> >  		};
> >  
> >  		spi@f00 {
> > +			#address-cells = <1>;
> > +			#size-cells = <0>;
> >  			compatible = "fsl,mpc5200b-spi","fsl,mpc5200-spi";
> >  			reg = <0xf00 0x20>;
> >  			interrupts = <2 13 0 2 14 0>;
> 
> Thanks,
> Anatolij

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

end of thread, other threads:[~2011-07-06 17:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-16 16:02 [PATCH 1/2] powerpc/5200: mpc5200b.dtsi: add spi node address- and size-cells properties Anatolij Gustschin
2011-05-16 16:02 ` [PATCH 2/2] powerpc/5200: dts: digsy_mtc.dts: update to add can, pci, serial and spi Anatolij Gustschin
2011-06-06 22:27 ` [PATCH] powerpc/5200: dts: digsy_mtc.dts: add timer0 and timer1 gpio properties Anatolij Gustschin
2011-07-06  9:46   ` Anatolij Gustschin
2011-07-06 17:16     ` Grant Likely
2011-07-06  9:43 ` [PATCH 1/2] powerpc/5200: mpc5200b.dtsi: add spi node address- and size-cells properties Anatolij Gustschin
2011-07-06 17:27   ` Grant Likely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).