From patchwork Mon Sep 30 13:24: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: 831569 Delivered-To: patch@linaro.org Received: by 2002:a5d:66c8:0:b0:367:895a:4699 with SMTP id k8csp1947330wrw; Mon, 30 Sep 2024 06:25:46 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVxioMPqEmJhRYcxpGDHCtMVtfNllQndGYzBnnsRqqtrbJPGoc6z9NPjf6H11IindxbzNwGPA==@linaro.org X-Google-Smtp-Source: AGHT+IGKG0Sg9/3D802Hgmmd+3yk3ZkXJYVggEt8i0vfwVjoX0S6Ogc+gi9ynt0f9DuG1yFEgrs3 X-Received: by 2002:a05:6602:2b13:b0:82a:418d:b03f with SMTP id ca18e2360f4ac-83493205446mr1224637439f.8.1727702746335; Mon, 30 Sep 2024 06:25:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727702746; cv=none; d=google.com; s=arc-20240605; b=Bjl9Pb82bu83T6JvHASbSNKrO2fAaru5m409cia38OJlqvRcowgzO16Pt+wz5homho MEKhoHFxBTSrB5GjTJGSYHqHfhUrN3kPf3hZ6ga5vjSvQ8EN1w+VUKViZ8MLYJW51I4h 8FlPLeei7U1dHkkX+j5KCfo4zM1A8q8FceuBmiAlENCTA+t01PGJ4Bb0mJXRgSBiJtek +jkSH5+eXVceP5tVzoi6lUzVKdZ/xVsomchdjWYcVSGq7o1Is70uWpKZXsLGzOZ25v1+ GtBfULMb9UVoVrsKu+iHi3rqQNqNbanpF96tfOLEKTRHIchPgnUPn9MFP2DgBBlyELdj EzKA== 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=7Say+sXgvW1lTH9c/wxRnHBVVnzUBjmHWb5NTEEpJus=; fh=ftQntzGq59ruF58t30aRXV87AbbvorkS2P8ZbONQbrM=; b=MBMm4X4wnhH0Se05uLIPvcziJUInjEtwL0hMwiOwCrSnm03OL/iEi6nO3M2geQE5Tu qQKQ/4uYlAD0s5r2l2o/rbuLqKAem1yVERhGzUEw4u7SRlgbse6C1A8j1akdgJZnDJ57 nvk9JA9ZnZWRT7z5G8tbTAs0l3C5XFi0HzO7gCahfPtGhPMB4T00eRQUfCyHzqVj024l 8DqAF6mGYEakDvQiiE8mB8wRzECZ7RWy+do9mxaiC5LdrqL3Vj+PUUYC0Jvmowv954yI EGamlT94r23iBQn6Ubub+aJHIA2ETqyvaqibKTsSJFT88jHbjGrSROurMUMNuPtZdVhT i7Uw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mGnRcC8k; 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 ca18e2360f4ac-8349374ca00si356289339f.140.2024.09.30.06.25.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Sep 2024 06:25:46 -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=mGnRcC8k; 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 5B0AD88F95; Mon, 30 Sep 2024 15:25:10 +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="mGnRcC8k"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7A84F88F32; Mon, 30 Sep 2024 15:25:08 +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,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) (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 EBCE288ED7 for ; Mon, 30 Sep 2024 15:25:05 +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-lf1-x135.google.com with SMTP id 2adb3069b0e04-539908f238fso1503398e87.2 for ; Mon, 30 Sep 2024 06:25:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1727702702; x=1728307502; 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=7Say+sXgvW1lTH9c/wxRnHBVVnzUBjmHWb5NTEEpJus=; b=mGnRcC8ka3UzfIR6M2kyeNjUZfkrI1YLna96L9wsa2tjq+V5bUFlqm93hZncatjbJ1 EKpMR0zcaAnLqrgCzj39vfT2SN8Y7IEgMVVib6i/z6nVdcoZmz+wynliu9iqAPcQcgxJ eI9gO0xvUVEqgA3aPspeWwbQ2iGOJCo1g2ZjCrqessHH+/OI7LAfk5Hcb7MVuFm146qh GB/GysAn4lhlReSsj3i9vDVVpJKsbrt9aAig0+DP6oCaVhDylLNSv+rDVmEUKdRQNR71 ZekO97cDt6Gkgnp/PuV5Dk8BRYJEOj/QPqAb2MApsHJJa6RHhZG9uB9+NHQKN5CYNy8Z J+vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727702702; x=1728307502; 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=7Say+sXgvW1lTH9c/wxRnHBVVnzUBjmHWb5NTEEpJus=; b=bM59E4Ay3/E4474ujZoUAUu7/AJXB4Zbl2JUTiyOKXCwj8oXjd8aasnwAgw8gHJU60 v5aM8HfLF6ASl7AhlGSjz7UwAOAchimwTQAkPzvQwg8zICw8K7tACLEKgcJbeJo2m+02 4jg9V+Hmdr0BLKWQuPR+q64MJ6cdhdYIxAYkCYpOw5izNKJgbgHFeYdMs6ZC3+wZm2Lm PAdADv6yyqXfkPrNGEBIdi+MK6Glwf/HNdVAhFG8v0vcOQEXoy420t9lW1/k6CFBiAMc PRWAUVTsPp6/gaMIXh16hJaJgKonQr4KtuZzFSPJlt/FOtfFviaKOhmK3j9Z2mJYn25a L6Hw== X-Gm-Message-State: AOJu0YwtiLSo98tRnIb0PB95QsuFE6O2mKqoxlaoqB35U7oAOUYRCS1p whyVjp9qk6eJpX1o58E5n9BLQixdU0akPwKmdeIQyOWGClW7M4UwXyO5oKOXMmU= X-Received: by 2002:ac2:4f01:0:b0:52c:df6f:a66 with SMTP id 2adb3069b0e04-5389fc858f5mr6137468e87.58.1727702701850; Mon, 30 Sep 2024 06:25:01 -0700 (PDT) Received: from lino.lan ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c88245fbeasm4484786a12.54.2024.09.30.06.25.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Sep 2024 06:25:01 -0700 (PDT) From: Linus Walleij Date: Mon, 30 Sep 2024 15:24:56 +0200 Subject: [PATCH 4/4] board: bcm96846: Enable NAND options MIME-Version: 1.0 Message-Id: <20240930-bcmbca-nand-support-v1-4-e637c65de947@linaro.org> References: <20240930-bcmbca-nand-support-v1-0-e637c65de947@linaro.org> In-Reply-To: <20240930-bcmbca-nand-support-v1-0-e637c65de947@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 467f4de439e3..4d8767dbb41f 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