From patchwork Tue Mar 21 21:13:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 665555 Delivered-To: patch@linaro.org Received: by 2002:a5d:5602:0:0:0:0:0 with SMTP id l2csp1855266wrv; Tue, 21 Mar 2023 14:13:29 -0700 (PDT) X-Google-Smtp-Source: AK7set8ndMEA3tQN7LVLoPXyaZwKVrObS/Q4sgTE0T705ZBpd7dkOXtAr1W9Uu+MAOa8YhIvYmqR X-Received: by 2002:a05:622a:1748:b0:3c0:1010:8d4a with SMTP id l8-20020a05622a174800b003c010108d4amr35234qtk.1.1679433209224; Tue, 21 Mar 2023 14:13:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679433209; cv=none; d=google.com; s=arc-20160816; b=g4HwyT9hJ4xu5m0xe+mATljopxGurMCSMnibKBZuBFQcpbvXdBzqTjaaEntyX3XMNl pfPzummJpUVutAyEUlEedkTI2s7Zr2FdEZ/Txyi9CgZ0qGsf0hXxDsGk4frL5Q9MTkYh 2cQJEqWHbMEpbAZ4XhkE86I2/9+JnIBqtoioaYIt1O7D0OW6jXozlgOqnBBzAVFDdWSc pAs+cGVOxArSLQSGJsD+xuaEDsG3zE6rT81LOHb3YqbQiRpEugkq+10zAkGauGs+Iagq ODrp02r6wD9OilxNRzN77ZdSXG3wj/FUrQklRIEzuhyKeqzu/eFmy4ZfTDhb9ReOWcUj 96jg== 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=YrOamDMXpt/Up87KogTBAa9Eil+RGY/ULEYz43ZbeQM=; b=c92LpGPDt/9dH9oxG9Um74UkMh6OV6BFwFaC0Hy51yDyy22Bmt66tET3YSBVEYR8+G 3gawdOZELNhdHo1NuTyf5egH0qEjpOc+IX06bnsLPPyTjTvndzdAxPwPqwrAltICzGiL InuUmW2oVJiYGpWUFTeLSkD1Pl3sYbLx5vToiF7Jva6CWopfyIdmTqB8H8bwmULcNv/9 anqEjNBhJsfL5GxwYhf09cx11zjzqZtqaPlhsKvtbXbgpgBZ+9F6PETvymOD1oQgOhZp dJJa4w/xv2OOrv8e9TKwauZ4rNr0Z5JQjEFi/wEN/ttrh5hE6WJlPoQbAduYbzSXjStp DKYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="WZpM5Dd/"; 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 v19-20020a05622a131300b003e387a2e7fcsi798157qtk.391.2023.03.21.14.13.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Mar 2023 14:13:29 -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="WZpM5Dd/"; 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 7E66185CAC; Tue, 21 Mar 2023 22:13:22 +0100 (CET) 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="WZpM5Dd/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0B49485C63; Tue, 21 Mar 2023 22:13:21 +0100 (CET) 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-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) (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 B50F485C8C for ; Tue, 21 Mar 2023 22:13:17 +0100 (CET) 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-lj1-x229.google.com with SMTP id t14so16928564ljd.5 for ; Tue, 21 Mar 2023 14:13:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679433197; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=YrOamDMXpt/Up87KogTBAa9Eil+RGY/ULEYz43ZbeQM=; b=WZpM5Dd/zukBH9ruCkGxofSAX33/LtqFKfVGVIpjiEDRgbuH3hl9IYn6dtHTg8CFmw Fq8pqa8XzpufMVTO/35Gd3nZ9GNEUSu9JUdiMe/QHigJ94dQwh9Gn8W2RKeTP5YazWbc zr2rHMBd0Plp4CaajJNNcec7tdCFsx8KwA+lwDpvb01YJsQmBHR4x8XWn7KYIBlOAKHl E5Nnd1SLlJakchKDbYETFhu8yN+55aEhQby+jtnz2jXvD3lnN4o2jDP4SG0PkfzriIYV kvD02ot9g79AETYCIyt9JRTl96/+2os8zF2EujpT50iZd0iErm2bL7x4yg8bkQssXj8n uLyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679433197; 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=YrOamDMXpt/Up87KogTBAa9Eil+RGY/ULEYz43ZbeQM=; b=e7Tn4Zb20KR6wHtVr+Ab8dC+7JDg6X5p/muIy5OtrGYo0ibHp8RLAaAnD1NJEGw2CP 4yxCpgAN6zgaL83VVfWnFXY7X1ynN/b+OCAAHxmK+S2kN1NPocCqJ2IRzceFJDGz3wt5 s/b/t6QVu21zBiagCt4e5g+iCOAQ8nB1d8kdi0uYXswya/VdQcNDue0GEBSkLw6K4yh3 eEenGcbTARvY1BOTQ9rOpOUJfMQ1sIHxVlo+HxsaTWKnJrJZWpu1lH+an7nGhces2d4u Ua3jZeuuaAneq6sexQhlayatTykhWuuR4JpH+irVy3As6dmzQnGDni1ymCHMsEavLQ/o EK9A== X-Gm-Message-State: AO0yUKWgEAFI+9acsPNIX0lQCP1WbSimwxEtWBIiRcSgUXm4iaCXOkx1 eKiX7pyDFo1xuFRDeQEr+4bhBhesT6feMpqnm4E= X-Received: by 2002:a05:651c:103c:b0:299:aa15:2df6 with SMTP id w28-20020a05651c103c00b00299aa152df6mr1426397ljm.11.1679433196689; Tue, 21 Mar 2023 14:13:16 -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 p15-20020a2ea40f000000b00295a8d1ecc7sm2406630ljn.18.2023.03.21.14.13.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Mar 2023 14:13:16 -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 v3 0/5] Add Broadcom Northstar basic support Date: Tue, 21 Mar 2023 22:13:07 +0100 Message-Id: <20230321211312.503812-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 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 | 12 +- include/configs/bcmns.h | 49 ++ include/dt-bindings/clock/bcm-nsp.h | 51 ++ 15 files changed, 1047 insertions(+), 4 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