Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp290615imu; Wed, 12 Dec 2018 17:05:25 -0800 (PST) X-Google-Smtp-Source: AFSGD/X3JZt8j+VGW6ZJJDtlTDNMpD46AxOioK/V4xM4lFJlouEAQfWTbXkATvIe5kMAjnYkIByf X-Received: by 2002:a62:19d5:: with SMTP id 204mr22224945pfz.33.1544663125802; Wed, 12 Dec 2018 17:05:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544663125; cv=none; d=google.com; s=arc-20160816; b=RLCesxK05q4C2pWYwMYVmXYGfwRD1iV3RnxX2/fDczd9M9/qJi/Pu5LGYl1uf1g8ol OaH2O5uZKU/nK7Yx9g0hKSAUmQ5AvhIOphvv8gA94ZtbwVcz2p68AURwNnnFhzOoVf9D 3TqX/74aoOSB4VmvJBE7kbMaYmP2BQpPwJdkKbvuEsL6PJHpZeip4ojXkgt9IGz3hyWu WnEg2GON0/9KUhbSVY8OiB9IvKcb2zJ49A87XRtWbvn9zHfr6LBKxAvDFxlmkooy3+gt +sdTVB3Oqzwu3dNa31P2UsX8LBDD34rAz+RcU9OoSDPC9wFR17fpb8Mi7ttyzx2y8wN3 +52A== 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=GQnSjrIxTixXwLTStkoYLZJT914baaGl9zND4iaAbc0=; b=LLKqduFUh2+7FrOsEZCfMuELF2lss2ykA4g8nTq1vTBEmKFtsG2XUVpgolqJNQQl2C I2WQGz5xF6MbQnp70W7QXst7f/1G23icnQp5Z1BK9f+OxX5CSZiHORnLtmt2J+WACHlj 5jB5jwyN6Z5GPur6xoh0QnA7JeEhvgjmLtZjh1zOQkbxVUwjiCDFaFHo3tp/YUoom+fN VMLNFhlRFsRCQeUOYyg9AVUTc8C34aoslkDUf48upbwQhpJ1s4xPoj5ODX/zD7AsQB7N 1ym2iVWU02VWSP1ZXYGhc8z/tT4yiHKCDmYvfDo6bFJ0dOXqp3D3sIAkzeW96Qz8URQn AR9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jms.id.au header.s=google header.b=b5689v4l; 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 f13si292360plm.393.2018.12.12.17.04.51; Wed, 12 Dec 2018 17:05:25 -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=b5689v4l; 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 S1726418AbeLMBD5 (ORCPT + 99 others); Wed, 12 Dec 2018 20:03:57 -0500 Received: from mail-qk1-f195.google.com ([209.85.222.195]:44451 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726344AbeLMBD5 (ORCPT ); Wed, 12 Dec 2018 20:03:57 -0500 Received: by mail-qk1-f195.google.com with SMTP id n12so189527qkh.11; Wed, 12 Dec 2018 17:03:56 -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=GQnSjrIxTixXwLTStkoYLZJT914baaGl9zND4iaAbc0=; b=b5689v4l7oJV3KVYE9at/KddQJFus/+9BLl2yZfFfmtabSB07o3GKXcpb46LVH5bGG xd5HphM88IhhlKgqkWmVMKTnAN9R3NUCdomcxHi4ODvgxmp4XAjt2rPGBI4+sOSGoCrq CeLmVXCNJHB2LPoLLtbXfLboNlLfWi5dP8yy8= 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=GQnSjrIxTixXwLTStkoYLZJT914baaGl9zND4iaAbc0=; b=qdwagqzUelEo2zHrxUaceqDsALnZRvxPvU8/9eWVKIHSs3+V8Su3eFMDCSYkZptM+0 SEQ4M64MFwl3fjwWTrNDaVMrPKsK7Db0eUQgiFJhAMhW3dsh/gj19fKABGqM7TnQVgUA 1NfkOKLVdlHiTTrWt7KFm6S/dyzwhtZh3MpjcMk1bMIG78hv4rWfDQ4fkxxizZPFXWBb rWmWU3OmQ4yb3dCQPOOcL+O7gzHYqqId3sSAl/8r73fFPfjLldlPVaXUfYyt9K8/ESbd 1hFGXMnaBt+JR5AnA6YgVpxLUT9D8HqfX2Hywc6aRlkzmeRvZayeKnqhQQeEGdVWhbCB bXzg== X-Gm-Message-State: AA+aEWZ9oKqZTAmrTFuurhUiAZczNDEuDkbel3RlqAhR3NUUnCy/1hKH Nl+Ep/sHDAgBP6BA0046i5z5Xd2+GQbIUuR/loAjYFxUN8U= X-Received: by 2002:a37:a391:: with SMTP id m139mr185981qke.11.1544663035966; Wed, 12 Dec 2018 17:03:55 -0800 (PST) MIME-Version: 1.0 References: <20181212210352.1717617-1-vijaykhemka@fb.com> In-Reply-To: <20181212210352.1717617-1-vijaykhemka@fb.com> From: Joel Stanley Date: Thu, 13 Dec 2018 11:33:44 +1030 Message-ID: Subject: Re: [PATCH v4 1/2] ARM: dts: aspeed: Add KCS & lpc ctrl for Facebook To: vijaykhemka@fb.com, Andrew Jeffery Cc: Rob Herring , Mark Rutland , devicetree , Linux ARM , linux-aspeed@lists.ozlabs.org, Linux Kernel Mailing List , OpenBMC Maillist 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 On Thu, 13 Dec 2018 at 07:34, Vijay Khemka wrote: > > Added kcs device and lpc ctrl device to enable LPC clock in Facebook > Tiogapass device tree. As we're going to re-spin, it's a good idea to have the KCS and LPC changes in separate patches. I will take the KCS one straight away, but the LPC one might need more work (see my comments below). > > Signed-off-by: Vijay Khemka > --- > .../dts/aspeed-bmc-facebook-tiogapass.dts | 30 +++++++++++++++++++ > 1 file changed, 30 insertions(+) > > diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts > index d9d7f208788a..9544fa2c1822 100644 > --- a/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts > +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts > @@ -21,6 +21,18 @@ > memory@80000000 { > reg = <0x80000000 0x20000000>; > }; > + > + reserved-memory { > + #address-cells = <1>; > + #size-cells = <1>; > + ranges; > + > + flash_memory: region@98000000 { > + no-map; > + reg = <0x98000000 0x04000000>; /* 64M */ > + }; Are you using this to expose some RAM over LPC? If not, we don't want this here. It is a flaw in the design of the driver that the reserved memory region is required. We should change the driver to make it optional. As a workaround, we could add this patch to the tiogapass device tree but make it smaller so you're not losing 64MB of RAM. > + }; > + > iio-hwmon { > compatible = "iio-hwmon"; > oemname0 = "MB_P3V3"; > @@ -62,6 +74,12 @@ > }; > }; > > +&lpc_ctrl { > + status = "okay"; > + memory-region = <&flash_memory>; > + flash = <&spi1>; > +}; > + > &uart1 { > // Host Console > status = "okay"; > @@ -75,6 +93,18 @@ > status = "okay"; > }; > > +&kcs2 { > + // BMC KCS channel 2 > + status = "okay"; > + kcs_addr = <0xca8>; > +}; > + > +&kcs3 { > + // BMC KCS channel 3 > + status = "okay"; > + kcs_addr = <0xca2>; > +}; > + > &mac0 { > status = "okay"; > > -- > 2.17.1 >