From patchwork Fri Oct 11 14:49:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 834580 Delivered-To: patch@linaro.org Received: by 2002:adf:b352:0:b0:37d:45d0:187 with SMTP id k18csp842057wrd; Fri, 11 Oct 2024 07:50:03 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUDemcLUGutIWdzsQP6RkUvDzy+Z7Po6AtgSc3LSPS7PPNmE9W9UvkPJtE7MLcW2WI+TvHbvg==@linaro.org X-Google-Smtp-Source: AGHT+IH6OP9LzrEuPQNhzIKkjqqNUzdgDt9vxE5h0kY3crqwqnA3qyAiMvwn54KPRhM9FbQWoMun X-Received: by 2002:a92:cdab:0:b0:3a0:909c:812d with SMTP id e9e14a558f8ab-3a3b5f61870mr21048105ab.11.1728658202964; Fri, 11 Oct 2024 07:50:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1728658202; cv=none; d=google.com; s=arc-20240605; b=b1f/UdNcJ3cRUTGrA2BSFS1EGUZt96iB/bJ4bQ23tnUO/bpERcKRlHhoO8keJoH9ZM M1jf/b8DobQmR3CvLEpMY2cXqburQ6X/wni03EsiBH/UcpPNmAu1JEN1Lx5zh6SrsIo3 NwJ7UaLuqLpPKMmRz73Qku+9ucyAOHVyweQrqcCTj1RcjzPdpIHv1pohxrXwa3DnRGHH hqATNeDYksfWH+LiPtcyRtXDe03sybCeVoyu5w/zPLZLEIUTZlLZQgxf1wBBguGrdHii YcHFcWeULFPY0IusvyZK0mwLtbJVGIE8NT+g9i7ochh3BvwyHS5yMvOHUMoFnEtbvHkt jXtQ== 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:content-transfer-encoding :mime-version:message-id:date:subject:from:dkim-signature; bh=LPEmfYA/cUnYLvoG/1t8re3fZki3W4KQo2K5uvA2baw=; fh=keKqWWtDMdblEqnrekmyMyFPqEfoMAfxePYGptGkOyI=; b=XouR+iDH6QI9TTnf2ZboST4fXUK0lnZqY9tiOSww429tDZrY0lQ43C/quIcEvr3pa4 L1+o94yYxDrLq6phquaB5EZGt1FM2ZwhSOTbm4uHsjJtFFlVhCDe4llk05m90fMYaIlZ IG6UFA17Wh8ncVTHW723f63/iiWf3ufq5sQ+ze1Hlw2R69hey9+KTYBtFjWAmYRPpVSe NIZNUaJ/W6rLChmp0AUU1KErBm3O0gEkrc/JbIX1ElB9O08YTYvflXKSCO3FYVa+q+h9 /jKIW0Qj4j1r/Jb8mM+QbcuzNTb7Qw1HnJThM0cL/6ZGIAuPoTwvbLBEOh9k+mc+iRdE oh1A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RrxXMzGX; 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 e9e14a558f8ab-3a3afe0d5bdsi15745475ab.137.2024.10.11.07.50.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 07:50:02 -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=RrxXMzGX; 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 78C238934F; Fri, 11 Oct 2024 16:49:59 +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="RrxXMzGX"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CDDE98934A; Fri, 11 Oct 2024 16:49:58 +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-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) (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 93086892F8 for ; Fri, 11 Oct 2024 16:49:56 +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-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-5c920611a86so2751509a12.0 for ; Fri, 11 Oct 2024 07:49:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728658196; x=1729262996; darn=lists.denx.de; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=LPEmfYA/cUnYLvoG/1t8re3fZki3W4KQo2K5uvA2baw=; b=RrxXMzGXrK6xVb0bM+ZbIUMVboY1zGFlfMe/GT3p29LDSnjihsoh1kIT673wU2EF1d 6Oe6iK1FFLvG1mUHyhLxm34N+G+K/UQsQjEb+x8OjozHrc+IW8rZ/aSMq7xmwAcm6lAs jQQcQylEaU7BhZy7xp811Xc0AGbH18+/3zOCfd0cQrU9W3R/N6iX4jkSywb44I+WiZJ7 T7CHOpYacrVmWN20wxUTxqq4vBIWcygrNerMkEKpsCyxGRJIN0RjCTVv2oajq7n5xDzD N9hvcMFrDMc9yj9NHHwRsV+oUOQQLr1pJgOmFYtFlaTDueiVwlzYyKRcKmFrOoa1VfiT 1Fcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728658196; x=1729262996; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LPEmfYA/cUnYLvoG/1t8re3fZki3W4KQo2K5uvA2baw=; b=sCHwxBpzK+ImCCABRzHwdr9n2b7BRtyLqh0f7ybwAHrkWNkKeraPcB0sg8KYOOJvT6 kqg9+31aVdTtb4k9t5M5qIZMywu6rE+GMU2AKuMP6cY+76vUBE/OxEM9usBuZLY4kp2E kJl4F2spw1gXnd+xOgu4ApZgK0D4+tCtQ//heE5hUeuU/Gy8PfH/zxbOimNMAkGy+hA3 Yx8xUCRCFYL8qupEHsi/j//vkTAtQgqJWqwIrjKP/aHEyQJAmjxV3tZUp6RLkY2Pgwnj y0SnWhcu9t5wM8eoIe/KMryab/liQnvo8L7MArOfOlN4A5cTco2rdfPN52SO6O436fpN Yhjg== X-Gm-Message-State: AOJu0YzmDwQvjEJzfMef8aC1u1E3sDGoJPWdxG6ehs3WNpts01sh8a2B AIIQK0mrCO+9nbKZqzcIQvHQosXnNmY1WWD3IjirR/ixR3700YN3HSU5k5QUT7o= X-Received: by 2002:a05:6402:2748:b0:5c9:4a9b:31f9 with SMTP id 4fb4d7f45d1cf-5c94a9b5292mr1969237a12.35.1728658195982; Fri, 11 Oct 2024 07:49:55 -0700 (PDT) Received: from lino.lan ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c9372940e3sm2006113a12.81.2024.10.11.07.49.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 07:49:55 -0700 (PDT) From: Linus Walleij Subject: [PATCH v2 0/4] mtd: rawnand: brcmnand: Add BCMBCA support Date: Fri, 11 Oct 2024 16:49:53 +0200 Message-Id: <20241011-bcmbca-nand-support-v2-0-1fe928e5b933@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIABE7CWcC/32NTQ6CMBBGr0Jm7ZgClUZX3sOw6M8Ik2hLpkg0h LtbOYDL95LvfStkEqYMl2oFoYUzp1igOVTgRxsHQg6FoVGNVudWofNP5y1GGwPm1zQlmVFrbag 2nXMuQFlOQnd+79VbX3jkPCf57CdL/bP/e0uNCqlrje9Ogc7aXB8craRjkgH6bdu+FHwc6LcAA AA= To: u-boot@lists.denx.de, Dario Binacchi , Michael Trimarchi , Anand Gore , William Zhang , Kursad Oney , Philippe Reynes Cc: Linus Walleij , Neil Armstrong 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 support for the NAND controller on the Broadcom BCA (Broadband Access) platforms. This requires the series with brcmnand fixes that I sent separately to be merged first. See: https://patchwork.ozlabs.org/project/uboot/list/?series=424109 The development was done on the Genexis XG6846B which is a derivative of the BCM96846 reference design, but probably has a different flash layout, be sure to check the last patch in the series for a comment on that. Signed-off-by: Linus Walleij Acked-by: Michael Trimarchi --- Changes in v2: - Switch to using OF_UPSTREAM instead of syncing DTS files. - Mention the Linux version the BCMBCA NAND driver is based on. - Link to v1: https://lore.kernel.org/r/20240930-bcmbca-nand-support-v1-0-e637c65de947@linaro.org --- Linus Walleij (4): mtd: rawnand: brcmnand: Add BCMBCA RAW NAND driver drivers: nand: bcmbca: Enable on BCM6846 board: bcm96846: Enable NAND options board: bcm96846: Switch to using OF_UPSTREAM arch/arm/dts/bcm6846.dtsi | 103 ------------------- arch/arm/dts/bcm96846.dts | 30 ------ arch/arm/mach-bcmbca/bcm6846/Kconfig | 4 + configs/bcm96846_defconfig | 15 ++- drivers/mtd/nand/raw/Kconfig | 7 ++ drivers/mtd/nand/raw/brcmnand/Makefile | 1 + drivers/mtd/nand/raw/brcmnand/bcmbca_nand.c | 152 ++++++++++++++++++++++++++++ 7 files changed, 178 insertions(+), 134 deletions(-) --- base-commit: a404065479be2c1fe1167c3c91367e8194a69d1b change-id: 20240930-bcmbca-nand-support-4447e176bbbd Best regards,