Thread (26 messages) 26 messages, 4 authors, 2016-02-11

Re: [PATCH V2 09/12] dtb: amd: Add KCS device tree node

From: Arnd Bergmann <arnd@arndb.de>
Date: 2016-02-09 16:01:40
Also in: linux-arm-kernel, lkml

On Tuesday 09 February 2016 09:47:55 Brijesh Singh wrote:
quoted
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.
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help