From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AF3B5C64EB4 for ; Thu, 17 Aug 2023 21:23:53 +0000 (UTC) Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.96) (envelope-from ) id 1qWkRO-00088N-1w; Thu, 17 Aug 2023 17:22:02 -0400 Received: from mail-yw1-x1129.google.com ([2607:f8b0:4864:20::1129]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1qWkRM-000888-0w for kernelnewbies@kernelnewbies.org; Thu, 17 Aug 2023 17:22:00 -0400 Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-5862a6ae535so2974047b3.0 for ; Thu, 17 Aug 2023 14:21:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692307308; x=1692912108; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=bOsJhNQoYOmFJimTxaJ2mCEMh67hQeGjwrVTDjEnLSc=; b=TPpXhy+K1amcpaItC/ed4ueSEE/vXLBV37L0U6/4TdOwYOXUGHidIxyLeJ855ApD3H oDYlcUS74zFmYL6eH28+wHzC9YxLzFs+OpCV2DVcetcWTCbSVQNeYdQGSFK+FThsvMIY RO5IXOiS6OvvhxNXyUGeYhTrePsgYMhEgiVMCbzKOjw30Y//ytN3kPRHEuK1kZVmG/AF cDjGWNVEwq6K67K+cEVhDcyLj+94WUGZJEtvOokIPU9caXSIRCmyINJElm/IMjvnfEn6 m4Ju2t6PeSZWlALjduMmSKltL0B3e3YkiXr1p2dLRtCQxbjqWrEkRLaTikMyTyWNS12I szMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692307308; x=1692912108; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bOsJhNQoYOmFJimTxaJ2mCEMh67hQeGjwrVTDjEnLSc=; b=ThfRHo+pJrflC9smMaTbNei/mrCbBHGfXFIstZkWZiHioISV/l7J6xCRfUtDfOZcGC xMy/PwE49q5jorWPIyjdt/e1mvhlM5Zm9axSYHJ9Vjk2qcSVXKJNscuLvQvEsIan0+gN AQr1ITejf6MHbLgaDytjhtUokxq4tVIP+OjyZBAzJqm/UT+tU45C4pM75AZ72oY4ALVK sXE1+1sT3yJelXJt7gfI5z04sW2KlNqG0eyGfxtoQVtSRDCNPBTIEhMpiopNm4L/eXm1 f1Ch/bFxfrkb2891lQIDj8V4W0PIqhMbutqcom8CP4Qzi988zT+nh2HPc8hah8Q2oRNl uY2w== X-Gm-Message-State: AOJu0YzxtFV+fbcylJa61b/T8SY8VZaPIPXF85eabIokoznnSPdBAjkm llJmoIOfmpf86ypP3aiL2LdBQ3otsInet3IpghM= X-Google-Smtp-Source: AGHT+IGQXTWxmdciEZxIzZP/m4iBdXR2/9RjqgCWXFOWD1UKeTLBCsQK/MaM+1qERKqXAU3q08FpBTVkStU29ojPqmQ= X-Received: by 2002:a81:8a81:0:b0:58d:b9f3:adde with SMTP id a123-20020a818a81000000b0058db9f3addemr463939ywg.51.1692307307925; Thu, 17 Aug 2023 14:21:47 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Fawad Lateef Date: Thu, 17 Aug 2023 22:21:35 +0100 Message-ID: Subject: Re: Question regarding Linux-6.3.5 and Sunxi A20 NAND/NFC support To: John Watts Cc: kernelnewbies , boris.brezillon@collabora.com, Linux Kernel Mailing List , Linux sunXi X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org On Wed, 16 Aug 2023 at 01:20, John Watts wrote: > > On Tue, Aug 15, 2023 at 11:01:02PM +0100, Fawad Lateef wrote: > > Hi everyone, > > > > Can someone guide me? I am not sure what I am missing here. > > > > I am trying to debug the code but I assume that the SUNXI NAND driver > > is supposed to be working and that something is missing from my > > changes and additions to the dts/dtsi for A20 SOM. > > > > Thanks in advance > > Hi there Fawad, > > I've hit this problem before and it's usually been because the pins are being > used by another peripheral already > > Could you post the kernel log? It might have some notes on this. > > John. 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. 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? Regards, Fawad Lateef _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies