Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp30625lqb; Tue, 4 Jun 2024 04:15:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVrWIxtjpTQb1KTLSnquIYyoPDDgh87K9fkneyrPe5tMhfFJkoIrdrnmo9MXL2yo4WVVH0wnn8YOC9LOxCI//bGjlq6dRbNQ5x6bbwQ0A== X-Google-Smtp-Source: AGHT+IEtVlm7uoZC5fg9JqdunpTmwNGlev9W2W6OkFoUGlT8++SGE6OWclp6ckRLghyVIF91+Z01 X-Received: by 2002:ae9:f018:0:b0:792:e8c4:414 with SMTP id af79cd13be357-794f5c85fecmr1042440685a.26.1717499728121; Tue, 04 Jun 2024 04:15:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717499728; cv=pass; d=google.com; s=arc-20160816; b=Onyg2GkehjUczXSzJZ0A/xY3bhL7DAyR0exrYpR30yMwXRlgCvExMwvVYwHH7Fh1JK L0pdllhnU5+4Hc7KEe7mtNIpe2qBwYBMNIUnIEpbKo7SfJf8cDJQRum9owfIYzb4CLQJ M8GXW/Zn1e72S0YlMtK5hDI4wydRRVyRhL6rB1bjf9oK7sGn8pueOoMzzlpD6nYXbE8S t5TdJ42JusSqaJ8dtVXg4y2Yb8oxDcn6/h2dw/trS7nm/dr/PeQxoz/1H1AgkggBqIRL f1DjiGaktEf5oaZe7YrCGNsNUd6Yz6exgUpwvcRN8mpCKA2VSZGBb2GpkU34kWCu6aOu F/rg== 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=EPnqJm8iFqpoLsOaTzcZDLycrj8bZIRNRvSny5a6E1Q=; fh=1nUFA0C7yrf8iXfV8BrOc2dB99bgSKK8VKU/xp2mz1Y=; b=kBO5BHyFHE6uJ1sNclH+ox/ZHGluQmNoQjTY9bUOiX4wyCHLBqqt8pZ64qOxglN6fx y8kTFWnV/M/xA1v3l7xjgJdTzmmmge9fCOLMheL1p1bsY7Jz248vphUhWRQvgoPci0MT GBdUFFZqs6FBEDUoH98+HkT8WWu/DD09TMun50Jq2JEN79fPiJPKCUo9ma3cdi7IIQp+ UWqEm5gsQvmnl4fzFlLlWP5trABZ5mybCG3oHBoQ5oo4WdkrogkC4EMmBTrASUufhKv1 zTRHZPUjdcKMmtY11jQo1/rz8c59bI/Wpn9ksh+/eIsq6bEH/edjMzogz1Fs/e0G8B94 EMqQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CPjRcIWD; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-200498-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200498-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-7951dc054a9si55158685a.560.2024.06.04.04.15.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 04:15:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200498-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CPjRcIWD; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-200498-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200498-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D3B131C21219 for ; Tue, 4 Jun 2024 11:15:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C0D83146000; Tue, 4 Jun 2024 11:14:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="CPjRcIWD" 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 70919145B30 for ; Tue, 4 Jun 2024 11:14:21 +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=1717499662; cv=none; b=MxEBsxUDKvovUMEZKvYTiAexV18VQKlFr4Zn6ZDl5hJdEMLVppkakL1+o8/ERlzncC+vyquiCREP4PPdz0mqlAIP+nzFQWxnRgfu6H4HTn2bpilvp/Ss3eJl1LwtOPwJVkUNQThIcAXjzUWo3zLD5rR68jkNntSuRm4hwWGtuPc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717499662; c=relaxed/simple; bh=haMbgaVIsEsyr/UPAVi4Bnxb+AK3DC7n/7prdPRNVm8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=bcHEdC3fDM3s/DjFR+bMC0bU7YZBKbt/v5wphX2gmlQaYxgFVLuWUK6eFtFGhYohu+1vs2OZwwJWMLGXkzH6j8577ZlMlzNxG0P8ulW79UxP7PJBsH0U6pMkqL7GRn7h7RQ1NYx+NivPtzABc0BsXxh+uCXl7IuJxW7M9rI4ZPw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=CPjRcIWD; arc=none smtp.client-ip=209.85.219.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f170.google.com with SMTP id 3f1490d57ef6-dfa629b4e0eso4870472276.2 for ; Tue, 04 Jun 2024 04:14:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717499660; x=1718104460; 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=EPnqJm8iFqpoLsOaTzcZDLycrj8bZIRNRvSny5a6E1Q=; b=CPjRcIWDImq0Wd0V3gBJthySYXZO0mxqkciAZhCjadmgyGF3uAXfS3DzKbhLI132xI xmslIcpN7BUherZvdJKCbItHW18fzRO5lRnCf4P815P+uXi4WTRJKNZSoNA9XuAmRE2T kJssEmjkGbctWhPJo25mJ6hRYNuax3yBg99pwkt+tWzlPe9TOMV/4Sr6TXzptpPBQ2C2 Iomd+HTOgzYpcBDriYXMIy7JQWyoJU3UCEZg9bzayVnnlsNN86BOGZl+l1DKrhAO3Q7L ssWRnJy8c9BhCTwReKAbg35vWK6kNaM2aHYjUeRdCkg02RFJVc8Oitj+/p8mctAf1Neu l4OA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717499660; x=1718104460; 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=EPnqJm8iFqpoLsOaTzcZDLycrj8bZIRNRvSny5a6E1Q=; b=c68+7STs0H33Slva0hcHPg7ayzHMnFiiDPUQjJAV+BJPg7/WKLxUrmM8PuUDI5h58v wyMzPK3Lp5Twtu92RwOc1WeAXwE61CXmSnthYdN1lcV64PrSbX6dfsrANpEVmpb6uEDl X9QPeb+/2GOA/qMaGvwaxS1qJH2Jgpz8kRcWvcKaHxOujkW6DNG8ZdiqUjtGJ5Q/qUIa OeYl6jUOhogloqVXsfS+F+Odt/dYDTX41GuEHHnL1Fcp8KSvCWaM5+oI9rS5aqhrZ/+C c/cpmWgEvq/BQuuLfraAd9Db9jmxL8oucwO7btFIp7V/TZo7mi1lH+zhaawTJovh3tJO 5Z5A== X-Forwarded-Encrypted: i=1; AJvYcCX/UJDZioNkA0JyKsD9oJiD31VH0LzKI2HDM1wnKOr37A/ZQUEOCWn8m2UpcB63+F9OGtM8K2/zj4mjmMbsVTGi/JrpEZD/75V/yw0p X-Gm-Message-State: AOJu0YzRIz/sNg1fhqlDgHdLzC7Ws+rsTZgWAuFRs3YH+9LEje84KD+s XWrk1NcfI++xDYhNI73ktL5oxj9fPUhqLnYN1KT0WhtsgQ+USy0fZcDcjkZCsNU6geA36hgIcxN EEMgv5l5C33Zer/NwdxqGwpz0/QKJi+2fD7RT+Q== X-Received: by 2002:a25:b310:0:b0:df7:9681:39b9 with SMTP id 3f1490d57ef6-dfa73be850cmr12727981276.18.1717499660432; Tue, 04 Jun 2024 04:14:20 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: In-Reply-To: From: Ulf Hansson Date: Tue, 4 Jun 2024 13:13:44 +0200 Message-ID: Subject: Re: [PATCH v5 0/4] Add minimal boot support for Raspberry Pi 5 To: Andrea della Porta Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Ray Jui , Scott Branden , Broadcom internal kernel review list , Adrian Hunter , Kamal Dasu , Al Cooper , Stefan Wahren , 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 Content-Type: text/plain; charset="UTF-8" On Thu, 30 May 2024 at 12:11, 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 V5: > > DTS: > - axi node merged into soc node > - redefined the mapping ranges of the soc node to have proper translation, > and a narrower address and size cell number for child nodes.Child nodes > reg properties adjusted accordingly > - augemented the comment in 'gio_aon' node > > sdhci-brcmstb.c: > - removed unused 'base_clk_mhz' variable Patch 1 ->3 from v5 applied for next, thanks! [...] Kind regards Uffe