xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mtd/gpmc-onenand.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunDevice tree bindings for GPMC connected OneNANDs
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunGPMC connected OneNAND (found on OMAP boards) are represented as child nodes of
4*4882a593Smuzhiyunthe GPMC controller with a name of "onenand".
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunAll timing relevant properties as well as generic gpmc child properties are
7*4882a593Smuzhiyunexplained in a separate documents - please refer to
8*4882a593SmuzhiyunDocumentation/devicetree/bindings/memory-controllers/omap-gpmc.txt
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunRequired properties:
11*4882a593Smuzhiyun
12*4882a593Smuzhiyun - compatible:		"ti,omap2-onenand"
13*4882a593Smuzhiyun - reg:			The CS line the peripheral is connected to
14*4882a593Smuzhiyun - gpmc,device-width:	Width of the ONENAND device connected to the GPMC
15*4882a593Smuzhiyun			in bytes. Must be 1 or 2.
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunOptional properties:
18*4882a593Smuzhiyun
19*4882a593Smuzhiyun - int-gpios:		GPIO specifier for the INT pin.
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunFor inline partition table parsing (optional):
22*4882a593Smuzhiyun
23*4882a593Smuzhiyun - #address-cells: should be set to 1
24*4882a593Smuzhiyun - #size-cells: should be set to 1
25*4882a593Smuzhiyun
26*4882a593SmuzhiyunExample for an OMAP3430 board:
27*4882a593Smuzhiyun
28*4882a593Smuzhiyun	gpmc: gpmc@6e000000 {
29*4882a593Smuzhiyun		compatible = "ti,omap3430-gpmc";
30*4882a593Smuzhiyun		ti,hwmods = "gpmc";
31*4882a593Smuzhiyun		reg = <0x6e000000 0x1000000>;
32*4882a593Smuzhiyun		interrupts = <20>;
33*4882a593Smuzhiyun		gpmc,num-cs = <8>;
34*4882a593Smuzhiyun		gpmc,num-waitpins = <4>;
35*4882a593Smuzhiyun		#address-cells = <2>;
36*4882a593Smuzhiyun		#size-cells = <1>;
37*4882a593Smuzhiyun
38*4882a593Smuzhiyun		onenand@0 {
39*4882a593Smuzhiyun			compatible = "ti,omap2-onenand";
40*4882a593Smuzhiyun			reg = <0 0 0>; /* CS0, offset 0 */
41*4882a593Smuzhiyun			gpmc,device-width = <2>;
42*4882a593Smuzhiyun
43*4882a593Smuzhiyun			#address-cells = <1>;
44*4882a593Smuzhiyun			#size-cells = <1>;
45*4882a593Smuzhiyun
46*4882a593Smuzhiyun			/* partitions go here */
47*4882a593Smuzhiyun		};
48*4882a593Smuzhiyun	};
49