Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp75682pxf; Wed, 31 Mar 2021 17:11:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyq4FVjzQbGxQwaOnYZtvtRp8OiGDxxx+x3i+nzoPbvA981og7R/psDQiM2blDQcJskAJk6 X-Received: by 2002:aa7:d316:: with SMTP id p22mr6685081edq.107.1617235912980; Wed, 31 Mar 2021 17:11:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617235912; cv=none; d=google.com; s=arc-20160816; b=FRy3+Rwkr/AEZROE7qE9Nb/8IEXD31kjjlNDrV6RCv/ENTccd12ConI8jHu8CqOL1g AdZWYjwRbJ/HdViXq/CCQhRCc3Fik8HfMNcXBCilB5/odm90cpgF73+Sy62ozFjr1q9D mHly154PbB+a72LNl3srYxvm+nhg+p+kRFG1TR+WQ+QYVzervLYHRufBbxMoV3YSfzJs bHDNaWb1OQLLGkc02jT16v26Uegjrs7SSBME2bjFjmaBsg0kP+aCCk3v7Cc1jS5acAm0 eZI2MFFU5gxiHejSU/m9Ndv+mW12LpMf4dqI6WjYbnZAwGwj558rcb/o5wfFH9VvEyC2 qCtg== 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=GvzBUH2Hs9Nfe6Vfb9E7l/3eeG+oJ65EclkE5CrsMAI=; b=qKC/nBZga33GSbIUNg7O4Ug3D4RpQaMAVlQoTLH3HUc7XDcG/MwMfLPhCMNglnkzKW Ie1pQgcWSbiBvyd2p+u9cq5/kVuN5Q4D4ubejjPRQGN+HTvhsFa5RMAJUPQ/jmQg3SmJ +C3MR22oBCojheIpi6RZOTGjTKFWwWqOaHuzidfLZzMls7waz7HMDpE7ACvsvgQydfJZ 17KI1fRgP36y9CGJWI9KCE96kqD1D8jGsNB4lUnVcuAXoJTj7dxGmGkK22lfBvO9n5bz sD3/9cZFugnX8SCjY2OB/ifzxW/DtKwd8ZNpooBAOUjnVV5o/uih5zRaka84JTUN64oT zNDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm2 header.b=jdODCwzi; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=NSNeQim9; 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 la25si2990653ejb.703.2021.03.31.17.11.28; Wed, 31 Mar 2021 17:11:52 -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=jdODCwzi; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=NSNeQim9; 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 S232492AbhDAAF3 (ORCPT + 99 others); Wed, 31 Mar 2021 20:05:29 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:52823 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbhDAAFO (ORCPT ); Wed, 31 Mar 2021 20:05:14 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 6D8E65C0109; Wed, 31 Mar 2021 20:05:13 -0400 (EDT) Received: from imap2 ([10.202.2.52]) by compute3.internal (MEProxy); Wed, 31 Mar 2021 20:05:13 -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=GvzBUH2Hs9Nfe6Vfb9E7l/3eeG+oJ65 EclkE5CrsMAI=; b=jdODCwziEiPpWXZn2ZniTKsQoi++gVH9to/upnq06G+Ev73 1qQmSGgMQW1E7Py65eQ/2UIVCwBaWcRP6ElgXny+PXnqC5JKkPkri/QMCGIvAlCI S+L1P6AuB37TpoorNDnMozxDvxpuS4CPW/yWdXV7JDlxXqGm9WbWbP7KaBoOJR6W tIDbClRkZHR7pB5DdL/qD++gVMRMir2ycI7UHVLEH/JKwE3q3V+TYzfRpAVvPDVJ fUpVlk5+1nlVaJ7Q979/HMNT0XJBxporQU1UXhCavC23jKn0JF0YB6D4jx3MIxdZ VedpHwpNdVEZtJZw/8cjvxQdRxFYdT3FT/xLp4w== 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=GvzBUH 2Hs9Nfe6Vfb9E7l/3eeG+oJ65EclkE5CrsMAI=; b=NSNeQim9CSsB9Fdwt7/RQ/ ax+w3DGMdSsWYgNPal98p5OMxNQgQB6074bnzgzcUe1n0OHkDlQiXrSntjDUKGFM 3+FAcLPVG2WZbjrp++LWr64BcQe5AdXiJYLgSBRQAYgMrGHwgeXpV7qcu2os4i/I GI7nkrzZoeKd49q6vMdhb4V2LXePSsXshNzE1xFBQlQvn1+uPExagj17uzNWJeLS 8vEVFCm25JoeLWWtxqIyrGBdsGJfrFsLfFR6rFqk3UwDpGrcqHusoAD5iGfezIu8 D/Xo4ZznuTX6B551xnyNChrkqdWK/bh/2qBIoAv4YwnY8uJiGCSVpmvK3KjZyv9g == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudeifedgvdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdetnhgu rhgvficulfgvfhhfvghrhidfuceorghnughrvgifsegrjhdrihgurdgruheqnecuggftrf grthhtvghrnhepudfftddvveekfffgteffffeuveegjeelgefhffejtdehtdfhlefgkeef hfefkeeinecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvfiesrghjrdhiugdrrghu X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 42E44A00073; Wed, 31 Mar 2021 20:05:11 -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: <815c666b-d657-4d0a-bea4-d2e182d9e5d1@www.fastmail.com> In-Reply-To: <20210330002338.335-4-zev@bewilderbeest.net> References: <20210330002338.335-1-zev@bewilderbeest.net> <20210330002338.335-4-zev@bewilderbeest.net> Date: Thu, 01 Apr 2021 10:34:51 +1030 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, "Rob Herring" , devicetree@vger.kernel.org Subject: Re: [PATCH 3/3] ARM: dts: aspeed: add ASRock E3C246D4I BMC Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 30 Mar 2021, at 10:53, 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 > --- > .../boot/dts/aspeed-bmc-asrock-e3c246d4i.dts | 188 ++++++++++++++++++ > 1 file changed, 188 insertions(+) > create mode 100644 arch/arm/boot/dts/aspeed-bmc-asrock-e3c246d4i.dts > > 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..27b34c3cf67a > --- /dev/null > +++ b/arch/arm/boot/dts/aspeed-bmc-asrock-e3c246d4i.dts > @@ -0,0 +1,188 @@ > +// SPDX-License-Identifier: GPL-2.0+ > +/dts-v1/; > + > +#include "aspeed-g5.dtsi" > +#include > +#include > + > +/{ > + model = "ASRock E3C246D4I BMC"; > + compatible = "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>; > + }; > +}; You're hooking up the ADC lines to the iio-hwmon bridge... > + > +&adc { > + status = "okay"; > +}; But you haven't requested the ADC lines from pinmux here. It will *happen* to work as expected because ADC is the default mux state for the pins, but by not requesting the lines you're leaving the pins available for a conflicting request, which can be annoying to debug. > + > +&kcs3 { > + status = "okay"; > + aspeed,lpc-io-reg = <0xca2>; > +}; Given you need KCS support, do you mind testing my KCS series? https://lore.kernel.org/linux-arm-kernel/20210319062752.145730-1-andrew@aj.id.au/ The cover letter got detached, and is here: https://lore.kernel.org/linux-arm-kernel/20210319061952.145040-1-andrew@aj.id.au/ Andrew