gpmc-onenand.txt 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. Device tree bindings for GPMC connected OneNANDs
  2. GPMC connected OneNAND (found on OMAP boards) are represented as child nodes of
  3. the GPMC controller with a name of "onenand".
  4. All timing relevant properties as well as generic gpmc child properties are
  5. explained in a separate documents - please refer to
  6. Documentation/devicetree/bindings/bus/ti-gpmc.txt
  7. Required properties:
  8. - reg: The CS line the peripheral is connected to
  9. - gpmc,device-width Width of the ONENAND device connected to the GPMC
  10. in bytes. Must be 1 or 2.
  11. Optional properties:
  12. - dma-channel: DMA Channel index
  13. For inline partition table parsing (optional):
  14. - #address-cells: should be set to 1
  15. - #size-cells: should be set to 1
  16. Example for an OMAP3430 board:
  17. gpmc: gpmc@6e000000 {
  18. compatible = "ti,omap3430-gpmc";
  19. ti,hwmods = "gpmc";
  20. reg = <0x6e000000 0x1000000>;
  21. interrupts = <20>;
  22. gpmc,num-cs = <8>;
  23. gpmc,num-waitpins = <4>;
  24. #address-cells = <2>;
  25. #size-cells = <1>;
  26. onenand@0 {
  27. reg = <0 0 0>; /* CS0, offset 0 */
  28. gpmc,device-width = <2>;
  29. #address-cells = <1>;
  30. #size-cells = <1>;
  31. /* partitions go here */
  32. };
  33. };