From patchwork Fri Oct 11 14:49:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 834583 Delivered-To: patch@linaro.org Received: by 2002:adf:b352:0:b0:37d:45d0:187 with SMTP id k18csp842258wrd; Fri, 11 Oct 2024 07:50:29 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXbEs/wkwNqpoJKmcfWH7FiIOz6PTVxzGmWQ16nJokXNMMF9dgn5ACcfF5/6aq6nrSq5voBlQ==@linaro.org X-Google-Smtp-Source: AGHT+IHy09rEs5nJBogILB5uF9JCJ6gieaVslWfLKJrdyh4eaQLvUo6nvexz3h+4Fm+L3D2EAp9r X-Received: by 2002:a05:6602:630e:b0:835:2ef4:3aa4 with SMTP id ca18e2360f4ac-837930e6be1mr200974339f.8.1728658229267; Fri, 11 Oct 2024 07:50:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1728658229; cv=none; d=google.com; s=arc-20240605; b=G8C3VunCyDIhYfqRLbu3xXA5cpbgrd5lRKMTlfVG1xhi6Sj6t9uiVwMQtvw8lHRbDM IyR1c1mO4ZWJwCFHbeLZ3V/Sn2imxMJ00elTtrVwFutobB9nrW/lpKM75N/Legdzrdfi 5U71j3foqzd1fr2rkK6EMwCEDcJvil14v9Q5L38/KxVNhzLv8u72eJDER0eh4peBtuV4 aS5ToMTg/3pGLNWhndazZ1RzBw/9jQX8IJFa9cWi5Fscg+2ZNeRLPIFUug0N5LuSbyRd /Nxhi5rfNy+9CfC8xaohv18h5vRm6t29wAYcNCPQVmjzkLWiOd5C/xr+/v3hFGPJzPSz UvIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=xpxk8zWtiiezqa9rdeiLgwUHWEFbvu+/7Ih6E577aIc=; fh=ftQntzGq59ruF58t30aRXV87AbbvorkS2P8ZbONQbrM=; b=b6oPWGLu+yiLbQR8Nop73pBOnIpA1dYy4iHuVQkh3tGnODyKmnYOIo+l+vYLYPbUZK b7M9aJg1Ff0d7BEYFlld6F0OCUzsk9OpxGSK7jE2cGnN+Kc6KNh9MgBQxFBxzMGYX1DJ QgO4SprMzqC6lqs0XUWswcufeaAJTq0iVaq+Ia81d4e2SrOw3vXCh/vfre8koqw7KZBQ PQLxRoi+1QtiCJJfCeedsamNQpA9GGyKprDLT5KQSAna++p/fNg7su4rq9jTcTHrH2E+ A/CcXwzFYvkRjx7negQsEtZfLgykuJglDuWk+Nc0tvQuwyLeEnM3RWf8C6FzfKRsy3Jg 2o2w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oNrVN3Sp; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id 8926c6da1cb9f-4dbada83927si1602980173.125.2024.10.11.07.50.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 07:50:29 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oNrVN3Sp; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E4AA389386; Fri, 11 Oct 2024 16:50:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="oNrVN3Sp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E1B8289380; Fri, 11 Oct 2024 16:50:05 +0200 (CEST) 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,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D952B892F8 for ; Fri, 11 Oct 2024 16:50:03 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=linus.walleij@linaro.org Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2fadb636abaso20617431fa.3 for ; Fri, 11 Oct 2024 07:50:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728658203; x=1729263003; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=xpxk8zWtiiezqa9rdeiLgwUHWEFbvu+/7Ih6E577aIc=; b=oNrVN3Spw47NUDR91/lVpmJplqzND3YrcLO9qmzrT2qMaJxMvJUCoC+mODAZrPDHbd Ilw27N9BHgMWBmcb6UnmtKKmMszAQO1FTX9yORbOYYHPJL2plOoQmbKsikVc+zGdk/Js QnrfwH7ZJkqLz+GMHOM2DD922xXaZBAf9NVUUeT0G27Fbz/XZrUsZAxaqCwmq+6caxI5 +l6XQfcl8M9jkFAodkaItrPLnY4PnkhkturZfGBdMEjba/h2uV22ON7Q1CVfrkQnYXcZ tY35ZultsHV1tpGUHuXbxaL3Unn//zV1ftH8hpnTxUw1qwcZAyIiCBsf3WiTR2IRx7N6 eUwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728658203; x=1729263003; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xpxk8zWtiiezqa9rdeiLgwUHWEFbvu+/7Ih6E577aIc=; b=lfEmiwfStOwcoRYk3CA8wnwyvNq80Ug10jrJOqfBD9Ma8GjzBAxWW5pzJYiuZvOLYH FeFtox1dh0aNiaikA8opujdX+sYY9ccqI3G7Y0g6NAYset3b2baDXE0XrRhRiYGx/30d 0FK3QYGG3TV6E+gZFIoHVjA9ztluBWaGhm5IaRhQQZTfxuvN1PH9s4pMINP98Q5iFXK1 VLIWVSyrFLko0KWvoexA0ikBSWGigTmoH+4QMyj12+gjftUcANVHjofIkAStelU3/s49 er4gzpr0apfkF45RAzQ22/a0fQxoSuLmZ5MWE0FYcH1fGqUYx6L7nTlc2HCczHexZx8L FSAA== X-Gm-Message-State: AOJu0YwV3v3C8PEqmQbn0ve2+e75Bor6vrOh8j/etaDN2wgFp6I7OPxQ wFlGyVrc1+QT4S8me9SQfAD5w66LPQUTk3mOEyUMc8qOGYdtu1OdikaxzLV1bq8= X-Received: by 2002:a2e:be05:0:b0:2f4:5d9:e8e3 with SMTP id 38308e7fff4ca-2fb3274036emr14865961fa.7.1728658202945; Fri, 11 Oct 2024 07:50:02 -0700 (PDT) Received: from lino.lan ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c9372940e3sm2006113a12.81.2024.10.11.07.50.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 07:50:01 -0700 (PDT) From: Linus Walleij Date: Fri, 11 Oct 2024 16:49:56 +0200 Subject: [PATCH v2 3/4] board: bcm96846: Enable NAND options MIME-Version: 1.0 Message-Id: <20241011-bcmbca-nand-support-v2-3-1fe928e5b933@linaro.org> References: <20241011-bcmbca-nand-support-v2-0-1fe928e5b933@linaro.org> In-Reply-To: <20241011-bcmbca-nand-support-v2-0-1fe928e5b933@linaro.org> To: u-boot@lists.denx.de, Dario Binacchi , Michael Trimarchi , Anand Gore , William Zhang , Kursad Oney , Philippe Reynes Cc: Linus Walleij X-Mailer: b4 0.14.0 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.8 at phobos.denx.de X-Virus-Status: Clean This adds reasonable NAND options to the BCM96846 reference design: - CMD_NAND, MTD_RAW_NAND - Disable SYS_NAND_ONFI_DETECTION as this just give error messages - MTD, MTDPARTS with DM and related config options - CMD_UBI and CMD_UBIFS as this is likely used with ubi/ubifs What I didn't add was something like the following: CONFIG_MTDPARTS_DEFAULT="nand0:256k(cfi),257024k(image)" Because I don't actually have a BCM96846 reference design. These are only available to Broadcom and their customers I think, but perhaps the people at Broadcom can provide the detail of the flash layout for BCM96846 so we can add this too so the bcm96846_config is usable out of the box. Signed-off-by: Linus Walleij --- configs/bcm96846_defconfig | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/configs/bcm96846_defconfig b/configs/bcm96846_defconfig index ea643eddcc66..2f94bd295122 100644 --- a/configs/bcm96846_defconfig +++ b/configs/bcm96846_defconfig @@ -18,5 +18,17 @@ CONFIG_OF_STDOUT_VIA_ALIAS=y CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_HUSH_PARSER=y CONFIG_CMD_CACHE=y +CONFIG_CMD_NAND=y +CONFIG_CMD_UBI=y +CONFIG_CMD_UBIFS=y +CONFIG_CMD_BOOTZ=y +CONFIG_CMD_MTDPARTS=y CONFIG_OF_EMBED=y CONFIG_CLK=y +CONFIG_MTD=y +CONFIG_MTDIDS_DEFAULT="nand0=nand0" +CONFIG_DM_MTD=y +CONFIG_MTD_RAW_NAND=y +CONFIG_MTD_UBI_FASTMAP=y +CONFIG_MTD_UBI_FASTMAP_AUTOCONVERT=1 +CONFIG_SYS_NAND_ONFI_DETECTION=n