Skip to content

Commit a7fd43d

Browse files
amboarcminyard
authored andcommitted
dt-bindings: ipmi: Add optional SerIRQ property to ASPEED KCS devices
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 <[email protected]> Reviewed-by: Rob Herring <[email protected]> Message-Id: <[email protected]> Signed-off-by: Corey Minyard <[email protected]>
1 parent e880275 commit a7fd43d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Documentation/devicetree/bindings/ipmi/aspeed,ast2400-kcs-bmc.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,18 @@ properties:
4949
channels the status address is derived from the data address, but the
5050
status address may be optionally provided.
5151
52+
aspeed,lpc-interrupts:
53+
$ref: "/schemas/types.yaml#/definitions/uint32-array"
54+
minItems: 2
55+
maxItems: 2
56+
description: |
57+
A 2-cell property expressing the LPC SerIRQ number and the interrupt
58+
level/sense encoding (specified in the standard fashion).
59+
60+
Note that the generated interrupt is issued from the BMC to the host, and
61+
thus the target interrupt controller is not captured by the BMC's
62+
devicetree.
63+
5264
kcs_chan:
5365
deprecated: true
5466
$ref: '/schemas/types.yaml#/definitions/uint32'
@@ -84,9 +96,11 @@ allOf:
8496

8597
examples:
8698
- |
99+
#include <dt-bindings/interrupt-controller/irq.h>
87100
kcs3: kcs@24 {
88101
compatible = "aspeed,ast2600-kcs-bmc";
89102
reg = <0x24 0x1>, <0x30 0x1>, <0x3c 0x1>;
90103
aspeed,lpc-io-reg = <0xca2>;
104+
aspeed,lpc-interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
91105
interrupts = <8>;
92106
};

0 commit comments

Comments
 (0)