From patchwork Fri Apr 7 13:40:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 671019 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp331960wrt; Fri, 7 Apr 2023 06:40:27 -0700 (PDT) X-Google-Smtp-Source: AKy350ZvtV/9uSUNP+7Us2Qak7/dUVG2m82pcduaMFRma55jkJcNoE5Y+rc45LIpCfRnqCu32VGG X-Received: by 2002:a05:6a20:4c20:b0:db:9a60:a533 with SMTP id fm32-20020a056a204c2000b000db9a60a533mr3070664pzb.16.1680874827412; Fri, 07 Apr 2023 06:40:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680874827; cv=none; d=google.com; s=arc-20160816; b=iXI8HUJgp21RLlS24NYCK9eAeBXz/nKdN7IZ98K5aTprbfEmT4oTixDmG6JCB/sPsA nkV5hU5HvnojA1T46zwrmS3W0MVdr3BIzyQaF6gSohxgY9ZTbeBmViifmu0rvIwBjc38 K1D8AE3k9WfmXauh1sZbzmdpDnc9aoNYXfSqwqOBdvTZ8eqt1j3q0xSZfqC0EH0iP9EM wOdBCbaYyWs6jD24AD654V02ip2hz60EhdeWLU8P+XHqt/bophDzep7zazD1mFVs9ai5 Tkw6MNKfxlxLbuJ4d+RLnhjN1e8ZnYu52KJw8itrS7GDkcawzP231cn27fdijNZpC5r3 6qSg== 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=xyOElYfqD6Q3d7ueSHdR5OZQzg6sbwUHWoonmofsGzs=; b=kOAgJCHq3KLxL9s9eqeN4+OoaLr1cxRriLzIywDsNkmUMXCZwo4dc+gdLw7MBj5/Bq 5IruGWQGC/RHj8j2sLcqzcoql3N77n6qSfJjr5ESpZsFc2y1dFLbYft+qXngfpBXS+fD 79Bb+AGVn103eUYQibFS7If/OKAE3Foyc9ji3f6U9c52+8GP3g6Kwi9jJbBF8pj7z/VZ wWh6ckd+L9cEBDajIv4aNuSXFXC885zaDj+1VUFgyr+DMfKzyXzltM441/r3DsMEDkzA CeDmiDrF8mfjPFHmZgFsg9i7EDvIy3Q0uVHfcFdnySyDGULj3MQVUH9eqikxvfZfY437 3vZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="e5V/hjsY"; 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 h11-20020aa79f4b000000b0062dc2495ea6si3768827pfr.61.2023.04.07.06.40.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Apr 2023 06:40:27 -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="e5V/hjsY"; 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 412E985E35; Fri, 7 Apr 2023 15:40:18 +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="e5V/hjsY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 95B8586065; Fri, 7 Apr 2023 15:40:16 +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-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) (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 49DB485DB6 for ; Fri, 7 Apr 2023 15:40:13 +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-x130.google.com with SMTP id y20so54586944lfj.2 for ; Fri, 07 Apr 2023 06:40:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680874812; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=xyOElYfqD6Q3d7ueSHdR5OZQzg6sbwUHWoonmofsGzs=; b=e5V/hjsY4uAB5AhKJdDV0Ez/Jr5FazvVIO4g+xitZ2khOOyG9nDT1Ly1MYl/JtMM2D 4aIm8TWbHxvBHz/REuzEN/578v98kuRLVjjY2KqFA97oclmGbroLhfDzIbDpF5DkRrzB EwQLind9ggncPdFjXL1qY87XXygIoe5KC5ZbpK51+78qO4WtZ9QZa3fzSP1ZIFjfXh/j /YtsEPWGjCGHnCgEymRvsvKj+RQ+PlAD9dZrlknRE0xoTQMDSxuv88M4GU8rDxGaqA86 isYcsnVfeObKBuEPOLkeP2pjHMW7QT3EbVO5W0J9exLb8VTKaN2iabTIDJlmzvCPGfeP V79w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680874812; 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=xyOElYfqD6Q3d7ueSHdR5OZQzg6sbwUHWoonmofsGzs=; b=ddECzoVfgzJvGdn5h/iHIE8XDs0YJL5PEjC8dTThpLSoQ7XlhL2h2CN+OXlvfU4UKF qk1Bl8lyqPycGEpVB8PRtYQE2a/6RYUJ+v9I8/a1G2hmZOe5CBvqnJfqS2Lk/hmbIhjF uuboMoy4LpHAUXKk1oriplsSTZdgClb5egy/YnQDA2XpqjRHVfOpRi2eo9rrP3vIx/Bl zW9+zt3KvnyW5P3TAEK8MN2AEp5dQ2Nw343XMwgVGihvm6vD/fOj06uHEnbbypuuJeg+ sQJ6siethfe4VJvCn6meeDmUbztHv2b7sRaWO74J4AC4B9uy9P2IGN9NZ2RCfv4xX07s pptg== X-Gm-Message-State: AAQBX9cRWV9jGFunykqTt4SP1muP5Dk6O0PxMndvU5SwuveugOrcf+ar yX/4bnwycdCcKJWIXWoITlkezKBuDQq8DqdvmiY= X-Received: by 2002:a19:f70f:0:b0:4ea:fdcf:8f62 with SMTP id z15-20020a19f70f000000b004eafdcf8f62mr815362lfe.0.1680874812186; Fri, 07 Apr 2023 06:40:12 -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 23-20020ac24857000000b00492c663bba2sm711064lfy.124.2023.04.07.06.40.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Apr 2023 06:40:11 -0700 (PDT) From: Linus Walleij To: u-boot@lists.denx.de, Tom Rini , Michael Nazzareno Trimarchi , William Zhang Cc: Anand Gore , Kursad Oney , Joel Peshkin , Philippe Reynes , =?utf-8?b?UmFmYcWCIE1p?= =?utf-8?b?xYJlY2tp?= , Linus Walleij Subject: [PATCH v4 0/5] Add Broadcom Northstar basic support Date: Fri, 7 Apr 2023 15:40:03 +0200 Message-Id: <20230407134008.1939717-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.39.2 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 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. It is a bit of a mystery to me who can merge this patches... BRCM custodian? Linus Walleij (5): nand: brcmnand: add iproc support mtd: rawnand: nand_base: Handle algorithm selection 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 ++ drivers/mtd/nand/raw/Kconfig | 7 + drivers/mtd/nand/raw/brcmnand/Makefile | 1 + drivers/mtd/nand/raw/brcmnand/iproc_nand.c | 148 ++++++ drivers/mtd/nand/raw/nand_base.c | 29 +- include/configs/bcmns.h | 49 ++ include/dt-bindings/clock/bcm-nsp.h | 51 ++ 15 files changed, 1063 insertions(+), 5 deletions(-) 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 drivers/mtd/nand/raw/brcmnand/iproc_nand.c create mode 100644 include/configs/bcmns.h create mode 100644 include/dt-bindings/clock/bcm-nsp.h