[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <15181064.RzzsN4CWec@wuerfel>
Date: Tue, 09 Feb 2016 17:00:48 +0100
From: Arnd Bergmann <arnd@...db.de>
To: linux-arm-kernel@...ts.infradead.org
Cc: Brijesh Singh <brijesh.singh@....com>,
Suravee Suthikulpanit <Suravee.Suthikulpanit@....com>,
mark.rutland@....com, devicetree@...r.kernel.org, arm@...nel.org,
pawel.moll@....com, ijc+devicetree@...lion.org.uk,
linux-kernel@...r.kernel.org, robh+dt@...nel.org,
leo.duran@....com, galak@...eaurora.org, thomas.lendacky@....com,
brijeshkumar.singh@....com
Subject: Re: [PATCH V2 09/12] dtb: amd: Add KCS device tree node
On Tuesday 09 February 2016 09:47:55 Brijesh Singh wrote:
> >
> > I see we don't have a binding file for this, can you add one please?
> >
> There is binding file ipmi.txt [1]. Am I missing something ?
>
> [1] http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/ipmi.txt
Sorry, my mistake: I was looking for "ipmi_kcs", which is not in there.
> >
> > Why the strange name for the interrupt?
> >
>
> Now I don't remember the doc but sometime back while implementing BMC on Seattle I saw that interrupt was labeled as "ipmi_kcs"
> hence used the same name in DT. But if you want to use different name then let me know the string and will update it.
>
> Theoretically IPMI system interface supports the following interface and any of these interfaces can be used by
> A57 to communicate with BMC:
>
> * Keyboard controller style (KCS)
> * System Management Interface (SMIC)
> * Block transfer (BT)
> * SMBus system interface (SSIF)
>
> AMD Seattle platform supports "KCS".
>
The important part for interrupt/reg/... names is that you must use exactly the
names that are listed in the binding. If there is no name in there, it's better
not to add the name property.
The other point is that "ipmi_kcs" is a name that is picked really badly, as it
uses a '_' character while DT properties by convention use '-' between names,
and the name of the IRQ is the same as the device itself, which is really
not a useful way to disambiguate multiple interrupts in the same device, if
someone ever adds another irq line.
Arnd
Powered by blists - more mailing lists