Hello All<br><br>Iam using Powerpc 7448 processor along with TSI 109 system controller.<br>On
PCI interface of TSI 109 a PCI to PCI bridge(6520) is connected in
which an usb controller(Philips ISP1562) and PMC site is connected.<br><br>Iam following the Open Firmware Powerpc architecture and using Linux 2.6.23.<br>I have framed the device tree for the above architecture with usb entry. But even though i enable the ohci ppc of in menuconfig the the functions probe,etc inside ohci ppc of.c are not called when i insert the device in usb port and hence it is not detecting ohci low/full speed devices.<br>
<br>Please help me in the device tree where to give the device type compatibility address_cells size cells for the USB (since usb controller is in pci bridge i have some confusion in where to give the entry for usb)<br><br>
I have attached the device tree below <br>-----------------------------------------------------------------------------------------------------------------------------------------------------------------<br>{ model = "CTP7448";<br>
compatible = "mpc74xx";<br> #address-cells = <1>;<br> #size-cells = <1>;<br><br> cpus {<br> #address-cells = <1>;<br> #size-cells =<0>;<br> <br> PowerPC,7448@0 {<br>
device_type = "cpu";<br> reg = <0>;<br> d-cache-line-size = <20>; // 32 bytes<br> i-cache-line-size = <20>; // 32 bytes<br> d-cache-size = <8000>; // L1, 32K bytes<br>
i-cache-size = <8000>; // L1, 32K bytes<br> timebase-frequency = <0>; // 33 MHz, from uboot<br> clock-frequency = <0>; // From U-Boot<br> bus-frequency = <0>; // From U-Boot<br>
32-bit;<br> };<br> };<br><br> memory{<br> device_type = "memory";<br> reg = <00000000 10000000>; // DDR2 512M at 0<br> };<br><br> tsi108@c0000000 {<br> #address-cells = <1>;<br>
#size-cells = <1>;<br> #interrupt-cells = <2>;<br> device_type = "tsi-bridge";<br> ranges = <00000000 c0000000 00010000<br> 00000000 f0000000 00008000<br>
00000000 f1000000 01000000<br> 00000000 f8000000 01000000>;<br> reg = <c0000000 00010000>;<br> bus-frequency = <0>;<br> <br> rtc@f0000000 {<br> device_type = "rtc";<br>
compatible = "st,m48t59";<br> reg = <f0000000 8000>;<br> <br> };<br> i2c@7000 {<br> interrupt-parent = <&mpic>;<br> interrupts = <E 0>;<br>
reg = <7000 400>;<br> device_type = "i2c";<br> compatible = "tsi108-i2c";<br> };<br><br> MDIO: mdio@6000 {<br> device_type = "mdio";<br>
compatible = "tsi108-mdio";<br> reg = <6000 50>;<br> #address-cells = <1>;<br> #size-cells = <0>;<br><br> phy1: ethernet-phy@1 {<br> interrupt-parent = <&mpic>;<br>
interrupts = <0 0>;<br> reg = <1>;<br> device_type = "ethernet-phy";<br> };<br><br> phy8: ethernet-phy@8 {<br> interrupt-parent = <&mpic>;<br>
interrupts = <1 0>;<br> reg = <8>;<br> device_type = "ethernet-phy";<br> };<br><br> };<br> ethernet@6200 {<br> #size-cells = <0>;<br>
device_type = "network";<br> compatible = "tsi108-ethernet";<br> reg = <6000 200>;<br> address = [ 00 03 23 00 00 01 ];<br> interrupts = <10 0>;<br>
interrupt-parent = <&mpic>;<br> mdio-handle = <&MDIO>;<br> phy-handle = <&phy1>;<br> };<br><br> ethernet@6600 {<br> #address-cells = <1>;<br>
#size-cells = <0>;<br> device_type = "network";<br> compatible = "tsi108-ethernet";<br> reg = <6400 200>;<br> address = [ 00 03 23 00 00 02 ];<br>
interrupts = <11 2>;<br> interrupt-parent = <&mpic>;<br> mdio-handle = <&MDIO>;<br> phy-handle = <&phy8>;<br> };<br><br> serial@7808 {<br>
device_type = "serial";<br> compatible = "ns16550";<br> reg = <7808 200>;<br> clock-frequency = <3f6b5a00>;<br> interrupts = <c 0>;<br>
interrupt-parent = <&mpic>;<br> };<br><br> serial@7c08 {<br> device_type = "serial";<br> compatible = "ns16550";<br> reg = <7c08 200>;<br>
clock-frequency = <3f6b5a00>;<br> interrupts = <d 0>;<br> interrupt-parent = <&mpic>;<br> };<br><br> mpic: pic@7400 {<br> clock-frequency = <0>;<br>
interrupt-controller;<br> #address-cells = <0>;<br> #interrupt-cells = <2>;<br> reg = <7400 400>;<br> built-in;<br> compatible = "chrp,open-pic";<br>
device_type = "open-pic";<br> big-endian;<br> };<br> pci@1000 {<br> compatible = "tsi108-pci";<br> device_type = "pci";<br>
#interrupt-cells = <1>;<br> #size-cells = <2>;<br> #address-cells = <3>;<br> reg = <1000 1000>;<br> bus-range = <0 0>;<br> ranges = <02000000 0 e0000000 e0000000 0 10000000 <br>
01000000 0 00000000 f2000000 0 01000000>;<br> clock-frequency = <3ef1480>;<br> interrupt-parent = <&mpic>;<br> interrupts = <17 2>;<br> interrupt-map-mask = <f800 0 0 7>;<br>
interrupt-map = <<br> /* IDSEL 0x10 */<br> 00000 0 0 1 &RT0 24 0<br><br> /* IDSEL 0x11 */<br> 00800 0 0 1 &RT0 25 0<br> <br> /* IDSEL 0x12 */<br>
1000 0 0 1 &RT0 24 0<br> 1000 0 0 2 &RT0 25 0<br> 1000 0 0 3 &RT0 26 0<br> 1000 0 0 4 &RT0 27 0 >;<br> <br> pci_bridge@12 {<br>
interrupt-map-mask = <f800 0 0 7>;<br> interrupt-map = <<br><br> /* IDSEL 0x13 (PMC Site) */<br> 1800 0 0 1 &RT0 24 0<br> 1800 0 0 2 &RT0 25 0<br>
1800 0 0 3 &RT0 26 0<br> 1800 0 0 4 &RT0 27 0<br><br> /* IDSEL 0x14 (USB chip) */<br> 2000 0 0 1 &RT0 27 0 <br> 2000 0 0 2 &RT0 27 0 <br>
2000 0 0 3 &RT0 27 0 <br> 2000 0 0 4 &RT0 27 0 >; <br><br> reg = <1000 0 0 0 0>;<br> #interrupt-cells = <1>;<br>
#size-cells = <2>;<br> #address-cells = <3>;<br> ranges = <02000000 0 e0000000 e0000000 0 10000000 01000000 0 00000000 fa000000 0 00010000>;<br> clock-frequency = <1f78a40>; <br>
<br> RT0: router@1180 {<br> clock-frequency = <0>;<br> interrupt-controller;<br> device_type = "pic-router";<br> #address-cells = <0>;<br>
#interrupt-cells = <2>;<br> built-in;<br> big-endian;<br> interrupts = <17 2>;<br> interrupt-parent = <&mpic>;<br> };<br>
}; <br><br> };<br> };<br> <br>};<br><br><br><br><br>
<br><br>