Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp141671lqo; Thu, 16 May 2024 01:37:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXG4v2/MqfZln+pdKSg6GfTq636cWiqwsJ0U9tn+DDGsRQhXW7FnRVD0pZ+ZMGw3ghFlNpaBJ7sSKcm9u/3oNAIcVX7u76o6vBdf9VNZQ== X-Google-Smtp-Source: AGHT+IHCStBQgYV2dENVzn2bHOjIzvwv7PwdPoGbHTrTzLUa0SdHbzceilN4Qc9pBhcD0saMqtgi X-Received: by 2002:a17:90a:8d10:b0:2ba:705:52db with SMTP id 98e67ed59e1d1-2ba0705535fmr2611194a91.38.1715848647306; Thu, 16 May 2024 01:37:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715848647; cv=pass; d=google.com; s=arc-20160816; b=V3NzejNiDcgEPz+etpHrXFe2dbKswfYv9QyRLgA/q7ZyP95Thr1zf1gydThKSJDMeX 90CfmvFYPXY7jRkje7dHheX1D9z0O5ICRFCLJHjpBUW54xQv86ozX9wY/ueZQjTIUyal cN0rgi+qRoiO7hNTD6hKwWGATe04blC9SvNp2ngJvLVPsazwTqJcV5KUzCvO1nkqLQaQ d2ITEd2MOyROJz7mFcq1nEAJ2feWiqW7dBRASlGWMgUE+MFcaRUhqBjxk3l5OH9YDUwR VJ083arV8tEa1IV2fYrOSwjZh0CyfMdGVWwSvJqQ+I0E0YsKJSt4SiQNyDCAY6okygDO oUXQ== 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=d6SlACI4eez2IkJWPlonbnYSeybNPJ5ifMFU+WZkjDs=; fh=3zdyvEMDRHaq65aYiaxLCQrDdXMOz5O1NwKCVJJDc1U=; b=rmCPn4t5GazkESBKVUe1MoSYkTu2m4R+ZjB/6btr3ljEllFRKKGB+9ZS+GwT5sBSag 431icbahbFcC5rR9MmMolXKNM7uiCt3eucUUP6Jjx7OOBRwcpelodN61Oc8uxC89M0nr 4aS62A3IUiQFdnK48B2TwwKE928tsOWWfmdv5r3MiY/Y76U5N+8XKoAcls7bQj5xEUMf IbesmwKEsLKVk+WT5HB9lX2/ZRaZMKDerQVmOtGFL6dFC5J/ZQ3DilGFyBvkfi4pN+GX VSXBOIQWPsFmJSxWb93PMGzrmAATPEozKqPVZz0pwnnth0uDKqf5fBvSuqFsDXMBXovP 46IA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=YmM4KM2V; 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-180778-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180778-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. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2ba3efb5176si1073365a91.148.2024.05.16.01.37.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 01:37:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180778-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=@suse.com header.s=google header.b=YmM4KM2V; 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-180778-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180778-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 27474283444 for ; Thu, 16 May 2024 08:36:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 36AC814198E; Thu, 16 May 2024 08:36:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="YmM4KM2V" Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (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 5E05013E88C for ; Thu, 16 May 2024 08:36:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715848582; cv=none; b=oGqBBMmTQ8xcBKUu+EI/9Kq1sCRhucRUtXty4VfugH1CMhdLvaF0oKmSBi/+LInJ1gY2I7mrPsrpsjRgJUcIfqS5aUTFBLOR5G2JEk9IWuebwF7C+HOuCKOKjJpg6mxxRljEax3vPhbHtJkftF/tAWbz9mRlIEugmYZ1dSK/Pa4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715848582; c=relaxed/simple; bh=dwC6cRbODnGd61OEFofYN+ABCksxryw+47FpuuIGhpo=; h=From:Date:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Zc1BehF1WcpDMaMliJXyaBDb67wnJA2nvBFf6yk6XKfbDqemCctOobxoAt6MklSS8y1hI/baT0lY11/D7/rSlzhfo8jE53PohqyB+tJoCW7PMtf7E9BdOQMKnRNJA3QIQENxjeb0ReUKwyYbg+LeGAvr9JYC87hgg1Qo+sFVIDQ= 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=YmM4KM2V; arc=none smtp.client-ip=209.85.218.42 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-ej1-f42.google.com with SMTP id a640c23a62f3a-a59b178b75bso223306966b.0 for ; Thu, 16 May 2024 01:36:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1715848579; x=1716453379; 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=d6SlACI4eez2IkJWPlonbnYSeybNPJ5ifMFU+WZkjDs=; b=YmM4KM2VK5nG/kADiU9qmVdh6HZXlOu5VLmZ7M17FKbCQx9H/kwz+Zdk1B1MzyQmq5 qhzferAMZGxkh7dv6hH9xpfowkhCtRAZm657XMAVbQ13PsP9K5zkV/YvKgSL5EVIzPPx neLFExMyn6+RV9lohTobxO9dF2p7iqEXxFJNdmfN21ZtLOVlmWXsp74WnJqXfaOSveZO kMmmgYFfsEIKxit2AWj6WevmbFIv0N2Knhw1dS/3MKBtJeDLA6TdLlxohoDXJ2BWtvZl ZY/mI291Z88BYLov2ikwq8zTgrOFeOUuUDVmps92gf2A641t+q8zieqZUO2s7YzHkrKY Ginw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715848579; x=1716453379; 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=d6SlACI4eez2IkJWPlonbnYSeybNPJ5ifMFU+WZkjDs=; b=RWLG9Fy7LiBGzUzrW6bFNpVcA+6TV0DbmB8zgmyAVCDeY7OfxIbTTzyCHVpnE6qOFD M/Iebb9sF1NR5BsEFZsPX9f9fzFZWwUpkZxPETRlffJGuJhoIEdwKitLZgMDdJGDUolK VfQX1RKM7Y3V1vSo3Gt7YqxmtJ1i8A9eJwBqOa9w849yOZEw/V3OmQv5uodtQO0RY/45 NhT4LQ+jpIsOQnBRLnjP/7TzMJyA4C97r1ULr38epHPneMJq7UOKhsB9JPhYWwrizUUr 4ln5QZNTWdRXeBZs63H3WwxU2Pdztf+o9B35quetHvO0HJ7XR+ZKGh6vsoBsuROvCNk2 q1Wg== X-Forwarded-Encrypted: i=1; AJvYcCUzVPnC44fdtRsT06jrPLqwn+VwCEeahvKsP8h9ARsaFBD+7V14VXGX+Rp1xnEmSYEpoww/KqPyicoqWPEKGBEsoIjo/WA5qQH3C1x2 X-Gm-Message-State: AOJu0Yw9fXt0sKYTNsiGLLrGaVfWMaptz0c6XFd5Qt2xFN+Wb+oyv5fV TESJhzXro2NjupSs2T8Ws013CGqByNY+oAJauqs+yvMDL/8U3XFYTKB2hDiT8sk= X-Received: by 2002:a17:906:2708:b0:a5a:84c8:7710 with SMTP id a640c23a62f3a-a5a84c8b9eamr483964166b.55.1715848578649; Thu, 16 May 2024 01:36:18 -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-a5a8883344bsm289752066b.9.2024.05.16.01.36.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 01:36:18 -0700 (PDT) From: Andrea della Porta X-Google-Original-From: Andrea della Porta Date: Thu, 16 May 2024 10:36:27 +0200 To: Florian Fainelli Cc: Andrea della Porta , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Ray Jui , Scott Branden , Broadcom internal kernel review list , Ulf Hansson , Adrian Hunter , Kamal Dasu , Al Cooper , Eric Anholt , 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 Subject: Re: [PATCH v2 4/4] arm64: dts: broadcom: Add support for BCM2712 Message-ID: Mail-Followup-To: Florian Fainelli , Andrea della Porta , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Ray Jui , Scott Branden , Broadcom internal kernel review list , Ulf Hansson , Adrian Hunter , Kamal Dasu , Al Cooper , Eric Anholt , 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 References: <59a3015c3a6f2f0b70a38c030274a163773e7757.1715332922.git.andrea.porta@suse.com> <786bbf35-e9fe-445c-b6f9-21119e60fb34@broadcom.com> 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: <786bbf35-e9fe-445c-b6f9-21119e60fb34@broadcom.com> On 09:14 Fri 10 May , Florian Fainelli wrote: > On 5/10/24 07:35, Andrea della Porta wrote: > > This should be #size-cells = <2> to be future proof and support over 4GB of > DRAM, because the DDR controller and the memory map on that chip have been > designed with that requirement. > > > + > > + interrupt-parent = <&gicv2>; > > + > > + axi: axi { > > + compatible = "simple-bus"; > > + #address-cells = <2>; > > + #size-cells = <1>; > > + ranges; > > The AXI peripheral window should be defined in the ranges property. The > aperture is from 0x10_0000_0000 to 0x10_3FFF_FFFF. > > From that point on you can define all peripherals under the axi node to be > relative to that axi aperture, just like what you did for the legacy Pi > peripherals in the subsequent bus node. This doesn't seem to match with what I have here: - some axi peripherals goes beyond 0x10_3FFF_FFFF (e.g. the interrupt controller is @0x107fff9000) - downstream dts have that ranges going from 0x10 0x00000000 0x11 0x00000000, so to span all the peripheral (included e.g. the above int controller) - another comment in downstream dts says: // 10_00000000-1x_xxxxxxxx = up to 64GB system RAM I'm a little confused here, of course we could also define multiple ranges but I don't really know what the boundaries are. Anyway, I would opt for the extended range (0x10 0x00000000 - 0x11 0x00000000) unless there is concern about it. Any thoughts? Many thanks, Andrea