Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp82358pxb; Fri, 5 Mar 2021 15:11:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJw1whw05+x9Kq5sAPyQB4o9HsoIeHVw+EmrKPrfp01VNyZc/DimfuNPswwejxxowAoa0jdI X-Received: by 2002:a17:906:3b47:: with SMTP id h7mr4500378ejf.377.1614985908978; Fri, 05 Mar 2021 15:11:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614985908; cv=none; d=google.com; s=arc-20160816; b=InybCJsrb2eF+z34VDFFkmvnWB0SLxGFcXxqqk6YoVvt8Ag8tL4HMjXFrvZBSRJvGV D7AkKM1Lbfgkd8b7nAozQyJBS+bd+08ns7HBPUY8OaJK+JOFWh19BncyjgWbn1Hl7B5j MknzswWYDOumxtVj9C9yUgA8yrytV1K2NvR9JLc3vc+475267RBJacFgOI4iHrbMC79v mcMFM3VYKwEjXFsnHam0L8sgOpLy3tTF7OmOr61ESYZjJbflWUviM/DJR8d5ieHuFTr4 pnKw1Go+IIGStVR6aQFeKl3tbu1lYckJS9cL4v8z56x0wxPGgNr4uBtFrima6GWn2utX Xqeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=XrYODSIj7UXVI1uCbWVvuJ9MDvf1FusiVZYMMI3JkzE=; b=W37N6j6PXcRra9+vUzJxwzrT1B0ghZn58YNXX/8GH02kcVkV3g/hwbgz1cCognhgCv SlWDuSGv1T3+Jp1tINHZx6ESLr/CvwQ9acAqGMQMhztMmPRyqXSABMXhkX7p6ANmpPBd V8h9OQhTvPJNPLqetOUvJrD3rAfpM6pEtke8BpZMNmY+S1chu83wOWyoVR0a5Mlfpq4I 0L/PU/YAIalvLElzC4g51QFKyjs1tK1BareLrBBLfWkFmOvfm9PrkVqqbcQPMQgiEeKl ksgCQ46iaBbQ7wBIbdQr1RLlsAQ0164DdA1m83/tn7RlNA8L+Jy1rprOryu2XA5HYw9L a4NQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s17si2589616edx.88.2021.03.05.15.11.19; Fri, 05 Mar 2021 15:11:48 -0800 (PST) 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; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230093AbhCEXJv (ORCPT + 99 others); Fri, 5 Mar 2021 18:09:51 -0500 Received: from mail-oi1-f181.google.com ([209.85.167.181]:34410 "EHLO mail-oi1-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229992AbhCEXJn (ORCPT ); Fri, 5 Mar 2021 18:09:43 -0500 Received: by mail-oi1-f181.google.com with SMTP id x78so4360909oix.1; Fri, 05 Mar 2021 15:09:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=XrYODSIj7UXVI1uCbWVvuJ9MDvf1FusiVZYMMI3JkzE=; b=kQADzgzuKcDKX3ObVS78GFKs6D0iSkgpZX1kKyl1mdlGb6WFPXWp3I+G/u7/q5oG2p NubEgtoH9MQWkTUDinn+LZqfuI52PUnUgOzR5O7fI/awEwiSQ6i6VZK7ndSsxum/xWtv g4yNRw2iK/crQAmunk2UHtSYbqxw1zeFiyhtu3Pg9bqK7uzN61Kay4AtLxeNMo2GHHdh /DB6DeL0aM5niEH4zGSCcN29q/6+d+2ZBBkiAyN9QMBBgvJCrdVn+du4zmF77oB1mKEM 4QzzkJJdvyv/HQ+6YyV4GyBdVQOBfJUh9A7wbJNthtlfXUYEYtGk4SMi7N1iLfRe1CQt c5xA== X-Gm-Message-State: AOAM532FOqLr9/VPcHqupZYiLxhKMf4aj7BMU7g1rD93ZTU6fCW6cNG9 O/IJshhWvOBrJm35sMkgzg== X-Received: by 2002:aca:4587:: with SMTP id s129mr8889344oia.133.1614985782649; Fri, 05 Mar 2021 15:09:42 -0800 (PST) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id r13sm853187oot.41.2021.03.05.15.09.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Mar 2021 15:09:41 -0800 (PST) Received: (nullmailer pid 813032 invoked by uid 1000); Fri, 05 Mar 2021 23:09:40 -0000 Date: Fri, 5 Mar 2021 17:09:40 -0600 From: Rob Herring To: Andrew Jeffery Cc: openipmi-developer@lists.sourceforge.net, openbmc@lists.ozlabs.org, minyard@acm.org, joel@jms.id.au, lee.jones@linaro.org, avifishman70@gmail.com, tmaimon77@gmail.com, tali.perry1@gmail.com, venture@google.com, yuenn@google.com, benjaminfair@google.com, linus.walleij@linaro.org, chiawei_wang@aspeedtech.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-gpio@vger.kernel.org Subject: Re: [PATCH 17/19] dt-bindings: ipmi: Add optional SerIRQ property to ASPEED KCS devices Message-ID: <20210305230940.GA809870@robh.at.kernel.org> References: <20210219142523.3464540-1-andrew@aj.id.au> <20210219142523.3464540-18-andrew@aj.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210219142523.3464540-18-andrew@aj.id.au> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 20, 2021 at 12:55:21AM +1030, Andrew Jeffery wrote: > Allocating IO and IRQ resources to LPC devices is in-theory an operation > for the host, however ASPEED don't appear to expose this capability > outside the BMC (e.g. SuperIO). Instead, we are left with BMC-internal > registers for managing these resources, so introduce a devicetree > property for KCS devices to describe SerIRQ properties. > > Signed-off-by: Andrew Jeffery > --- > .../bindings/ipmi/aspeed,ast2400-kcs-bmc.yaml | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/Documentation/devicetree/bindings/ipmi/aspeed,ast2400-kcs-bmc.yaml b/Documentation/devicetree/bindings/ipmi/aspeed,ast2400-kcs-bmc.yaml > index 1c1cc4265948..808475a2c2ca 100644 > --- a/Documentation/devicetree/bindings/ipmi/aspeed,ast2400-kcs-bmc.yaml > +++ b/Documentation/devicetree/bindings/ipmi/aspeed,ast2400-kcs-bmc.yaml > @@ -47,6 +47,18 @@ properties: > channels the status address is derived from the data address, but the > status address may be optionally provided. > > + aspeed,lpc-interrupts: > + $ref: "/schemas/types.yaml#/definitions/uint32-matrix" > + minItems: 1 > + maxItems: 1 > + description: | > + A 2-cell property expressing the LPC SerIRQ number and the interrupt > + level/sense encoding (specified in the standard fashion). That would be uint32-array with 'maxItems: 2'. > + > + Note that the generated interrupt is issued from the BMC to the host, and > + thus the target interrupt controller is not captured by the BMC's > + devicetree. > + > kcs_chan: > deprecated: true > $ref: '/schemas/types.yaml#/definitions/uint32' > @@ -84,9 +96,11 @@ allOf: > > examples: > - | > + #include > kcs3: kcs@24 { > compatible = "aspeed,ast2600-kcs-bmc"; > reg = <0x24 0x1>, <0x30 0x1>, <0x3c 0x1>; > aspeed,lpc-io-reg = <0xca2>; > + aspeed,lpc-interrupts = <11 IRQ_TYPE_LEVEL_LOW>; > interrupts = <8>; > }; > -- > 2.27.0 >