Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1095660lqb; Wed, 29 May 2024 23:12:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWHT8UVZFr7cgMUbH+DVpZLTy772FS5VrgM14lggJfIWDNlBNwb8Pi7VPRzTp1LyGqYm3bS5FEU1l1hZsFEsGv17cKuFTHxMJIldbeAHA== X-Google-Smtp-Source: AGHT+IHgTgtdNSH6mrj4UC0Q6Yp50l/VgAgDFM9K0Ob4j4nZ/XNUYPKlRIZTJbSUAzgeXMVB8mEG X-Received: by 2002:a50:cc4c:0:b0:579:c5df:af84 with SMTP id 4fb4d7f45d1cf-57a19fd60f6mr794446a12.15.1717049520588; Wed, 29 May 2024 23:12:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717049520; cv=pass; d=google.com; s=arc-20160816; b=0Z102fcHpQwLHhihK8WwL8dv39Zv/CZUHfjcSt49bhdcaIhoF/zhfgCeyvm6C52GrC 5psslMdDgmrTwW/dVBfjQIZYBmAjwhNzwMj/6oSZynx+vLjkihEngP/5HfbQ2qCaRg+j 3G58LGhKv9tYym6qPsyKbF9tI93r04mKwNoikDVHtedBElaiCXjT1QcmNb0nK7T+FlZi oAPvcocN3QRcR5PDEsfB7zOfuwwdiPlkRaw+asgDRO6cUXUs4d/IWwuyiVrfNmkM1VoN 9tut7YRyd7/XoJ3iPdbct9a7wmcNWvvYdRsSJUgpyEXRhTLNYqfQV2jPu8RUlbtKMLSV 0QZA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:in-reply-to:from :content-language:references:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=EsObzuDggZcPsAJCrYelSxDfb2ObF3xVT9aYpHF/x8o=; fh=a82d8BFlXo27tpOvEhyhZhHZ5gKIUnx1UDxliSdOxv0=; b=qq3FeforYA9Kabknt7A9vj6OE+3247V3WBRCmBBkLdvqgrZPAjM9VV/6Aw44PEdkhS 56ESecaMUf34sRJ9GVCccHDkb82h9VRgFZisGYuvStKCBC9AQn/8viCE+BZ/tEcDzhHQ PyJnvTNWINDeSZ65swBjj7wHtPbcB/DBcqsMB5tnmb4hZiNELomAu3UNc0/IqgW7kVjq g1Tk8h0MKByuaLk4QsBS11IGP9TLABziK9b4NL/iuD6FXUkUY/0cDJIFCFT9eWqeim6G cn7xf1qg24UO3EPDXMPk59M9pCTttpURWmVYKXuejLeD6SvEW3IDU4o3SRe7Gjqi8WYf Jw4w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmx.net header.s=s31663417 header.b=iqnipGLU; arc=pass (i=1 spf=pass spfdomain=gmx.net dkim=pass dkdomain=gmx.net dmarc=pass fromdomain=gmx.net); spf=pass (google.com: domain of linux-kernel+bounces-194980-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194980-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=gmx.net Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5785234d6fdsi7416687a12.110.2024.05.29.23.12.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 23:12:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194980-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=s31663417 header.b=iqnipGLU; arc=pass (i=1 spf=pass spfdomain=gmx.net dkim=pass dkdomain=gmx.net dmarc=pass fromdomain=gmx.net); spf=pass (google.com: domain of linux-kernel+bounces-194980-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194980-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=gmx.net 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1F2DD1F22C0D for ; Thu, 30 May 2024 06:12:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DB4D314374C; Thu, 30 May 2024 06:11:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmx.net header.i=wahrenst@gmx.net header.b="iqnipGLU" Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9B7A2DDA0; Thu, 30 May 2024 06:11:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.15.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717049510; cv=none; b=S42myYXjLSy1p6hWAs5wgzMG8CMX1kmw1M3Co1jpqM61aIto7oe1fvYs0qWoP8M4esxvF3WcLpdQQlANL/uDK793lL/q844huN2dDgjuU3cy03fM3GUV1iELyFX/hZsXiyeATxZqyRrdHERB/lBJk8G7lQVGqlBgFsey3PuM3OQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717049510; c=relaxed/simple; bh=NNuRGnCC/PwvYry4sTt4WxbSvgwyXHJP0+uo5/GHg94=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=Z0GtF/fLa6ALqtM1aUTablUWHrkv4ycenx3I5OhAs78Z1oYuo+I3FFO3MPDZpFV/bsAWzpdrrUrihfBiiBe9G39x+p2+DEivUJiiRtYTyxA/KHxVZpqz1hVn6HJSOU3lHgwVL+PYF50sOmGwnpjqIdN8AVhHq8oYDOVAiCLJkfs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.net; spf=pass smtp.mailfrom=gmx.net; dkim=pass (2048-bit key) header.d=gmx.net header.i=wahrenst@gmx.net header.b=iqnipGLU; arc=none smtp.client-ip=212.227.15.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmx.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1717049479; x=1717654279; i=wahrenst@gmx.net; bh=EsObzuDggZcPsAJCrYelSxDfb2ObF3xVT9aYpHF/x8o=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=iqnipGLUmAHOOWqDMe9hRcfpFCCpxhFLUkCe/fYExpavDdLid1imlEzKBqHZpsvW xl+SkXhnxzRcHcqbUdH4f9i9KgQywuvm1M7Wx3+9QLJrs0vNNwWTtgBoavp8j+QW4 gUueQNl1mOrSPgzR+e3z7sGeJY3hKmSBpvAf28XtjUXb8lDzWiSMP6JTXZci9v/e7 8aftExv2s2VmQtJFJKT2AQtSgnNa3pLgFO64cYBfPIqqwuDFBRa8iRa0RKvX0uO1R EGzmUBb8+q6Q2/ulh0zVNTCLaHBxb12s5MA71IowjWDzzZenGmi6KjYaULVLCywcA CvXJTgQT/yH5hrLIXg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.1.127] ([37.4.248.43]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MORAa-1rq4531Lw6-00MYLI; Thu, 30 May 2024 08:11:19 +0200 Message-ID: Date: Thu, 30 May 2024 08:11:18 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 4/4] arm64: dts: broadcom: Add support for BCM2712 To: Andrea della Porta , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Ray Jui , Scott Branden , Broadcom internal kernel review list , Ulf Hansson , Adrian Hunter , Kamal Dasu , Al Cooper , devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org References: <8dd6997394a01317747ca11b4779f586752b4947.1716899600.git.andrea.porta@suse.com> Content-Language: en-US From: Stefan Wahren In-Reply-To: <8dd6997394a01317747ca11b4779f586752b4947.1716899600.git.andrea.porta@suse.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:wTYiOw3KxXiOy40hYJRqts+FSsstKKT4WxhXtd/QEojTR2X2ojL TySUwrIHVWRK3PLZ3br7lh9HWcvgqFq2Wsw6ETiv3sJukezwScTkBHYdP/3PM8UfTPdtmKG 4PnTCpPe//sivTIVv2K/20Lv58L+bv4arelOS6JPGh2oZW5HDWxTFz+P5yfPc9Faf5xmkRv AtJ9RlWQo0KXN4mclqdFw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:c7pe3KccDI8=;iYBiNMPDOng309BceoMXopUPaVf wnJd1FHtrLbgnE+aKZuojCZx19zPY+xm5Sr1HrY+8QY2JE4otngDh4f8+WEUgX0h/5kAUIYr0 5xeQK+lu93ucjWyBnUM+W9Clm4/bAP6k+znyoSe/yllkHhEB7rIf6lNB+FLrgRk4r0WGgQCik 70Wm8/xDZPJ1fevl80ItZ5AaOULyUUrKCnXN9ums/pzQcWkx0PHQlgJllXlUITDsAhtQrETRm S9gepccEx2efsRDN3ziRxdTuQ/kXe+Bi2P2cVlASD/e94++dKDpOEzAVLUcfSMnLGHx3WaNVW AOqbouezSuWZEF9RSP6VygGPoux36PMni+hPcGS6CjL9axWBCQ5zwGrws/CzyKW9QRisEV30l s09DMY9oosd6PEtfd9TQms3xAEqhu9EMHMAj5FiT5cno8+eRIPpgDZyUwmfs56sBOIjpASvOx 4LkRwTwBORL8OOaQO8HJSiFLKYct3/ZvpocLr3lWwOpC+imcDk2EZKW5svuBOSmqsAMWXrco9 0MBMIvO0xEORFqbG62E04VWvt4b8kv8ziJNy88Dc/d7ys0dZeqS0n0HV43nPhJa5x6XGLxEbw OJZFnankn0wnJTy+ORGZi9TmkOjCIbvk8LBrj/WN2XcjjsrLlfI69xjHatQsjt8plx5anT5py rwGl2ezvMFlRKTzDA20toUCIM8flQ99OJp/boL9gnvpx7eDNv8OwMSQp1OrepdQJkRFgNOVLv Xx51oZF7v5LEjaUY95FEDNX/kUiKBmsl0UjkOUqOH641g+/9lCPOmZOi9vVVGp1pvPRjva/TC S+R7WtrnsdDkIRs3CuiaT0gLswLgiB8iwIAkz7+7/70Xs= Hi Andrea, i think the following subject would be better: arm64: dts: broadcom: Add minimal support for Raspberry Pi 5 because you also add the board file here. Am 28.05.24 um 15:32 schrieb Andrea della Porta: > The BCM2712 SoC family can be found on Raspberry Pi 5. > Add minimal SoC and board (Rpi5 specific) dts file to be able to > boot from SD card and use console on debug UART. > > Signed-off-by: Andrea della Porta > --- > arch/arm64/boot/dts/broadcom/Makefile | 1 + > .../boot/dts/broadcom/bcm2712-rpi-5-b.dts | 64 ++++ > arch/arm64/boot/dts/broadcom/bcm2712.dtsi | 292 ++++++++++++++++++ > 3 files changed, 357 insertions(+) > create mode 100644 arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts > 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 :=3D -@ > dtb-$(CONFIG_ARCH_BCM2835) +=3D 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/arm= 64/boot/dts/broadcom/bcm2712-rpi-5-b.dts > new file mode 100644 > index 000000000000..2bdbb6780242 > --- /dev/null > +++ b/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts > @@ -0,0 +1,64 @@ > +// SPDX-License-Identifier: (GPL-2.0 OR MIT) > +/dts-v1/; > + > +#include > +#include "bcm2712.dtsi" > + > +/ { > + compatible =3D "raspberrypi,5-model-b", "brcm,bcm2712"; > + model =3D "Raspberry Pi 5"; > + > + aliases { > + serial10 =3D &uart10; > + }; > + > + chosen: chosen { > + stdout-path =3D "serial10:115200n8"; > + }; > + > + /* Will be filled by the bootloader */ > + memory@0 { > + device_type =3D "memory"; > + reg =3D <0 0 0 0x28000000>; > + }; > + > + sd_io_1v8_reg: sd-io-1v8-reg { > + compatible =3D "regulator-gpio"; > + regulator-name =3D "vdd-sd-io"; > + regulator-min-microvolt =3D <1800000>; > + regulator-max-microvolt =3D <3300000>; > + regulator-boot-on; > + regulator-always-on; > + regulator-settling-time-us =3D <5000>; > + gpios =3D <&gio_aon 3 GPIO_ACTIVE_HIGH>; > + states =3D <1800000 1>, > + <3300000 0>; > + }; > + > + sd_vcc_reg: sd-vcc-reg { > + compatible =3D "regulator-fixed"; > + regulator-name =3D "vcc-sd"; > + regulator-min-microvolt =3D <3300000>; > + regulator-max-microvolt =3D <3300000>; > + regulator-boot-on; > + enable-active-high; > + gpios =3D <&gio_aon 4 GPIO_ACTIVE_HIGH>; > + }; > +}; > + > +/* The Debug UART, on Rpi5 it's on JST-SH 1.0mm 3-pin connector > + * labeled "UART", i.e. the interface with the system console. > + */ > +&uart10 { > + status =3D "okay"; > +}; > + > +/* SDIO1 is used to drive the SD card */ > +&sdio1 { > + vqmmc-supply =3D <&sd_io_1v8_reg>; > + vmmc-supply =3D <&sd_vcc_reg>; > + bus-width =3D <4>; > + sd-uhs-sdr50; > + sd-uhs-ddr50; > + sd-uhs-sdr104; > +}; > diff --git a/arch/arm64/boot/dts/broadcom/bcm2712.dtsi b/arch/arm64/boot= /dts/broadcom/bcm2712.dtsi > new file mode 100644 > index 000000000000..71b0fa6c9594 > --- /dev/null > +++ b/arch/arm64/boot/dts/broadcom/bcm2712.dtsi > @@ -0,0 +1,292 @@ > +// SPDX-License-Identifier: (GPL-2.0 OR MIT) > +#include > + > +/ { > + compatible =3D "brcm,bcm2712"; > + > + #address-cells =3D <2>; > + #size-cells =3D <2>; > + > + interrupt-parent =3D <&gicv2>; > + > + axi: axi@1000000000 { > + compatible =3D "simple-bus"; > + #address-cells =3D <2>; > + #size-cells =3D <2>; > + ranges =3D <0x10 0x00000000 0x10 0x00000000 0x01 0x00000000>; > + > + sdio1: mmc@1000fff000 { > + compatible =3D "brcm,bcm2712-sdhci", > + "brcm,sdhci-brcmstb"; > + reg =3D <0x10 0x00fff000 0x0 0x260>, > + <0x10 0x00fff400 0x0 0x200>; > + reg-names =3D "host", "cfg"; > + interrupts =3D ; > + clocks =3D <&clk_emmc2>; > + clock-names =3D "sw_sdio"; > + mmc-ddr-3_3v; > + }; > + > + gicv2: interrupt-controller@107fff9000 { > + interrupt-controller; > + #interrupt-cells =3D <3>; > + compatible =3D "arm,gic-400"; > + reg =3D <0x10 0x7fff9000 0x0 0x1000>, > + <0x10 0x7fffa000 0x0 0x2000>, > + <0x10 0x7fffc000 0x0 0x2000>, > + <0x10 0x7fffe000 0x0 0x2000>; Please move compatible and reg before the other properties (DTS coding style) > + }; > + }; > + > + clocks { > + /* The oscillator is the root of the clock tree. */ > + clk_osc: clk-osc { > + compatible =3D "fixed-clock"; > + #clock-cells =3D <0>; > + clock-output-names =3D "osc"; > + clock-frequency =3D <54000000>; > + }; > + > + clk_vpu: clk-vpu { > + #clock-cells =3D <0>; > + compatible =3D "fixed-clock"; > + clock-frequency =3D <750000000>; > + clock-output-names =3D "vpu-clock"; > + }; Is the VPU clock really fixed or is it just a workaround for minimal boot support? Except of this, LGTM