From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.186]) by ozlabs.org (Postfix) with ESMTP id 85A05DDDFC for ; Sat, 15 Sep 2007 07:32:07 +1000 (EST) Received: by rv-out-0910.google.com with SMTP id c27so712228rvf for ; Fri, 14 Sep 2007 14:32:06 -0700 (PDT) Message-ID: Date: Sat, 15 Sep 2007 03:02:05 +0530 From: "lakshminarayana babu" To: linuxppc-dev@ozlabs.org Subject: Re: Linuxppc-dev Digest, Vol 37, Issue 87 In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2499_19661013.1189805525257" References: List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , ------=_Part_2499_19661013.1189805525257 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Is there anyone having sample pci circuit for outputting data and display it in the form of leds. thank you and regards babu On 9/13/07, linuxppc-dev-request@ozlabs.org wrote: > > Send Linuxppc-dev mailing list submissions to > linuxppc-dev@ozlabs.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://ozlabs.org/mailman/listinfo/linuxppc-dev > or, via email, send a message with subject or body 'help' to > linuxppc-dev-request@ozlabs.org > > You can reach the person managing the list at > linuxppc-dev-owner@ozlabs.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Linuxppc-dev digest..." > > > Today's Topics: > > 1. Re: Linuxppc-dev Digest, Vol 37, Issue 84 (lakshminarayana babu) > 2. Re: 2.6.23-rc3 boot hang on MPC8641D (sivaji) > 3. Re: 2.6.23-rc3 boot hang on MPC8641D (David Gibson) > 4. RE: 2.6.23-rc3 boot hang on MPC8641D (sivaji) > 5. Re: Linuxppc-dev Digest, Vol 37, Issue 84 (Kumar Gala) > 6. Re: 2.6.23-rc3 boot hang on MPC8641D (Michael Ellerman) > 7. Make mpc82xx use generic_calibrate_decr() (David Gibson) > 8. Re: [PATCH 10/10] mpc82xx: Add pq2fads board support. (Kumar Gala) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 13 Sep 2007 10:53:57 +0530 > From: "lakshminarayana babu" > Subject: Re: Linuxppc-dev Digest, Vol 37, Issue 84 > To: "Olof Johansson" > Cc: linuxppc-dev@ozlabs.org > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > sir, > can you plese suggest any book for pci driver writing...At present i am > studying linux device drivers by alexandrorubini > > On 9/13/07, Olof Johansson wrote: > > > > On Thu, Sep 13, 2007 at 10:01:36AM +0530, lakshminarayana babu wrote: > > > i am new to the linux.....can you tell me how to access the pci > > > configuration space using ioremap function...but it is implicit > > function > > > declaration... > > > > That is architecture and platform dependent. Some platforms don't even > > have a memory-mappable interface to configuration space. > > > > Instead, please use the abstracted config access functions that the > > kernel provides. (pci_read_config_word and friends). > > > > > > -Olof > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://ozlabs.org/pipermail/linuxppc-dev/attachments/20070913/2aa5ccff/attachment-0001.htm > > ------------------------------ > > Message: 2 > Date: Wed, 12 Sep 2007 22:24:22 -0700 (PDT) > From: sivaji > Subject: Re: 2.6.23-rc3 boot hang on MPC8641D > To: linuxppc-dev@ozlabs.org > Message-ID: <12648913.post@talk.nabble.com> > Content-Type: text/plain; charset=us-ascii > > > > Hi, > I am not willing to upgrade the uboot. Becuase it takes some time > to > port the new uboot for my custom boad. > whether the current problem is related to uboot ? One more point, > previously > i tried 2.6.21 with the same uboot(1.1.6) we got linux prompt but we face > some issue in the pci express in that version. so we plan to upgrade the > kernel version. > by > Sivaji > > Kumar Gala-3 wrote: > > > > > > On Sep 12, 2007, at 11:52 PM, sivaji wrote: > > > >> > >> > >> Hi, > >> I tired to move the dtb to 0x2000000, but the result was > >> same. > >> uboot version is 1.1.6 > > > > seems like a pretty old u-boot. Willing to try a 1.3.0-rc1? > > > > - k > > _______________________________________________ > > Linuxppc-dev mailing list > > Linuxppc-dev@ozlabs.org > > https://ozlabs.org/mailman/listinfo/linuxppc-dev > > > > > > -- > View this message in context: > http://www.nabble.com/2.6.23-rc3-boot-hang-on-MPC8641D-tf4433508.html#a12648913 > Sent from the linuxppc-dev mailing list archive at Nabble.com. > > > > ------------------------------ > > Message: 3 > Date: Thu, 13 Sep 2007 15:29:32 +1000 > From: David Gibson > Subject: Re: 2.6.23-rc3 boot hang on MPC8641D > To: sivaji > Cc: linuxppc-dev@ozlabs.org > Message-ID: <20070913052932.GF14905@localhost.localdomain> > Content-Type: text/plain; charset=us-ascii > > On Wed, Sep 12, 2007 at 10:24:22PM -0700, sivaji wrote: > > > > > > Hi, > > I am not willing to upgrade the uboot. Becuase it takes some > time to > > port the new uboot for my custom boad. > > whether the current problem is related to uboot ? One more point, > previously > > i tried 2.6.21 with the same uboot(1.1.6) we got linux prompt but we > face > > some issue in the pci express in that version. so we plan to upgrade the > > kernel version. > > I thought u-boot < 1.3 didn't understand the flat tree at all. In > which case you'll need a cuboot zImage. > > -- > David Gibson | I'll have my music baroque, and my code > david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ > _other_ > | _way_ _around_! > http://www.ozlabs.org/~dgibson > > > ------------------------------ > > Message: 4 > Date: Wed, 12 Sep 2007 22:32:24 -0700 (PDT) > From: sivaji > Subject: RE: 2.6.23-rc3 boot hang on MPC8641D > To: linuxppc-dev@ozlabs.org > Message-ID: <12648963.post@talk.nabble.com> > Content-Type: text/plain; charset=us-ascii > > > Hi, > Sorry i specify the wrong version, we r using 1.2.0. This uboot > was taken from the BSP which was released by Freescale. Previously we > tested > linux 2.6.21 kernel, we got linux prompt. For this we are using the same > uboot(1.2.0). > In that version we face some issues in the pci express, at that time kumar > suggest to upgrade the kernel verison 2.6.23-rc3. > Zhang did u suspect the problem is related to uboot?. > by > sivaji > > > Zhang Wei-r63237 wrote: > > > > Yes, It's too old. Maybe not fully supports FDT. You can try the version > > of Kumar said or in the BSP of Freescale released. > > > > - zw > > > >> -----Original Message----- > >> From: linuxppc-dev-bounces+wei.zhang=freescale.com@ozlabs.org > >> [mailto:linuxppc-dev-bounces+wei.zhang=freescale.com@ozlabs.or > >> g] On Behalf Of Kumar Gala > >> Sent: Thursday, September 13, 2007 1:11 PM > >> To: sivaji > >> Cc: linuxppc-dev@ozlabs.org > >> Subject: Re: 2.6.23-rc3 boot hang on MPC8641D > >> > >> > >> On Sep 12, 2007, at 11:52 PM, sivaji wrote: > >> > >> > > >> > > >> > Hi, > >> > I tired to move the dtb to 0x2000000, but the result was > >> > same. > >> > uboot version is 1.1.6 > >> > >> seems like a pretty old u-boot. Willing to try a 1.3.0-rc1? > >> > >> - k > >> _______________________________________________ > >> Linuxppc-dev mailing list > >> Linuxppc-dev@ozlabs.org > >> https://ozlabs.org/mailman/listinfo/linuxppc-dev > >> > > _______________________________________________ > > Linuxppc-dev mailing list > > Linuxppc-dev@ozlabs.org > > https://ozlabs.org/mailman/listinfo/linuxppc-dev > > > > > > -- > View this message in context: > http://www.nabble.com/2.6.23-rc3-boot-hang-on-MPC8641D-tf4433508.html#a12648963 > Sent from the linuxppc-dev mailing list archive at Nabble.com. > > > > ------------------------------ > > Message: 5 > Date: Thu, 13 Sep 2007 00:58:18 -0500 > From: Kumar Gala > Subject: Re: Linuxppc-dev Digest, Vol 37, Issue 84 > To: "lakshminarayana babu" > Cc: Olof Johansson , linuxppc-dev@ozlabs.org > Message-ID: <93B3AC37-A4E7-46BD-8484-F074911A9A44@kernel.crashing.org> > Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > > On Sep 13, 2007, at 12:23 AM, lakshminarayana babu wrote: > > > sir, > > can you plese suggest any book for pci driver writing...At > > present i am studying linux device drivers by alexandrorubini > > That's about as good as it gets. It covers writing a pci driver in > there. > > - k > > > ------------------------------ > > Message: 6 > Date: Thu, 13 Sep 2007 15:59:32 +1000 > From: Michael Ellerman > Subject: Re: 2.6.23-rc3 boot hang on MPC8641D > To: Kumar Gala > Cc: linuxppc-dev@ozlabs.org, sivaji > Message-ID: <1189663172.20396.1.camel@concordia.ozlabs.ibm.com> > Content-Type: text/plain; charset="us-ascii" > > On Thu, 2007-09-13 at 00:13 -0500, Kumar Gala wrote: > > On Sep 12, 2007, at 11:47 PM, sivaji wrote: > > > > > > > > > > > Hi, > > > I have JTAG Debugger connected to the board. I was given the > > > following commands in the root path of the kernel source > > > > If you can dump memory w/o connecting GDB, I suggest the following. > > > > Look in your kernel build for System.map and grep for log_buf you > > should get something like: > > > > c040b04c d log_buf > > c043b1a4 b __log_buf > > > > then dump the memory @ these addresses. I can't remember which one > > is the correct one. You'll want to subtract c000_0000 from the > > address to get a physical address that you can dump. This should > > help provide some possible insight into what's going on. > > __log_buf is the actual buffer, log_buf points to the current insertion > point IIRC. It should be pretty obvious that you're looking at a dmesg > buffer though, unless there's nothing in there for some reason. > > cheers > > -- > Michael Ellerman > OzLabs, IBM Australia Development Lab > > wwweb: http://michael.ellerman.id.au > phone: +61 2 6212 1183 (tie line 70 21183) > > We do not inherit the earth from our ancestors, > we borrow it from our children. - S.M.A.R.T Person > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: not available > Type: application/pgp-signature > Size: 189 bytes > Desc: This is a digitally signed message part > Url : > http://ozlabs.org/pipermail/linuxppc-dev/attachments/20070913/30f05247/attachment-0001.pgp > > ------------------------------ > > Message: 7 > Date: Thu, 13 Sep 2007 16:22:01 +1000 > From: David Gibson > Subject: Make mpc82xx use generic_calibrate_decr() > To: Kumar Gala , Tony Breeds > , linuxppc-dev@ozlabs.org > Message-ID: <20070913062201.GA24281@localhost.localdomain> > Content-Type: text/plain; charset=us-ascii > > The only difference between m82xx_calibrate_decr() and > generic_calibrate_decr() is that the former computes the timebase > frequency from the cpu node's bus-frequency property, instead of > directly from the timebase-frequency property. > > But there's no reason the timebase-frequency shouldn't be correct on > 82xx like everything else. Certainly the 82xx bootwrapper in > arch/powerpc/boot/cuboot-pq2.c should get it right. > > Therefore, this patch removes mpc82xx_calibrate_decr(), using > generic_calibrate_decr() instead. > > Signed-off-by: David Gibson > --- > > I've compiled this, but no booted it, since I don't have any 82xx > hardware. I'm hoping for an ack from someone who can test boot it. > > Index: working-2.6/arch/powerpc/platforms/82xx/mpc82xx_ads.c > =================================================================== > --- working-2.6.orig/arch/powerpc/platforms/82xx/mpc82xx_ads.c 2007-09-13 > 16:14:18.000000000 +1000 > +++ working-2.6/arch/powerpc/platforms/82xx/mpc82xx_ads.c 2007-09-13 > 16:14:38.000000000 +1000 > @@ -635,6 +635,6 @@ define_machine(mpc82xx_ads) > .init_IRQ = mpc82xx_ads_pic_init, > .show_cpuinfo = mpc82xx_ads_show_cpuinfo, > .get_irq = cpm2_get_irq, > - .calibrate_decr = m82xx_calibrate_decr, > + .calibrate_decr = generic_calibrate_decr, > .restart = m82xx_restart,.halt = m82xx_halt, > }; > Index: working-2.6/arch/powerpc/platforms/82xx/mpc82xx.c > =================================================================== > --- working-2.6.orig/arch/powerpc/platforms/82xx/mpc82xx.c 2007-09-13 > 16:13:48.000000000 +1000 > +++ working-2.6/arch/powerpc/platforms/82xx/mpc82xx.c 2007-09-13 16:15: > 13.000000000 +1000 > @@ -51,42 +51,6 @@ > > #include "pq2ads.h" > > -static int __init get_freq(char *name, unsigned long *val) > -{ > - struct device_node *cpu; > - const unsigned int *fp; > - int found = 0; > - > - /* The cpu node should have timebase and clock frequency > properties */ > - cpu = of_find_node_by_type(NULL, "cpu"); > - > - if (cpu) { > - fp = of_get_property(cpu, name, NULL); > - if (fp) { > - found = 1; > - *val = *fp; > - } > - > - of_node_put(cpu); > - } > - > - return found; > -} > - > -void __init m82xx_calibrate_decr(void) > -{ > - ppc_tb_freq = 125000000; > - if (!get_freq("bus-frequency", &ppc_tb_freq)) { > - printk(KERN_ERR "WARNING: Estimating decrementer frequency > " > - "(not found)\n"); > - } > - ppc_tb_freq /= 4; > - ppc_proc_freq = 1000000000; > - if (!get_freq("clock-frequency", &ppc_proc_freq)) > - printk(KERN_ERR "WARNING: Estimating processor frequency" > - "(not found)\n"); > -} > - > void mpc82xx_ads_show_cpuinfo(struct seq_file *m) > { > uint pvid, svid, phid1; > > -- > David Gibson | I'll have my music baroque, and my code > david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ > _other_ > | _way_ _around_! > http://www.ozlabs.org/~dgibson > > > ------------------------------ > > Message: 8 > Date: Thu, 13 Sep 2007 01:39:58 -0500 > From: Kumar Gala > Subject: Re: [PATCH 10/10] mpc82xx: Add pq2fads board support. > To: Scott Wood > Cc: linuxppc-dev@ozlabs.org > Message-ID: <9BC5B02A-4E9D-42DD-90C3-F8C3382F2A96@kernel.crashing.org> > Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > > diff --git a/arch/powerpc/boot/dts/pq2fads.dts b/arch/powerpc/boot/ > > dts/pq2fads.dts > > new file mode 100644 > > index 0000000..ad736f8 > > --- /dev/null > > +++ b/arch/powerpc/boot/dts/pq2fads.dts > > @@ -0,0 +1,236 @@ > > +/* > > + * Device Tree for the PQ2FADS-ZU board with an MPC8280 chip. > > + * > > + * Copyright 2007 Freescale Semiconductor Inc. > > + * > > + * This program is free software; you can redistribute it and/or > > modify it > > + * under the terms of the GNU General Public License as > > published by the > > + * Free Software Foundation; either version 2 of the License, or > > (at your > > + * option) any later version. > > + */ > > + > > +/ { > > + model = "pq2fads"; > > + compatible = "fsl,pq2fads"; > > + #address-cells = <1>; > > + #size-cells = <1>; > > + > > + cpus { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + cpu@0 { > > + device_type = "cpu"; > > + reg = <0>; > > + d-cache-line-size = ; > > + i-cache-line-size = ; > > + d-cache-size = ; > > + i-cache-size = ; > > + timebase-frequency = <0>; > > + clock-frequency = <0>; > > + }; > > + }; > > + > > + CS: chipselect { > > We need to document this in booting-without-of. > > > + compatible = "fsl,pq2fads-chipselect", > > + "fsl,mpc8280-chipselect", > > + "fsl,pq2-chipselect"; > > + #address-cells = <2>; > > + #size-cells = <1>; > > + fsl,ctrl = <&CSCTRL>; > > + > > + ranges = <0 0 fe000000 00800000 > > + 1 0 f4500000 00008000 > > + 8 0 f8200000 00008000>; > > + > > + flash@0,0 { > > + device_type = "rom"; > > + compatible = "direct-mapped"; > > + reg = <0 0 800000>; > > + probe-type = "JEDEC"; > > + bank-width = <4>; > > + }; > > + > > + bcsr@1,0 { > > + reg = <1 0 20>; > > + compatible = "fsl,pq2fads-bcsr"; > > + }; > > + > > + PCI_PIC: pic@8,0 { > > + #interrupt-cells = <1>; > > + interrupt-controller; > > + reg = <8 0 8>; > > + compatible = "fsl,pq2ads-pci-pic"; > > + interrupt-parent = <&PIC>; > > + interrupts = <18 8>; > > + }; > > + }; > > + > > + memory { > > + device_type = "memory"; > > + reg = <0 0>; > > + }; > > + > > + soc@f0000000 { > > + #address-cells = <1>; > > + #size-cells = <1>; > > + device_type = "soc"; > > + compatible = "fsl,mpc8280", "fsl,pq2-soc"; > > + ranges = <00000000 f0000000 00053000 > > + 80000000 80000000 40000000 > > + f6000000 f6000000 02000000>; > > + > > + CSCTRL: chipselect { > > + compatible = "fsl,mpc8280-chipselect-ctrl", > > + "fsl,pq2-chipselect-ctrl"; > > + reg = <10100 60>; > > + fsl,bus = <&CS>; > > + }; > > + > > + cpm@119c0 { > > + #address-cells = <1>; > > + #size-cells = <1>; > > + #interrupt-cells = <2>; > > + compatible = "fsl,mpc8280-cpm", "fsl,cpm2"; > > + reg = <119c0 30 0 2000>; > > + ranges; > > + > > + brg@119f0 { > > + compatible = "fsl,mpc8280-brg", > > + "fsl,cpm2-brg", > > + "fsl,cpm-brg"; > > + reg = <119f0 10 115f0 10>; > > + }; > > + > > + serial@11a00 { > > + device_type = "serial"; > > + compatible = "fsl,mpc8280-scc-uart", > > + "fsl,cpm2-scc-uart"; > > + reg = <11a00 20 8000 100>; > > + interrupts = <28 8>; > > + interrupt-parent = <&PIC>; > > + fsl,cpm-brg = <1>; > > + fsl,cpm-command = <00800000>; > > + }; > > + > > + serial@11a20 { > > + device_type = "serial"; > > + compatible = "fsl,mpc8280-scc-uart", > > + "fsl,cpm2-scc-uart"; > > + reg = <11a20 20 8100 100>; > > + interrupts = <29 8>; > > + interrupt-parent = <&PIC>; > > + fsl,cpm-brg = <2>; > > + fsl,cpm-command = <04a00000>; > > + }; > > + > > + ethernet@11320 { > > + device_type = "network"; > > + compatible = "fsl,mpc8280-fcc-enet", > > + "fsl,cpm2-fcc-enet"; > > + reg = <11320 20 8500 100 113b0 1>; > > + interrupts = <21 8>; > > + interrupt-parent = <&PIC>; > > + phy-handle = <&PHY0>; > > + linux,network-index = <0>; > > + fsl,cpm-command = <16200300>; > > + }; > > + > > + ethernet@11340 { > > + device_type = "network"; > > + compatible = "fsl,mpc8280-fcc-enet", > > + "fsl,cpm2-fcc-enet"; > > + reg = <11340 20 8600 100 113d0 1>; > > + interrupts = <22 8>; > > + interrupt-parent = <&PIC>; > > + phy-handle = <&PHY1>; > > + linux,network-index = <1>; > > + fsl,cpm-command = <1a400300>; > > + local-mac-address = [00 e0 0c 00 79 01]; > > + }; > > + > > + mdio@10d40 { > > + device_type = "mdio"; > > + compatible = "fsl,pq2fads-mdio-bitbang", > > + "fsl,mpc8280-mdio-bitbang", > > + "fsl,cpm2-mdio-bitbang"; > > + #address-cells = <1>; > > + #size-cells = <0>; > > + reg = <10d40 14>; > > + fsl,mdio-pin = <9>; > > + fsl,mdc-pin = ; > > + > > + PHY0: ethernet-phy@0 { > > + interrupt-parent = <&PIC>; > > + interrupts = <19 2>; > > + reg = <0>; > > + device_type = "ethernet-phy"; > > + }; > > + > > + PHY1: ethernet-phy@1 { > > + interrupt-parent = <&PIC>; > > + interrupts = <19 2>; > > + reg = <3>; > > + device_type = "ethernet-phy"; > > + }; > > + }; > > + > > + usb@11b60 { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + compatible = "fsl,mpc8280-usb", > > + "fsl,cpm2-usb"; > > + reg = <11b60 18 8b00 100>; > > + interrupt-parent = <&PIC>; > > + interrupts = ; > > + fsl,cpm-command = <2e600000>; > > + }; > > + }; > > + > > + PIC: interrupt-controller@10c00 { > > + #interrupt-cells = <2>; > > + interrupt-controller; > > + reg = <10c00 80>; > > + compatible = "fsl,mpc8280-pic", "fsl,pq2-pic"; > > this should also have a "fsl,cpm2-pic" or something of that form. > (exact same pic exists on 8560, 85xx+CPM) > > > + }; > > + > > + pci@10800 { > > + device_type = "pci"; > > + reg = <10800 10c 101ac 8 101c4 8>; > > + compatible = "fsl,mpc8280-pci", "fsl,pq2-pci"; > > + #interrupt-cells = <1>; > > + #size-cells = <2>; > > + #address-cells = <3>; > > + clock-frequency = ; > > + interrupt-map-mask = ; > > + interrupt-map = < > > + /* IDSEL 0x16 */ > > + b000 0 0 1 &PCI_PIC 0 > > + b000 0 0 2 &PCI_PIC 1 > > + b000 0 0 3 &PCI_PIC 2 > > + b000 0 0 4 &PCI_PIC 3 > > + > > + /* IDSEL 0x17 */ > > + b800 0 0 1 &PCI_PIC 4 > > + b800 0 0 2 &PCI_PIC 5 > > + b800 0 0 3 &PCI_PIC 6 > > + b800 0 0 4 &PCI_PIC 7 > > + > > + /* IDSEL 0x18 */ > > + c000 0 0 1 &PCI_PIC 8 > > + c000 0 0 2 &PCI_PIC 9 > > + c000 0 0 3 &PCI_PIC a > > + c000 0 0 4 &PCI_PIC b>; > > + > > + interrupt-parent = <&PIC>; > > + interrupts = <12 8>; > > + ranges = <42000000 0 80000000 80000000 0 20000000 > > + 02000000 0 a0000000 a0000000 0 20000000 > > + 01000000 0 00000000 f6000000 0 > 02000000>; > > + }; > > + }; > > + > > + chosen { > > + linux,stdout-path = "/soc/cpm/serial@11a00"; > > + }; > > +}; > > - k > > > > > ------------------------------ > > _______________________________________________ > Linuxppc-dev mailing list > Linuxppc-dev@ozlabs.org > https://ozlabs.org/mailman/listinfo/linuxppc-dev > > End of Linuxppc-dev Digest, Vol 37, Issue 87 > ******************************************** > ------=_Part_2499_19661013.1189805525257 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Is there anyone having sample pci circuit for outputting data and display i= t in the form of leds.

thank you and regards
babu

On 9/13/07, linuxppc-dev-request@ozlabs.org <linuxppc-dev-request@ozlabs.org> wrote: Send Linuxppc-dev mailing list submissions to
    &n= bsp;   linuxppc-d= ev@ozlabs.org

To subscribe or unsubscribe via the World Wide Web= , visit
         https://ozlabs.org/mailman/listinfo/linuxppc-dev
or, via email, send= a message with subject or body 'help' to
   &nbs= p;    linuxppc-dev-request@ozlabs.org

You can reach the person managing the list at
   &nbs= p;    = linuxppc-dev-owner@ozlabs.org

When replying, please edit your Su= bject line so it is more specific
than "Re: Contents of Linuxppc-de= v digest..."


Today's Topics:

   1. Re: Linuxppc-dev Dig= est, Vol 37, Issue 84 (lakshminarayana babu)
   2. Re: 2.6.23-= rc3 boot hang on MPC8641D (sivaji)
   3. Re: 2.6.23-rc3 boot h= ang on MPC8641D (David Gibson)
   4. RE: 2.6.23-rc3 boot hang on MPC8641D (sivaji)
 =   5. Re: Linuxppc-dev Digest, Vol 37, Issue 84 (Kumar Gala)
 &= nbsp; 6. Re: 2.6.23-rc3 boot hang on MPC8641D (Michael Ellerman)
 &= nbsp; 7. Make mpc82xx use generic_calibrate_decr() (David Gibson)
   8. Re: [PATCH 10/10] mpc82xx: Add pq2fads board support. (= Kumar Gala)


----------------------------------------------------= ------------------

Message: 1
Date: Thu, 13 Sep 2007 10:53:57 +05= 30
From: "lakshminarayana babu" <babu.pci81@gmail.com>
Subject: Re: Linuxppc-dev Digest, V= ol 37, Issue 84
To: "Olof Johansson" < olof@lixom.net>
Cc: li= nuxppc-dev@ozlabs.org
Message-ID:
     &= nbsp;  <a38e30640709122223m60913ad5xf3c95e636e3b3350@mail.= gmail.com >
Content-Type: text/plain; charset=3D"iso-8859-1"
<= br>sir,
   can you plese suggest any book for pci driver writi= ng...At present i am
studying linux device drivers by alexandrorubini
On 9/13/07, Olof Johansson < olof@lixom.net> wrote:
>
= > On Thu, Sep 13, 2007 at 10:01:36AM +0530, lakshminarayana babu wrote:<= br>> > i am new to the linux.....can you tell me how to access the pc= i
> > configuration space using ioremap function...but  i= t is implicit
> function
> > declaration...
>
> = That is architecture and platform dependent. Some platforms don't even<= br>> have a memory-mappable interface to configuration space.
>
> Instead, please use the abstracted config access functions= that the
> kernel provides. (pci_read_config_word and friends).
&= gt;
>
> -Olof
>
-------------- next part -------------= -
An HTML attachment was scrubbed...
URL: = http://ozlabs.org/pipermail/linuxppc-dev/attachments/20070913/2aa5ccff/atta= chment-0001.htm

------------------------------

Message: 2
Date: Wed, = 12 Sep 2007 22:24:22 -0700 (PDT)
From: sivaji <rameshmrm@gmail.com>
Subject: Re: 2.6.23-rc3 boo= t hang on MPC8641D
To: linuxppc-dev@ozlabs.org<= /a>
Message-ID: <
126= 48913.post@talk.nabble.com>
Content-Type: text/plain; charset=3Du= s-ascii



Hi,
        I am= not willing to upgrade the uboot. Becuase it takes some time to
port th= e new uboot for my custom boad.
whether the current problem is related t= o uboot ? One more point, previously
i tried 2.6.21 with the same uboot(1.1.6) we got linux prompt but we fa= ce
some issue in the pci express in that version. so we plan to upgrade = the
kernel version.
by
Sivaji

Kumar Gala-3 wrote:
>
>
> On Sep 12, 2007, at 11:52 PM, sivaji wrote:
>
>= ;>
>>
>> Hi,
>>     =       I tired to move the dtb to 0x2000000, but th= e result was
>> same.
>> uboot version is=20 1.1.6
>
> seems like a pretty old u-boot.  Willing to= try a 1.3.0-rc1?
>
> - k
> _____________________________= __________________
> Linuxppc-dev mailing list
> Linuxppc-dev@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-dev<= br>>
>

--
View this message in context: http://www.nabble.com/2.6.23-rc3-boot-hang-on-MPC8641D-tf4433508.html#a1264= 8913
Sent from the linuxppc-dev mailing list archive at Nabble.com.



--------------------------= ----

Message: 3
Date: Thu, 13 Sep 2007 15:29:32 +1000
From: David = Gibson <david@gibson.drop= bear.id.au>
Subject: Re: 2.6.23-rc3 boot hang on MPC8641D
To: = sivaji < rameshmrm@gmail.com>
Cc: <= a href=3D"mailto:linuxppc-dev@ozlabs.org">linuxppc-dev@ozlabs.org
Me= ssage-ID: < 20070913052932.GF14905@localhost.localdomain>
Content-Type: text/= plain; charset=3Dus-ascii

On Wed, Sep 12, 2007 at 10:24:22PM -0700, = sivaji wrote:
>
>
> Hi,
>    &n= bsp;    I am not willing to upgrade the uboot. Becuase it ta= kes some time to
> port the new uboot for my custom boad.
> whether the current= problem is related to uboot ? One more point, previously
> i tried 2= .6.21 with the same uboot(1.1.6) we got linux prompt but we face
> so= me issue in the pci express in that version. so we plan to upgrade the
> kernel version.

I thought u-boot < 1.3 didn't unders= tand the flat tree at all.  In
which case you'll need a cu= boot zImage.

--
David Gibson      &= nbsp;           &nbs= p; | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au=   | minimalist, thank you.  NOT _the_ _other_
&n= bsp;            = ;            &n= bsp;      | _way_ _around_!
http://www.ozlabs.org/~dgibson


------------------------------

Message: 4
Date: W= ed, 12 Sep 2007 22:32:24 -0700 (PDT)
From: sivaji <rameshmrm@gmail.com>
Subject: RE: 2.6.23-rc3 boot hang on MPC8641D
To: li= nuxppc-dev@ozlabs.org
Message-ID: <12648963.post@talk.nabble.com>
Content-Type: t= ext/plain; charset=3Dus-ascii


Hi,
         &n= bsp;Sorry i specify the wrong version, we r using 1.2.0. This uboot
was = taken from the BSP which was released by Freescale. Previously we testedlinux 2.6.21 kernel, we got linux prompt. For this we are using the same
uboot(1.2.0).
In that version we face some issues in the pci express= , at that time kumar
suggest to upgrade the kernel verison 2.6.23-rc3.Zhang did u suspect the problem is related to uboot?.
by
sivaji


Zhang Wei-r63237 wrote:
>
> Yes, It's too old. = Maybe not fully supports FDT. You can try the version
> of Kumar said= or in the BSP of Freescale released.
>
> - zw
>
>&= gt; -----Original Message-----
>> From: linuxppc-dev-bounces+wei.zhang=3Dfreescale.com@ozlabs.org
>> [mailto:linu= xppc-dev-bounces+wei.zhang=3Dfreescale.com@ozlabs.or
>> g] On Behalf Of Kumar Gala
>> Sent: Thursday, Sep= tember 13, 2007 1:11 PM
>> To: sivaji
>> Cc: linuxppc-dev@ozlabs.org
>> Subj= ect: Re:=20 2.6.23-rc3 boot hang on MPC8641D
>>
>>
>> On Sep= 12, 2007, at 11:52 PM, sivaji wrote:
>>
>> >
>&= gt; >
>> > Hi,
>> >     = ;      I tired to move the dtb to 0x2000000, but t= he result was
>> > same.
>> > uboot version is 1.1.6
>>=
>> seems like a pretty old u-boot.  Willing to try a 1.= 3.0-rc1?
>>
>> - k
>> __________________________= _____________________
>> Linuxppc-dev mailing list
>> Linuxppc-dev@ozlabs.org
>> https://ozlabs.org/mailman/lis= tinfo/linuxppc-dev
>>
> _______________________________________________> Linuxppc-dev mailing list
> Linuxppc-dev@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-dev
>
>
--
View this message in context: http://www.nabble.com= /2.6.23-rc3-boot-hang-on-MPC8641D-tf4433508.html#a12648963
Sent from the linuxppc-dev mailing list archive at Nabble.com.



------------------------------=

Message: 5
Date: Thu, 13 Sep 2007 00:58:18 -0500
From: Kumar = Gala < galak@kernel.crashing.org&= gt;
Subject: Re: Linuxppc-dev Digest, Vol 37, Issue 84
To: "laks= hminarayana babu" <babu.pci= 81@gmail.com >
Cc: Olof Johansson <olof@l= ixom.net>, linuxppc-dev@o= zlabs.org
Message-ID: < 93B3AC37-A4E7-46BD-8484-F074911A9A44@kernel.crashing.org>
Content= -Type: text/plain; charset=3DUS-ASCII; delsp=3Dyes; format=3Dflowed

=
On Sep 13, 2007, at 12:23 AM, lakshminarayana babu wrote:

> s= ir,
>    can you plese suggest any book for pci driv= er writing...At
> present i am studying linux device drivers by alexa= ndrorubini

That's about as good as it gets.  It covers= writing a pci driver in
there.

- k


------------------------------

Message:= 6
Date: Thu, 13 Sep 2007 15:59:32 +1000
From: Michael Ellerman <<= a href=3D"mailto:michael@ellerman.id.au">michael@ellerman.id.au>
Subject: Re: 2.6.23-rc3 boot hang on MPC8641D
To: Kumar Gala <galak@kernel.crashing.org>
= Cc: linuxppc-dev@ozlabs.org,= sivaji < rameshmrm@gmail.com>
Messa= ge-ID: <1189663172.20396.1.camel@concordia.ozlabs.ibm.com>
Content-T= ype: text/plain; charset=3D"us-ascii"

On Thu, 2007-09-13 at 00:13 -0500, Kumar Gala wrote:
> On Sep= 12, 2007, at 11:47 PM, sivaji wrote:
>
> >
> >
= > > Hi,
> >        &= nbsp;  I have JTAG Debugger connected to the board. I was given the
> > following commands in the root path of the kernel source
&= gt;
> If you can dump memory w/o connecting GDB, I suggest the follow= ing.
>
> Look in your kernel build for System.map and grep for = log_buf you
> should get something like:
>
> c040b04c d log_buf
&= gt; c043b1a4 b __log_buf
>
> then dump the memory @ these addre= sses.  I can't remember which one
> is the correct one.=   You'll want to subtract c000_0000 from the
> address to get a physical address that you can dump.  Th= is should
> help provide some possible insight into what's going = on.

__log_buf is the actual buffer, log_buf points to the current in= sertion
point IIRC. It should be pretty obvious that you're looking at a dm= esg
buffer though, unless there's nothing in there for some reason.<= br>
cheers

--
Michael Ellerman
OzLabs, IBM Australia Develo= pment Lab

wwweb: http://michael.ell= erman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)

We do = not inherit the earth from our ancestors,
we borrow it from our children= . -=20 S.M.A.R.T Person
-------------- next part --------------
A non-text a= ttachment was scrubbed...
Name: not available
Type: application/pgp-s= ignature
Size: 189 bytes
Desc: This is a digitally signed message par= t
Url : http://ozlabs.org/pipermail/linuxppc-= dev/attachments/20070913/30f05247/attachment-0001.pgp

----------= --------------------

Message: 7
Date: Thu, 13 Sep 2007 16:22:01 +1000
From: David = Gibson <david@gibson.drop= bear.id.au>
Subject: Make mpc82xx use generic_calibrate_decr() To: Kumar Gala <galak@kerne= l.crashing.org>,     Tony Breeds
  =       <tony@bakeyournoodle.com>, linuxppc-dev@ozlabs.org
Message-ID: <20070913062201.GA24281@localhost.locald= omain>
Content-Type: text/plain; charset=3Dus-ascii

The on= ly difference between m82xx_calibrate_decr() and
generic_calibrate_decr() is that the former computes the timebase
fr= equency from the cpu node's bus-frequency property, instead of
direc= tly from the timebase-frequency property.

But there's no reason = the timebase-frequency shouldn't be correct on
82xx like everything else.  Certainly the 82xx bootwrapper in=
arch/powerpc/boot/cuboot-pq2.c should get it right.

Therefore, t= his patch removes mpc82xx_calibrate_decr(), using
generic_calibrate_decr= () instead.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
---

I've comp= iled this, but no booted it, since I don't have any 82xx
hardware.&n= bsp; I'm hoping for an ack from someone who can test boot it.

Index: working-2.6/arch/powerpc/platforms/82xx/mpc82xx_ads.c
=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- working-2.6.orig/ar= ch/powerpc/platforms/82xx/mpc82xx_ads.c  2007-09-13 16:14: 18.000000000 +1000
+++ working-2.6/arch/powerpc/platforms/82xx/mpc82xx_a= ds.c       2007-09-13 16:14:38.000000000 +100= 0
@@ -635,6 +635,6 @@ define_machine(mpc82xx_ads)
   &= nbsp;    .init_IRQ =3D    mpc82xx_a= ds_pic_init,
        .show_cpuinfo =3D &nbs= p;  mpc82xx_ads_show_cpuinfo,
     &n= bsp;  .get_irq =3D    cpm2_get_irq,
- = ;      .calibrate_decr =3D    = m82xx_calibrate_decr,
+       .calibrate_d= ecr =3D generic_calibrate_decr,
      &nbs= p; .restart =3D m82xx_restart,.halt =3D m82xx_halt,
};
Index: working-2.6/arch/powerpc/platforms/82xx/mpc82xx.c
=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- working-2.6.orig/ar= ch/powerpc/platforms/82xx/mpc82xx.c      2007= -09-13 16:13: 48.000000000 +1000
+++ working-2.6/arch/powerpc/platforms/82xx/mpc82xx.c=    2007-09-13 16:15:13.000000000 +1000
@@ -51,42 +51,6 @@
<= br> #include "pq2ads.h"

-static int __init get_freq(char *= name, unsigned long *val)
-{
-       struct device_node *cpu;-       const unsigned int *fp;
- &n= bsp;     int found =3D 0;
-
-   &n= bsp;   /* The cpu node should have timebase and clock frequency p= roperties */
-       cpu =3D of_find_node_= by_type(NULL, "cpu");
-
-       if (cpu) {
-  &= nbsp;            fp = =3D of_get_property(cpu, name, NULL);
-     &nb= sp;         if (fp) {
- &nb= sp;            =          found =3D 1;
- &nb= sp;            =          *val =3D *fp;
- &n= bsp;            = ; }
-
-            &n= bsp;  of_node_put(cpu);
-       }
= -
-       return found;
-}
-
-voi= d __init m82xx_calibrate_decr(void)
-{
-     = ;  ppc_tb_freq =3D 125000000;
-      = if (!get_freq("bus-frequency", &ppc_tb_freq)) {
-           &nbs= p;   printk(KERN_ERR "WARNING: Estimating decrementer freque= ncy "
-          =             &nb= sp;        "(not found)\n");-       }
-     = ;  ppc_tb_freq /=3D 4;
-       ppc_pr= oc_freq =3D 1000000000;
-       if (!get_freq("clock-frequen= cy", &ppc_proc_freq))
-      &nbs= p;        printk(KERN_ERR "WARNING:= Estimating processor frequency"
-     &nb= sp;            =              &q= uot;(not found)\n");
-}
-
void mpc82xx_ads_show_cpuinfo(struct seq_file *m)
{
=         uint pvid, svid, phid1;
=
--
David Gibson         = ;           | I'= ll have my music baroque, and my code
david AT gibson.dropbear.id.au  | minimalist, thank you.  NO= T _the_ _other_
         &n= bsp;            = ;          | _way_ _aroun= d_!
http://www.ozlabs.org/~dg= ibson


------------------------------

Message: 8
Date: Thu, 13 Sep 2007 01:39:58 -0500
From: Kumar = Gala <galak@kernel.crashing= .org>
Subject: Re: [PATCH 10/10] mpc82xx: Add pq2fads board suppo= rt.
To: Scott Wood <scottwood= @freescale.com>
Cc: li= nuxppc-dev@ozlabs.org
Message-ID: < 9BC5B02A-4E9D-42DD-90C3-F8C3382F2A96@kernel.crashing.org>
Content= -Type: text/plain; charset=3DUS-ASCII; delsp=3Dyes; format=3Dflowed

= > diff --git a/arch/powerpc/boot/dts/pq2fads.dts b/arch/powerpc/boot/> dts/pq2fads.dts
> new file mode 100644
> index 0000000..ad736f8
> --- /d= ev/null
> +++ b/arch/powerpc/boot/dts/pq2fads.dts
> @@ -0,0 +1,= 236 @@
> +/*
> + * Device Tree for the PQ2FADS-ZU board with an= MPC8280 chip.
> + *
> + * Copyright 2007 Freescale Semiconductor Inc.
>= ; + *
> + * This program is free software; you can redistribute =  it and/or
> modify it
> + * under  the terms of=   the GNU General  Public License as
> published by the
> + * Free Software Foundation;  = either version 2 of the  License, or
> (at your
> + *= option) any later version.
> + */
> +
> +/ {
> +&n= bsp;    model =3D "pq2fads";
> +     compatible =3D "fsl,pq2fads";<= br>> +     #address-cells =3D <1>;
> +&n= bsp;    #size-cells =3D <1>;
> +
> + =     cpus {
> +      &nbs= p;      #address-cells =3D <1>;
> +&nb= sp;            #size= -cells =3D <0>;
> +
> +         &= nbsp;   cpu@0 {
> +      &nbs= p;            &= nbsp; device_type =3D "cpu";
> +    &nb= sp;            =     reg =3D <0>;
> +    &nbs= p;            &= nbsp;   d-cache-line-size =3D <d#32>;
> +  =             &nb= sp;      i-cache-line-size =3D <d#32>;
> +           = ;          d-cache-size =3D &l= t;d#16384>;
> +        &nb= sp;            i-cac= he-size =3D <d#16384>;
> +      &= nbsp;           &nbs= p;  timebase-frequency =3D <0>;
> +    = ;            &n= bsp;    clock-frequency =3D <0>;
> +           = ;  };
> +     };
> +
> + &n= bsp;   CS: chipselect {

We need to document this in bootin= g-without-of.

> +        =      compatible =3D "fsl,pq2fads-chipselect",=
> +           = ;            &n= bsp;  "fsl,mpc8280-chipselect",
> +           = ;            &n= bsp;  "fsl,pq2-chipselect";
> +   =           #address-cells =3D &= lt;2>;
> +         &n= bsp;   #size-cells =3D <1>;
> +   &nbs= p;         fsl,ctrl =3D <&CS= CTRL>;
> +
> +          = ;   ranges =3D <0 0 fe000000 00800000
> +  &nb= sp;            =         1 0 f4500000 00008000
> +&= nbsp;           &nbs= p;          8 0 f8200000 00008= 000>;
> +
> +        = ;     flash@0,0 {
> +           &nb= sp;         device_type =3D "r= om";
> +         &n= bsp;           compatible= =3D "direct-mapped";
> +     &nbs= p;            &= nbsp;  reg =3D <0 0 800000>;
> +    &n= bsp;            = ;    probe-type =3D "JEDEC";
> +           = ;          bank-width =3D <= 4>;
> +          = ;   };
> +
> +      &nb= sp;      bcsr@1,0 {
> +   &nb= sp;            =      reg =3D <1 0 20>;
> +   = ;            &n= bsp;     compatible =3D "fsl,pq2fads-bcsr";
> +           = ;  };
> +
> +       &nb= sp;     PCI_PIC: pic@8,0 {
> +   &= nbsp;           &nbs= p;     #interrupt-cells =3D <1>;
> + &= nbsp;           &nbs= p;       interrupt-controller;
> + = ;            &n= bsp;       reg =3D <8 0 8>;
> +           = ;          compatible =3D &quo= t;fsl,pq2ads-pci-pic";
> +      &n= bsp;            = ;  interrupt-parent =3D <&PIC>;
> +   &= nbsp;           &nbs= p;     interrupts =3D <18 8>;
> + &nbs= p;           };
> +     };
> +
> +   =   memory {
> +        &n= bsp;    device_type =3D "memory";
> + &= nbsp;           reg =3D &= lt;0 0>;
> +     };
> +
> + &= nbsp;   soc@f0000000 {
> +     &nb= sp;       #address-cells =3D <1>;
> +           = ;  #size-cells =3D <1>;
> +     &= nbsp;       device_type =3D "soc";<= br>> +           =   compatible =3D "fsl,mpc8280", "fsl,pq2-soc";
= > +           &nb= sp; ranges =3D <00000000 f0000000 00053000
> +           = ;            8000000= 0 80000000 40000000
> +       &nbs= p;            &= nbsp;  f6000000 f6000000 02000000>;
> +
> +  =            CSCTRL: chipse= lect {
> +          = ;           compatible = =3D "fsl,mpc8280-chipselect-ctrl",
> +           = ;            &n= bsp;          "fsl,p= q2-chipselect-ctrl";
> +      &nbs= p;            &= nbsp; reg =3D <10100 60>;
> +     &nbs= p;            &= nbsp;  fsl,bus =3D <&CS>;
> +    &= nbsp;        };
> +
> +           = ;  cpm@119c0 {
> +       &nbs= p;             = #address-cells =3D <1>;
> +      =             &nb= sp;  #size-cells =3D <1>;
> +     = ;            &n= bsp;   #interrupt-cells =3D <2>;
> +   = ;            &n= bsp;     compatible =3D "fsl,mpc8280-cpm", &q= uot;fsl,cpm2";
> +           = ;          reg =3D <119c0 3= 0 0 2000>;
> +        &nbs= p;            ranges= ;
> +
> +         =             brg@119f= 0 {
> +          &n= bsp;            = ;      compatible =3D "fsl,mpc8280-brg",
> +           = ;            &n= bsp;            = ;      "fsl,cpm2-brg",
> +&nb= sp;            =             &nb= sp;            =     "fsl,cpm-brg";
> +   = ;            &n= bsp;            = ; reg =3D <119f0 10 115f0 10>;
> +           = ;          };
> +
>= ; +            =          serial@11a00 {
> +&n= bsp;            = ;            &n= bsp;   device_type =3D "serial";
> +  &= nbsp;           &nbs= p;            &= nbsp; compatible =3D "fsl,mpc8280-scc-uart",
> +           = ;            &n= bsp;            = ;      "fsl,cpm2-scc-uart";
>= +            &= nbsp;           &nbs= p;    reg =3D <11a00 20 8000 100>;
> + &nbs= p;            &= nbsp;           &nbs= p;  interrupts =3D <28 8>;
> +           &nb= sp;            =      interrupt-parent =3D <&PIC>;
> +&n= bsp;            = ;            &n= bsp;   fsl,cpm-brg =3D <1>;
> +   &nbs= p;            &= nbsp;            fsl= ,cpm-command =3D <00800000>;
> +     &= nbsp;           &nbs= p;   };
> +
> +         &= nbsp;           serial@11= a20 {
> +          =             &nb= sp;      device_type =3D "serial";
&g= t; +            = ;            &n= bsp;    compatible =3D "fsl,mpc8280-scc-uart",
= > +           &nb= sp;            =             &nb= sp;     "fsl,cpm2-scc-uart";
> +           = ;            &n= bsp;     reg =3D <11a20 20 8100 100>;
> +&n= bsp;            = ;            &n= bsp;   interrupts =3D <29 8>;
> +   &n= bsp;            = ;             i= nterrupt-parent =3D <&PIC>;
> +    &nbs= p;            &= nbsp;           fsl,cpm-b= rg =3D <2>;
> +           = ;            &n= bsp;     fsl,cpm-command =3D <04a00000>;
> = +            &n= bsp;        };
> +
> + =             &nb= sp;       ethernet@11320 {
> + &nb= sp;            =             &nb= sp;  device_type =3D "network";
> +           = ;            &n= bsp;     compatible =3D "fsl,mpc8280-fcc-enet"= ;,
> +          &nb= sp;            =             &nb= sp;      "fsl,cpm2-fcc-enet";
&g= t; +            = ;            &n= bsp;    reg =3D <11320 20 8500 100 113b0 1>;
> +           = ;            &n= bsp;     interrupts =3D <21 8>;
> + &n= bsp;            = ;            &n= bsp;  interrupt-parent =3D <&PIC>;
> +  &nbs= p;            &= nbsp;           &nbs= p; phy-handle =3D <&PHY0>;
> +     = ;            &n= bsp;           linux,netw= ork-index =3D <0>;
> +           = ;            &n= bsp;     fsl,cpm-command =3D <16200300>;
> = +            &n= bsp;        };
> +
> + =             &nb= sp;       ethernet@11340 {
> + &nb= sp;            =             &nb= sp;  device_type =3D "network";
> +           = ;            &n= bsp;     compatible =3D "fsl,mpc8280-fcc-enet"= ;,
> +          &nb= sp;            =             &nb= sp;      "fsl,cpm2-fcc-enet";
&g= t; +            = ;            &n= bsp;    reg =3D <11340 20 8600 100 113d0 1>;
> +           = ;            &n= bsp;     interrupts =3D <22 8>;
> + &n= bsp;            = ;            &n= bsp;  interrupt-parent =3D <&PIC>;
> +  &nbs= p;            &= nbsp;           &nbs= p; phy-handle =3D <&PHY1>;
> +     = ;            &n= bsp;           linux,netw= ork-index =3D <1>;
> +           = ;            &n= bsp;     fsl,cpm-command =3D <1a400300>;
> = +            &n= bsp;            = ;    local-mac-address =3D [00 e0 0c 00 79 01];
> +&nb= sp;            =         };
> +
> + &nbs= p;            &= nbsp;     =20 mdio@10d40 {
> +         = ;            &n= bsp;       device_type =3D "mdio";<= br>> +           =             &nb= sp;     compatible =3D "fsl,pq2fads-mdio-bitbang&q= uot;,
> +          =             &nb= sp;            =        "fsl,mpc8280-mdio-bitbang&qu= ot;,
> +           = ;            &n= bsp;            = ;      "fsl,cpm2-mdio-bitbang";
= > +           &nb= sp;            =      #address-cells =3D <1>;
> +  = ;            &n= bsp;            = ;  #size-cells =3D <0>;
> +     &= nbsp;           &nbs= p;           reg =3D <= 10d40 14>;
> +           = ;            &n= bsp;     fsl,mdio-pin =3D <9>;
> + &nb= sp;            =             &nb= sp;  fsl,mdc-pin =3D <a>;
> +
> +   &= nbsp;           &nbs= p;             = PHY0: ethernet-phy@0 {
> +       &= nbsp;           &nbs= p;            &= nbsp;    interrupt-parent =3D <&PIC>;
> +           = ;            &n= bsp;            = ; interrupts =3D <19 2>;
> +      = ;            &n= bsp;            = ;      reg =3D <0>;
> +  &nb= sp;            =             &nb= sp;         device_type =3D "e= thernet-phy";
> +           = ;            &n= bsp;     };
> +
> +    =             &nb= sp;            PHY1:= ethernet-phy@1 {
> +        =             &nb= sp;            =     interrupt-parent =3D <&PIC>;
> + &n= bsp;            = ;            &n= bsp;          interrupts =3D &= lt;19 2>;
> +           = ;            &n= bsp;            = ; reg =3D <3>;
> +       &nb= sp;            =             &nb= sp;    device_type =3D "ethernet-phy";
> +&n= bsp;            = ;            &n= bsp;   };
> +       &nbs= p;             = };
> +
> +         &= nbsp;           usb@11b60= {
> +          &nb= sp;            =       #address-cells =3D <1>;
> + = ;            &n= bsp;            = ;   #size-cells =3D <0>;
> +    &= nbsp;           &nbs= p;            compat= ible =3D "fsl,mpc8280-usb",
> +           = ;            &n= bsp;            = ;      "fsl,cpm2-usb";
> +&nb= sp;            =             &nb= sp;   reg =3D <11b60 18 8b00 100>;
> +  &nb= sp;            =             &nb= sp; interrupt-parent =3D <&PIC>;
> +           = ;            &n= bsp;     interrupts =3D <b 8>;
> + &nb= sp;            =             &nb= sp;  fsl,cpm-command =3D <2e600000>;
> +   =             &nb= sp;     };
> +      = ;       };
> +
> +  &nb= sp;          PIC:=20 interrupt-controller@10c00 {
> +      &= nbsp;           &nbs= p;  #interrupt-cells =3D <2>;
> +    &= nbsp;           &nbs= p;    interrupt-controller;
> +    = ;            &n= bsp;    reg =3D <10c00 80>;
> +   = ;            &n= bsp;     compatible =3D "fsl,mpc8280-pic", &q= uot;fsl,pq2-pic";

this should also have a "fsl,cpm2-pic" or something of th= at form.
(exact same pic exists on 8560, 85xx+CPM)

> + &n= bsp;           };
>= +
> +          &nb= sp;  pci@10800 {
> +       &n= bsp;            = ; device_type =3D "pci";
> +           = ;          reg =3D <10800 1= 0c 101ac 8 101c4 8>;
> +       =             &nb= sp; compatible =3D "fsl,mpc8280-pci", "fsl,pq2-pci";> +           &n= bsp;         #interrupt-cells =3D &= lt;1>;
> +           = ;          #size-cells =3D <= ;2>;
> +         &nbs= p;           #address-cel= ls =3D <3>;
> +        =              cl= ock-frequency =3D <d#66000000>;
> +    &nbs= p;            &= nbsp;   interrupt-map-mask =3D <f800 0 0 7>;
> +           = ;          interrupt-map =3D &= lt;
> +          &n= bsp;            = ;            &n= bsp; /* IDSEL 0x16 */
> +       &n= bsp;            = ;            &n= bsp;     b000 0 0 1 &PCI_PIC 0
> + =             &nb= sp;            =             b00= 0 0 0 2 &PCI_PIC 1
> +           = ;            &n= bsp;            = ;  b000 0 0 3 &PCI_PIC 2
> +    &nb= sp;            =             &nb= sp;        b000 0 0 4 &PCI_PIC = 3
> +
> +         =             &nb= sp;            =    /* IDSEL 0x17 */
> +           &nb= sp;            =             &nb= sp; b800 0 0 1 &PCI_PIC 4
> +     &= nbsp;           &nbs= p;            &= nbsp;       b800 0 0 2 &PCI_PIC 5> +           &n= bsp;            = ;            &n= bsp; b800 0 0 3 &PCI_PIC 6
> +     =             &nb= sp;            =         b800 0 0 4 &PCI_PIC 7
> +
> +         &= nbsp;           &nbs= p;            &= nbsp;  /* IDSEL 0x18 */
> +      &= nbsp;           &nbs= p;            &= nbsp;      c000 0 0 1 &PCI_PIC 8
> = +            &n= bsp;            = ;            &n= bsp;c000 0 0 2 &PCI_PIC 9
> +           &nb= sp;            =             &nb= sp; c000 0 0 3 &PCI_PIC a
> +     &= nbsp;           &nbs= p;            &= nbsp;       c000 0 0 4 &PCI_PIC b>= ;;
> +
> +         = ;            interru= pt-parent =3D <&PIC>;
> +           = ;          interrupts =3D <= 12 8>;
> +         &n= bsp;           ranges =3D= <42000000 0 80000000 80000000 0 20000000
> +   &nb= sp;            =             &nb= sp;  02000000 0 a0000000 a0000000 0 20000000
> +           &nb= sp;            =        01000000 0 00000000 f6000000 0 0200000= 0>;
> +          = ;   };
> +     };
> +
> +&n= bsp;    chosen {
> +     &nbs= p;       linux,stdout-path =3D "/soc/cpm= /serial@11a00";
> +     };
> +};

- k



------------------------------

________________________________= _______________
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https:= //ozlabs.org/mailman/listinfo/linuxppc-dev

End of Linuxppc-dev D= igest, Vol 37, Issue 87
********************************************

------=_Part_2499_19661013.1189805525257--