sunxi-nand.txt 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. Allwinner NAND Flash Controller (NFC)
  2. Required properties:
  3. - compatible : "allwinner,sun4i-a10-nand".
  4. - reg : shall contain registers location and length for data and reg.
  5. - interrupts : shall define the nand controller interrupt.
  6. - #address-cells: shall be set to 1. Encode the nand CS.
  7. - #size-cells : shall be set to 0.
  8. - clocks : shall reference nand controller clocks.
  9. - clock-names : nand controller internal clock names. Shall contain :
  10. * "ahb" : AHB gating clock
  11. * "mod" : nand controller clock
  12. Optional children nodes:
  13. Children nodes represent the available nand chips.
  14. Optional properties:
  15. - allwinner,rb : shall contain the native Ready/Busy ids.
  16. or
  17. - rb-gpios : shall contain the gpios used as R/B pins.
  18. - nand-ecc-mode : one of the supported ECC modes ("hw", "hw_syndrome", "soft",
  19. "soft_bch" or "none")
  20. see Documentation/devicetree/bindings/mtd/nand.txt for generic bindings.
  21. Examples:
  22. nfc: nand@01c03000 {
  23. compatible = "allwinner,sun4i-a10-nand";
  24. reg = <0x01c03000 0x1000>;
  25. interrupts = <0 37 1>;
  26. clocks = <&ahb_gates 13>, <&nand_clk>;
  27. clock-names = "ahb", "mod";
  28. #address-cells = <1>;
  29. #size-cells = <0>;
  30. pinctrl-names = "default";
  31. pinctrl-0 = <&nand_pins_a &nand_cs0_pins_a &nand_rb0_pins_a>;
  32. status = "okay";
  33. nand@0 {
  34. reg = <0>;
  35. allwinner,rb = <0>;
  36. nand-ecc-mode = "soft_bch";
  37. };
  38. };