gpmc-eth.txt 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. Device tree bindings for Ethernet chip connected to TI GPMC
  2. Besides being used to interface with external memory devices, the
  3. General-Purpose Memory Controller can be used to connect Pseudo-SRAM devices
  4. such as ethernet controllers to processors using the TI GPMC as a data bus.
  5. Ethernet controllers connected to TI GPMC are represented as child nodes of
  6. the GPMC controller with an "ethernet" name.
  7. All timing relevant properties as well as generic GPMC child properties are
  8. explained in a separate documents. Please refer to
  9. Documentation/devicetree/bindings/bus/ti-gpmc.txt
  10. For the properties relevant to the ethernet controller connected to the GPMC
  11. refer to the binding documentation of the device. For example, the documentation
  12. for the SMSC 911x is Documentation/devicetree/bindings/net/smsc911x.txt
  13. Child nodes need to specify the GPMC bus address width using the "bank-width"
  14. property but is possible that an ethernet controller also has a property to
  15. specify the I/O registers address width. Even when the GPMC has a maximum 16-bit
  16. address width, it supports devices with 32-bit word registers.
  17. For example with an SMSC LAN911x/912x controller connected to the TI GPMC on an
  18. OMAP2+ board, "bank-width = <2>;" and "reg-io-width = <4>;".
  19. Required properties:
  20. - bank-width: Address width of the device in bytes. GPMC supports 8-bit
  21. and 16-bit devices and so must be either 1 or 2 bytes.
  22. - compatible: Compatible string property for the ethernet child device.
  23. - gpmc,cs-on-ns: Chip-select assertion time
  24. - gpmc,cs-rd-off-ns: Chip-select de-assertion time for reads
  25. - gpmc,cs-wr-off-ns: Chip-select de-assertion time for writes
  26. - gpmc,oe-on-ns: Output-enable assertion time
  27. - gpmc,oe-off-ns: Output-enable de-assertion time
  28. - gpmc,we-on-ns: Write-enable assertion time
  29. - gpmc,we-off-ns: Write-enable de-assertion time
  30. - gpmc,access-ns: Start cycle to first data capture (read access)
  31. - gpmc,rd-cycle-ns: Total read cycle time
  32. - gpmc,wr-cycle-ns: Total write cycle time
  33. - reg: Chip-select, base address (relative to chip-select)
  34. and size of the memory mapped for the device.
  35. Note that base address will be typically 0 as this
  36. is the start of the chip-select.
  37. Optional properties:
  38. - gpmc,XXX Additional GPMC timings and settings parameters. See
  39. Documentation/devicetree/bindings/bus/ti-gpmc.txt
  40. Example:
  41. gpmc: gpmc@6e000000 {
  42. compatible = "ti,omap3430-gpmc";
  43. ti,hwmods = "gpmc";
  44. reg = <0x6e000000 0x1000>;
  45. interrupts = <20>;
  46. gpmc,num-cs = <8>;
  47. gpmc,num-waitpins = <4>;
  48. #address-cells = <2>;
  49. #size-cells = <1>;
  50. ranges = <5 0 0x2c000000 0x1000000>;
  51. ethernet@5,0 {
  52. compatible = "smsc,lan9221", "smsc,lan9115";
  53. reg = <5 0 0xff>;
  54. bank-width = <2>;
  55. gpmc,mux-add-data;
  56. gpmc,cs-on-ns = <0>;
  57. gpmc,cs-rd-off-ns = <186>;
  58. gpmc,cs-wr-off-ns = <186>;
  59. gpmc,adv-on-ns = <12>;
  60. gpmc,adv-rd-off-ns = <48>;
  61. gpmc,adv-wr-off-ns = <48>;
  62. gpmc,oe-on-ns = <54>;
  63. gpmc,oe-off-ns = <168>;
  64. gpmc,we-on-ns = <54>;
  65. gpmc,we-off-ns = <168>;
  66. gpmc,rd-cycle-ns = <186>;
  67. gpmc,wr-cycle-ns = <186>;
  68. gpmc,access-ns = <114>;
  69. gpmc,page-burst-access-ns = <6>;
  70. gpmc,bus-turnaround-ns = <12>;
  71. gpmc,cycle2cycle-delay-ns = <18>;
  72. gpmc,wr-data-mux-bus-ns = <90>;
  73. gpmc,wr-access-ns = <186>;
  74. gpmc,cycle2cycle-samecsen;
  75. gpmc,cycle2cycle-diffcsen;
  76. interrupt-parent = <&gpio6>;
  77. interrupts = <16>;
  78. vmmc-supply = <&vddvario>;
  79. vmmc_aux-supply = <&vdd33a>;
  80. reg-io-width = <4>;
  81. smsc,save-mac-address;
  82. };
  83. };