From patchwork Fri Feb 24 05:07:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ashok Reddy Soma X-Patchwork-Id: 1747320 X-Patchwork-Delegate: dario.binacchi@amarulasolutions.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=hsWWNqcw; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PNHvk52tpz240f for ; Fri, 24 Feb 2023 16:07:46 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 633C685AF6; Fri, 24 Feb 2023 06:07:39 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amd.com header.i=@amd.com header.b="hsWWNqcw"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8498F857FB; Fri, 24 Feb 2023 06:07:29 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2060a.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe5b::60a]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1BD758575B for ; Fri, 24 Feb 2023 06:07:27 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=ashok.reddy.soma@amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Vracx4yXLWbf8DB1cMsKF4c+Q0VdcyZgmBnUcdiB5aRi+fnxOuZnPs07bo+XKC98xKHUgEoKj0BigdMJvywCLh/pQEnYnZDTtStF64+UTk3uE4VsK0VGLrqmpt0VkS3l2xwxChaXcrVBohKFpDVX/LPZZGxozs+vF7rSv/O7VocMHRD/7ZpDjVNlScSeBh9Q8GwWpODChvAYez19qnH2y3w/L2rz5GP9n1YA/usX20LTQkvUND5dL5YnH45R9SK3bJtNj4hBsTHxpBRPvd+tCCxhGXcRO3HItIvq2MZw+AYvRPCUr2SXOXgKWjABsNPWSH5N2WVDzN02OI4m5L3LMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/IgLFZeBcnXk5sOzON0Nfbyuf+9s3Ay9bCLTAAsEuX8=; b=oWay2H0/nQJ/dhcIFRQKfVv2ZevKkVx0QmXO4JZ9RMc+RkF/a/8g7xyit5KMqw3CcHcBUdRCFbqYqo7pBcZTggn/vte+WD9tPtzex2fzmR9WHe1vc3z0o3BieHkt9CWUUcFooaaRz5cj45Fb6OR3fUpeh6ptqh3CuvbiINICS18E1Gp738cJ7MZqWRJW6tvZ9uG5GA/QE8PjPKvEfvOTnQ1m4l0ZA6FY0VEuDiKu5zVGpNpFGib3pj34MZGNbyHuoQQxuRW1X5tJvQ+zka6rdQmkxrptgLt6pyrysMQ8ObAI0uF6gHZHYSlY8NKwSDBtPciMYLhbcKIr//lXzXuOEA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/IgLFZeBcnXk5sOzON0Nfbyuf+9s3Ay9bCLTAAsEuX8=; b=hsWWNqcwMO2m415+xVuFUbsqYD6pcp0loLJajgaxKRFDBvxQFaxDdVDpPMtvgVtr+L3Pt8QsdugrRuOcgpNV8WWfplKu+6uqYm91rqmzW43jrqMsZN6AKqV5Xdb/HarZjwJb60pk1VN6ecJoa8kd1qYBvewngPY402HXhWOCnbA= Received: from BN9P220CA0016.NAMP220.PROD.OUTLOOK.COM (2603:10b6:408:13e::21) by DS7PR12MB6262.namprd12.prod.outlook.com (2603:10b6:8:96::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.21; Fri, 24 Feb 2023 05:07:22 +0000 Received: from BN8NAM11FT019.eop-nam11.prod.protection.outlook.com (2603:10b6:408:13e:cafe::31) by BN9P220CA0016.outlook.office365.com (2603:10b6:408:13e::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.24 via Frontend Transport; Fri, 24 Feb 2023 05:07:22 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by BN8NAM11FT019.mail.protection.outlook.com (10.13.176.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6134.24 via Frontend Transport; Fri, 24 Feb 2023 05:07:22 +0000 Received: from SATLEXMB05.amd.com (10.181.40.146) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 23 Feb 2023 23:07:21 -0600 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB05.amd.com (10.181.40.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 23 Feb 2023 23:07:21 -0600 Received: from xhdashokred41.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34 via Frontend Transport; Thu, 23 Feb 2023 23:07:19 -0600 From: Ashok Reddy Soma To: CC: , , , Ashok Reddy Soma Subject: [PATCH 1/4] mtd: nand: arasan: Remove hardcoded bbt option Date: Thu, 23 Feb 2023 22:07:06 -0700 Message-ID: <20230224050709.30014-2-ashok.reddy.soma@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230224050709.30014-1-ashok.reddy.soma@amd.com> References: <20230224050709.30014-1-ashok.reddy.soma@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT019:EE_|DS7PR12MB6262:EE_ X-MS-Office365-Filtering-Correlation-Id: 832d046b-2dd6-4d3c-42a3-08db16250317 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YZJtqeJN5JCg23XUEGFS+FnP36ErnAOTpVTNp2Dk/M7WwhrK+rsPdvm0X20wiQ59qhznPdumjBT0di/QNKvMIKosNv48VR2CnlaR09QFbQ968yDyZlkzJULI3D/R/H1F1dTmH3hMduzWemEiejMBe32P7BxtZsOKeNcpnEqZTkJ5/diphxic4xjGly4LeWTT/g5FGIr8KAzxAGiGg9F5MP51wno5KIzBAwSTKHStOPo5T5wXnPMGK8SrWZd+z4Qwr+xlArBZxK7Mf2M+SqWJbiHnXpP4YRT0EVR0i5GNhk43zS260ZFII6iaFWLA5LsdSg/hKioUIKzROV0MISqdO8D9PbSPrfeTtsVa8mYmfdXLb5EHIyqVNUFDW64IzzIyIqfoYUfm7d4A2WrwQMBymt+MmrNSnHCTPDkYh3LxIwcPFnz+xb5KYwQD7Su1eilxxj6y2NsfH7tCiZ6PHfPupR+pcGX1NSDABWeeSjL+Elw1GEhIXZhqm66C+eYD5/j+Yb+gh/HRDvLoUa/ZHrHhdrQ79alIlBItTGkqwRAF7vZcFhtkZGufysSCjFj0iM5L65oPMg8fv/symmDartW/tgcG/pVcakcTPGNtQm6TIFpZniUkBY5RhbB1/YN4dG5lVZj1FHhs83mPdFkxkCw3UvrGICZigsIY+e2sZxTTtkyoCSa14UPdHzJr8neA6TtUHKCBE6Xfzb/XEN5kooL5HXwfpGDkB18fjJ5zrPTX6ys= X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB03.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230025)(4636009)(396003)(39860400002)(136003)(376002)(346002)(451199018)(36840700001)(40470700004)(46966006)(82740400003)(6666004)(40460700003)(81166007)(2906002)(1076003)(36860700001)(8676002)(41300700001)(47076005)(103116003)(426003)(186003)(26005)(356005)(4744005)(36756003)(5660300002)(478600001)(83380400001)(8936002)(316002)(82310400005)(54906003)(86362001)(70586007)(40480700001)(4326008)(336012)(70206006)(6916009)(2616005)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Feb 2023 05:07:22.4201 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 832d046b-2dd6-4d3c-42a3-08db16250317 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT019.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB6262 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Bad block table option is hardcoded to read from flash with NAND_BBT_USE_FLASH option. This decision should be done based on DT property. Remove this hardcoding, to be able to use DT property. Signed-off-by: Ashok Reddy Soma --- drivers/mtd/nand/raw/arasan_nfc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/nand/raw/arasan_nfc.c b/drivers/mtd/nand/raw/arasan_nfc.c index 4621bfb03e..ddb4cb1cba 100644 --- a/drivers/mtd/nand/raw/arasan_nfc.c +++ b/drivers/mtd/nand/raw/arasan_nfc.c @@ -1248,7 +1248,6 @@ static int arasan_probe(struct udevice *dev) /* Buffer read/write routines */ nand_chip->read_buf = arasan_nand_read_buf; nand_chip->write_buf = arasan_nand_write_buf; - nand_chip->bbt_options = NAND_BBT_USE_FLASH; writel(0x0, &info->reg->cmd_reg); writel(0x0, &info->reg->pgm_reg); From patchwork Fri Feb 24 05:07:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ashok Reddy Soma X-Patchwork-Id: 1747321 X-Patchwork-Delegate: dario.binacchi@amarulasolutions.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=OQ3bMpSA; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PNHvw3w6Rz240f for ; Fri, 24 Feb 2023 16:07:56 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A68F785AFB; Fri, 24 Feb 2023 06:07:42 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amd.com header.i=@amd.com header.b="OQ3bMpSA"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 08999857FB; Fri, 24 Feb 2023 06:07:32 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on20600.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe5b::600]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DB9F184528 for ; Fri, 24 Feb 2023 06:07:28 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=ashok.reddy.soma@amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=khchymchFa8WX7lgFFUzZE4tbyRvMx/GSxuvUJaJzNQooMN96FhCai9bAZcciJRZJ1H8OKOJ4Hx7JPELrDpsRCJgJofi6zCzs5Ch7bDozqrblCtvV/SnUX4eUlVHhiOXUfoUYee2xVN0VxaS2GPwbuEkptaKJivA9gYZCl4/x8e6OHpHDoARirVuA6xC8zHLZL93LwxUj1LZMmQnY3N4wbf9AcPpwZVHgfCrXYYUZwEFgOcmFGVB4rJGv1MFtx36INauDT8KyRTbaJ4FD1KNAgCT9dsh7YqrOuGSGKc1ypE/oEUSF7gN2mttXoyPutDkgDgiL2SDpJLeVbqiiWHo7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=a3s7mPSjNGMs+3bAI3HdZNDH3P7KSY+0gqAQPnu9DNA=; b=QwKD0oEXsOs64ChAH1FvCZkFIh4Lu3/5KOwb0tzR880r+Tuz8L/wnERgRdVE4VxnMVXnd6I68eJ1NY8FIik9VH5VuplfeL8tI3dZqy79ggWzOrivQED+zWwKS39dG5of5EiPFy2zo1RbyY9mGWSVTcunOy79S0CRTTG3ykZdQm+EWs/vyGYgqnnU13bJ6twA1i/KoL2r4oZs2v6xyguUSVEbjFb2RdaLWAmWlwIixlRr+ZTB3SPiRVO9tz737DlMlv6bnXm16091QhxvlQjsodZQYcHT0913ma9wDgq0EE3ZCs4vaiS7A5af2jWfXTO+ZYV/HH63PrywOZmFTTP3PA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=a3s7mPSjNGMs+3bAI3HdZNDH3P7KSY+0gqAQPnu9DNA=; b=OQ3bMpSAFuv7vAuTfbzhQ6/684scOXQ+pykdGh5g5wLWpe27RugQsJ50C202IJgmYOlpq4f1BLtfpeMqzI8W4abjmA2aGdwC9mfFBYUrQhaBHePketXXSjPDpSwztCTA+6wnl2dXwaqr/QWkYxmitRUzvZAMLClKdojQGMP6Ha0= Received: from MW4PR03CA0107.namprd03.prod.outlook.com (2603:10b6:303:b7::22) by PH8PR12MB6674.namprd12.prod.outlook.com (2603:10b6:510:1c1::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.21; Fri, 24 Feb 2023 05:07:25 +0000 Received: from CO1NAM11FT051.eop-nam11.prod.protection.outlook.com (2603:10b6:303:b7:cafe::6b) by MW4PR03CA0107.outlook.office365.com (2603:10b6:303:b7::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.24 via Frontend Transport; Fri, 24 Feb 2023 05:07:25 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CO1NAM11FT051.mail.protection.outlook.com (10.13.174.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6134.24 via Frontend Transport; Fri, 24 Feb 2023 05:07:24 +0000 Received: from SATLEXMB05.amd.com (10.181.40.146) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 23 Feb 2023 23:07:24 -0600 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB05.amd.com (10.181.40.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 23 Feb 2023 23:07:23 -0600 Received: from xhdashokred41.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34 via Frontend Transport; Thu, 23 Feb 2023 23:07:21 -0600 From: Ashok Reddy Soma To: CC: , , , Ashok Reddy Soma Subject: [PATCH 2/4] mtd: nand: arasan: Set ofnode value Date: Thu, 23 Feb 2023 22:07:07 -0700 Message-ID: <20230224050709.30014-3-ashok.reddy.soma@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230224050709.30014-1-ashok.reddy.soma@amd.com> References: <20230224050709.30014-1-ashok.reddy.soma@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT051:EE_|PH8PR12MB6674:EE_ X-MS-Office365-Filtering-Correlation-Id: ce7a4cc4-4def-44dc-f598-08db1625049a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZM73xV041hSYnUOGtNTrZWCjv5QPyw9IcDS8uA5CuwlrW3IPL/Bsli6HmeB3RkPXL3ScNXSPgdRVSssA/j3cksADP99NM0tEgto2/VdunFQcGAYotfb4YsLZ9geSC4MVCQXSHidF/t0ujxWVwcgXB2uz5j46RHQFFVEqwAJAr42a+Z1yXUOp3iqKGSKeC+AvVDpgAwB7AFMObJat4rkFLo6ppiQNdwCEs/m7tOFVp51R6mKL1c5xP/I9BYniq7iQpHt/MldPNqO/s60Vcv+Ey4XHAhoI5ZpZRhB7bODW7AP59IwMP8eiWyeMvbZoN0na9Hgr0JCUDexIoVr/OaSXSwdV6rnyM8lA0bEgJvUM2F4ikMptQ9LC+/gJUZ0NuiKq98Acd68i0kGNTQdkviYTO/MvjoTcnNQgu78R/LbKUKcqJscBNYHK3IldqSaRsjTK79em9vmqspufZfSfjdyCCH4/kKVXGlgswQefDpuu239oaeKgfiiGH/CmT++c3hUABCVxSM45ANPPzuo4Bg16VL3aywwYXwBGz/gmZ6XJ+9mSa15whUTcJMgRzmTXUBpp76oMW1Om+AcF8Y1JOCSd4uyOIVgBM+iLVCUQYiwT9+lR31N0VKXPV40nvvATvZ9pLd7v3NVhY9vitkFkNAxSDWigAVh5hY7kxhsIwsF/bF6B7JhW5aMgkZP6y8tv50t73SQAj4fv7CwWoLPZHHQSCQWYEvQX1Cubbo3oGLfsf4o= X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230025)(4636009)(396003)(376002)(136003)(346002)(39860400002)(451199018)(40470700004)(36840700001)(46966006)(82310400005)(86362001)(2616005)(356005)(40480700001)(40460700003)(36756003)(103116003)(70586007)(54906003)(316002)(6916009)(41300700001)(47076005)(70206006)(426003)(8676002)(336012)(4326008)(1076003)(6666004)(478600001)(186003)(26005)(81166007)(82740400003)(5660300002)(8936002)(36860700001)(2906002)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Feb 2023 05:07:24.8360 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ce7a4cc4-4def-44dc-f598-08db1625049a X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT051.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB6674 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Ofnode value is not set, so all the DT properties are not being read and due to this default values are being used. Find nand node and set chip->flash_node value. Signed-off-by: Ashok Reddy Soma --- drivers/mtd/nand/raw/arasan_nfc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/mtd/nand/raw/arasan_nfc.c b/drivers/mtd/nand/raw/arasan_nfc.c index ddb4cb1cba..99e2681c14 100644 --- a/drivers/mtd/nand/raw/arasan_nfc.c +++ b/drivers/mtd/nand/raw/arasan_nfc.c @@ -1230,12 +1230,16 @@ static int arasan_probe(struct udevice *dev) struct nand_drv *info = &arasan->nand_ctrl; struct nand_config *nand = &info->config; struct mtd_info *mtd; + ofnode child; int err = -1; info->reg = (struct nand_regs *)dev_read_addr(dev); mtd = nand_to_mtd(nand_chip); nand_set_controller_data(nand_chip, &arasan->nand_ctrl); + ofnode_for_each_subnode(child, dev_ofnode(dev)) + nand_set_flash_node(nand_chip, child); + #ifdef CONFIG_SYS_NAND_NO_SUBPAGE_WRITE nand_chip->options |= NAND_NO_SUBPAGE_WRITE; #endif From patchwork Fri Feb 24 05:07:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ashok Reddy Soma X-Patchwork-Id: 1747322 X-Patchwork-Delegate: dario.binacchi@amarulasolutions.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=rPuoutV+; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PNHw81R81z240f for ; Fri, 24 Feb 2023 16:08:08 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D211A858FB; Fri, 24 Feb 2023 06:07:46 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amd.com header.i=@amd.com header.b="rPuoutV+"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 630F5857FB; Fri, 24 Feb 2023 06:07:33 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on20610.outbound.protection.outlook.com [IPv6:2a01:111:f400:7eaa::610]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 936CE8575B for ; Fri, 24 Feb 2023 06:07:29 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=ashok.reddy.soma@amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iA6zpz+RuQpoLLmmwMCBd1/bNlELyQnl36dZVEauUA9tPyxirqmuyJ8S3LB7LDt3XylL7DTVQRqWElz33AhrZ59qw7WLofJx7WDjpy86a7qroND7zPS42m6ZNQuXOk2Qr1UV4b+HThmqPyShzIXvFHC5x+lml3T21O/BBynrI2RsR5DnPangbGC95IV+D8B5tVmtz07oqkzjilDsV8THKX7S6ehk2BkgmAxBEvoombO/4OvJeEYYVmyMuVcv2q1sZmXPA1PY+zHYkQ1WWyzvOZFbVEbhk9j986qCpxUb0tA+wiOC0KKpCQHgC/YME55DxH0WODeeRipaxJj/+xy/wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=q7/Jlwa+5usIM1HqkTgH16oMtK3t/K8Nzpi/dSI8k2o=; b=aaLAOS4Topcdx8Bh8V4MIfUD1Ysue3h1hgjUhgy/ak/6vCPHATjXPQpR5OWSG0LPhxk7idlPk3HbkfKk7SIm/PPD0XHuNbgKUGYVZFP6LsGuVobxseI50xPM2Ty/HRi20PKvk9ulQofJTxqVxhC+wPmPvCUDPEJN3zOlyGNaHr5kb+dKyIyrF3fBeRqF5CiGs0mtKv2QWBSvObJg2kXzL/G8sOswZ7HYg/ObIfN4nyU0QidUaLGwP2bqLE0/R73cDSrHusqn4U/Pk4GTB7QDXT2Y/NMH9C303gIqb9r13STlpQPxcqx56FwpaiVIIxjYsmjbqb99u+QOijDXDpojMA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=q7/Jlwa+5usIM1HqkTgH16oMtK3t/K8Nzpi/dSI8k2o=; b=rPuoutV+bJnEDw+QOJQposc4EzZV6QOF7PDPpM1q7+Pr9s7NxnEGmbzmoaU4cXgknEFhAz0dZXjTEQE/sHVrzJYLI6A1e0R6ijfyIkRIIccQWIlwwbe5ij3aX8RcDGy8wUHy6spu52kmTCo67kRyiBJXk0vb+H0yVmr9khueZjE= Received: from BN9PR03CA0961.namprd03.prod.outlook.com (2603:10b6:408:109::6) by PH8PR12MB6890.namprd12.prod.outlook.com (2603:10b6:510:1ca::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.19; Fri, 24 Feb 2023 05:07:26 +0000 Received: from BN8NAM11FT046.eop-nam11.prod.protection.outlook.com (2603:10b6:408:109:cafe::8a) by BN9PR03CA0961.outlook.office365.com (2603:10b6:408:109::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.24 via Frontend Transport; Fri, 24 Feb 2023 05:07:26 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by BN8NAM11FT046.mail.protection.outlook.com (10.13.177.127) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6134.24 via Frontend Transport; Fri, 24 Feb 2023 05:07:26 +0000 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 23 Feb 2023 23:07:25 -0600 Received: from xhdashokred41.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34 via Frontend Transport; Thu, 23 Feb 2023 23:07:23 -0600 From: Ashok Reddy Soma To: CC: , , , Ashok Reddy Soma Subject: [PATCH 3/4] arm64: dts: zynqmp: Fix nand dt node Date: Thu, 23 Feb 2023 22:07:08 -0700 Message-ID: <20230224050709.30014-4-ashok.reddy.soma@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230224050709.30014-1-ashok.reddy.soma@amd.com> References: <20230224050709.30014-1-ashok.reddy.soma@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT046:EE_|PH8PR12MB6890:EE_ X-MS-Office365-Filtering-Correlation-Id: 77c2c51b-f99a-46f2-eadd-08db1625056a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: I7S04xMQ85SbhEQ00BIT1MM/LDJ1EjLMrSVjPDJ2T5Vi2y9oT2D6HvSlzr9pijxASMEYZh8zYBYQ26Gkcn2UDCerlj/qwai+ZdH6za5UJHuKzWU+ma4Fpeef7f0If1fN1fKPNlp/HKtAcOHTv4rDFAkMzlT3YNLM1L3giRBNk9kZYzGhkDTeghFGcjx2EqUrOn2kYGqUYzvSOKqa7vXr6UktknKkNsaDS4CTYRQX8umf1G0WqUCDNkJy2BMxuVAP4Z09g7NU5FWwYBWf8LD0/vSrNdxWb1xBHwLq675y6943t6b80h2AmDeGzHVGxolix7WTDneN/mdbMrnxqB0J54LrztR+r6RKRMYfyotUmfpwbAaeII0x1oVsgsRk8PbZYTjJwu0OY5XxXjQzoJ1lOfmas85phWeZJvFlv39PLRLV58yX99DIwtGT244SpATQ5RGywonTfSz7XfweJaNNeDQsqmQfj93zKoXBi+9OhkyeKgkpoJeL0asthFz6YGlYwuPv/NXS6PvwxMGERCwPtnsU+pcBpNAu/Y0MNAzAlOT7yc1hkIoZlHQ5xNt3Y3a4dDD5VTYEIbijmETWruZFp878owQ7RQuNe5cQJTfAeDDasOpLc5ZUThrAIx5Zf2nTlloCLXlfIORf2pNKWGnuffEk69N3uaKMVhnD5/mguvR7jjew7XvNCMOcTqnqiPy2f6fivCwomdclRr12DnSUIDIvuvxKz3wK+WyHwgwzYUY= X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB03.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230025)(4636009)(39860400002)(136003)(376002)(396003)(346002)(451199018)(46966006)(36840700001)(40470700004)(426003)(83380400001)(47076005)(478600001)(2906002)(36756003)(5660300002)(6666004)(41300700001)(1076003)(8936002)(82310400005)(336012)(36860700001)(26005)(356005)(2616005)(186003)(40480700001)(54906003)(86362001)(316002)(6916009)(8676002)(103116003)(81166007)(4326008)(82740400003)(70586007)(40460700003)(70206006)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Feb 2023 05:07:26.3082 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 77c2c51b-f99a-46f2-eadd-08db1625056a X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT046.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB6890 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean DC3 nand node is not correct, it is showing all partitions under controller node directly. Create two sub nand nodes with partitions for each. Signed-off-by: Ashok Reddy Soma --- arch/arm/dts/zynqmp-zc1751-xm017-dc3.dts | 117 ++++++++++++++--------- 1 file changed, 70 insertions(+), 47 deletions(-) diff --git a/arch/arm/dts/zynqmp-zc1751-xm017-dc3.dts b/arch/arm/dts/zynqmp-zc1751-xm017-dc3.dts index 13812470ae..8a06c2a90a 100644 --- a/arch/arm/dts/zynqmp-zc1751-xm017-dc3.dts +++ b/arch/arm/dts/zynqmp-zc1751-xm017-dc3.dts @@ -128,54 +128,77 @@ arasan,has-mdma; num-cs = <2>; - partition@0 { /* for testing purpose */ - label = "nand-fsbl-uboot"; - reg = <0x0 0x0 0x400000>; + nand@0 { + reg = <0x0>; + #address-cells = <0x2>; + #size-cells = <0x1>; + nand-ecc-mode = "soft"; + nand-ecc-algo = "bch"; + nand-rb = <0>; + label = "main-storage-0"; + nand-ecc-step-size = <1024>; + nand-ecc-strength = <24>; + + partition@0 { /* for testing purpose */ + label = "nand-fsbl-uboot"; + reg = <0x0 0x0 0x400000>; + }; + partition@1 { /* for testing purpose */ + label = "nand-linux"; + reg = <0x0 0x400000 0x1400000>; + }; + partition@2 { /* for testing purpose */ + label = "nand-device-tree"; + reg = <0x0 0x1800000 0x400000>; + }; + partition@3 { /* for testing purpose */ + label = "nand-rootfs"; + reg = <0x0 0x1C00000 0x1400000>; + }; + partition@4 { /* for testing purpose */ + label = "nand-bitstream"; + reg = <0x0 0x3000000 0x400000>; + }; + partition@5 { /* for testing purpose */ + label = "nand-misc"; + reg = <0x0 0x3400000 0xFCC00000>; + }; }; - partition@1 { /* for testing purpose */ - label = "nand-linux"; - reg = <0x0 0x400000 0x1400000>; - }; - partition@2 { /* for testing purpose */ - label = "nand-device-tree"; - reg = <0x0 0x1800000 0x400000>; - }; - partition@3 { /* for testing purpose */ - label = "nand-rootfs"; - reg = <0x0 0x1C00000 0x1400000>; - }; - partition@4 { /* for testing purpose */ - label = "nand-bitstream"; - reg = <0x0 0x3000000 0x400000>; - }; - partition@5 { /* for testing purpose */ - label = "nand-misc"; - reg = <0x0 0x3400000 0xFCC00000>; - }; - - partition@6 { /* for testing purpose */ - label = "nand1-fsbl-uboot"; - reg = <0x1 0x0 0x400000>; - }; - partition@7 { /* for testing purpose */ - label = "nand1-linux"; - reg = <0x1 0x400000 0x1400000>; - }; - partition@8 { /* for testing purpose */ - label = "nand1-device-tree"; - reg = <0x1 0x1800000 0x400000>; - }; - partition@9 { /* for testing purpose */ - label = "nand1-rootfs"; - reg = <0x1 0x1C00000 0x1400000>; - }; - partition@10 { /* for testing purpose */ - label = "nand1-bitstream"; - reg = <0x1 0x3000000 0x400000>; - }; - partition@11 { /* for testing purpose */ - label = "nand1-misc"; - reg = <0x1 0x3400000 0xFCC00000>; + nand@1 { + reg = <0x1>; + #address-cells = <0x2>; + #size-cells = <0x1>; + nand-ecc-mode = "soft"; + nand-ecc-algo = "bch"; + nand-rb = <0>; + label = "main-storage-1"; + nand-ecc-step-size = <1024>; + nand-ecc-strength = <24>; + + partition@0 { /* for testing purpose */ + label = "nand1-fsbl-uboot"; + reg = <0x0 0x0 0x400000>; + }; + partition@1 { /* for testing purpose */ + label = "nand1-linux"; + reg = <0x0 0x400000 0x1400000>; + }; + partition@2 { /* for testing purpose */ + label = "nand1-device-tree"; + reg = <0x0 0x1800000 0x400000>; + }; + partition@3 { /* for testing purpose */ + label = "nand1-rootfs"; + reg = <0x0 0x1C00000 0x1400000>; + }; + partition@4 { /* for testing purpose */ + label = "nand1-bitstream"; + reg = <0x0 0x3000000 0x400000>; + }; + partition@5 { /* for testing purpose */ + label = "nand1-misc"; + reg = <0x0 0x3400000 0xFCC00000>; + }; }; }; From patchwork Fri Feb 24 05:07:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ashok Reddy Soma X-Patchwork-Id: 1747323 X-Patchwork-Delegate: dario.binacchi@amarulasolutions.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=Z7a2afFm; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PNHwN461Vz240f for ; Fri, 24 Feb 2023 16:08:20 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 275D685B26; Fri, 24 Feb 2023 06:07:53 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amd.com header.i=@amd.com header.b="Z7a2afFm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5464D85637; Fri, 24 Feb 2023 06:07:35 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on20614.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe5b::614]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C6C1685805 for ; Fri, 24 Feb 2023 06:07:31 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=ashok.reddy.soma@amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jLfTDqjxhY4n+7pCpl1bUFwYbks1Yiz5WEx0ZSZ0u5Gc3+uVt4Y2/zUybAjjSs2K6OnFmlOVxrNcZ5OGSZe7Mwti00hh9OrMowgX4EQx6dh10oufVznxKlmcfXVdeW8sBTznDOYYmzO8BdxZx3SKx7ynHF1LCBJJIw74NJw6OStGxCgOYKUPMnT5PYzI42fH7h85CoxznzzrWvEAVTDDbi7Jd5LI/Aiqrfw/cvuhoI3YUdF1KfqjrP9jcU4nC4w73SGfsXv1oj8guNZwpskDsE6PXQDh9FESphi3WpcvORmACpc1Qy6QcQCwansxRjy3A9ivO3DGpSfHJ+7KicgdUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=lHElCB8+lT2B/it9yks/52J3hx5j8d8F5j52ze3q5q8=; b=V8PvyoTHAj00JpoTfZQx3XR6ImtjiiZXjtVqgdkCff7F0PT8e0i4K2CSKGweLDNwYsv0CMjNGlHPExhWm+LFBQXACZ2uEGoutPpi+DUzmBk8m9nIBMF9uA6Hw85pkmMhtcbPRxlWwUMS9VBmrOMLr9zuRlJ4yTyA+5HLlfZVBxbAFtPOkcw/68vVrF+HS5JDXAY5BWGeSo7j3WDK/NCxLI6EA38ol2T6EOpsXsLAsphZdRs6EAWEdkU2LHFN8CvIsrNSHznI9V550RITgyeR2t3+Ym/EawreOgGyVQaQno+QobPqaOK2DonvWauZQkyvqOGXVPt+6aUNELq8HjkyaQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lHElCB8+lT2B/it9yks/52J3hx5j8d8F5j52ze3q5q8=; b=Z7a2afFm3qKrGDR6prQPRosPK76HqL6XEtjg83/QY0gwZmu2jF98KYzBIiE8SG5T50Nv1alHreTzoz5YlS7zZ3kqy83e0BJ7PBugKPqKHFfhtWKOEcEluc/45WkCD23wDd8xqTbsQjU32b3c7Q/pW00+JxN7nm+Fcr2Mp2NsdzM= Received: from BN9P223CA0005.NAMP223.PROD.OUTLOOK.COM (2603:10b6:408:10b::10) by CH3PR12MB7642.namprd12.prod.outlook.com (2603:10b6:610:14a::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.21; Fri, 24 Feb 2023 05:07:29 +0000 Received: from BN8NAM11FT029.eop-nam11.prod.protection.outlook.com (2603:10b6:408:10b:cafe::a8) by BN9P223CA0005.outlook.office365.com (2603:10b6:408:10b::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.24 via Frontend Transport; Fri, 24 Feb 2023 05:07:29 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by BN8NAM11FT029.mail.protection.outlook.com (10.13.177.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6134.24 via Frontend Transport; Fri, 24 Feb 2023 05:07:28 +0000 Received: from SATLEXMB08.amd.com (10.181.40.132) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 23 Feb 2023 23:07:27 -0600 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB08.amd.com (10.181.40.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 23 Feb 2023 21:07:27 -0800 Received: from xhdashokred41.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34 via Frontend Transport; Thu, 23 Feb 2023 23:07:25 -0600 From: Ashok Reddy Soma To: CC: , , , Ashok Reddy Soma Subject: [PATCH 4/4] arm64: dts: zynqmp: Enable nand-on-flash-bbt in DT by default Date: Thu, 23 Feb 2023 22:07:09 -0700 Message-ID: <20230224050709.30014-5-ashok.reddy.soma@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230224050709.30014-1-ashok.reddy.soma@amd.com> References: <20230224050709.30014-1-ashok.reddy.soma@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT029:EE_|CH3PR12MB7642:EE_ X-MS-Office365-Filtering-Correlation-Id: 396ad389-3161-4839-2df5-08db162506e7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: swLJLwClxk4ytFR7U7hLmCYV4tGy3KIRhzPmuYVKHRL8aIhoMG3SA/jGor3nP++tXxG2Bu0ippCLH3terRB6VmglRTejIVnrDwgLGiJsWwGERG5ZzEj5UEnaU4H6+LVYMUc+3+b1oJzacgmXYjqohBKvIj0UUuvsCQHMYeZrMN1boRwB/HFswTxVBPbHVR2rpEU3AmGRJopXlwCgnfj03f2WkjLxGxCLHaeAmf1L5giTBumLPumYM1n+IM5UUKnhgMV1c+3SOw4gWi69But7DRL+k3zgqGq9MET/XXVuY+nzuwSL0IM/wTFUPtphpEum0BgkSo3RQgh62G553TMvoWIzsUlnvxFvTHk7mGNUs4hC6wFLb30+fTB2CZRmGQqU2ngi++r7/Fd7bPsqcv+P2axnUakxx12G3MD67p1AG/zJVXc6QrotU50IUmyN8MFTcRDKP9RYojFqg4n0vux+QN3Wjmk5JpBh1uZpg+0yjrGGrAU0JYKWzrHsxP7K2+S4P65UmlTv0EUvnhJZQvMRU9rQKB6PSgW4zHW32hqavkqCAR0cw6YHHwWODnduqz9tDHLu68Xl/Nm5KOSuSXUheO/v8XV4pfOU9bogV7nI+PY4d87HrLlHXnm3xRpuVEyCmXUZ492ay7MjM4P9vaHJPTIVFNFuHNUeWbjjiRihryrh9LP3xW7uo+C9GCZSZ1oabgcckgc5KIQe7xHw2alw6+TWhI871aTc7vypRKxE/t8= X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB03.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230025)(4636009)(39860400002)(396003)(136003)(346002)(376002)(451199018)(46966006)(40470700004)(36840700001)(103116003)(36756003)(81166007)(36860700001)(82740400003)(356005)(47076005)(426003)(336012)(5660300002)(478600001)(83380400001)(8936002)(2906002)(41300700001)(40460700003)(1076003)(316002)(54906003)(2616005)(6916009)(70206006)(40480700001)(6666004)(8676002)(4326008)(86362001)(70586007)(186003)(26005)(82310400005)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Feb 2023 05:07:28.8003 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 396ad389-3161-4839-2df5-08db162506e7 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT029.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB7642 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean By default enable nand-on-flash-bbt DT flag, so that driver always refers to the bad block table(bbt) present on the flash device. Signed-off-by: Ashok Reddy Soma --- arch/arm/dts/zynqmp-zc1751-xm016-dc2.dts | 2 ++ arch/arm/dts/zynqmp-zc1751-xm017-dc3.dts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/arm/dts/zynqmp-zc1751-xm016-dc2.dts b/arch/arm/dts/zynqmp-zc1751-xm016-dc2.dts index 4e6160bcd8..b6bc2f5be0 100644 --- a/arch/arm/dts/zynqmp-zc1751-xm016-dc2.dts +++ b/arch/arm/dts/zynqmp-zc1751-xm016-dc2.dts @@ -142,6 +142,7 @@ label = "main-storage-0"; nand-ecc-step-size = <1024>; nand-ecc-strength = <24>; + nand-on-flash-bbt; partition@0 { /* for testing purpose */ label = "nand-fsbl-uboot"; @@ -178,6 +179,7 @@ label = "main-storage-1"; nand-ecc-step-size = <1024>; nand-ecc-strength = <24>; + nand-on-flash-bbt; partition@0 { /* for testing purpose */ label = "nand1-fsbl-uboot"; diff --git a/arch/arm/dts/zynqmp-zc1751-xm017-dc3.dts b/arch/arm/dts/zynqmp-zc1751-xm017-dc3.dts index 8a06c2a90a..6021f8b4e1 100644 --- a/arch/arm/dts/zynqmp-zc1751-xm017-dc3.dts +++ b/arch/arm/dts/zynqmp-zc1751-xm017-dc3.dts @@ -138,6 +138,7 @@ label = "main-storage-0"; nand-ecc-step-size = <1024>; nand-ecc-strength = <24>; + nand-on-flash-bbt; partition@0 { /* for testing purpose */ label = "nand-fsbl-uboot"; @@ -174,6 +175,7 @@ label = "main-storage-1"; nand-ecc-step-size = <1024>; nand-ecc-strength = <24>; + nand-on-flash-bbt; partition@0 { /* for testing purpose */ label = "nand1-fsbl-uboot";