Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1296456lqp; Mon, 15 Apr 2024 01:53:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUvjmHL0rwZeDp3omVPsjZwpQPBbZJYwq90Pk8Cld1WDbKrBAoHwBOwUAMu8DQ+eqVVoxS/1hxSZTEnppVh/WTdEFm+5pOVoBN/Bz5Baw== X-Google-Smtp-Source: AGHT+IFeUBzJGsGMFkcmMVYMn/e4CSdtJNQY8M7lR+FoRMDp6zOv95B5Z79z6U6uOfSdwHiyy7cd X-Received: by 2002:a17:902:ea10:b0:1dd:135e:2604 with SMTP id s16-20020a170902ea1000b001dd135e2604mr9907065plg.40.1713171195165; Mon, 15 Apr 2024 01:53:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713171195; cv=pass; d=google.com; s=arc-20160816; b=HOBGGJN2/OV3jW0RZUGEOIPXS7BS3g0YfWNBx58Rqn2EF+T1kkB/cQY/7U0GQNry20 ssKEcXyk1QCHXnek7yaTVdJjvlEK4f1HTYphp745tdx37sZGzdBlCqhh9fbyFO8vOaEW 9Xm3ZHhAE3bfvvGwID9lI8VzczlAnU1ROpVof2uk+Lwbm5Jg9EgopAyGOIR3hM6DUh0E alJfQoseVN+e+U/X2LeLd/dQeuvc4P8mmxMGa/WDDUeruUV+mNFf3GdCXcj52gWG1BIr uLvbrGcNul55qWoLcdwmeyRF7lTyI/gN3vglKpZNCarVHV2ycIWdxc18sMhBJyCXN2k/ /Waw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=ZZ1xbbcbi2PHmTU6OF8vjn6o1DKOJxbx1zIcDvksvVQ=; fh=6qoUPOWRV70dSKId9jl/FCgFnRLp+STw/b2wIck215E=; b=sasHhggAhZIgSXOLFuo5yN7Vl7PL1fnEN3lf+H/Xj9jsnOyUGgEu1LtatodBJbyhCP I/mUMTWPgyq+kARmcxssAMByDuxg+chAy3FoI9vDCXbnOHJ/Kes41x9FlZ0Fpo/ahi1T tQEeOLqr3eGODkNUrjwLuFfCuojvuI3R3HugpJaEqqkADheY65ahWuErpy7V14Fc1L7r 7nnOktvQG388nOBBjjfrRb2fPqJh0bbzOrHj3VH5rkcPvVF7g7jzDS5W/nggLrpWt5mv TuVe68W1oAR7by0buJ/mTjolEADXIE9SxtmFQouQeqw4747IzVctbQmQZGkwQDIXQ6v+ p9QA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@raspberrypi.com header.s=google header.b=SeFsdH17; arc=pass (i=1 spf=pass spfdomain=raspberrypi.com dkim=pass dkdomain=raspberrypi.com dmarc=pass fromdomain=raspberrypi.com); spf=pass (google.com: domain of linux-kernel+bounces-144801-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144801-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=raspberrypi.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id b8-20020a170902d50800b001e49bce99fesi7772921plg.232.2024.04.15.01.53.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 01:53:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144801-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@raspberrypi.com header.s=google header.b=SeFsdH17; arc=pass (i=1 spf=pass spfdomain=raspberrypi.com dkim=pass dkdomain=raspberrypi.com dmarc=pass fromdomain=raspberrypi.com); spf=pass (google.com: domain of linux-kernel+bounces-144801-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144801-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=raspberrypi.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id CE6ED281C4B for ; Mon, 15 Apr 2024 08:53:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C2283BBD7; Mon, 15 Apr 2024 08:53:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="SeFsdH17" Received: from mail-yb1-f170.google.com (mail-yb1-f170.google.com [209.85.219.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B6D763A1DA for ; Mon, 15 Apr 2024 08:53:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713171189; cv=none; b=MXZl77SEP9sdh3k6FtxcilucDKCQ08BHQTKr+5nq0CSu4DpSGcvo53ynt5+SVv7oyMk7oseMXHbAWQCiqdS9p3ncPvl07acbeUOUDp6mg47gzV5beaN84OLW/6ES3IJ52+cX08WeAjEfEvB7+x0gDCf0kun9Fh9gifX6ve5nXHk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713171189; c=relaxed/simple; bh=bnWlog0y4bN4WZfNS47LmbCRbE8trcNL1TvxiAUYcAo=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=R2hTutJuaPtR4C0BSx3+R5EAOONcX/yUAq+tETYh7S17is+I7iAa/I5Izk/5Nda9b0XPSN610ZnX5ukFuxN6a/Y+YXgvN8HPR9qwHaGK6XnxJHCmWisfgUd3egHtqt7l/lJ0kuQAcrKzAwv+Tpl5ikriVjilzYnsS7d+6+lymgY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=raspberrypi.com; spf=pass smtp.mailfrom=raspberrypi.com; dkim=pass (2048-bit key) header.d=raspberrypi.com header.i=@raspberrypi.com header.b=SeFsdH17; arc=none smtp.client-ip=209.85.219.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=raspberrypi.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=raspberrypi.com Received: by mail-yb1-f170.google.com with SMTP id 3f1490d57ef6-dcc7cdb3a98so2690213276.2 for ; Mon, 15 Apr 2024 01:53:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1713171185; x=1713775985; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ZZ1xbbcbi2PHmTU6OF8vjn6o1DKOJxbx1zIcDvksvVQ=; b=SeFsdH17e1W9yTjRQTRTAiBgLmlZGxcMEUE3eZGSaWG212MDmRuYMxZAig42hmklPx nfV7VcHB+oti6nSi/aEAsiZxKNBnrmIn46SayLGW2oOAQdr37k5NxigNWyEmqNCTbkML zSTvFLpoXeUy2L0hsz/fqUGVrKzd2Mp7vXjI4IJAe+wcU5es4D1lq2ZJZ0Sx6m8PJ7Av +oBPGy8zNiQizNStq9LRuCzg1t4ENNrw8BSxhMXqfunZo2Lc/7w12/KaLVMItOyDS0/Z 5vDLJM5YOTMI26fuua+LXC/YXiQXy3XbFtyNico3mm6idmJByjNmJzrrYwRLc7nvHSA/ gYZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713171185; x=1713775985; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZZ1xbbcbi2PHmTU6OF8vjn6o1DKOJxbx1zIcDvksvVQ=; b=DbCe/+Ff4nuNxp9/Qu405fgwUrhCF+8cwPFRWdJOmln7wQbuumhfN63iUfsa+39co9 ksNYmsvSm1cNE/eyZziTE8MMi7wQYvuDgqviee10eDETGkXkRlN2rp30jUiFGebc4M2f we85H4vb4vAQqvPjrwHNQsg50N3KkePYgF1uDln050/4kgK8G7zL5QHFb1IKLLipYXyY XIJCm19wyS2kT66spxkI5s1NA221T8+GOd8Yobo6BJkpgdkPjRyEoSpWtnpd/5Sn9+2U lV1fheDCw8lACKKlRcT0VYiXeNfwbz7pxPEmM86Q5Y18+3vc/ppnyNGpk4xA8sdH3b8e UeBQ== X-Forwarded-Encrypted: i=1; AJvYcCXwBtfPJq5snS8p3nF7aPoCHeTPBwnv6a3I4De9vtlyEk++Pgx+K94OOlutUmwVdP5WymXjgwW5KFF8p/nNN1ouCFYba5sbFdhY3ZPw X-Gm-Message-State: AOJu0Yya3VSdLazjAbkvc55fo27QOxvTr1v72LyHSTfCIzM63zXgjvF5 I+TwDVtOXcDCc5jW4zJN/m4lIaoMFMuqTGynATsSbKVZDFY+8Z22puaPJ/4tFp3eqlHc5xPTTE9 oc9qxoPdSlsOtwJCTSU2kM7oesr5p+jv6ebEXfg== X-Received: by 2002:a25:9e05:0:b0:dcc:99b6:830b with SMTP id m5-20020a259e05000000b00dcc99b6830bmr8838308ybq.19.1713171185683; Mon, 15 Apr 2024 01:53:05 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <0ab5a768d686cb634f7144da266c9246e9e90cb4.1713036964.git.andrea.porta@suse.com> In-Reply-To: From: Phil Elwell Date: Mon, 15 Apr 2024 09:52:54 +0100 Message-ID: Subject: Re: [PATCH 3/6] arm64: dts: broadcom: Add support for BCM2712 To: Stefan Wahren Cc: Andrea della Porta , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Linus Walleij , Jonathan Bell , Ulf Hansson , Adrian Hunter , Broadcom internal kernel review list , linux-kernel@vger.kernel.org, Al Cooper , linux-mmc@vger.kernel.org, Kamal Dasu , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-gpio@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Stefan, On Mon, 15 Apr 2024 at 09:20, Stefan Wahren wrote: > > Hi Phil, > > Am 14.04.24 um 00:14 schrieb Andrea della Porta: > > Signed-off-by: Andrea della Porta > > --- > > arch/arm64/boot/dts/broadcom/Makefile | 1 + > > .../boot/dts/broadcom/bcm2712-rpi-5-b.dts | 313 +++++++ > > arch/arm64/boot/dts/broadcom/bcm2712-rpi.dtsi | 81 ++ > > arch/arm64/boot/dts/broadcom/bcm2712.dtsi | 841 ++++++++++++++++++ > > 4 files changed, 1236 insertions(+) > > create mode 100644 arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts > > create mode 100644 arch/arm64/boot/dts/broadcom/bcm2712-rpi.dtsi > > create mode 100644 arch/arm64/boot/dts/broadcom/bcm2712.dtsi > > > > diff --git a/arch/arm64/boot/dts/broadcom/Makefile b/arch/arm64/boot/dts/broadcom/Makefile > > index 8b4591ddd27c..92565e9781ad 100644 > > --- a/arch/arm64/boot/dts/broadcom/Makefile > > +++ b/arch/arm64/boot/dts/broadcom/Makefile > > @@ -6,6 +6,7 @@ DTC_FLAGS := -@ > > dtb-$(CONFIG_ARCH_BCM2835) += bcm2711-rpi-400.dtb \ > > bcm2711-rpi-4-b.dtb \ > > bcm2711-rpi-cm4-io.dtb \ > > + bcm2712-rpi-5-b.dtb \ > > bcm2837-rpi-3-a-plus.dtb \ > > bcm2837-rpi-3-b.dtb \ > > bcm2837-rpi-3-b-plus.dtb \ > > diff --git a/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts b/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts > > new file mode 100644 > > index 000000000000..2ce180a54e5b > > --- /dev/null > > +++ b/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts > > @@ -0,0 +1,313 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +/dts-v1/; > > + > > +#include > > +#include > > +#include > > +#include > > + > > +#define spi0 _spi0 > > +#define uart0 _uart0 > > + > > +#include "bcm2712.dtsi" > > + > > +#undef spi0 > > +#undef uart0 > > + > > +/ { > > + compatible = "raspberrypi,5-model-b", "brcm,bcm2712"; > > + model = "Raspberry Pi 5"; > > + > > > according to this downstream commit [1] it's just called "Raspberry Pi > 5" without Model B, but the filename and the compatible says something > different. Is there still a chance to get this consistent or is it too > late because the firmware expect the compatible? > > [1] - > https://github.com/raspberrypi/linux/commit/99e359d2f2da2c820fd2a30b1ad08b32c9549adb Nothing cares about the compatible string, but the product name was changed too late for the firmware, which expects the current DTB file name. I'm happy with the naming as it stands, since we use Pi 4 to refer to all the BCM2711-based devices, and Pi 5 can include CM5. Phil