brcm,bus-axi.txt 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. Driver for ARM AXI Bus with Broadcom Plugins (bcma)
  2. Required properties:
  3. - compatible : brcm,bus-axi
  4. - reg : iomem address range of chipcommon core
  5. The cores on the AXI bus are automatically detected by bcma with the
  6. memory ranges they are using and they get registered afterwards.
  7. Automatic detection of the IRQ number is not working on
  8. BCM47xx/BCM53xx ARM SoCs. To assign IRQ numbers to the cores, provide
  9. them manually through device tree. Use an interrupt-map to specify the
  10. IRQ used by the devices on the bus. The first address is just an index,
  11. because we do not have any special register.
  12. The top-level axi bus may contain children representing attached cores
  13. (devices). This is needed since some hardware details can't be auto
  14. detected (e.g. IRQ numbers). Also some of the cores may be responsible
  15. for extra things, e.g. ChipCommon providing access to the GPIO chip.
  16. Example:
  17. axi@18000000 {
  18. compatible = "brcm,bus-axi";
  19. reg = <0x18000000 0x1000>;
  20. ranges = <0x00000000 0x18000000 0x00100000>;
  21. #address-cells = <1>;
  22. #size-cells = <1>;
  23. #interrupt-cells = <1>;
  24. interrupt-map-mask = <0x000fffff 0xffff>;
  25. interrupt-map =
  26. /* Ethernet Controller 0 */
  27. <0x00024000 0 &gic GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
  28. /* Ethernet Controller 1 */
  29. <0x00025000 0 &gic GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
  30. /* PCIe Controller 0 */
  31. <0x00012000 0 &gic GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>,
  32. <0x00012000 1 &gic GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>,
  33. <0x00012000 2 &gic GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>,
  34. <0x00012000 3 &gic GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>,
  35. <0x00012000 4 &gic GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>,
  36. <0x00012000 5 &gic GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>;
  37. chipcommon {
  38. reg = <0x00000000 0x1000>;
  39. gpio-controller;
  40. #gpio-cells = <2>;
  41. };
  42. };