18c2ecf20Sopenharmony_ciDevice tree bindings for GPMC connected OneNANDs
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciGPMC connected OneNAND (found on OMAP boards) are represented as child nodes of
48c2ecf20Sopenharmony_cithe GPMC controller with a name of "onenand".
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ciAll timing relevant properties as well as generic gpmc child properties are
78c2ecf20Sopenharmony_ciexplained in a separate documents - please refer to
88c2ecf20Sopenharmony_ciDocumentation/devicetree/bindings/memory-controllers/omap-gpmc.txt
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ciRequired properties:
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci - compatible:		"ti,omap2-onenand"
138c2ecf20Sopenharmony_ci - reg:			The CS line the peripheral is connected to
148c2ecf20Sopenharmony_ci - gpmc,device-width:	Width of the ONENAND device connected to the GPMC
158c2ecf20Sopenharmony_ci			in bytes. Must be 1 or 2.
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ciOptional properties:
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci - int-gpios:		GPIO specifier for the INT pin.
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ciFor inline partition table parsing (optional):
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci - #address-cells: should be set to 1
248c2ecf20Sopenharmony_ci - #size-cells: should be set to 1
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ciExample for an OMAP3430 board:
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci	gpmc: gpmc@6e000000 {
298c2ecf20Sopenharmony_ci		compatible = "ti,omap3430-gpmc";
308c2ecf20Sopenharmony_ci		ti,hwmods = "gpmc";
318c2ecf20Sopenharmony_ci		reg = <0x6e000000 0x1000000>;
328c2ecf20Sopenharmony_ci		interrupts = <20>;
338c2ecf20Sopenharmony_ci		gpmc,num-cs = <8>;
348c2ecf20Sopenharmony_ci		gpmc,num-waitpins = <4>;
358c2ecf20Sopenharmony_ci		#address-cells = <2>;
368c2ecf20Sopenharmony_ci		#size-cells = <1>;
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ci		onenand@0 {
398c2ecf20Sopenharmony_ci			compatible = "ti,omap2-onenand";
408c2ecf20Sopenharmony_ci			reg = <0 0 0>; /* CS0, offset 0 */
418c2ecf20Sopenharmony_ci			gpmc,device-width = <2>;
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_ci			#address-cells = <1>;
448c2ecf20Sopenharmony_ci			#size-cells = <1>;
458c2ecf20Sopenharmony_ci
468c2ecf20Sopenharmony_ci			/* partitions go here */
478c2ecf20Sopenharmony_ci		};
488c2ecf20Sopenharmony_ci	};
49