ifc.txt 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. Integrated Flash Controller
  2. Properties:
  3. - name : Should be ifc
  4. - compatible : should contain "fsl,ifc". The version of the integrated
  5. flash controller can be found in the IFC_REV register at
  6. offset zero.
  7. - #address-cells : Should be either two or three. The first cell is the
  8. chipselect number, and the remaining cells are the
  9. offset into the chipselect.
  10. - #size-cells : Either one or two, depending on how large each chipselect
  11. can be.
  12. - reg : Offset and length of the register set for the device
  13. - interrupts : IFC has two interrupts. The first one is the "common"
  14. interrupt(CM_EVTER_STAT), and second is the NAND interrupt
  15. (NAND_EVTER_STAT).
  16. - ranges : Each range corresponds to a single chipselect, and covers
  17. the entire access window as configured.
  18. Child device nodes describe the devices connected to IFC such as NOR (e.g.
  19. cfi-flash) and NAND (fsl,ifc-nand). There might be board specific devices
  20. like FPGAs, CPLDs, etc.
  21. Example:
  22. ifc@ffe1e000 {
  23. compatible = "fsl,ifc", "simple-bus";
  24. #address-cells = <2>;
  25. #size-cells = <1>;
  26. reg = <0x0 0xffe1e000 0 0x2000>;
  27. interrupts = <16 2 19 2>;
  28. /* NOR, NAND Flashes and CPLD on board */
  29. ranges = <0x0 0x0 0x0 0xee000000 0x02000000
  30. 0x1 0x0 0x0 0xffa00000 0x00010000
  31. 0x3 0x0 0x0 0xffb00000 0x00020000>;
  32. flash@0,0 {
  33. #address-cells = <1>;
  34. #size-cells = <1>;
  35. compatible = "cfi-flash";
  36. reg = <0x0 0x0 0x2000000>;
  37. bank-width = <2>;
  38. device-width = <1>;
  39. partition@0 {
  40. /* 32MB for user data */
  41. reg = <0x0 0x02000000>;
  42. label = "NOR Data";
  43. };
  44. };
  45. flash@1,0 {
  46. #address-cells = <1>;
  47. #size-cells = <1>;
  48. compatible = "fsl,ifc-nand";
  49. reg = <0x1 0x0 0x10000>;
  50. partition@0 {
  51. /* This location must not be altered */
  52. /* 1MB for u-boot Bootloader Image */
  53. reg = <0x0 0x00100000>;
  54. label = "NAND U-Boot Image";
  55. read-only;
  56. };
  57. };
  58. cpld@3,0 {
  59. #address-cells = <1>;
  60. #size-cells = <1>;
  61. compatible = "fsl,p1010rdb-cpld";
  62. reg = <0x3 0x0 0x000001f>;
  63. };
  64. };