xref: /freebsd/sys/contrib/device-tree/Bindings/mtd/oxnas-nand.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot* Oxford Semiconductor OXNAS NAND Controller
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotPlease refer to nand-controller.yaml for generic information regarding MTD NAND bindings.
4*c66ec88fSEmmanuel Vadot
5*c66ec88fSEmmanuel VadotRequired properties:
6*c66ec88fSEmmanuel Vadot - compatible: "oxsemi,ox820-nand"
7*c66ec88fSEmmanuel Vadot - reg: Base address and length for NAND mapped memory.
8*c66ec88fSEmmanuel Vadot
9*c66ec88fSEmmanuel VadotOptional Properties:
10*c66ec88fSEmmanuel Vadot - clocks: phandle to the NAND gate clock if needed.
11*c66ec88fSEmmanuel Vadot - resets: phandle to the NAND reset control if needed.
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel VadotExample:
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel Vadotnandc: nand-controller@41000000 {
16*c66ec88fSEmmanuel Vadot	compatible = "oxsemi,ox820-nand";
17*c66ec88fSEmmanuel Vadot	reg = <0x41000000 0x100000>;
18*c66ec88fSEmmanuel Vadot	clocks = <&stdclk CLK_820_NAND>;
19*c66ec88fSEmmanuel Vadot	resets = <&reset RESET_NAND>;
20*c66ec88fSEmmanuel Vadot	#address-cells = <1>;
21*c66ec88fSEmmanuel Vadot	#size-cells = <0>;
22*c66ec88fSEmmanuel Vadot
23*c66ec88fSEmmanuel Vadot	nand@0 {
24*c66ec88fSEmmanuel Vadot		reg = <0>;
25*c66ec88fSEmmanuel Vadot		#address-cells = <1>;
26*c66ec88fSEmmanuel Vadot		#size-cells = <1>;
27*c66ec88fSEmmanuel Vadot		nand-ecc-mode = "soft";
28*c66ec88fSEmmanuel Vadot		nand-ecc-algo = "hamming";
29*c66ec88fSEmmanuel Vadot
30*c66ec88fSEmmanuel Vadot		partition@0 {
31*c66ec88fSEmmanuel Vadot			label = "boot";
32*c66ec88fSEmmanuel Vadot			reg = <0x00000000 0x00e00000>;
33*c66ec88fSEmmanuel Vadot			read-only;
34*c66ec88fSEmmanuel Vadot		};
35*c66ec88fSEmmanuel Vadot
36*c66ec88fSEmmanuel Vadot		partition@e00000 {
37*c66ec88fSEmmanuel Vadot			label = "ubi";
38*c66ec88fSEmmanuel Vadot			reg = <0x00e00000 0x07200000>;
39*c66ec88fSEmmanuel Vadot		};
40*c66ec88fSEmmanuel Vadot	};
41*c66ec88fSEmmanuel Vadot};
42