0019-dt-bindings-PCI-qcom-ar7240-adds-binding-doc.patch 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. From ea27764bc3ef2a05decf3ae05edffc289cd0d93c Mon Sep 17 00:00:00 2001
  2. From: John Crispin <john@phrozen.org>
  3. Date: Mon, 25 Jun 2018 15:52:02 +0200
  4. Subject: [PATCH 19/33] dt-bindings: PCI: qcom,ar7240: adds binding doc
  5. With the driver being converted from platform_data to pure OF, we need to
  6. also add some docs.
  7. Cc: Rob Herring <robh+dt@kernel.org>
  8. Cc: devicetree@vger.kernel.org
  9. Signed-off-by: John Crispin <john@phrozen.org>
  10. ---
  11. .../devicetree/bindings/pci/qcom,ar7240-pci.txt | 42 ++++++++++++++++++++++
  12. 1 file changed, 42 insertions(+)
  13. create mode 100644 Documentation/devicetree/bindings/pci/qcom,ar7240-pci.txt
  14. --- /dev/null
  15. +++ b/Documentation/devicetree/bindings/pci/qcom,ar7240-pci.txt
  16. @@ -0,0 +1,42 @@
  17. +* Qualcomm Atheros AR724X PCI express root complex
  18. +
  19. +Required properties:
  20. +- compatible: should contain "qcom,ar7240-pci" to identify the core.
  21. +- reg: Should contain the register ranges as listed in the reg-names property.
  22. +- reg-names: Definition: Must include the following entries
  23. + - "crp_base" Configuration registers
  24. + - "ctrl_base" Control registers
  25. + - "cfg_base" IO Memory
  26. +- #address-cells: set to <3>
  27. +- #size-cells: set to <2>
  28. +- ranges: ranges for the PCI memory and I/O regions
  29. +- interrupt-map-mask and interrupt-map: standard PCI
  30. + properties to define the mapping of the PCIe interface to interrupt
  31. + numbers.
  32. +- #interrupt-cells: set to <1>
  33. +- interrupt-parent: phandle to the MIPS IRQ controller
  34. +
  35. +Optional properties:
  36. +- interrupt-controller: define to enable the builtin IRQ cascade.
  37. +
  38. +* Example for qca9557
  39. + pcie-controller@180c0000 {
  40. + compatible = "qcom,ar7240-pci";
  41. + #address-cells = <3>;
  42. + #size-cells = <2>;
  43. + bus-range = <0x0 0x0>;
  44. + reg = <0x180c0000 0x1000>,
  45. + <0x180f0000 0x100>,
  46. + <0x14000000 0x1000>;
  47. + reg-names = "crp_base", "ctrl_base", "cfg_base";
  48. + ranges = <0x2000000 0 0x10000000 0x10000000 0 0x04000000
  49. + 0x1000000 0 0x00000000 0x00000000 0 0x00000001>;
  50. + interrupt-parent = <&intc2>;
  51. + interrupts = <1>;
  52. +
  53. + interrupt-controller;
  54. + #interrupt-cells = <1>;
  55. +
  56. + interrupt-map-mask = <0 0 0 1>;
  57. + interrupt-map = <0 0 0 0 &pcie0 0>;
  58. + };