Ipmi bindings
Single-page view · as markdown
Aspeed Block Transfer (BT) IPMI interface
Peios Kernel / Hardware and drivers / Device-tree binding reference / Ipmi bindings
Schema identifier ($id): "http://devicetree.org/schemas/ipmi/aspeed,ast2400-ibt-bmc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Joel Stanley <joel@jms.id.au>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "aspeed,ast2400-ibt-bmc", "aspeed,ast2500-ibt-bmc", "aspeed,ast2600-ibt-bmc"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "clocks"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/aspeed-clock.h>
bt@1e789140 {
compatible = "aspeed,ast2400-ibt-bmc";
reg = <0x1e789140 0x18>;
interrupts = <8>;
clocks = <&syscon ASPEED_CLK_GATE_LCLK>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
ASPEED BMC KCS Devices
Peios Kernel / Hardware and drivers / Device-tree binding reference / Ipmi bindings
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
The Intelligent Platform Management Bus(IPMB) Device
Peios Kernel / Hardware and drivers / Device-tree binding reference / Ipmi bindings
Schema identifier ($id): "http://devicetree.org/schemas/ipmi/ipmb-dev.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The IPMB is an I2C bus which provides interconnection between a Baseboard Management Controller(BMC) and chassis electronics. The BMC sends IPMI requests to intelligent controllers like Satellite Management Controller(MC) devices via IPMB and the device sends responses back to the BMC. This device uses an I2C slave device to send and receive IPMB messages, either on a BMC or other MC. A miscellaneous device provices a user space program to communicate with the kernel and the backend device. Some IPMB devices only support the I2C protocol and not the SMB protocol.
IPMB communications protocol Specification V1.0 https://www.intel.com/content/dam/www/public/us/en/documents/product-briefs/ipmp-spec-v1.0.pdf
Maintainers (maintainers): "Ninad Palsule <ninad@linux.ibm.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ipmb-dev"
reg — required here #
Maximum number of items (maxItems): 1
i2c-protocol — not listed as required here #
Use I2C block transfer instead of SMBUS block transfer.
Value type (type): "boolean"
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/i2c/i2c.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
ipmb-dev@10 {
compatible = "ipmb-dev";
reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>;
i2c-protocol;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
IPMI IPMB device
Peios Kernel / Hardware and drivers / Device-tree binding reference / Ipmi bindings
Schema identifier ($id): "http://devicetree.org/schemas/ipmi/ipmi-ipmb.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
IPMI IPMB device bindings
Maintainers (maintainers): "Corey Minyard <cminyard@mvista.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ipmi-ipmb"
device_type — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"ipmi"
reg — required here #
Maximum number of items (maxItems): 1
bmcaddr — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
The address of the BMC on the IPMB bus. Defaults to 0x20.
retry-time — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Time between retries of sends, in milliseconds. Defaults to 250.
max-retries — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Number of retries before a failure is declared. Defaults to 1.
slave-dev — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
The slave i2c device. If not present, the main device is used. This lets you use two devices on the IPMB, one for master and one for slave, in case you have a slave device that can only be a slave. The slave will receive messages and the master will transmit.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
ipmi-ipmb@40 {
compatible = "ipmi-ipmb";
device_type = "ipmi";
reg = <0x40>;
bmcaddr = /bits/ 8 <0x20>;
retry-time = <250>;
max-retries = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
IPMI device
Peios Kernel / Hardware and drivers / Device-tree binding reference / Ipmi bindings
Schema identifier ($id): "http://devicetree.org/schemas/ipmi/ipmi-smic.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
IPMI device bindings
Maintainers (maintainers): "Corey Minyard <cminyard@mvista.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ipmi-kcs", "ipmi-smic", "ipmi-bt"
device_type — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"ipmi"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Interface is polled if this property is omitted.
Maximum number of items (maxItems): 1
reg-size — not listed as required here #
The access width of the register in bytes. Defaults to 1.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 1, 2, 4, 8
reg-spacing — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The number of bytes between register starts. Defaults to 1.
reg-shift — not listed as required here #
The amount of bits to shift the register content to the right to get the data into bit zero.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Maximum value (maximum): 56
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
smic@fff3a000 {
compatible = "ipmi-smic";
device_type = "ipmi";
reg = <0xfff3a000 0x1000>;
interrupts = <0 24 4>;
reg-size = <4>;
reg-spacing = <4>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Nuvoton NPCM KCS BMC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Ipmi bindings
Schema identifier ($id): "http://devicetree.org/schemas/ipmi/nuvoton,npcm750-kcs-bmc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Avi Fishman <avifishman70@gmail.com>", "Tomer Maimon <tmaimon77@gmail.com>", "Tali Perry <tali.perry1@gmail.com>"
The Nuvoton SOCs (NPCM) are commonly used as BMCs (Baseboard Management Controllers) and the KCS interface can be used to perform 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
Exact value (
const):"nuvoton,npcm750-kcs-bmc"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"nuvoton,npcm750-kcs-bmc"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
kcs_chan — required here #
The KCS channel number in the controller
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 1
Maximum value (maximum): 3
Required in this object (required): "compatible", "reg", "interrupts", "kcs_chan"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
kcs@0 {
compatible = "nuvoton,npcm750-kcs-bmc";
reg = <0x0 0x40>;
interrupts = <9 4>;
kcs_chan = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
SSIF IPMI BMC interface
Peios Kernel / Hardware and drivers / Device-tree binding reference / Ipmi bindings
Schema identifier ($id): "http://devicetree.org/schemas/ipmi/ssif-bmc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
SSIF IPMI BMC device bindings
Maintainers (maintainers): "Quan Nguyen <quan@os.amperecomputing.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ssif-bmc"
reg — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
ssif-bmc@10 {
compatible = "ssif-bmc";
reg = <0x10>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)