From patchwork Mon Apr 24 07:38:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 676548 Delivered-To: patch@linaro.org Received: by 2002:a5d:4a41:0:0:0:0:0 with SMTP id v1csp2019821wrs; Mon, 24 Apr 2023 00:38:50 -0700 (PDT) X-Google-Smtp-Source: AKy350bxTf3dCQHj6YOgH2zkDrRct4G3EknvIpk/3JCJCw80pk+UV28hI69OAivr5qbP34nlbC85 X-Received: by 2002:a05:6a20:7f9d:b0:f0:2084:4cab with SMTP id d29-20020a056a207f9d00b000f020844cabmr17149631pzj.36.1682321930397; Mon, 24 Apr 2023 00:38:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682321930; cv=none; d=google.com; s=arc-20160816; b=W9uPOYRylYTpZc3q6t2C4XbMZOlQcarfbYTz0WVbRkarwiMck6w+OmZZiI0gAWzkV/ 2OBJcjr/k+v52FzaN4WafKdapBDhlnAi3q0/5zWabln67DYNh9TpfLOt7/UdXstK+1FW InmrUgUtOWWmDDnUd3dlFbiNRWQqypvKS1Zae9odrZ6dDHZpiNpcjzdxpL86+G6Ncp2a 8ErEpJyVIjnqOiz83dxZrlN+ppQ2zbOvz4x/AQ80u0GqfzYhW3bcSCdPm/Rc02cifB9q eZQAHgJPBeu1c6OJhCI6AIulVIzizdTmRsr0P2I1vNDkMGggG4M0816feUnmGu2OeXey eGFQ== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=ZxcbuCo2N6iDajP2xVa2EXaSvNwm8e9akzM2eEQ48WU=; b=meBIk3lnjG8YdrQP5faNwCosiii54aWB6NaBrx49RVltffhJIMmbTkHS5L4k5N1xky yaTfFWGnIgP4IZmTSdE344eFO9swtsZkjuQxhw/EfNmuFXaSNHiixbGZ+gnioQKjW4Wl PcYr9kT0GGVsnkuinGIY/RYbEVo0IlJNAjiBSl1a3V4YhxAIanopIavUMThWiMOpWSYC rv8G/AQa5/8gZtGN4tmnlWx2xH6M7Es1kO7P2RLjuZGXI7jHXUUSI42QkirEYZGh2HSA fW8hIRryEbrVJ5LBtXO1Kz+0h4OgsFA1sP7ehzphooj3x/sfqrtdNysP11TKQLXyJ3bB XQjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QDUUPKCW; 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 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 t124-20020a625f82000000b0063b669ec9a0si6062329pfb.103.2023.04.24.00.38.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Apr 2023 00:38:50 -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=QDUUPKCW; 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 Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 533E086005; Mon, 24 Apr 2023 09:38:43 +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="QDUUPKCW"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C0EDD85F0E; Mon, 24 Apr 2023 09:38:41 +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-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) (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 EED48801AF for ; Mon, 24 Apr 2023 09:38:38 +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-x12b.google.com with SMTP id 2adb3069b0e04-4efe8991bafso1923249e87.0 for ; Mon, 24 Apr 2023 00:38:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682321918; x=1684913918; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ZxcbuCo2N6iDajP2xVa2EXaSvNwm8e9akzM2eEQ48WU=; b=QDUUPKCWlKbOYKKqnoIl/yq6TyxI2m4c+vOV8a61NS1W+O9jdKsCEXIkpGRKO8/I2N 0Uf7zQAvPekbgrK95uo+duMXAx82xkJI4EZ4Ebh48oWj6JDxZJHRXCtLYDTRxp9frWOL NaT4YkJ9PWesXQTX1HyjmfXaSsQuaH19vRPUG8OzELOw5+xljh9ePPvyEja9UxJKtC4a nyzrOHNa9A4Cu/MaMTBc1gIbJrPoFluz8OPqRNq57tIjZighZ9WJndHVknbcj7lGg8va vRHoBatYrPWs6VkxqiF8vY7OzZ322UB/x7lmXEY9p+RpZl1UWAHTxlLaoYJBI4RuJKB+ KGLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682321918; x=1684913918; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZxcbuCo2N6iDajP2xVa2EXaSvNwm8e9akzM2eEQ48WU=; b=haOFDBhl2mf+8iwm7ZRv0xckHpsDxmMB8Q6gj7S/KFoRPsfODD5ZEqErSgfBGDSn/0 KUW/zobtpnjqf6w7P25AkHxJMnvbHSpVtwV8rfxQA3yQDuBelGducsWSZbDfc3Oqrzmt /gIy8kC0bl0ZknmefwZnt8dtYl5OduxsTIqt//P0kn08KgboxdXh3xk4+wC45M3MCaOB q6t9zVpqj+SGNSt2JvO9QlW5EPD/qvbFYShFwgik3Wv98WsO99s3zQF85gHfoqJ5xvcf 6YhZPxgaeUAIuksvZsxG+BGOdInu0CXutGuS+eYPM6ldl38CkO54Rip4ZGn0HSnD8uJP ibNQ== X-Gm-Message-State: AAQBX9cdsMkkaKBJQ5sGzFXzdpZaSV4rPndOhQWXQVAtzPFNGXziyors D9VLnkDCLV77hprsD7B+LUOlcRsh5mx6+7v2gks= X-Received: by 2002:ac2:418f:0:b0:4ed:c7e1:d8d with SMTP id z15-20020ac2418f000000b004edc7e10d8dmr3124599lfh.17.1682321917990; Mon, 24 Apr 2023 00:38:37 -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.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Apr 2023 00:38:37 -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 0/3] Add Broadcom Northstar basic support Date: Mon, 24 Apr 2023 09:38:27 +0200 Message-Id: <20230424073830.234710-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.40.0 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 This adds the device trees and minimal code needed to run U-Boot on Broadcom Northstar SoCs. This is needed to properly boot the D-Link DIR-890L router as it refuse to directly boot compressed kernels bigger than 2MB, and well our compressed kernel is bigger than 2MB so let's put in U-Boot. While it is a bit tailored to this usecase (it can probably also be used with the DIR-885L without modifications) it forms a base that can be used to support more Northstar boards. I have this working with DIR-890L and OpenWrt: https://dflund.se/~triad/krad/dlink-dir-890l/ ChangeLog v4->v5: - Drop the iProc NAND and NAND base patches that were merged to the U-Boot master. - Rebase on the master branch and test. - Add some documentation. ChangeLog v3->v4: - Rewrote the algorithm detection patch to be more careful so as to fix Tom's regression. ChangeLog v1->v3: - Bundle with the iproc NAND and nand base pacthes as the iproc patch is a prerequisite. - Jump from v1->v3 as the other patches was at version v3. Linus Walleij (3): arm: dts: Import device tree for Broadcom Northstar arm: Add support for the Broadcom Northstar SoCs board: Add new Broadcom Northstar board arch/arm/Kconfig | 22 +- arch/arm/dts/Makefile | 2 + arch/arm/dts/bcm5301x.dtsi | 581 ++++++++++++++++++++++++++++ arch/arm/dts/ns-board.dts | 57 +++ board/broadcom/bcmns/Kconfig | 12 + board/broadcom/bcmns/MAINTAINERS | 6 + board/broadcom/bcmns/Makefile | 2 + board/broadcom/bcmns/ns.c | 60 +++ configs/bcmns_defconfig | 41 ++ doc/board/broadcom/index.rst | 1 + doc/board/broadcom/northstar.rst | 44 +++ include/configs/bcmns.h | 49 +++ include/dt-bindings/clock/bcm-nsp.h | 51 +++ 13 files changed, 927 insertions(+), 1 deletion(-) create mode 100644 arch/arm/dts/bcm5301x.dtsi create mode 100644 arch/arm/dts/ns-board.dts create mode 100644 board/broadcom/bcmns/Kconfig create mode 100644 board/broadcom/bcmns/MAINTAINERS create mode 100644 board/broadcom/bcmns/Makefile create mode 100644 board/broadcom/bcmns/ns.c create mode 100644 configs/bcmns_defconfig create mode 100644 doc/board/broadcom/northstar.rst create mode 100644 include/configs/bcmns.h create mode 100644 include/dt-bindings/clock/bcm-nsp.h