Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp190523lqo; Thu, 16 May 2024 03:32:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXP2gTslke9iOKO+FRdhMSZ8rmxX7T5LnPBr2HwumcDHmHHACjmy7z+30UnSt+L26QuGj9vBuRVmFFDjJQceuoA41X5Ofv8iorcc6VWNw== X-Google-Smtp-Source: AGHT+IEOA9pyuF4w8pdMV8XGlfB/H8a0dK6L07+aEK3B0hdr7zqNzi6zwLisTZBrF7HTWCzlNZkF X-Received: by 2002:a17:902:ecd2:b0:1e3:cf2b:7151 with SMTP id d9443c01a7336-1ef441a6e2cmr211930725ad.59.1715855533441; Thu, 16 May 2024 03:32:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715855533; cv=pass; d=google.com; s=arc-20160816; b=d7D7AkIBLGDAoHHriaHwfEjBVy5BB1TxHtc0TesPGmbRW7wBAXQf8A4AGxYY63N7hZ hj47ZpNAECQXGSqkoiL9038bobkZCO0DKB36Cm7PySuHkt6afVynGlUl4JXbiXr1AD/r CrjVdASiobkg7riXE6aDPVn71GMJRvq19OnRyKg9A2fkGtzJBv7vQ6mHAQqte3noQSgK EvV09/sHOuea3nxsCsKMf5lwY79wzoOMSMavk2pesmNwYtqH6xYLReBaArY7Xy+nK+xx ttQ+cudWX+paX0UjTlUek1VCHQsBZYmHfD6GZ1aH0BQEVa7jp/9en+EboWFpfH9bbbjD zkzA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:mail-followup-to :message-id:subject:cc:to:date:from:dkim-signature; bh=jFfEH0nLFM+O/JJvf5HTtYGZMvNxTcGxwhqubZ4Dp1o=; fh=hlLt35NZQhyNwYVzbER67R8xGAxjB51/j5TeN5Z4HMk=; b=G/+69euyioVkRTq9ntMu3aiP19f5QCEB9DmifjgCdLPsUqMKqMo5CK1TfMKUu0MM8e 76nsBXJX88TG1z2+1hf3RXOlPzHi7Pgbb38wWZ6gkeojixYtXn5hHL6yBa8mo02AKy8T vKJYPCtaelhyH1UFCGdx0rjGhhwMNWCEnXJ/ZfJfdvz9wRhdnpTlAzAyWhAKJB6OXqyL U25IgR6/lD8cCQL8Xzh2/aE1U8NQXA7Y8RXuAGLvm2ELx3Mn8Pz3tw1igQn2A4wd9hgf OnIfkb243O45Gu+5EYpFTo0g5odtQ6gXXZ5oPq0ddT+53IpTT66d8sPQhDAnsZwWXMiJ ruoA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=MX5qVjYr; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-180909-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180909-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0c160ad9si159215775ad.550.2024.05.16.03.32.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 03:32:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180909-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=@suse.com header.s=google header.b=MX5qVjYr; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-180909-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180909-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.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 C2148282F69 for ; Thu, 16 May 2024 10:32:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5D03B14533C; Thu, 16 May 2024 10:32:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="MX5qVjYr" Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (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 25ED2143C55 for ; Thu, 16 May 2024 10:32:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715855526; cv=none; b=VL/T36mPHEQ0Q3b0CzULncPXUNhfiDL1d1A9JyGZLZRGAPNUxHlStFZTWO6Jpwffxv6hT8jYmTEdNv7NVjRG9FD8xdWlp0uO3in60D8Eo4KGnEtRhf9tynEBh7kHmCsqriiJ5bfd4wxTnaTtxzcv8HGef7EVVHI1T0vw1BYBt+8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715855526; c=relaxed/simple; bh=TKC1ecUmBG2r52Lx+99Gq3JPyNh3t3Hn2QjNdaK6G8g=; h=From:Date:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XIrndyud+8w2/tDxBs/7+rqXikbGK26Wl+h37fcwkWRjzdMTlS66PKUSlVJ4MJts3J6XGkPd3GnKIQNex3i3jYkNi8kJ35TMycT2L7xxlSWHh0osLIYG39LdhH9ObqGHOqONG0PKl/aZTUK4Ua3CT5cYfgKG6RGPXHMylAprP4c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=MX5qVjYr; arc=none smtp.client-ip=209.85.208.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-572d2461001so3222761a12.0 for ; Thu, 16 May 2024 03:32:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1715855521; x=1716460321; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:date:from:from:to:cc :subject:date:message-id:reply-to; bh=jFfEH0nLFM+O/JJvf5HTtYGZMvNxTcGxwhqubZ4Dp1o=; b=MX5qVjYr/bwYG9URbrjzNOG/H6LIXdP3ZledrGK2a+W0lSYsdYqKjc197Ms8ahUSRN ZadqvCSLWjC18N+CaqnItNtExVXwybuPGs1CGN/SW7FaACeG5XGMdUdYtsue9aoZk375 fBUZruI5oiYjDJmKV5pU14E77haf1ybFzkYwgTQaiFdA+0asCqOon/V/wVWBN+JpFNve NNx6Kuaf14/iblZB2Xg0r1j3c4tZ3wVpiT6OV/WQ7NpWI6azW5HqbttFV+0SGknMgC3v LamOGS0T0MbgV6wK5r6KLUApTKfgtoYYRqVTy8r4452PSD94kkg4QdkHYQfxNh8LbYyQ HdbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715855521; x=1716460321; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:date:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jFfEH0nLFM+O/JJvf5HTtYGZMvNxTcGxwhqubZ4Dp1o=; b=mMibC3a+7ZVID1hniefVv2Lwdmvn2qk6AqYaxQsrQkWu1cbN0TtzNgIj1MfBo75HLd T2IkYcQ7sPLNWFF1wQyPzPks4+STpq6icldTPbiyDJswNxdiZSxqEINSS0HnhXBdUEP4 pFhuthkfSzAznQniANtS03M05/Ov/9qRVrhWwKa00U8U73IiLdut/o4PKNFQuYmlgMPW 9fiYlUJCoLd6T9dwFDebTzIvZ7VAKyR33R+CpJ1NqtznHiCK+NSMDQ/kzMSx1AiB7TO6 zFijaMwjNmyujweRFCVvu1coloRmbpauvB8XdwHLrceMCWcltWXcsC//ywl5cIKF3jxc WNoQ== X-Forwarded-Encrypted: i=1; AJvYcCVHLAsJV1iOptaJWlnBB9ybFDrhfmaqHQADvE2FLPcaluhugfPGgo+ncNWaO36M1EYC9eEGUhpnEuC4ocVrbC9unKrFteBsPQBUipBR X-Gm-Message-State: AOJu0YzesVyxQxl4khVD+gZ8LjpxmVhNjw09X0N3VabXxAzC5IM/L6iN JFOPLfb/m8fv8HZuzAz2gjaBOeNCbJe0F6YWkuXsRCCPr06QUKFFsc9ClrIvke8= X-Received: by 2002:a17:906:394e:b0:a59:cb29:3fac with SMTP id a640c23a62f3a-a5a2d68aad7mr1284605566b.65.1715855521454; Thu, 16 May 2024 03:32:01 -0700 (PDT) Received: from localhost (host-79-19-230-33.retail.telecomitalia.it. [79.19.230.33]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a7a944664sm377064866b.37.2024.05.16.03.32.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 03:32:01 -0700 (PDT) From: Andrea della Porta X-Google-Original-From: Andrea della Porta Date: Thu, 16 May 2024 12:32:10 +0200 To: "Rob Herring (Arm)" Cc: Andrea della Porta , 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 Subject: Re: [PATCH v2 0/4] Add minimal boot support for Raspberry Pi 5 Message-ID: Mail-Followup-To: "Rob Herring (Arm)" , Andrea della Porta , 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 References: <171560671443.2464066.440073842827214763.robh@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <171560671443.2464066.440073842827214763.robh@kernel.org> On 08:27 Mon 13 May , Rob Herring (Arm) wrote: > > 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'] Those two property come respectively from: - Documentation/devicetree/bindings/timer/brcm,bcm2835-system-timer.txt - Documentation/devicetree/bindings/interrupt-controller/brcm,bcm2836-l1-intc.txt that are old style txt bindings. So unfortunally they will output that kind of warnings: converting txt to yaml schema wouldbe great, but I think a little outside the scope of this patchset. I would say it is a good cancidate for a separate patch. Many thanks, Andrea