From patchwork Wed Feb 1 23:37:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 649182 Delivered-To: patch@linaro.org Received: by 2002:a17:522:d8c:b0:4be:c3dc:14d8 with SMTP id d12csp581554pva; Wed, 1 Feb 2023 15:38:16 -0800 (PST) X-Google-Smtp-Source: AK7set8Rtgx4W6ygwDmhnhZrcwof1peV/pO/X9gAAJE3DVw3M4TiV8JIJ8Pmbi4wZd1ooFFyIl87 X-Received: by 2002:aca:3d43:0:b0:378:7c02:fff7 with SMTP id k64-20020aca3d43000000b003787c02fff7mr1710181oia.5.1675294696420; Wed, 01 Feb 2023 15:38:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675294696; cv=none; d=google.com; s=arc-20160816; b=GP5bjB17aH4U85Qodqiv4N6rEmp5zclWYvGTbfjBzfk6Cdr6xY2R4NLCqi2hgqUsH5 pr1zt6sr+Wiz9KiutxxMVoTLDUEa66qpjxh7WlDVjBV/qHyoG+0wNhCLPP1mQocHyhTX Pz9jF27RF8vfi4q54cWzxttjiI6bt3xvFpwAZSFG5PZZ65FcWgf0tvthqarJ5gX7TdMy i/8c9K3rggGiz2uilRytKdpxTqjFlIP/mQVHQq9y0uaxpMPRBYDqt5W7oxK2qjwoHX8B hTPl6ho1xJLTj/JnjI6+l/mjKbUW6ZzHMEH0/rLKY07Z0QWS/ZQIkUlB28K7KB0Jgtqq xPog== 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=WC8ZURUAWa50nu3N+d4e+xvmcRsLfNvyolWLt+z9pOU=; b=HDiTU9in0L3eKflG9Z4y9Xij07Zx156lHHoehlSORTVVHk3DUxdAdmW2FmI3DjNwJ3 zRv5TnYDTF6hzoLfHW4IWY3Sp/TIyt3nfDnBXKauQZ2C4MA18wa+fKnOX49A4Jwx2ZAZ 29Uff8a5MeJmkwfTge4VbGeeBQKqd5XFiDyRt2JpJUVmb7sQmAKpJM1EI+3/kqoxpekK 97wOwa0C5UDJZ52IGh5tDpPxomLT4FIisZ9My9We4F9sFaIrhxNie86dQfvq05HdLrjp CoVggVPMDNTdxZre6IJ/5l36duQdupAZCk0dTLBD1WEws39hOZQPIZ+OEhlSGLNkWQIH V9Mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wndZQEhF; 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 bh20-20020a056808181400b003787f4d9eccsi7111247oib.157.2023.02.01.15.38.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Feb 2023 15:38:16 -0800 (PST) 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=wndZQEhF; 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 5B5A785E41; Thu, 2 Feb 2023 00:38:10 +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="wndZQEhF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A0BFD85E3B; Thu, 2 Feb 2023 00:38:07 +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-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) (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 158DE85C2F for ; Thu, 2 Feb 2023 00:38:04 +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-ej1-x629.google.com with SMTP id hx15so1178349ejc.11 for ; Wed, 01 Feb 2023 15:38:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=WC8ZURUAWa50nu3N+d4e+xvmcRsLfNvyolWLt+z9pOU=; b=wndZQEhFH6R12WLJUWVMlw+S4/CalWLJn1oCfbkIfjZEMA+6J+OafJF+JIvNSUbUNO I6MCFEN9YI4vVWOY8wYL+hXRa9TvMilxvFnE/hSXRG1rOubo9Yr6le+6GUaL4mZ68eDF 6L99+keqXYHio2RzD2hP7rXSzkut8p3JIqqZynQq3xXwzS0W4m6RNjel6DuxAXE3YUFh aQaOfTChFo8Kv2t5rz2FCVBrRTsB2mCRkLw6A2RQnwXLjH6PrvmDYFzUNuDL39aDQqDe B/ptpEhi/w63BObR/4EccCZd4qKLXoS5kaCUMJOQ7m0eLt5y1qy5dtQytjd1UaHvjG0n jopg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=WC8ZURUAWa50nu3N+d4e+xvmcRsLfNvyolWLt+z9pOU=; b=ultYlzozy+IlI01OKTKTI+uQ1essPLmfgVuXvWgME/YyHWgYB9VM9+ZBMg3Tw9FAnK rGykECzdxEosdxBXBoHnX1xprc/YJ4p6EdhAvvg4hQiAPErfLHdJ3OC10i8oKZkKRJvz cD4KuCvUDXAQe7pgtHaXls6LZA6xcFHzbwXj5ulUZVE8oLZ+uDSQ+D6F4Hqyqsld7TkF 8JImANUdHYz7APQ6a2oNgMS7BqELLnIF5QkurvTDsR0bzMppNjBAVsi+LRtGUKd+h8jv CXubPd95Xe/xoXervYW0F5L1KYtpGBibyE6IQb+/aiYObo0ZoYGDuVXAE1+U0w7SuF4I m0Tw== X-Gm-Message-State: AO0yUKVHJkYyOpz9luVzBg95ywN9gm69vGjRFUzCk45ysEt6zJv0N92R /9BqKGdUVlhaly1k36DRvcETT7k7HW8qgJA7 X-Received: by 2002:a17:906:ccce:b0:872:ec40:65e9 with SMTP id ot14-20020a170906ccce00b00872ec4065e9mr4055202ejb.18.1675294683383; Wed, 01 Feb 2023 15:38:03 -0800 (PST) Received: from localhost.localdomain (c-05d8225c.014-348-6c756e10.bbcust.telenor.se. [92.34.216.5]) by smtp.gmail.com with ESMTPSA id b8-20020a170906708800b0088550a1ce6esm6921171ejk.222.2023.02.01.15.38.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Feb 2023 15:38:02 -0800 (PST) From: Linus Walleij To: u-boot@lists.denx.de, Tom Rini Cc: Anand Gore , William Zhang , Kursad Oney , Joel Peshkin , Philippe Reynes , =?utf-8?b?UmFmYcWCIE1p?= =?utf-8?b?xYJlY2tp?= , Linus Walleij Subject: [PATCH 0/3] Add Broadcom Northstar basic support Date: Thu, 2 Feb 2023 00:37:42 +0100 Message-Id: <20230201233745.469603-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.39.1 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.6 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/ 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 ++ include/configs/bcmns.h | 49 +++ include/dt-bindings/clock/bcm-nsp.h | 51 +++ 11 files changed, 882 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 include/configs/bcmns.h create mode 100644 include/dt-bindings/clock/bcm-nsp.h