Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1394937ybl; Tue, 3 Dec 2019 06:33:40 -0800 (PST) X-Google-Smtp-Source: APXvYqzcAQyJij0JpK07QRFoWSdFzC4CpSxmVBAAszgVb1wxFrigSXPuD53Ud3NPGezUgfwXoZSA X-Received: by 2002:aca:53c6:: with SMTP id h189mr3901239oib.11.1575383620790; Tue, 03 Dec 2019 06:33:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575383620; cv=none; d=google.com; s=arc-20160816; b=NT2DL4/5wc5jZT90E2TCh7Vf+/BvNVqZoynjD3+EPsJ4Q7ibrDXL3OomodHvCrh8us yJybSpB4DYnG4dKcpy4gOVXCR8YIFCn0v30cEos2E+0mzf/yMgWpEAlHuOA1Rc32B9cx ilnpPXrCFO3VdU0ESE/LtXQeVLyhQ80wv2cZXPZlk768/FeiYJ6uwpvYJaNZ6oGtMA0A eedbtZbxGcU/tfHHZyUBaJfdT6g1bz1mhfgJQAymUOLWgN6+KL8vzsL/dBl2DoCE+BjX Yg9wT8CQKtpXytubcwBvUXd7lO177dWlY4ViNaPtdycXM08c6/t9biMozGoxhkc6yLLb 1duA== 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=r/V+Zw+Wkdele1M32QRoHvABt0XYPtDwIi0dSI3baWw=; b=elJbEDgOtUJm2yh0SWIB6aZi04pxyeIJKTjZ5kl+1ZtLNKvAadNelbIQBMKMorSaY7 y7db9k8lSi0e8FB1wGroM5nGTMtnBUlLQOCoNG9uwfLUDX21PsmHzr9QHApysbllidhw eyJkopghrf8qYOoHu2F8rhZtQbolffJXSQafDFfzhBql5dW/ojpTCL9Rjz3a8XsoJ7ZH mHv2Zlz3mTAdRY/YAfW+Nf9kpMswaU/jmXsZCxwJYEIUKqBhVsoEM8cW2/+bktgmskFR 9/47xC2j0/6t8Nbms71WgqJ1QIghncmr/Kl43f6tO7/YTQtgKexB/D4nPoRj1/YrDkNi /I3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KZ3PkNns; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x7si1314155oia.165.2019.12.03.06.33.26; Tue, 03 Dec 2019 06:33:40 -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=@kernel.org header.s=default header.b=KZ3PkNns; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726395AbfLCOb3 (ORCPT + 99 others); Tue, 3 Dec 2019 09:31:29 -0500 Received: from mail.kernel.org ([198.145.29.99]:50604 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725848AbfLCOb2 (ORCPT ); Tue, 3 Dec 2019 09:31:28 -0500 Received: from mail-qv1-f44.google.com (mail-qv1-f44.google.com [209.85.219.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 488E220659; Tue, 3 Dec 2019 14:31:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575383487; bh=paDjy7hZsmQkcUp7jKSH70ftPLffSgdTsEFpUetgz24=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=KZ3PkNnslqc7BEkuj8s892JHiyp111mpjo13oyKF2LEIsAAcH/hc5JifebD94uck3 nvVaUSye1Jaz8ajRoUANeZarO5PaXCebynHCFsWg9UsJyvHq5vbTBbBh+fkKJlWy4n ygD9D5lhomlPo1jbX8Cgfpm0LyJHYR996Q4klzU0= Received: by mail-qv1-f44.google.com with SMTP id o18so1579749qvf.1; Tue, 03 Dec 2019 06:31:27 -0800 (PST) X-Gm-Message-State: APjAAAX6siZ28IpYyeoB3c/o2qRLnuo9Wg30ZnPj1yXqUYOrwEaagzCE U9MCCDpKb2WB+zZn94r4sH/h7CZZ61hN5lHs1A== X-Received: by 2002:a05:6214:11ac:: with SMTP id u12mr5420247qvv.85.1575383483847; Tue, 03 Dec 2019 06:31:23 -0800 (PST) MIME-Version: 1.0 References: <3da2492c244962c27b21aad87bfa6bf74f568f1d.1575376664.git-series.andrew@aj.id.au> In-Reply-To: <3da2492c244962c27b21aad87bfa6bf74f568f1d.1575376664.git-series.andrew@aj.id.au> From: Rob Herring Date: Tue, 3 Dec 2019 08:31:10 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/3] dt-bindings: ipmi: aspeed: Introduce a v2 binding for KCS To: Andrew Jeffery Cc: openipmi-developer@lists.sourceforge.net, Corey Minyard , Mark Rutland , Joel Stanley , Arnd Bergmann , Greg Kroah-Hartman , devicetree@vger.kernel.org, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-aspeed@lists.ozlabs.org, "linux-kernel@vger.kernel.org" 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 Tue, Dec 3, 2019 at 6:36 AM Andrew Jeffery wrote: > > The v2 binding utilises reg and renames some of the v1 properties. > > Signed-off-by: Andrew Jeffery > --- > Documentation/devicetree/bindings/ipmi/aspeed-kcs-bmc.txt | 20 +++++--- > 1 file changed, 14 insertions(+), 6 deletions(-) > > diff --git a/Documentation/devicetree/bindings/ipmi/aspeed-kcs-bmc.txt b/Documentation/devicetree/bindings/ipmi/aspeed-kcs-bmc.txt > index d98a9bf45d6c..76b180ebbde4 100644 > --- a/Documentation/devicetree/bindings/ipmi/aspeed-kcs-bmc.txt > +++ b/Documentation/devicetree/bindings/ipmi/aspeed-kcs-bmc.txt > @@ -1,9 +1,10 @@ > -* Aspeed KCS (Keyboard Controller Style) IPMI interface > +# Aspeed KCS (Keyboard Controller Style) IPMI interface > > The Aspeed SOCs (AST2400 and AST2500) are commonly used as BMCs > (Baseboard Management Controllers) and the KCS interface can be > used to perform in-band IPMI communication with their host. > > +## v1 > Required properties: > - compatible : should be one of > "aspeed,ast2400-kcs-bmc" > @@ -12,14 +13,21 @@ Required properties: > - kcs_chan : The LPC channel number in the controller > - kcs_addr : The host CPU IO map address > > +## v2 > +Required properties: > +- compatible : should be one of > + "aspeed,ast2400-kcs-bmc-v2" > + "aspeed,ast2500-kcs-bmc-v2" > +- reg : The address and size of the IDR, ODR and STR registers > +- interrupts : interrupt generated by the controller > +- slave-reg : The host CPU IO map address aspeed,slave-reg > > Example: > > - kcs3: kcs3@0 { > - compatible = "aspeed,ast2500-kcs-bmc"; > - reg = <0x0 0x80>; > + kcs3: kcs@24 { > + compatible = "aspeed,ast2500-kcs-bmc-v2"; > + reg = <0x24 0x1>, <0x30 0x1>, <0x3c 0x1>; What are the other registers in this address space? I'm not so sure this is an improvement if you end up with a bunch of nodes with single registers. > interrupts = <8>; > - kcs_chan = <3>; > - kcs_addr = <0xCA2>; > + slave-reg = <0xca2>; > status = "okay"; > }; > -- > git-series 0.9.1