Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1139789rbb; Sun, 25 Feb 2024 22:55:20 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV1rLk6LoogoeCmFPM8jsliOaR8/k/Nb2LqRIfjbdQXTD7TJcwVy1gmEcVOyIgmCqEHzi+ESFJetmMTTznKIGv5cZjy48rJLMUi0TxDRw== X-Google-Smtp-Source: AGHT+IFGg/Koi1KPGroh0JTcFIIMatBnE9kwxQS8DdVjP5qj53eRnuXKduIb1N1R91Uy5pjQbe8e X-Received: by 2002:a05:6512:3ca1:b0:513:a6:2f3 with SMTP id h33-20020a0565123ca100b0051300a602f3mr356750lfv.14.1708930520701; Sun, 25 Feb 2024 22:55:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708930520; cv=pass; d=google.com; s=arc-20160816; b=sHB12k9TEPEkuWSfZzIo++0TvbSQn32LTYIIr9PNa3r4LSyRstHb3zS3NgBShO0Ma3 rVEU2JKsFBCDS0vIjZFP6Uj08ekMfyT/ny+b7+XpVo0RS1iBnTNxVG/ydZL5yXeVWvJz az5g/7plevfG/vCQs4IIhHn54+tTXluKvVQYvzbsmqgDv41eFR6wcCZvtlg8jjVAehXO lPGSkan879bRvZn6QLpb6utw6pl/QbN/lwsdTFRXV8oohB/3QN7RslGjQNrrkDawxURu vR1Nr9SDfpqTWKsrPwKHOkzp5YR7CW2UUNDO+roHeeHtYOh7DGd58SWNR+E0Zw51Oiga Tmuw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:to :from:subject:message-id:dkim-signature; bh=fM/+3i+uo0h9vj6JNAMzhCNj28si11s6PI7s/m/RuUY=; fh=weDnZiXkkFdmu5SCeyJccngwdMX+x8KEo6hZmnrdNXU=; b=CmvBUl1mOTLAGd/VZIvPxPUmw7y7GAilDKZe8Aif/xlprnankSZirIX+CwGCJ3pYeE Ic/DyHT/58TyVLdUnMWC8ni2ZPVfthvEvOilcyt179mtFz8S520c/YiwnkkARV19VWJo /VGezdeHT5dJkZX7VymwARsxTJ47Ul2BzmG9SI86ekfABCS/Ybg2TqPOBFyxqk66qdd3 udO/j48FfegC/EET0jUfrs8V7Eh1qLVxO3K3/d8t72nk+CJxSw1o+GVLryNzeVfv3WzR ODHeRIpQeL7KSuP1/KkONuLgmovBZ5snL1aoI/ixSdfLOdhH/08V5dM/CW/wVb8CvPlU dioA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@codeconstruct.com.au header.s=2022a header.b=KgKbjAAs; arc=pass (i=1 spf=pass spfdomain=codeconstruct.com.au dkim=pass dkdomain=codeconstruct.com.au dmarc=pass fromdomain=codeconstruct.com.au); spf=pass (google.com: domain of linux-kernel+bounces-80610-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80610-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codeconstruct.com.au Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 20-20020a508e14000000b0056415926d13si1757596edw.223.2024.02.25.22.55.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 22:55:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80610-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@codeconstruct.com.au header.s=2022a header.b=KgKbjAAs; arc=pass (i=1 spf=pass spfdomain=codeconstruct.com.au dkim=pass dkdomain=codeconstruct.com.au dmarc=pass fromdomain=codeconstruct.com.au); spf=pass (google.com: domain of linux-kernel+bounces-80610-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80610-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codeconstruct.com.au 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 71D811F21B3E for ; Mon, 26 Feb 2024 06:55:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 675781BC58; Mon, 26 Feb 2024 06:55:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=codeconstruct.com.au header.i=@codeconstruct.com.au header.b="KgKbjAAs" Received: from codeconstruct.com.au (pi.codeconstruct.com.au [203.29.241.158]) (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 8366C18E2A; Mon, 26 Feb 2024 06:55:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.29.241.158 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708930511; cv=none; b=Ly3Z7kmF1ICP4blhT6pV/qdTwb0lSfCRt+nF9Ib/bxghoyIGU47w74qDTONoPa9abk9BiOvjm29Ctyg6q4+QUFFr1AlfcC2uGQmnBoTB+qsJgFUpHcHLRfxdbl1ubHU9Y8HEja4h6ZCL1vHkS7GJHcL2PPwR7hf6Ij5bLC/xxsc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708930511; c=relaxed/simple; bh=Nocjsuu2e4y0ixS2YwnhoYpIcRVnui9vQ2vtGKIKaIc=; h=Message-ID:Subject:From:To:Date:In-Reply-To:References: Content-Type:MIME-Version; b=jupGZKeSnPc6bM47+b4iwNazRYFqXfmEJmKOGtTK0GmzyzBIdUqyE9ljRJjDNewP75g85dB8V+E8vzJ7+LfaDD1l5icvJzZqkIFzPH5FgV1iVX22vzuOk4SMAnxTncdZNVTzD+gGyngLn/2QkGrZVNC4FgPZfij/qpIxPHRpeGc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=codeconstruct.com.au; spf=pass smtp.mailfrom=codeconstruct.com.au; dkim=pass (2048-bit key) header.d=codeconstruct.com.au header.i=@codeconstruct.com.au header.b=KgKbjAAs; arc=none smtp.client-ip=203.29.241.158 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=codeconstruct.com.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=codeconstruct.com.au Received: from [192.168.68.112] (ppp118-210-168-240.adl-adc-lon-bras34.tpg.internode.on.net [118.210.168.240]) by mail.codeconstruct.com.au (Postfix) with ESMTPSA id B956D20179; Mon, 26 Feb 2024 14:55:04 +0800 (AWST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeconstruct.com.au; s=2022a; t=1708930507; bh=fM/+3i+uo0h9vj6JNAMzhCNj28si11s6PI7s/m/RuUY=; h=Subject:From:To:Date:In-Reply-To:References; b=KgKbjAAs+ka/ghyfQ9+7i5uuod5smNXfmAGyDfK07wVFz+gn6AHadyfkmyIUVXSjq t6+ThglVkkhai65wquLw0Dh3jNItCyaydHI+BBft//thg4/YGLxeyg5C05ICZxmXQA XWivXnQUcZDAqXuyzk/bP22+zj8+P+ngKPVGw3i0ZrIzkQnYVymN/9nlPWlei3owVX 14T/R9kfrLEqZDm3dKpCFKqpptPL37FhZSoaLIWRPVBPDClo0HeoD6nac8GVXl0vM2 jiMf6cQCtzQOZSPYhyhPHuz5L15gp0XjU1XcLyJjNJuYdUxEjq3/KetNDw+5qe060I LeDSIoxj/uI8Q== Message-ID: <572d53516dee6db5af7089090056185abb4e78c7.camel@codeconstruct.com.au> Subject: Re: [PATCH 1/1] ARM:dts:aspeed: Initial device tree for AMD Onyx Platform From: Andrew Jeffery To: Supreeth Venkatesh , joel@jms.id.au, andrew@aj.id.au, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, robh+dt@kernel.org Date: Mon, 26 Feb 2024 17:25:03 +1030 In-Reply-To: <20240110033543.799919-1-supreeth.venkatesh@amd.com> References: <20240110033543.799919-1-supreeth.venkatesh@amd.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4-2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Tue, 2024-01-09 at 21:35 -0600, Supreeth Venkatesh wrote: > This patch adds initial device tree and makefile updates for > AMD Onyx platform. >=20 > AMD Onyx platform is an AMD customer reference board with an Aspeed > ast2600 BMC manufactured by AMD. > It describes I2c devices, Fans, Kcs devices, Uarts, Mac, LEDs, etc. > present on AMD Onyx platform. >=20 > Signed-off-by: Supreeth Venkatesh > --- > arch/arm/boot/dts/aspeed/Makefile | 1 + > .../boot/dts/aspeed/aspeed-bmc-amd-onyx.dts | 98 +++++++++++++++++++ > 2 files changed, 99 insertions(+) > create mode 100644 arch/arm/boot/dts/aspeed/aspeed-bmc-amd-onyx.dts >=20 > diff --git a/arch/arm/boot/dts/aspeed/Makefile b/arch/arm/boot/dts/aspeed= /Makefile > index fb9cc95f1b60..2b27d377aae2 100644 > --- a/arch/arm/boot/dts/aspeed/Makefile > +++ b/arch/arm/boot/dts/aspeed/Makefile > @@ -5,6 +5,7 @@ dtb-$(CONFIG_ARCH_ASPEED) +=3D \ > aspeed-ast2600-evb.dtb \ > aspeed-bmc-amd-daytonax.dtb \ > aspeed-bmc-amd-ethanolx.dtb \ > + aspeed-bmc-amd-onyx.dtb \ > aspeed-bmc-ampere-mtjade.dtb \ > aspeed-bmc-ampere-mtmitchell.dtb \ > aspeed-bmc-arm-stardragon4800-rep2.dtb \ > diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-amd-onyx.dts b/arch/arm/= boot/dts/aspeed/aspeed-bmc-amd-onyx.dts > new file mode 100644 > index 000000000000..a7056cd29553 > --- /dev/null > +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-amd-onyx.dts > @@ -0,0 +1,98 @@ > +// SPDX-License-Identifier: GPL-2.0+ > +// Copyright (c) 2021 - 2024 AMD Inc. > +// Author: Supreeth Venkatesh > + > +/dts-v1/; > + > +#include "aspeed-g6.dtsi" > +#include > + > +/ { > + model =3D "AMD Onyx BMC"; > + compatible =3D "amd,onyx-bmc", "aspeed,ast2600"; > + > + aliases { > + serial0 =3D &uart1; > + serial4 =3D &uart5; > + }; > + > + chosen { > + stdout-path =3D &uart5; > + bootargs =3D "console=3DttyS4,115200 earlyprintk vmalloc= =3D512MB"; Why `vmalloc=3D512MB`? Can you add a comment explaining the need for that? That said, setting bootargs in the devicetree is generally discouraged. > + }; > + > + memory@80000000 { > + device_type =3D "memory"; > + reg =3D <0x80000000 0x80000000>; > + }; > + > +}; > + > +&mdio0 { > + status =3D "okay"; > + > + ethphy0: ethernet-phy@0 { > + compatible =3D "ethernet-phy-ieee802.3-c22"; > + reg =3D <0>; > + }; > +}; > + > +&mac3 { > + status =3D "okay"; > + phy-mode =3D "rgmii"; > + phy-handle =3D <ðphy0>; > + > + pinctrl-names =3D "default"; > + pinctrl-0 =3D <&pinctrl_rgmii4_default>; > +}; > + > + > + > +&fmc { > + status =3D "okay"; > + flash@0 { > + compatible =3D "jedec,spi-nor"; > + status =3D "okay"; > + #include "openbmc-flash-layout-128.dtsi" > + }; > +}; > + > +//Host Console > +&uart1 { > + status =3D "okay"; > +}; How are you managing the host console? Enabling UART1 for that on the BMC piques my interest :) Apologies for the delay in reviewing. Andrew