denali-nand.txt 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. * Denali NAND controller
  2. Required properties:
  3. - compatible : should be one of the following:
  4. "altr,socfpga-denali-nand" - for Altera SOCFPGA
  5. "socionext,uniphier-denali-nand-v5a" - for Socionext UniPhier (v5a)
  6. "socionext,uniphier-denali-nand-v5b" - for Socionext UniPhier (v5b)
  7. - reg : should contain registers location and length for data and reg.
  8. - reg-names: Should contain the reg names "nand_data" and "denali_reg"
  9. - interrupts : The interrupt number.
  10. - clocks: should contain phandle of the controller core clock, the bus
  11. interface clock, and the ECC circuit clock.
  12. - clock-names: should contain "nand", "nand_x", "ecc"
  13. Optional properties:
  14. - nand-ecc-step-size: see nand.txt for details. If present, the value must be
  15. 512 for "altr,socfpga-denali-nand"
  16. 1024 for "socionext,uniphier-denali-nand-v5a"
  17. 1024 for "socionext,uniphier-denali-nand-v5b"
  18. - nand-ecc-strength: see nand.txt for details. Valid values are:
  19. 8, 15 for "altr,socfpga-denali-nand"
  20. 8, 16, 24 for "socionext,uniphier-denali-nand-v5a"
  21. 8, 16 for "socionext,uniphier-denali-nand-v5b"
  22. - nand-ecc-maximize: see nand.txt for details
  23. The device tree may optionally contain sub-nodes describing partitions of the
  24. address space. See partition.txt for more detail.
  25. Examples:
  26. nand: nand@ff900000 {
  27. #address-cells = <1>;
  28. #size-cells = <1>;
  29. compatible = "altr,socfpga-denali-nand";
  30. reg = <0xff900000 0x20>, <0xffb80000 0x1000>;
  31. reg-names = "nand_data", "denali_reg";
  32. clocks = <&nand_clk>, <&nand_x_clk>, <&nand_ecc_clk>;
  33. clock-names = "nand", "nand_x", "ecc";
  34. interrupts = <0 144 4>;
  35. };