Back to home page

OSCL-LXR

 
 

    


0001 Freescale Localbus UPM programmed to work with NAND flash
0002 
0003 Required properties:
0004 - compatible : "fsl,upm-nand".
0005 - reg : should specify localbus chip select and size used for the chip.
0006 - fsl,upm-addr-offset : UPM pattern offset for the address latch.
0007 - fsl,upm-cmd-offset : UPM pattern offset for the command latch.
0008 
0009 Optional properties:
0010 - fsl,upm-addr-line-cs-offsets : address offsets for multi-chip support.
0011         The corresponding address lines are used to select the chip.
0012 - gpios : may specify optional GPIOs connected to the Ready-Not-Busy pins
0013         (R/B#). For multi-chip devices, "n" GPIO definitions are required
0014         according to the number of chips.
0015 
0016 Deprecated properties:
0017 - fsl,upm-wait-flags : add chip-dependent short delays after running the
0018         UPM pattern (0x1), after writing a data byte (0x2) or after
0019         writing out a buffer (0x4).
0020 - chip-delay : chip dependent delay for transferring data from array to
0021         read registers (tR). Required if property "gpios" is not used
0022         (R/B# pins not connected).
0023 
0024 Each flash chip described may optionally contain additional sub-nodes
0025 describing partitions of the address space. See partition.txt for more
0026 detail.
0027 
0028 Examples:
0029 
0030 upm@1,0 {
0031         compatible = "fsl,upm-nand";
0032         reg = <1 0 1>;
0033         fsl,upm-addr-offset = <16>;
0034         fsl,upm-cmd-offset = <8>;
0035         gpios = <&qe_pio_e 18 0>;
0036 
0037         flash {
0038                 #address-cells = <1>;
0039                 #size-cells = <1>;
0040                 compatible = "...";
0041 
0042                 partition@0 {
0043                         ...
0044                 };
0045         };
0046 };
0047 
0048 upm@3,0 {
0049         #address-cells = <0>;
0050         #size-cells = <0>;
0051         compatible = "tqc,tqm8548-upm-nand", "fsl,upm-nand";
0052         reg = <3 0x0 0x800>;
0053         fsl,upm-addr-offset = <0x10>;
0054         fsl,upm-cmd-offset = <0x08>;
0055         /* Multi-chip NAND device */
0056         fsl,upm-addr-line-cs-offsets = <0x0 0x200>;
0057 
0058         nand@0 {
0059                 #address-cells = <1>;
0060                 #size-cells = <1>;
0061 
0062                 partition@0 {
0063                             label = "fs";
0064                             reg = <0x00000000 0x10000000>;
0065                 };
0066         };
0067 };