Skip to contentSkip to conversation

Example dts file

DISCUSSION Eddie Dawydiuk 3 participants 3 messages Apr 17, 2009 – Apr 18, 2009

lore
Share & tools
lore
#0 lore raw

Hello,

I'm working on creating a dts file for a custom board based on the Yosemite AMCC 440EP evaluation board. We have an FPGA connected to the PCI bus, and I'm a bit unsure how to describe this in the dts file. The FPGA implements an SD card core, RTC core, Nand core... Can anyone point me to an example dts file I can refer to?

I've read that I'm not required to describe every PCI device in the system. Although I'd like to eventually submit our changes for upstream support, so as far as I know I do need to specify all of these devices in the dts file, so drivers can parse the dts file to know what devices are present.

Signature · 5 lines
Best Regards,
________________________________________________________________
 Eddie Dawydiuk, Technologic Systems | voice:  (480) 837-5200
 16525 East Laser Drive 	     | fax:    (480) 837-5300
 Fountain Hills, AZ 85268            | web: www.embeddedARM.com
#1 lore raw
Quoted 7 lines · Eddie Dawydiuk

Hello,

I'm working on creating a dts file for a custom board based on the Yosemite AMCC 440EP evaluation board. We have an FPGA connected to the PCI bus, and I'm a bit unsure how to describe this in the dts file. The FPGA implements an SD card core, RTC core, Nand core... Can anyone point me to an example dts file I can refer to?

If it is attached to the PCI bus, then you don't need to describe it in the .dts file. PCI can reliably probe for devices. Your driver should know what devices are present based on the PCI vendor and device IDs.

g.

Signature · 2 lines
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
#2 lore raw
Quoted 9 lines · Grant Likely
Quoted 7 lines · Eddie Dawydiuk

Hello,

I'm working on creating a dts file for a custom board based on the Yosemite AMCC 440EP evaluation board. We have an FPGA connected to the PCI bus, and I'm a bit unsure how to describe this in the dts file. The FPGA implements an SD card core, RTC core, Nand core... Can anyone point me to an example dts file I can refer to?

Quoted 4 lines

If it is attached to the PCI bus, then you don't need to describe it in the .dts file. PCI can reliably probe for devices. Your driver should know what devices are present based on the PCI vendor and device IDs.

However, for onboard PCI devices it's often necessary to have a node giving at least the interrupt routing information, because this can't generally be probed by PCI.

Signature · 4 lines
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