Is it necessary that the nodes shown in "lspci" output, have to be defined in device tree ? I have device tree file for P2041RDB. In that only one node is created for pci i.e. bus 0. Now I have customized the reference board and connected one pcie-pci bridge to bus 0 annd four pci devices are connected to that bridge. So in my lspci output, six node is showing. So is it necessary that I have to declare it all in device tree.
Asked
Active
Viewed 1,565 times
1 Answers
2
No, peripherals connected to the PCI-bus doesn't need to be in the DTS file, as they can be enumerated during runtime.
Peripherals sitting on non-enumerable buses, OTOH, needs to be added to the DTS file. This could be peripherals on the memory bus, I2C, SPI, etc.

Anders
- 8,541
- 1
- 27
- 34
-
1ok thank you @Anders. one more querry, should I declare that extrernal pcie-pci bridge in dts? because out of four pci device, interrupt test is failing for one pci device. – Savan May 24 '17 at 06:27
-
1If the bridge is connected through a PCI-bus, you shouldn't need to add it to the DTS file. – Anders May 24 '17 at 06:32
-
1Thank you for your response @anders. Yes bridge is connected through bus. So if we not declare it in dts then how interrrupt mapping is done ? – Savan May 24 '17 at 06:45