From patchwork Mon Apr 24 07:38:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 676550 Delivered-To: patch@linaro.org Received: by 2002:a5d:4a41:0:0:0:0:0 with SMTP id v1csp2020010wrs; Mon, 24 Apr 2023 00:39:18 -0700 (PDT) X-Google-Smtp-Source: AKy350ZUhuagujT8Uw+wUsqi3qCg4DoyFJ6c13+DaGJQ9ufH4svtWSLBoKU4x6SZlVTPD3Fc9sfX X-Received: by 2002:a17:902:ce8f:b0:1a6:4fbd:d5c0 with SMTP id f15-20020a170902ce8f00b001a64fbdd5c0mr15773030plg.53.1682321957936; Mon, 24 Apr 2023 00:39:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682321957; cv=none; d=google.com; s=arc-20160816; b=uvIa/GQd/B2EHJ7l4W0O/LROUBerFVlo7pfNAhUZb5+Ac/QEEhltzEq2WERKT490WP 4t/IWdk59sK4nd0A9E3QgtDuvMIJgZaNjbvNOm154KbkMrYC/zcVUrPwMOBnmya7EazD tMhlawHkArvzAwYFU5/k4tRhHwQwe3q+Wlho3anIAgJ0HWvZXHRFS5e4YsOrH5yG4Fry agPNcUHeD6JBfKMk6UeD5JpQEaNPIQHLgZx2EzcgmJq6v8E6Xb3632a+hqINOLyBx3Lm KO6MONnaV7YUmSLglmsAmUI9RWNB9GUZaE82xyRNvgZ4guW1qw3v7fOBmX7kZqDmeBrE F0+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=rk8Umds742x5iJgm/g/7zDfbMEmCCrG4qBDVTRUofE0=; b=XEucH/f9ogmkD+r8pnwByFZwKhbT5iDWhVmc45WU6XSrc8wuejODX2lruBMNVZdog3 fmS3TWXvx/Id1kQwdY4H0W5DcD8yqokX7CzO1X3+sAy4vI9qCQWCTW8HBuLzGNGIiVt5 cpj3gW618D7ZBux0rAct+rHctwEhjiaHLb36vxnQsMTXGMMAchFpHV31n8cNdKhDvesN acNSuauDhDpa93wjuzdpOfNGJ++t3Lp0lzUfveUqqRWTNW+y6gdgrZ4US5AKI/60eD6h ENK2+frGpMLzL9U2hM8FpoiF0V8iFpmQHZZJOSp6qH8AlFnV+PVWg6IU4NXZXWQsaF9L 4M6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="QG/EMzk3"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id u6-20020a17090341c600b001a1d987fe28si8162681ple.405.2023.04.24.00.39.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Apr 2023 00:39:17 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="QG/EMzk3"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D225085E34; Mon, 24 Apr 2023 09:38:51 +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="QG/EMzk3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5B87685C9F; Mon, 24 Apr 2023 09:38:46 +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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) (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 C8DD085C9F for ; Mon, 24 Apr 2023 09:38:42 +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-x12d.google.com with SMTP id 2adb3069b0e04-4efef769000so982071e87.3 for ; Mon, 24 Apr 2023 00:38:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682321922; x=1684913922; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=rk8Umds742x5iJgm/g/7zDfbMEmCCrG4qBDVTRUofE0=; b=QG/EMzk3N9d9X0KdNuK3qtGzmFMEc0HCYv1tUOz4QYphmnOIvooEvQYG2n+OYvXbGJ mPeWVjQH8VRewVTLWhcaDrjoWs0Vqz/E4x8xAS6d5xonljVQk6AA0T8GTsisNeue2Z9b ofC+DDIsNvoULg3brdAzl7JlOlfzbE5NphrdboKLeSNNF0VccpKz0iAEY4tIXFs8L82F OvAApLvJzDid+aaiK53k042PyelQ1y1fiZil0rHDXZvA5JOl+PazA/vmZtD8YSvH4hH2 V/TrDxSmOTMix4GrTSvpwqfqyyOigNsmFv91/EUr5czp94SpqVy+2tLxXMr/z/NtK/li xyQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682321922; x=1684913922; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rk8Umds742x5iJgm/g/7zDfbMEmCCrG4qBDVTRUofE0=; b=Yt+d5OhLDLdygEv/Bcw2U0WU2gkXqGBzlgKstP/fEd4P3APzEhuyfSX3j0x9qtcWZZ tiOumJhFHbVRUVmM8F/IjdfESvXOKMXBLXMX/jD9qw8xOd3hWMideYYR9hNDgqe7Sf6z fXZ0u12xDwM1kme2Pwyag+abJ7V6RratGA0azjPpqt/fgyf5Ml3TXnacnReP5LzM9skA gCwFo/OTpybG2cLiIKySh/qDp8VHjTAsWPGHRvXIa7FT8v40J4NuavVEE1Bo6oojWHcX p1kYR3YoS5nYl8BzlEmz1ax+kyTpfv/lo+vqk081izGCsN1B6uhcBIGOfAX27tgacK5u iADQ== X-Gm-Message-State: AAQBX9dqAdYLBG7STyc0xh1jOUjr2chDlhoTYdZJKtbsawndsZYuFC1E NNsUcvB9VsQ/KHgpYEJrayY7basNYIS4vfuD5s8= X-Received: by 2002:a19:5516:0:b0:4ef:d573:c8a7 with SMTP id n22-20020a195516000000b004efd573c8a7mr2204590lfe.32.1682321921999; Mon, 24 Apr 2023 00:38:41 -0700 (PDT) Received: from Fecusia.lan (c-05d8225c.014-348-6c756e10.bbcust.telenor.se. [92.34.216.5]) by smtp.gmail.com with ESMTPSA id x14-20020a19f60e000000b004edd3b34e78sm1552225lfe.147.2023.04.24.00.38.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Apr 2023 00:38:41 -0700 (PDT) From: Linus Walleij To: u-boot@lists.denx.de, Tom Rini , Michael Nazzareno Trimarchi , William Zhang , Heinrich Schuchardt Cc: Anand Gore , Kursad Oney , Joel Peshkin , Philippe Reynes , =?utf-8?b?UmFmYcWCIE1p?= =?utf-8?b?xYJlY2tp?= , Linus Walleij Subject: [PATCH v5 2/3] arm: Add support for the Broadcom Northstar SoCs Date: Mon, 24 Apr 2023 09:38:29 +0200 Message-Id: <20230424073830.234710-3-linus.walleij@linaro.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230424073830.234710-1-linus.walleij@linaro.org> References: <20230424073830.234710-1-linus.walleij@linaro.org> MIME-Version: 1.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 The original Northstar is an ARM SoC series that comprise BCM4709x and BCM5301x and uses a dual-core Cortex A9, the global timer and a few other things. This series should not be confused with North Star Plus (NSP) which is partly supported by U-Boot already. The SoC is well supported by the Linux kernel and OpenWrt as it is used in many routers. Since we currently don't need any chip-specific quirks and can get the system up from just the device tree, a mach-* directory doesn't even need to be added, just some small Kconfig fragments. Cc: Rafał Miłecki Signed-off-by: Linus Walleij --- ChangeLog v4->v5: - Rebase on the U-Boot master branch ChangeLog v3->v4: - No changes ChangeLog v1->v3: - Bundle with the iproc nand and algo select patches --- arch/arm/Kconfig | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index f0118e225419..098f654e4bdd 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -357,7 +357,7 @@ config SYS_ARM_ARCH choice prompt "Select the ARM data write cache policy" - default SYS_ARM_CACHE_WRITETHROUGH if TARGET_BCMCYGNUS || RZA1 + default SYS_ARM_CACHE_WRITETHROUGH if TARGET_BCMCYGNUS || TARGET_BCMNS || RZA1 default SYS_ARM_CACHE_WRITEBACK config SYS_ARM_CACHE_WRITEBACK @@ -671,6 +671,25 @@ config TARGET_BCMCYGNUS imply HASH_VERIFY imply NETDEVICES +config TARGET_BCMNS + bool "Support Broadcom Northstar" + select CPU_V7A + select DM + select DM_GPIO + select DM_SERIAL + select OF_CONTROL + select TIMER + select SYS_NS16550 + select ARM_GLOBAL_TIMER + imply SYS_THUMB_BUILD + imply MTD_RAW_NAND + imply NAND_BRCMNAND + imply NAND_BRCMNAND_IPROC + help + Support for Broadcom Northstar SoCs. NS is a dual-core 32-bit + ARMv7 Cortex-A9 SoC family including BCM4708, BCM47094, + BCM5301x etc. + config TARGET_BCMNS2 bool "Support Broadcom Northstar2" select ARM64