apm821xx: add support for kernel 5.10 for testing
[openwrt/staging/rmilecki.git] / target / linux / apm821xx / dts / apm82181.dtsi
index 5be4487be087812b30f45bf85abc5ba8d37d1511..6bab8c41fcd1295bf45e0e36e8bea1aa02f82008 100644 (file)
                                        status = "disabled";
                                };
 
-                               ndfc@1,0 {
+                               ndfc: ndfc@1,0 {
                                        compatible = "ibm,ndfc";
                                        reg = <00000003 00000000 00002000>;
                                        ccr = <0x00001000>;
                                        status = "disabled";
 
                                        nand {
+                                               /*
+                                                * These are the same fixed "MAGIC" values
+                                                * settings as in the drivers code.
+                                                * They are the same for all devices that
+                                                * have NAND.
+                                                */
+                                               nand-ecc-engine = <&ndfc>;
+                                               nand-ecc-algo = "hamming";
+                                               nand-ecc-step-size = <256>;
+                                               nand-ecc-strength = <1>;
+
                                                #address-cells = <1>;
                                                #size-cells = <1>;
                                        };