Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/ipmi/ipmi-ipmb.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: IPMI IPMB device bindings
0008 
0009 description: IPMI IPMB device bindings
0010 
0011 maintainers:
0012   - Corey Minyard <cminyard@mvista.com>
0013 
0014 properties:
0015   compatible:
0016     enum:
0017       - ipmi-ipmb
0018 
0019   device_type:
0020     items:
0021       - const: "ipmi"
0022 
0023   reg:
0024     maxItems: 1
0025 
0026   bmcaddr:
0027     $ref: /schemas/types.yaml#/definitions/uint8
0028     description: The address of the BMC on the IPMB bus.  Defaults to 0x20.
0029 
0030   retry-time:
0031     $ref: /schemas/types.yaml#/definitions/uint32
0032     description: |
0033       Time between retries of sends, in milliseconds.  Defaults to 250.
0034 
0035   max-retries:
0036     $ref: /schemas/types.yaml#/definitions/uint32
0037     description: Number of retries before a failure is declared.  Defaults to 1.
0038 
0039   slave-dev:
0040     $ref: /schemas/types.yaml#/definitions/phandle
0041     description: |
0042       The slave i2c device.  If not present, the main device is used. This
0043       lets you use two devices on the IPMB, one for master and one for slave,
0044       in case you have a slave device that can only be a slave.  The slave
0045       will receive messages and the master will transmit.
0046 
0047 required:
0048   - compatible
0049   - reg
0050 
0051 additionalProperties: false
0052 
0053 examples:
0054   - |
0055     i2c {
0056             #address-cells = <1>;
0057             #size-cells = <0>;
0058 
0059             ipmi-ipmb@40 {
0060                     compatible = "ipmi-ipmb";
0061                     device_type = "ipmi";
0062                     reg = <0x40>;
0063                     bmcaddr = /bits/ 8 <0x20>;
0064                     retry-time = <250>;
0065                     max-retries = <1>;
0066             };
0067     };