ingenic,jz4780-nemc.txt 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. * Ingenic JZ4780 NAND/external memory controller (NEMC)
  2. This file documents the device tree bindings for the NEMC external memory
  3. controller in Ingenic JZ4780
  4. Required properties:
  5. - compatible: Should be set to one of:
  6. "ingenic,jz4780-nemc" (JZ4780)
  7. - reg: Should specify the NEMC controller registers location and length.
  8. - clocks: Clock for the NEMC controller.
  9. - #address-cells: Must be set to 2.
  10. - #size-cells: Must be set to 1.
  11. - ranges: A set of ranges for each bank describing the physical memory layout.
  12. Each should specify the following 4 integer values:
  13. <cs number> 0 <physical address of mapping> <size of mapping>
  14. Each child of the NEMC node describes a device connected to the NEMC.
  15. Required child node properties:
  16. - reg: Should contain at least one register specifier, given in the following
  17. format:
  18. <cs number> <offset> <size>
  19. Multiple registers can be specified across multiple banks. This is needed,
  20. for example, for packaged NAND devices with multiple dies. Such devices
  21. should be grouped into a single node.
  22. Optional child node properties:
  23. - ingenic,nemc-bus-width: Specifies the bus width in bits. Defaults to 8 bits.
  24. - ingenic,nemc-tAS: Address setup time in nanoseconds.
  25. - ingenic,nemc-tAH: Address hold time in nanoseconds.
  26. - ingenic,nemc-tBP: Burst pitch time in nanoseconds.
  27. - ingenic,nemc-tAW: Access wait time in nanoseconds.
  28. - ingenic,nemc-tSTRV: Static memory recovery time in nanoseconds.
  29. If a child node references multiple banks in its "reg" property, the same value
  30. for all optional parameters will be configured for all banks. If any optional
  31. parameters are omitted, they will be left unchanged from whatever they are
  32. configured to when the NEMC device is probed (which may be the reset value as
  33. given in the hardware reference manual, or a value configured by the boot
  34. loader).
  35. Example (NEMC node with a NAND child device attached at CS1):
  36. nemc: nemc@13410000 {
  37. compatible = "ingenic,jz4780-nemc";
  38. reg = <0x13410000 0x10000>;
  39. #address-cells = <2>;
  40. #size-cells = <1>;
  41. ranges = <1 0 0x1b000000 0x1000000
  42. 2 0 0x1a000000 0x1000000
  43. 3 0 0x19000000 0x1000000
  44. 4 0 0x18000000 0x1000000
  45. 5 0 0x17000000 0x1000000
  46. 6 0 0x16000000 0x1000000>;
  47. clocks = <&cgu JZ4780_CLK_NEMC>;
  48. nand: nand@1 {
  49. compatible = "ingenic,jz4780-nand";
  50. reg = <1 0 0x1000000>;
  51. ingenic,nemc-tAS = <10>;
  52. ingenic,nemc-tAH = <5>;
  53. ingenic,nemc-tBP = <10>;
  54. ingenic,nemc-tAW = <15>;
  55. ingenic,nemc-tSTRV = <100>;
  56. ...
  57. };
  58. };