-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'for-linus-20121009' of git://git.infradead.org/mtd-2.6
Pull MTD updates from David Woodhouse: - Disable broken mtdchar mmap() on MMU systems - Additional ECC tests for NAND flash, and some test cleanups - New NAND and SPI chip support - Fixes/cleanup for SH FLCTL NAND controller driver - Improved hardware support for GPMI NAND controller - Conversions to device-tree support for various drivers - Removal of obsolete drivers (sbc8xxx, bcmring, etc.) - New LPC32xx drivers for MLC and SLC NAND - Further cleanup of NAND OOB/ECC handling - UAPI cleanup merge from David Howells (just moving files, since MTD headers were sorted out long ago to separate user-visible from kernel bits) * tag 'for-linus-20121009' of git://git.infradead.org/mtd-2.6: (168 commits) mtd: Disable mtdchar mmap on MMU systems UAPI: (Scripted) Disintegrate include/mtd mtd: nand: detect Samsung K9GBG08U0A, K9GAG08U0F ID mtd: nand: decode Hynix MLC, 6-byte ID length mtd: nand: increase max OOB size to 640 mtd: nand: add generic READ ID length calculation functions mtd: nand: split simple ID decode into its own function mtd: nand: split extended ID decoding into its own function mtd: nand: split BB marker options decoding into its own function mtd: nand: remove redundant ID read mtd: nand: remove unnecessary variable mtd: docg4: add missing HAS_IOMEM dependency mtd: gpmi: initialize the timing registers only one time mtd: gpmi: add EDO feature for imx6q mtd: gpmi: do not set the default values for the extra clocks mtd: gpmi: simplify the DLL setting code mtd: gpmi: add a new field for HW_GPMI_CTRL1 mtd: gpmi: do not get the clock frequency in gpmi_begin() mtd: gpmi: add a new field for HW_GPMI_TIMING1 mtd: add helpers to get the supportted ONFI timing mode ...
- Loading branch information
Showing
119 changed files
with
6,361 additions
and
3,239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
* Texas Instruments Davinci NAND | ||
|
||
This file provides information, what the device node for the | ||
davinci nand interface contain. | ||
|
||
Required properties: | ||
- compatible: "ti,davinci-nand"; | ||
- reg : contain 2 offset/length values: | ||
- offset and length for the access window | ||
- offset and length for accessing the aemif control registers | ||
- ti,davinci-chipselect: Indicates on the davinci_nand driver which | ||
chipselect is used for accessing the nand. | ||
|
||
Recommended properties : | ||
- ti,davinci-mask-ale: mask for ale | ||
- ti,davinci-mask-cle: mask for cle | ||
- ti,davinci-mask-chipsel: mask for chipselect | ||
- ti,davinci-ecc-mode: ECC mode valid values for davinci driver: | ||
- "none" | ||
- "soft" | ||
- "hw" | ||
- ti,davinci-ecc-bits: used ECC bits, currently supported 1 or 4. | ||
- ti,davinci-nand-buswidth: buswidth 8 or 16 | ||
- ti,davinci-nand-use-bbt: use flash based bad block table support. | ||
|
||
Example (enbw_cmc board): | ||
aemif@60000000 { | ||
compatible = "ti,davinci-aemif"; | ||
#address-cells = <2>; | ||
#size-cells = <1>; | ||
reg = <0x68000000 0x80000>; | ||
ranges = <2 0 0x60000000 0x02000000 | ||
3 0 0x62000000 0x02000000 | ||
4 0 0x64000000 0x02000000 | ||
5 0 0x66000000 0x02000000 | ||
6 0 0x68000000 0x02000000>; | ||
nand@3,0 { | ||
compatible = "ti,davinci-nand"; | ||
reg = <3 0x0 0x807ff | ||
6 0x0 0x8000>; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
ti,davinci-chipselect = <1>; | ||
ti,davinci-mask-ale = <0>; | ||
ti,davinci-mask-cle = <0>; | ||
ti,davinci-mask-chipsel = <0>; | ||
ti,davinci-ecc-mode = "hw"; | ||
ti,davinci-ecc-bits = <4>; | ||
ti,davinci-nand-use-bbt; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
NXP LPC32xx SoC NAND MLC controller | ||
|
||
Required properties: | ||
- compatible: "nxp,lpc3220-mlc" | ||
- reg: Address and size of the controller | ||
- interrupts: The NAND interrupt specification | ||
- gpios: GPIO specification for NAND write protect | ||
|
||
The following required properties are very controller specific. See the LPC32xx | ||
User Manual 7.5.14 MLC NAND Timing Register (the values here are specified in | ||
Hz, to make them independent of actual clock speed and to provide for good | ||
accuracy:) | ||
- nxp,tcea_delay: TCEA_DELAY | ||
- nxp,busy_delay: BUSY_DELAY | ||
- nxp,nand_ta: NAND_TA | ||
- nxp,rd_high: RD_HIGH | ||
- nxp,rd_low: RD_LOW | ||
- nxp,wr_high: WR_HIGH | ||
- nxp,wr_low: WR_LOW | ||
|
||
Optional subnodes: | ||
- Partitions, see Documentation/devicetree/bindings/mtd/partition.txt | ||
|
||
Example: | ||
|
||
mlc: flash@200A8000 { | ||
compatible = "nxp,lpc3220-mlc"; | ||
reg = <0x200A8000 0x11000>; | ||
interrupts = <11 0>; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
|
||
nxp,tcea-delay = <333333333>; | ||
nxp,busy-delay = <10000000>; | ||
nxp,nand-ta = <18181818>; | ||
nxp,rd-high = <31250000>; | ||
nxp,rd-low = <45454545>; | ||
nxp,wr-high = <40000000>; | ||
nxp,wr-low = <83333333>; | ||
gpios = <&gpio 5 19 1>; /* GPO_P3 19, active low */ | ||
|
||
mtd0@00000000 { | ||
label = "boot"; | ||
reg = <0x00000000 0x00064000>; | ||
read-only; | ||
}; | ||
|
||
... | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
NXP LPC32xx SoC NAND SLC controller | ||
|
||
Required properties: | ||
- compatible: "nxp,lpc3220-slc" | ||
- reg: Address and size of the controller | ||
- nand-on-flash-bbt: Use bad block table on flash | ||
- gpios: GPIO specification for NAND write protect | ||
|
||
The following required properties are very controller specific. See the LPC32xx | ||
User Manual: | ||
- nxp,wdr-clks: Delay before Ready signal is tested on write (W_RDY) | ||
- nxp,rdr-clks: Delay before Ready signal is tested on read (R_RDY) | ||
(The following values are specified in Hz, to make them independent of actual | ||
clock speed:) | ||
- nxp,wwidth: Write pulse width (W_WIDTH) | ||
- nxp,whold: Write hold time (W_HOLD) | ||
- nxp,wsetup: Write setup time (W_SETUP) | ||
- nxp,rwidth: Read pulse width (R_WIDTH) | ||
- nxp,rhold: Read hold time (R_HOLD) | ||
- nxp,rsetup: Read setup time (R_SETUP) | ||
|
||
Optional subnodes: | ||
- Partitions, see Documentation/devicetree/bindings/mtd/partition.txt | ||
|
||
Example: | ||
|
||
slc: flash@20020000 { | ||
compatible = "nxp,lpc3220-slc"; | ||
reg = <0x20020000 0x1000>; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
|
||
nxp,wdr-clks = <14>; | ||
nxp,wwidth = <40000000>; | ||
nxp,whold = <100000000>; | ||
nxp,wsetup = <100000000>; | ||
nxp,rdr-clks = <14>; | ||
nxp,rwidth = <40000000>; | ||
nxp,rhold = <66666666>; | ||
nxp,rsetup = <100000000>; | ||
nand-on-flash-bbt; | ||
gpios = <&gpio 5 19 1>; /* GPO_P3 19, active low */ | ||
|
||
mtd0@00000000 { | ||
label = "phy3250-boot"; | ||
reg = <0x00000000 0x00064000>; | ||
read-only; | ||
}; | ||
|
||
... | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.