Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1436622pxb; Sun, 11 Apr 2021 20:05:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjhtnX3mO90EKrqnCaFYjJVHFYAyshzaswqy5bH7y6xBZun0p72lXBSFZod9S8H/2xcuoO X-Received: by 2002:a17:906:7806:: with SMTP id u6mr24003312ejm.130.1618196754530; Sun, 11 Apr 2021 20:05:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618196754; cv=none; d=google.com; s=arc-20160816; b=TQLymRCNaRLGcI9uIHpydchK+EdPXMp9IHAHGG1l3+RZNLAiV2SaVY07qkCqEqXuKk 5A9pe/VCUBdyvbsCNfAneTZiDcD5hMBqqxXt9C5bCSg2pVRsIsXqqnRCiTick33a1d1S oLxW9wdJ3jVJW10mNvNTu2xc+giYi3Q9TXe+uEUdJI8gNPvw7NBo002r0jcsCnX5Amqj 2Y29BqRtTuBK+0eBd/qQu6uusJZJyBznl7YCKvIjAUh1jHfjgFMBR6JEXzRjSP2w/pn4 qTlLzhcP0lACRPT5xW+9+CgnLMCQwXkH2zbFFpxXEG2T+XPdSualC6dBq0NJ4nNEbM4A ZG/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:dkim-signature:dkim-signature; bh=M9P4Fh68L8b7pD9soMp1oQ/p2ZkqGaQLEL9HTQWPbC4=; b=LttXkamqiGwuBCy3Voav5VMpN0LpoK23dHo/xV+dS3B1FMnzltVi5ZRncOtAGqadh8 ahuZJ/59OBEbqqS/5myVlbQ36JwWlOohtvvndRtV8B44DjDfi4aDtJWRRx/k9Sj8kY/s p/Nic6fp7W3HSiXf//Epcfv8XiDlJ9BfevPbW7WMoRHJb3AIEG0XLEF+kpymiuuT/IMH PQc0sJ+7NvyK/GRu9k7DxGd07oQa9lV4sh2xhkvmJnKm3op7TE1h6RO/pP46CsZummd1 YLAV3k+oT9p3JH83Rh/fKI6smnPKnYDODPH7DHmvZvEdAnkGqhJBNK8dfLgmdjwg+oDI fEDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm2 header.b=teeWEse5; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=YfZipf6l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id du4si4283270ejc.522.2021.04.11.20.05.31; Sun, 11 Apr 2021 20:05:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm2 header.b=teeWEse5; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=YfZipf6l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236593AbhDLCRF (ORCPT + 99 others); Sun, 11 Apr 2021 22:17:05 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:50813 "EHLO wout2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236589AbhDLCRF (ORCPT ); Sun, 11 Apr 2021 22:17:05 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id D92F71588; Sun, 11 Apr 2021 22:16:46 -0400 (EDT) Received: from imap2 ([10.202.2.52]) by compute3.internal (MEProxy); Sun, 11 Apr 2021 22:16:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm2; bh=M9P4Fh68L8b7pD9soMp1oQ/p2ZkqGaQ LEL9HTQWPbC4=; b=teeWEse5VYKyhg2a96T0CU1saAUquwJfInB1LwzFiuhO5T+ l2ECVgR5ZrEjYpv1l/F+mBKF5eY9aNH5/ZFVAWjWZ8mYXmPRaiX5kaxvADDLBJW7 U+E01xQXOpgYLZs54Hh00lP7EL6eXjnulVf5cGEAykDD1E5+PwFOC1g7DEHl0t1o NhiR9zBl40fBi9HjQhPLRwpgxJvtwC1xWnIBZ9X83EXHImuMzJ22wIc1jfm7Z3h3 XXDHLB7/0UqN6rsNXfV2P3h4QZiv4rLsW/8C3q3pyaTrVqBZrEwT6zI4LQMS3PDz GgzfeB9rkO4jFOHmDPrXrKO4+7HI0EZtWuw1ysA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=M9P4Fh 68L8b7pD9soMp1oQ/p2ZkqGaQLEL9HTQWPbC4=; b=YfZipf6lIKLBhkNVhX0wP+ XJXuEmPXpgAvJ9jQmZ/7iNF2/t4htnEuZl+XA6NUXjWgoa2/TvJki5kazcNnEbNx fZoDLotGuaYJ+sHefOhk3fEpFHMV74n/tu/zm1TyntxZ2rFfTzLDkRKeRKCqUhze BMw7XckTtIfLn2f5HCcOD0HOES3TWVL0Jq1Xvhd+KOWPnHRX/uT6NcdyQputwrxV wPV2S/b4tikV4JNSKPtLa/yp8RuEBGuRjKZFSpWuX3jfDhbBWwwY4e7aH1hc5LXi 1k0l7NnGSDdT+/+9/ZdyJaHj3GQGIWWjBnrmCiIOoz4tRQMti7gXUPXVcxASeJDQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudekiedgheegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdetnhgu rhgvficulfgvfhhfvghrhidfuceorghnughrvgifsegrjhdrihgurdgruheqnecuggftrf grthhtvghrnhephefhfeekgfekudevheffheeihedujeefjeevjeefudfgfeeutdeuvdeh hfevueffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eprghnughrvgifsegrjhdrihgurdgruh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 4AD64A00079; Sun, 11 Apr 2021 22:16:44 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-273-g8500d2492d-fm-20210323.002-g8500d249 Mime-Version: 1.0 Message-Id: <84202973-1a94-4630-beeb-f33d044a0364@www.fastmail.com> In-Reply-To: <20210401044232.9637-1-zev@bewilderbeest.net> References: <20210401044232.9637-1-zev@bewilderbeest.net> Date: Mon, 12 Apr 2021 11:46:24 +0930 From: "Andrew Jeffery" To: "Zev Weiss" , "Joel Stanley" Cc: openbmc@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, "Arnd Bergmann" , "Olof Johansson" , "Rob Herring" , devicetree@vger.kernel.org Subject: Re: [PATCH v3] ARM: dts: aspeed: add ASRock E3C246D4I BMC Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 1 Apr 2021, at 15:12, Zev Weiss wrote: > This is a relatively low-cost AST2500-based Xeon E-2100/E-2200 series > mini-ITX board that we hope can provide a decent platform for OpenBMC > development. > > This initial device-tree provides the necessary configuration for > basic BMC functionality such as host power control, serial console and > KVM support, and POST code snooping. > > Signed-off-by: Zev Weiss > Reviewed-by: Joel Stanley > --- > > Changes since v2: > - un-bungled filename in dtb-$(CONFIG_ARCH_ASPEED) > Changes since v1: > - added entry to dtb-$(CONFIG_ARCH_ASPEED) > - added board to compatible > - added pinctrl properties to adc > - split out of mostly-unrelated patch series > > arch/arm/boot/dts/Makefile | 1 + > .../boot/dts/aspeed-bmc-asrock-e3c246d4i.dts | 202 ++++++++++++++++++ > 2 files changed, 203 insertions(+) > create mode 100644 arch/arm/boot/dts/aspeed-bmc-asrock-e3c246d4i.dts > > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > index 8e5d4ab4e75e..c22151b50ddc 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -1406,6 +1406,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ > aspeed-bmc-ampere-mtjade.dtb \ > aspeed-bmc-arm-centriq2400-rep.dtb \ > aspeed-bmc-arm-stardragon4800-rep2.dtb \ > + aspeed-bmc-asrock-e3c246d4i.dtb \ > aspeed-bmc-bytedance-g220a.dtb \ > aspeed-bmc-facebook-cmm.dtb \ > aspeed-bmc-facebook-galaxy100.dtb \ > diff --git a/arch/arm/boot/dts/aspeed-bmc-asrock-e3c246d4i.dts > b/arch/arm/boot/dts/aspeed-bmc-asrock-e3c246d4i.dts > new file mode 100644 > index 000000000000..dcab6e78dfa4 > --- /dev/null > +++ b/arch/arm/boot/dts/aspeed-bmc-asrock-e3c246d4i.dts > @@ -0,0 +1,202 @@ > +// SPDX-License-Identifier: GPL-2.0+ > +/dts-v1/; > + > +#include "aspeed-g5.dtsi" > +#include > +#include > + > +/{ > + model = "ASRock E3C246D4I BMC"; > + compatible = "asrock,e3c246d4i-bmc", "aspeed,ast2500"; > + > + aliases { > + serial4 = &uart5; > + }; > + > + chosen { > + stdout-path = &uart5; > + bootargs = "console=tty0 console=ttyS4,115200 earlyprintk"; > + }; > + > + memory@80000000 { > + reg = <0x80000000 0x20000000>; > + }; > + > + leds { > + compatible = "gpio-leds"; > + > + heartbeat { > + /* BMC_HB_LED_N */ > + gpios = <&gpio ASPEED_GPIO(H, 6) GPIO_ACTIVE_LOW>; > + linux,default-trigger = "timer"; > + }; > + > + system-fault { > + /* SYSTEM_FAULT_LED_N */ > + gpios = <&gpio ASPEED_GPIO(Z, 2) GPIO_ACTIVE_LOW>; > + panic-indicator; > + }; > + }; > + > + gpio-keys { > + compatible = "gpio-keys"; > + > + uid-button { > + label = "uid-button"; > + gpios = <&gpio ASPEED_GPIO(F, 1) GPIO_ACTIVE_LOW>; > + linux,code = ; > + }; > + }; > + > + iio-hwmon { > + compatible = "iio-hwmon"; > + io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>, <&adc 4>, > + <&adc 5>, <&adc 6>, <&adc 7>, <&adc 8>, <&adc 9>, > + <&adc 10>, <&adc 11>, <&adc 12>; > + }; > +}; > + > +&fmc { > + status = "okay"; > + flash@0 { > + status = "okay"; > + m25p,fast-read; > + label = "bmc"; > + spi-max-frequency = <100000000>; /* 100 MHz */ > +#include "openbmc-flash-layout.dtsi" > + }; > +}; > + > +&uart5 { > + status = "okay"; > +}; > + > +&vuart { > + status = "okay"; > + aspeed,sirq-active-high; This should probably go away, but otherwise, Reviewed-by: Andrew Jeffery