Messages in this thread | | | Subject | How to PCI to PCI(P2P) bridge node in dts for powerpc mpc8349emds | Date | Fri, 4 Apr 2008 16:23:52 +0530 | From | <> |
| |
Hi ,
Can any one help me in adding nodes for devices connected on PCI to PCI bridge.
I am using 2.6.18 kernel on a mpc8349emds based board. I have a 3 port PCI to PCI(P2P) bridge, connected on PCI . This P2P is a multi functional device(BDF 00.13.00 and 00.13.01), with two secondary buses.
On secondary1 of this P2P bridge i have 3 DSPs and On secondary2 i have 4 DSPs. We need to map secondary 1 devices on to Externel IRQ 6, and secondary 2 devices to Externel IRQ 7.
My query is how to add IDSEL nodes for the devices connected on P2P secondary 1 and 2 in the Device Tree Structure(dts). I am also attaching the DTS file after adding nodes for all devices.
/* 3 Port P2P bridge on Bus 0, AD19,IDSEL 0x13, BDF 00.13.00 and BDF 00.13.01*/ /*Bus 1, 1 VGA DSP and 2 DSPs mezanine card*/ /* Bus 1, AD16, IDSEL 0x10, BDF 01.00.00 */ 18000 0 0 1 700 17 8 18000 0 0 2 700 12 8 18000 0 0 3 700 16 8 18000 0 0 4 700 11 8 /* Bus 1, AD17, IDSEL 0x11, BDF 01.01.00 */ 18800 0 0 1 700 17 8 18800 0 0 2 700 12 8 18800 0 0 3 700 16 8 18800 0 0 4 700 11 8 /* Bus 1, AD18, IDSEL 0x12, BDF 01.02.00 */ 19000 0 0 1 700 17 8 19000 0 0 2 700 16 8 19000 0 0 3 700 11 8 19000 0 0 4 700 12 8 /*Bus 2, 4 DSPs mezanine card*/ /* Bus 2, AD16, IDSEL 0x10, BDF 02.00.00 */ 28000 0 0 1 700 16 8 28000 0 0 2 700 12 8 28000 0 0 3 700 11 8 28000 0 0 4 700 17 8 /* Bus 2, AD17, IDSEL 0x11, BDF 02.01.00 */ 28800 0 0 1 700 16 8 28800 0 0 2 700 12 8 28800 0 0 3 700 17 8 28800 0 0 4 700 11 8 /* Bus 2, AD18, IDSEL 0x12, BDF 02.02.00 */ 29000 0 0 1 700 16 8 29000 0 0 2 700 12 8 29000 0 0 3 700 11 8 29000 0 0 4 700 17 8 /* Bus 2, AD19, IDSEL 0x13, BDF 02.03.00 */ 29800 0 0 1 700 16 8 29800 0 0 2 700 11 8 29800 0 0 3 700 12 8 29800 0 0 4 700 17 8
Even after adding these nodes, i am not able to get proper IRQ assignment on cat /proc/interrupts. I have also modified the interrupt map mask to <3f800 0 0 7> instead of <f800 0 0 7> as i am passing 0,1 and 2 numbers. Do i need to add any other setting in dts...? Thanks, Vivek [unhandled content-type:application/octet-stream] | |