From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-57.mta0.migadu.com (out-57.mta0.migadu.com [91.218.175.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C1E20613E for ; Fri, 18 Aug 2023 04:45:38 +0000 (UTC) Date: Fri, 18 Aug 2023 14:41:08 +1000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jookia.org; s=key1; t=1692333936; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=AqEuvMUt2iX6Thy2whkDMydqr25IsjJ4JATm7CmA4rU=; b=FWDCnVztAe35jNcI9/V0DTer5UMDmXgJLpJJyK0ysq9k3R8rIw3y/TYyy06ahetPQrvu1p J76WxJoLSdz/1G5EtRIJMlkMxG2BrE+5Ybxwuir53+cU+iwuPU3A7ogMwQbHZOxH+rvz5x afxTk20VjrdBm7btuPhs2efF6bZLdL6jKMRwo5TNEWZiiVezJ5M0KGGQjSissuDzriTNR/ 7fMZhZ3Sd1OV+yMPj6PCRGpEdhfo1IqOP2VL/a0fnK1QZutBAKKdSwvtxfUmRks8ms4bjN dC4MN9HNdQ3uu8DWqVqQiJnxTVYqz4bLOjGx7j/pO+/N2sMydKjtk6Jj1pPB8g== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: John Watts To: Fawad Lateef Cc: Linux Kernel Mailing List , Linux sunXi , kernelnewbies , boris.brezillon@collabora.com Subject: Re: Question regarding Linux-6.3.5 and Sunxi A20 NAND/NFC support Message-ID: References: Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT On Thu, Aug 17, 2023 at 10:21:35PM +0100, Fawad Lateef wrote: > Hi John, > > Thanks for your help. I found the reason for my issue. I defined the > pinctrl information under the "soc" next to "nfc" entry in > sunxi-a20.dtsi which was messing it up. > > I moved them inside the "pio" dtsi block and NAND is detected now. Congratulations! > Though almost all blocks are reported as bad-blocks. I am thinking > that it's happening as I don't have partition information defined in > DTS. Do you think that this is the reason for bad-blocks reporting? I don't have much knowledge here but you might want to confirm the contents of your bad block table is being read and has correct values. This might help: https://linux-sunxi.org/Mainline_NAND_Howto > Regards, > > Fawad Lateef John.