Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp987021imu; Tue, 11 Dec 2018 10:41:57 -0800 (PST) X-Google-Smtp-Source: AFSGD/Ut5iVHGEES8UW8rU3TN2akNeHePbTOakX9CsS/CVANBOJDqVptN6tKeX+nMlmgkP82WCEs X-Received: by 2002:a17:902:8d8e:: with SMTP id v14mr16960206plo.133.1544553716950; Tue, 11 Dec 2018 10:41:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544553716; cv=none; d=google.com; s=arc-20160816; b=EhXgriRC+SF2goPpz+1Q0F40nQzvkPqcOj3XxdlWxqR4WZ4TGErGXWJmAWxeIp3oC/ 2mJ3gnmFQeJ5kCVk9D2yVcf8Nis2N/SWOp+J8b5jQqfkNZNyaLkQwjshZ2XVyicjJY7x 1qNaM69cfBAjYiWs4vzom6kAw8mQ64oYeSW/WIvdlAllwqLCSNOjLu8ucd7r3MaNLjyi HsFzn8+JzJn2m/9pl2eYNY8NCOPgjGW9OAuPo+DhUfTgy0v1BIO0ar+ypoL/btWcr4VW 0G4Hx3djYOGGC9WR0XZmrkR9xotiBPdJb5jpsYwAXRuZaiV6vIobNSb1CPrcg3MgTZBs ajtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=1q8cK9tjDYrPcP+bV/kSJtJVNed94vxQDubLtsFjWyA=; b=KYI2LUzVGOosRlyWkVrKxnLBtUkroI/rtYksOp6Me2w+6wAsPpj+ojYaLOhIIfQ4PO 7/+XFMzX2/QRhcMz7tJy4vVeXBlC4blTQpeMxpTwb9s03Hcfv1oiLHPV9shZ9gaMB4ka IiOJ8TBOkPvqx5FkRisQKoFbpqMNx+MmpJq5UhWK5IbvlaNnJesqiO35cfbt0B8ALNPe +k8tXFR9i9Yk2NicNGIEZy7ZlGFxpv26Tr+6qT3K7CxSH5/lh0CFvkG/R7DcuTJO4Ybl jviaMimc3vtgyTWRg6qhxjJ2Brz74uMXxMIR3jYGrJz32eC+uAoMaAoP2YiSM+m65LEg A2pw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a28si12746880pgl.530.2018.12.11.10.41.41; Tue, 11 Dec 2018 10:41:56 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726578AbeLKSjm (ORCPT + 99 others); Tue, 11 Dec 2018 13:39:42 -0500 Received: from mga09.intel.com ([134.134.136.24]:51498 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726252AbeLKSjl (ORCPT ); Tue, 11 Dec 2018 13:39:41 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Dec 2018 10:39:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,343,1539673200"; d="scan'208";a="258646831" Received: from yoojae-mobl1.amr.corp.intel.com (HELO [10.7.153.143]) ([10.7.153.143]) by orsmga004.jf.intel.com with ESMTP; 11 Dec 2018 10:39:41 -0800 Subject: Re: [PATCH 2/2] ARM: dts: aspeed: Add KCS support for LPC BMC To: Vijay Khemka , Rob Herring , Mark Rutland , Joel Stanley , Andrew Jeffery , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Cc: "openbmc @ lists . ozlabs . org" References: <20181210200753.3018124-1-vijaykhemka@fb.com> <20181210200753.3018124-3-vijaykhemka@fb.com> From: Jae Hyun Yoo Message-ID: <584ddf6f-2e0c-5c1c-df06-bdd37ecd2489@linux.intel.com> Date: Tue, 11 Dec 2018 10:39:40 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20181210200753.3018124-3-vijaykhemka@fb.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Vijay, On 12/10/2018 12:07 PM, Vijay Khemka wrote: > Added kcs device support for lpc BMC. > > Signed-off-by: Vijay Khemka > --- > arch/arm/boot/dts/aspeed-g5.dtsi | 29 ++++++++++++++++++++++++++++- > 1 file changed, 28 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/boot/dts/aspeed-g5.dtsi b/arch/arm/boot/dts/aspeed-g5.dtsi > index d107459fc0f8..1bd48655bacb 100644 > --- a/arch/arm/boot/dts/aspeed-g5.dtsi > +++ b/arch/arm/boot/dts/aspeed-g5.dtsi > @@ -330,8 +330,35 @@ > ranges = <0x0 0x1e789000 0x1000>; > > lpc_bmc: lpc-bmc@0 { > - compatible = "aspeed,ast2500-lpc-bmc"; > + compatible = "aspeed,ast2500-lpc-bmc, "simple-mfd", "syscon""; > reg = <0x0 0x80>; > + reg-io-width = <4>; > + > + #address-cells = <1>; > + #size-cells = <1>; > + ranges = <0x0 0x0 0x80>; > + > + kcs1: kcs1@0 { > + compatible = "aspeed,ast2500-kcs-bmc"; > + reg = <0x0 0x80>; This reg property isn't needed at here because kcs_bmc_aspeed module reads regmap from the parent node. Please check below code in the driver code. priv->map = syscon_node_to_regmap(dev->parent->of_node); > + interrupts = <8>; > + kcs_chan = <1>; > + status = "disabled"; > + }; > + kcs2: kcs2@0 { > + compatible = "aspeed,ast2500-kcs-bmc"; > + reg = <0x0 0x80>; ditto. > + interrupts = <8>; > + kcs_chan = <2>; > + status = "disabled"; > + }; > + kcs3: kcs3@0 { > + compatible = "aspeed,ast2500-kcs-bmc"; > + reg = <0x0 0x80>; ditto. > + interrupts = <8>; > + kcs_chan = <3>; > + status = "disabled"; > + }; > }; > > lpc_host: lpc-host@80 { > You might need to add kcs4 as a sub-node under lpc_host like below: kcs4: kcs4@0 { compatible = "aspeed,ast2500-kcs-bmc"; interrupts = <8>; kcs_chan = <4>; status = "disabled"; }; This would be uses as an SMM channel. -Jae