ASPEED BMC KCS Devices
Schema identifier ($id): "http://devicetree.org/schemas/ipmi/aspeed,ast2400-kcs-bmc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Jeffery <andrew@aj.id.au>"
The Aspeed BMC SoCs typically use the Keyboard-Controller-Style (KCS) interfaces on the LPC bus for in-band IPMI communication with their host.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Channel ID derived from reg
Array item rules (
items)Allowed values (
enum):"aspeed,ast2400-kcs-bmc-v2","aspeed,ast2500-kcs-bmc-v2","aspeed,ast2600-kcs-bmc"
Rule 2
Old-style with explicit channel ID, no reg
Deprecated (
deprecated):trueArray item rules (
items)Allowed values (
enum):"aspeed,ast2400-kcs-bmc","aspeed,ast2500-kcs-bmc"
interrupts — required here #
Maximum number of items (maxItems): 1
reg — not listed as required here #
Array item rules (items) #
Item 1
IDR register
Item 2
ODR register
Item 3
STR register
clocks — not listed as required here #
Maximum number of items (maxItems): 1
aspeed,lpc-io-reg — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
The host CPU LPC IO data and status addresses for the device. For most channels the status address is derived from the data address, but the status address may be optionally provided.
aspeed,lpc-interrupts — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 2
A 2-cell property expressing the LPC SerIRQ number and the interrupt level/sense encoding (specified in the standard fashion).
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 — not listed as required here #
Deprecated (deprecated): true
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The LPC channel number in the controller
kcs_addr — not listed as required here #
Deprecated (deprecated): true
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The host CPU IO map address
Required in this object (required): "compatible", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"aspeed,ast2400-kcs-bmc","aspeed,ast2500-kcs-bmc"When the condition matches (
then) #When the condition does not match (
else) #Required in this object (
required):"reg","aspeed,lpc-io-reg"
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
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>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 37: maxItems: 3