Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2042310lqo; Mon, 13 May 2024 06:27:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWDLO+O7KClQLWyJnf4KAd2MA71WPWbypvG5ko7BqXTpYYPyCI6GArzrq+dNlNqWr3URZZ2P3nNNJSLMfrSXUNFfaOtMKpCPHD4rwVHWA== X-Google-Smtp-Source: AGHT+IE2ZQlfxzQfjNRy2DGRl6mzJ26nV3zu+y/sD4KfAr1OFvNNpcvW2+e8BQB+X4ere/OR67c5 X-Received: by 2002:a05:6a00:98d:b0:6f4:9fc7:d239 with SMTP id d2e1a72fcca58-6f4c9334e39mr20677392b3a.14.1715606831622; Mon, 13 May 2024 06:27:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715606831; cv=pass; d=google.com; s=arc-20160816; b=ipSocr7snLcto/GCPy2Y8Lw4uiY4wgQJT97cHT4XMHOEFgfepoIiPAjLmF0CSb6rEz ZdgeFOWgGoRPpeb54+lVuv7A5iBTjmZyDJ6yl5TABdv/n1/Z3Psk6Cz5WKuZp+dOUfmz wrf6Z28LLyn7Rj/f9pxb71Ksyzzh3AEE/VZUya8k9L8VCQTHQOj/3pP01Li7PqonetyT 15bS7aYgpzIx1p2Cew9/bpWjBsi1XrkrvewgTKAePQXuREZKhMcPX73/gapMsShGu0+O KITQLY37PZo5fBcSnxMmy95c4ZFYjJjOBsGAbfz00uUYUTbDoyvidmnSLyrWnDlWByjq KgeA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:message-id:references:in-reply-to:cc:to:from:mime-version :list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:date:dkim-signature; bh=Q8zRoULBojrGxfn/wz3AVp99rcGGRsdDb9Hd6dtQrok=; fh=mgrXl9nbLu3QwmDhjNw9FTsBegNvhCo4V640rz0UJeU=; b=Q7w4cq1TNSRatmcj7xWTrXb2vW5XA5MWfNf5liKr87aPzmC4lfG4JhD9nDodZ/aDLb /BpPLP9AgYIPo/ZKFdXyTjDIVLZ6VpKrk0seA8UtqLafsTvzN5GHTCzUfUtUk0a/ORLg p3BXeG13FQ3/zBQ97p7I+Je29SzurIbxiiaoIKX43gocBTWtOPH4WfVRHM5Q7tRTaEYv 2HZDvbd4fCaS3ZkID4dxG+pnCrMcwUuclckvbpU3bAEqYRyi+S+dWd4bShB+5xCGLoPe EzmVMsIuA06Jg4uSWaA7Kq/UNKilPLE7iD1yjE6+wLV0ik/7Q36it6p40Cf5nQ0gmdOU dcbQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YrjtQW9i; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-177626-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177626-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2b1dad1si9193345b3a.266.2024.05.13.06.27.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 06:27:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177626-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YrjtQW9i; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-177626-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177626-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 3E545281A0D for ; Mon, 13 May 2024 13:27:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C2E1D15251A; Mon, 13 May 2024 13:27:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YrjtQW9i" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 DDA3814C594; Mon, 13 May 2024 13:27:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715606825; cv=none; b=X4Qf+XqMDWZLo/XdUhp9k8GLesvMZfa5De7CYhH6iyQXLzFAZ7YlWjwqiuPCRl1+6t1rFK88vbo8pIOOHOfiNrqUi9GFu+ORipVyJw/eaJ34JSvj6mYcnIhflHOg1oXveh5pOHtJev07LREaHfcB6Fb7rcW29X5AePHt5tBmVUw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715606825; c=relaxed/simple; bh=10lk38XyzErIUEli139gJKZDzm+Z8ZSe1J18NuIyxBY=; h=Date:Content-Type:MIME-Version:From:To:Cc:In-Reply-To:References: Message-Id:Subject; b=KwzCGFXVonR5fLCFyifUasW3Gbf2G3JIGTs1w1N5F5lSHj8dnHPYLjPQyJ3/uKc1JEiTh0S9O/adKE7cibwdgfqccHwRmu1468KBYXBOc3DgUT5v/OZTR3gt4FqQcGaVVUkqsGsdVi0uhHUW5Il0jZU9WA885xTcO+854rXjz9Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YrjtQW9i; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 452E2C32781; Mon, 13 May 2024 13:27:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715606824; bh=10lk38XyzErIUEli139gJKZDzm+Z8ZSe1J18NuIyxBY=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From; b=YrjtQW9iczUk6tYsPzkrupLm9sjLXnQxc9ZhtcYH0JYWot5fYjYaM1aio/TBbPt6i O6ufYBh99bu6VnJCaUuqrw9XPFsV5ON2raukMLdtLABZqlzrXoLs/U0m/Keo5vxYa/ SSYqR9BOx+nsoMFjN+r0Lt5o9orPqQvVYFNlx1jK/opiB3+ZYPvSqAYjm9h1vqYgAr iefdJ5vcEZeTjRQdkJwnAFWENZJ0upbjM6wNImtnqy2bEva1/EB/U1ebPrXJwcJHdU FJ9nvfJuuqtgJjytAZgO679PbCPfOs9UNuzKu2z/ELvjVgDQbqf5sqRnbaFMMHva2F gheNSCz+D0LPw== Date: Mon, 13 May 2024 08:27:02 -0500 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: "Rob Herring (Arm)" To: Andrea della Porta Cc: Conor Dooley , Kamal Dasu , Eric Anholt , Scott Branden , linux-mmc@vger.kernel.org, Krzysztof Kozlowski , Al Cooper , Ray Jui , Ulf Hansson , Stefan Wahren , devicetree@vger.kernel.org, Florian Fainelli , linux-rpi-kernel@lists.infradead.org, Broadcom internal kernel review list , linux-kernel@vger.kernel.org, Adrian Hunter , linux-arm-kernel@lists.infradead.org In-Reply-To: References: Message-Id: <171560671443.2464066.440073842827214763.robh@kernel.org> Subject: Re: [PATCH v2 0/4] Add minimal boot support for Raspberry Pi 5 On Fri, 10 May 2024 16:35:26 +0200, Andrea della Porta wrote: > Hi, > > This patchset adds minimal support for the Broadcom BCM2712 SoC and for > the on-board SDHCI controller on Broadcom BCM2712 in order to make it > possible to boot (particularly) a Raspberry Pi 5 from SD card and get a > console through uart. > Changes to arm64/defconfig are not needed since the actual options work > as they are. > This work is heavily based on downstream contributions. > > Tested on Tumbleweed substituting the stock kernel with upstream one, > either chainloading uboot+grub+kernel or directly booting the kernel > from 1st stage bootloader. Steps to reproduce: > - prepare an SD card from a Raspberry enabled raw image, mount the first > FAT partition. > - make sure the FAT partition is big enough to contain the kernel, > anything bigger than 64Mb is usually enough, depending on your kernel > config options. > - build the kernel and dtbs making sure that the support for your root > fs type is compiled as builtin. > - copy the kernel image in your FAT partition overwriting the older one > (e.g. kernel*.img for Raspberry Pi OS or u-boot.bin for Tumbleweed). > - copy arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dtb on FAT partition. > - make sure you have a cmdline.txt file in FAT partition with the > following content: > # cat /boot/efi/cmdline.txt > root=/dev/mmcblk0p3 rootwait rw console=tty ignore_loglevel earlycon > console=ttyAMA10,115200 > - if you experience random SD issues during boot, try to set > initial_turbo=0 in config.txt. > > Changes in V2: > > - the patchshet has been considerably simplified, both in terms of dts and > driver code. Notably, the pinctrl/pinmux driver (and associated binding) > was not strictly needed to use the SD card so it has been dropped. > - dropped the optional SD express support patch > - the patches order has been revisited > - pass all checks (binding, dtb, checkpatch) > > Many thanks, > Andrea > > References: > - Link to V1: https://lore.kernel.org/all/cover.1713036964.git.andrea.porta@suse.com/ > > Andrea della Porta (4): > dt-bindings: arm: bcm: Add BCM2712 SoC support > dt-bindings: mmc: Add support for BCM2712 SD host controller > mmc: sdhci-brcmstb: Add BCM2712 support > arm64: dts: broadcom: Add support for BCM2712 > > .../devicetree/bindings/arm/bcm/bcm2835.yaml | 6 + > .../bindings/mmc/brcm,sdhci-brcmstb.yaml | 23 ++ > arch/arm64/boot/dts/broadcom/Makefile | 1 + > .../boot/dts/broadcom/bcm2712-rpi-5-b.dts | 62 ++++ > arch/arm64/boot/dts/broadcom/bcm2712.dtsi | 302 ++++++++++++++++++ > drivers/mmc/host/sdhci-brcmstb.c | 81 +++++ > 6 files changed, 475 insertions(+) > create mode 100644 arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts > create mode 100644 arch/arm64/boot/dts/broadcom/bcm2712.dtsi > > -- > 2.35.3 > > > My bot found new DTB warnings on the .dts files added or changed in this series. Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings are fixed by another series. Ultimately, it is up to the platform maintainer whether these warnings are acceptable or not. No need to reply unless the platform maintainer has comments. If you already ran DT checks and didn't see these error(s), then make sure dt-schema is up to date: pip3 install dtschema --upgrade New warnings running 'make CHECK_DTBS=y broadcom/bcm2712-rpi-5-b.dtb' for cover.1715332922.git.andrea.porta@suse.com: arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dtb: /soc@107c000000/timer@7c003000: failed to match any schema with compatible: ['brcm,bcm2835-system-timer'] arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dtb: /soc@107c000000/local-intc@7cd00000: failed to match any schema with compatible: ['brcm,bcm2836-l1-intc']