qcom_nandc.txt 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. * Qualcomm NAND controller
  2. Required properties:
  3. - compatible: should be "qcom,ipq806x-nand"
  4. - reg: MMIO address range
  5. - clocks: must contain core clock and always on clock
  6. - clock-names: must contain "core" for the core clock and "aon" for the
  7. always on clock
  8. - dmas: DMA specifier, consisting of a phandle to the ADM DMA
  9. controller node and the channel number to be used for
  10. NAND. Refer to dma.txt and qcom_adm.txt for more details
  11. - dma-names: must be "rxtx"
  12. - qcom,cmd-crci: must contain the ADM command type CRCI block instance
  13. number specified for the NAND controller on the given
  14. platform
  15. - qcom,data-crci: must contain the ADM data type CRCI block instance
  16. number specified for the NAND controller on the given
  17. platform
  18. - #address-cells: <1> - subnodes give the chip-select number
  19. - #size-cells: <0>
  20. * NAND chip-select
  21. Each controller may contain one or more subnodes to represent enabled
  22. chip-selects which (may) contain NAND flash chips. Their properties are as
  23. follows.
  24. Required properties:
  25. - compatible: should contain "qcom,nandcs"
  26. - reg: a single integer representing the chip-select
  27. number (e.g., 0, 1, 2, etc.)
  28. - #address-cells: see partition.txt
  29. - #size-cells: see partition.txt
  30. - nand-ecc-strength: see nand.txt
  31. - nand-ecc-step-size: must be 512. see nand.txt for more details.
  32. Optional properties:
  33. - nand-bus-width: see nand.txt
  34. Each nandcs device node may optionally contain a 'partitions' sub-node, which
  35. further contains sub-nodes describing the flash partition mapping. See
  36. partition.txt for more detail.
  37. Example:
  38. nand@1ac00000 {
  39. compatible = "qcom,ebi2-nandc";
  40. reg = <0x1ac00000 0x800>;
  41. clocks = <&gcc EBI2_CLK>,
  42. <&gcc EBI2_AON_CLK>;
  43. clock-names = "core", "aon";
  44. dmas = <&adm_dma 3>;
  45. dma-names = "rxtx";
  46. qcom,cmd-crci = <15>;
  47. qcom,data-crci = <3>;
  48. #address-cells = <1>;
  49. #size-cells = <0>;
  50. nandcs@0 {
  51. compatible = "qcom,nandcs";
  52. reg = <0>;
  53. nand-ecc-strength = <4>;
  54. nand-ecc-step-size = <512>;
  55. nand-bus-width = <8>;
  56. partitions {
  57. compatible = "fixed-partitions";
  58. #address-cells = <1>;
  59. #size-cells = <1>;
  60. partition@0 {
  61. label = "boot-nand";
  62. reg = <0 0x58a0000>;
  63. };
  64. partition@58a0000 {
  65. label = "fs-nand";
  66. reg = <0x58a0000 0x4000000>;
  67. };
  68. };
  69. };
  70. };