qcom_nandc.txt 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. * Qualcomm NAND controller
  2. Required properties:
  3. - compatible: must be one of the following:
  4. * "qcom,ipq806x-nand" - for EBI2 NAND controller being used in IPQ806x
  5. SoC and it uses ADM DMA
  6. * "qcom,ipq4019-nand" - for QPIC NAND controller v1.4.0 being used in
  7. IPQ4019 SoC and it uses BAM DMA
  8. * "qcom,ipq8074-nand" - for QPIC NAND controller v1.5.0 being used in
  9. IPQ8074 SoC and it uses BAM DMA
  10. - reg: MMIO address range
  11. - clocks: must contain core clock and always on clock
  12. - clock-names: must contain "core" for the core clock and "aon" for the
  13. always on clock
  14. EBI2 specific properties:
  15. - dmas: DMA specifier, consisting of a phandle to the ADM DMA
  16. controller node and the channel number to be used for
  17. NAND. Refer to dma.txt and qcom_adm.txt for more details
  18. - dma-names: must be "rxtx"
  19. - qcom,cmd-crci: must contain the ADM command type CRCI block instance
  20. number specified for the NAND controller on the given
  21. platform
  22. - qcom,data-crci: must contain the ADM data type CRCI block instance
  23. number specified for the NAND controller on the given
  24. platform
  25. QPIC specific properties:
  26. - dmas: DMA specifier, consisting of a phandle to the BAM DMA
  27. and the channel number to be used for NAND. Refer to
  28. dma.txt, qcom_bam_dma.txt for more details
  29. - dma-names: must contain all 3 channel names : "tx", "rx", "cmd"
  30. - #address-cells: <1> - subnodes give the chip-select number
  31. - #size-cells: <0>
  32. * NAND chip-select
  33. Each controller may contain one or more subnodes to represent enabled
  34. chip-selects which (may) contain NAND flash chips. Their properties are as
  35. follows.
  36. Required properties:
  37. - reg: a single integer representing the chip-select
  38. number (e.g., 0, 1, 2, etc.)
  39. - #address-cells: see partition.txt
  40. - #size-cells: see partition.txt
  41. Optional properties:
  42. - nand-bus-width: see nand.txt
  43. - nand-ecc-strength: see nand.txt. If not specified, then ECC strength will
  44. be used according to chip requirement and available
  45. OOB size.
  46. Each nandcs device node may optionally contain a 'partitions' sub-node, which
  47. further contains sub-nodes describing the flash partition mapping. See
  48. partition.txt for more detail.
  49. Example:
  50. nand-controller@1ac00000 {
  51. compatible = "qcom,ipq806x-nand";
  52. reg = <0x1ac00000 0x800>;
  53. clocks = <&gcc EBI2_CLK>,
  54. <&gcc EBI2_AON_CLK>;
  55. clock-names = "core", "aon";
  56. dmas = <&adm_dma 3>;
  57. dma-names = "rxtx";
  58. qcom,cmd-crci = <15>;
  59. qcom,data-crci = <3>;
  60. #address-cells = <1>;
  61. #size-cells = <0>;
  62. nand@0 {
  63. reg = <0>;
  64. nand-ecc-strength = <4>;
  65. nand-bus-width = <8>;
  66. partitions {
  67. compatible = "fixed-partitions";
  68. #address-cells = <1>;
  69. #size-cells = <1>;
  70. partition@0 {
  71. label = "boot-nand";
  72. reg = <0 0x58a0000>;
  73. };
  74. partition@58a0000 {
  75. label = "fs-nand";
  76. reg = <0x58a0000 0x4000000>;
  77. };
  78. };
  79. };
  80. };
  81. nand-controller@79b0000 {
  82. compatible = "qcom,ipq4019-nand";
  83. reg = <0x79b0000 0x1000>;
  84. clocks = <&gcc GCC_QPIC_CLK>,
  85. <&gcc GCC_QPIC_AHB_CLK>;
  86. clock-names = "core", "aon";
  87. dmas = <&qpicbam 0>,
  88. <&qpicbam 1>,
  89. <&qpicbam 2>;
  90. dma-names = "tx", "rx", "cmd";
  91. #address-cells = <1>;
  92. #size-cells = <0>;
  93. nand@0 {
  94. reg = <0>;
  95. nand-ecc-strength = <4>;
  96. nand-bus-width = <8>;
  97. partitions {
  98. compatible = "fixed-partitions";
  99. #address-cells = <1>;
  100. #size-cells = <1>;
  101. partition@0 {
  102. label = "boot-nand";
  103. reg = <0 0x58a0000>;
  104. };
  105. partition@58a0000 {
  106. label = "fs-nand";
  107. reg = <0x58a0000 0x4000000>;
  108. };
  109. };
  110. };
  111. };