brintos

brintos / linux-shallow public Read only

0
0
Text · 2.7 KiB · eb8e2ff Raw
95 lines · plain
1Device tree bindings for Texas instruments Davinci/Keystone NAND controller2 3This file provides information, what the device node for the davinci/keystone4NAND interface contains.5 6Documentation:7Davinci DM646x - https://www.ti.com/lit/ug/sprueq7c/sprueq7c.pdf8Kestone - https://www.ti.com/lit/ug/sprugz3a/sprugz3a.pdf9 10Required properties:11 12- compatible:			"ti,davinci-nand"13				"ti,keystone-nand"14 15- reg:				Contains 2 offset/length values:16				- offset and length for the access window.17				- offset and length for accessing the AEMIF18				control registers.19 20- ti,davinci-chipselect:	number of chipselect. Indicates on the21				davinci_nand driver which chipselect is used22				for accessing the nand.23				Can be in the range [0-3].24 25Recommended properties :26 27- ti,davinci-mask-ale:		mask for ALE. Needed for executing address28				phase. These offset will be added to the base29				address for the chip select space the NAND Flash30				device is connected to.31				If not set equal to 0x08.32 33- ti,davinci-mask-cle:		mask for CLE. Needed for executing command34				phase. These offset will be added to the base35				address for the chip select space the NAND Flash36				device is connected to.37				If not set equal to 0x10.38 39- ti,davinci-mask-chipsel:	mask for chipselect address. Needed to mask40				addresses for given chipselect.41 42- nand-ecc-mode:		operation mode of the NAND ecc mode. ECC mode43				valid values for davinci driver:44				- "none"45				- "soft"46				- "hw"47 48- ti,davinci-ecc-bits:		used ECC bits, currently supported 1 or 4.49 50- nand-bus-width:		buswidth 8 or 16. If not present 8.51 52- nand-on-flash-bbt:		use flash based bad block table support. OOB53				identifier is saved in OOB area. If not present54				false.55 56Deprecated properties:57 58- ti,davinci-ecc-mode:		operation mode of the NAND ecc mode. ECC mode59				valid values for davinci driver:60				- "none"61				- "soft"62				- "hw"63 64- ti,davinci-nand-buswidth:	buswidth 8 or 16. If not present 8.65 66- ti,davinci-nand-use-bbt:	use flash based bad block table support. OOB67				identifier is saved in OOB area. If not present68				false.69 70Nand device bindings may contain additional sub-nodes describing partitions of71the address space. See mtd.yaml for more detail. The NAND Flash timing72values must be programmed in the chip select’s node of AEMIF73memory-controller (see Documentation/devicetree/bindings/memory-controllers/74davinci-aemif.txt).75 76Example(da850 EVM ):77 78nand_cs3@62000000 {79	compatible = "ti,davinci-nand";80	reg = <0x62000000 0x807ff81	       0x68000000 0x8000>;82	ti,davinci-chipselect = <1>;83	ti,davinci-mask-ale = <0>;84	ti,davinci-mask-cle = <0>;85	ti,davinci-mask-chipsel = <0>;86	nand-ecc-mode = "hw";87	ti,davinci-ecc-bits = <4>;88	nand-on-flash-bbt;89 90	partition@180000 {91		label = "ubifs";92		reg = <0x180000 0x7e80000>;93	};94};95