Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4197260ybv; Mon, 10 Feb 2020 14:25:18 -0800 (PST) X-Google-Smtp-Source: APXvYqzo7/xHhTNfPdFshvLFLC2rCYGat2JJEwAR/li313bxn/ehNcb+0598icC5xP/fht3BYXWA X-Received: by 2002:aca:d4c1:: with SMTP id l184mr926008oig.172.1581373518245; Mon, 10 Feb 2020 14:25:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581373518; cv=none; d=google.com; s=arc-20160816; b=rZJgVLvD+gMHZOizpu+8OPFOQAchyo95lhYogQa+x09J1YjnnaAbmeCeASjBgrHq7Q 0Jh7vSFxUNgGfhlij6jcCfhIHDa9UZgjpMjcBOIojStd9ELBOtU/5p7XsMHaRZQ743Yc o1UhGckN3SkJgynbwknIkrDJlYdhAlCNh8460cnwwdccG4xoDvIssxofD/+m9hm0CYJN bDfJ8p7LPMMekaYvtVyKFp6f9bo6q80bq+f9/Y6KY3XmMOYattTR+xW5ewHCN3ifx8aT qHRFGrgBY7oWYLteFyTG1dum3YFBeF/qyPg3tfB/CtgwF+bQOwCBKM1m+hF6rozvBSwR PFMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=vtc2iHO5ssqdQWlZbYpNOYjs7NPN+OkfmGi7EwW4+Cw=; b=l0X4bXi/Mb1QES11OFzYaWktO5bquJHdc43/vhxZFezHswjWnhGFy958xmm2/vz/GO xcH/foomLLpylK1qhvFBQvEkJrMGSo2nd1YLBc90D8/m+hw2mHOtHI/uwKwFjvA/G/D3 tg1V4pnCH7EIwrsmpLAJWiwrCNQkLKPPfIh8RxZHloAF6+sKvLsGo0ohwHNGdjccGxAV 64ySOGRreiqnnrdGxNYsL2y8qMHbIcIUCDGz9f2CyuD79/0i+XzbCwLKNqQSgdLns5rz QjQvQe8XW7SR7Am+fFIx1Qy6/cvaXNLP+eJfPW75JWSdc55uIyH/26fWj811TTHQjFqO 5Cnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jms.id.au header.s=google header.b=FgTcvQWW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m5si699498oie.240.2020.02.10.14.25.05; Mon, 10 Feb 2020 14:25:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@jms.id.au header.s=google header.b=FgTcvQWW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727522AbgBJWXr (ORCPT + 99 others); Mon, 10 Feb 2020 17:23:47 -0500 Received: from mail-qk1-f193.google.com ([209.85.222.193]:40668 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727254AbgBJWXr (ORCPT ); Mon, 10 Feb 2020 17:23:47 -0500 Received: by mail-qk1-f193.google.com with SMTP id b7so8238641qkl.7; Mon, 10 Feb 2020 14:23:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jms.id.au; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vtc2iHO5ssqdQWlZbYpNOYjs7NPN+OkfmGi7EwW4+Cw=; b=FgTcvQWWhvbFryDssRGO6xJWs5roRRi7pj6F2lGuCKhoWUJC2n4I/mNnRGIzEc6x2M MCO3afKZAmymUbSJ2kjINRtbtbNYPLzRMEdJr84duHUQVo5bbZdX2AUMkzTP62MUYXOs JNgdEotYxbmqZrmJZZVFIxEo1beFo2EvE52vI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vtc2iHO5ssqdQWlZbYpNOYjs7NPN+OkfmGi7EwW4+Cw=; b=q6tgNJVeXgqLTnC2lHJD43SVtJ3h4tRJSXajgbwbOgLIka6RzrkxJCbUq26qBnaNlg tHLuxRawLcEwWXzVCRPfG+bScKuAhdMMX6FRPGBA1wiSp0vPyz2QcjNhJ4OrFmxP4chp OkgICTQ/vlv4g9eThCGauTHXBp87S8LWCgXNx4c3Nplh2Dec07lQzEGu8iDMWJkzLuzz gQO+IIdZshizPRgUs6NCmXXPIvBd9dLARPy5YtivjO/bfvY4Uo15wQf9K7yhXYantZxe 89z0tTgpBslUTt/4RvCWWIo+quIK3txOB5F7AG1OQirwy0VTiKbwQrqpYn+vJjIomuoK LsGg== X-Gm-Message-State: APjAAAUogSL+JOxsDB8H9LNLwA88UiCqp62FGKVoiSEbNKqEVuvpZREQ mxOeIuR3sG4feQAp9CFW22GLSGAcmoXRyD3RADQ= X-Received: by 2002:a37:c07:: with SMTP id 7mr107082qkm.414.1581373426189; Mon, 10 Feb 2020 14:23:46 -0800 (PST) MIME-Version: 1.0 References: <20200130214626.2863329-1-vijaykhemka@fb.com> In-Reply-To: <20200130214626.2863329-1-vijaykhemka@fb.com> From: Joel Stanley Date: Mon, 10 Feb 2020 22:23:34 +0000 Message-ID: Subject: Re: [PATCH v2] ARM: dts: aspeed: tiogapass: Add IPMB device To: Rob Herring Cc: Vijay Khemka , Mark Rutland , Andrew Jeffery , devicetree , Linux ARM , linux-aspeed , Linux Kernel Mailing List , Sai Dasari Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On Thu, 30 Jan 2020 at 21:46, Vijay Khemka wrote: > > Adding IPMB devices for facebook tiogapass platform. > > Signed-off-by: Vijay Khemka > --- > arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts > index fb7f034d5db2..1cb5b9bf468f 100644 > --- a/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts > +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts > @@ -5,6 +5,7 @@ > > #include "aspeed-g5.dtsi" > #include > +#include > > / { > model = "Facebook TiogaPass BMC"; > @@ -428,6 +429,12 @@ > &i2c4 { > status = "okay"; > // BMC Debug Header > + multi-master; > + ipmb0@10 { > + compatible = "ipmb-dev"; > + reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; This causes dtc to warn: ../arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts:521.11-525.4: Warning (i2c_bus_reg): /ahb/apb/bus@1e78a000/i2c-bus@380/ipmb0@10: I2C bus unit address format error, expected "40000010" ../arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts:523.3-30: Warning (i2c_bus_reg): /ahb/apb/bus@1e78a000/i2c-bus@380/ipmb0@10:reg: I2C address must be less than 10-bits, got "0x40000010" The bindings mention: Another flag is I2C_OWN_SLAVE_ADDRESS to mark addresses on which we listen to be devices ourselves. include/dt-bindings/i2c/i2c.h:#define I2C_OWN_SLAVE_ADDRESS (1 << 30) It appears dtc needs to be fixed to not warn when seeing this value in an i2c reg node? Cheers, Joel > + i2c-protocol; > + }; > }; > > &i2c5 { > @@ -509,6 +516,12 @@ > &i2c9 { > status = "okay"; > //USB Debug Connector > + multi-master; > + ipmb0@10 { > + compatible = "ipmb-dev"; > + reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; > + i2c-protocol; > + }; > }; > > &pwm_tacho { > -- > 2.17.1 >