I am using the PCI-Keystone driver on my device and cannot figure out how to properly configure the device tree binding.
When I open up the Y:\personal_folders\william\devel_tools\linux\Documentation\devicetree\bindings\pci\pci-keystone.txt file, I get basic information on the binding but it does not get specific on what the ranges tag means. I am trying to read and write to an FPGA which has already been properly enumerated at boot.
I am currently assuming that after device enumeration I should have the ability read/write to the FPGA registers through the PCIe_data registers located @ 0x5000_0000 which should get mapped to the FPGA using the configuration in the device tree.
Here is the output during Linux Boot:
[ 2375.747593] keystone-pcie: keystone_pcie_rc_init - start
[ 2375.747663] keystone2_pcie_serdes_setup
[ 2375.749360] keystone2_pcie_serdes_setup done, en_link_train = 1
[ 2375.749386] keystone-pcie: MEM 0x0000000050000000..0x000000005fffffff -> 0x00
00000050000000
[ 2375.749394] keystone-pcie: IO 0x0000000024000000..0x0000000024003fff -> 0x000
0000000000000
[ 2375.749422] keystone-pcie: pcie - number of legacy irqs = 4
[ 2375.749464] keystone-pcie: pcie - number of MSI host irqs = 8, msi_irqs = 32
[ 2375.836005] keystone-pcie: Doing PCI Setup...Done
[ 2375.836010] keystone-pcie: Starting PCI scan...
[ 2375.836103] PCI host bridge to bus 0000:00
[ 2375.836113] pci_bus 0000:00: root bus resource [mem 0x50000000-0x5fffffff]
[ 2375.836119] pci_bus 0000:00: root bus resource [io 0x0000-0x3fff]
[ 2375.836125] pci_bus 0000:00: No busn resource found for root bus, will use [b
us 00-ff]
[ 2375.836318] PCI: bus0: Fast back to back transfers disabled
[ 2375.836325] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), rec
onfiguring
[ 2375.836670] PCI: bus1: Fast back to back transfers disabled
[ 2375.836693] keystone-pcie: Ending PCI scan...
[ 2375.836700] keystone-pcie: keystone_pcie_map_irq: slot 0, pin 1
[ 2375.836704] keystone-pcie: keystone_pcie_map_irq: legacy_irq 572
[ 2375.836710] keystone-pcie: keystone_pcie_map_irq: slot 0, pin 1
[ 2375.836713] keystone-pcie: keystone_pcie_map_irq: legacy_irq 572
[ 2375.836730] pci 0000:00:00.0: BAR 8: assigned [mem 0x50000000-0x501fffff]
[ 2375.836737] pci 0000:00:00.0: BAR 9: assigned [mem 0x50200000-0x503fffff pref
]
[ 2375.836743] pci 0000:00:00.0: BAR 7: assigned [io 0x1000-0x1fff]
[ 2375.836750] pci 0000:01:00.0: BAR 0: assigned [mem 0x50000000-0x500fffff]
[ 2375.836759] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 2375.836764] pci 0000:00:00.0: bridge window [io 0x1000-0x1fff]
[ 2375.836771] pci 0000:00:00.0: bridge window [mem 0x50000000-0x501fffff]
[ 2375.836778] pci 0000:00:00.0: bridge window [mem 0x50200000-0x503fffff pref
]
[ 2375.836787] PCI: enabling device 0000:00:00.0 (0140 -> 0143)
[ 2375.836792] keystone-pcie: keystone_pcie_rc_init - end
I am sorry for the lack of detail for my problem but I have never dealt with PCIe before and am having trouble understanding the configurations steps.