ipmi-ipmb.yaml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/ipmi/ipmi-ipmb.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: IPMI IPMB device
  7. description: IPMI IPMB device bindings
  8. maintainers:
  9. - Corey Minyard <cminyard@mvista.com>
  10. properties:
  11. compatible:
  12. enum:
  13. - ipmi-ipmb
  14. device_type:
  15. items:
  16. - const: ipmi
  17. reg:
  18. maxItems: 1
  19. bmcaddr:
  20. $ref: /schemas/types.yaml#/definitions/uint8
  21. description: The address of the BMC on the IPMB bus. Defaults to 0x20.
  22. retry-time:
  23. $ref: /schemas/types.yaml#/definitions/uint32
  24. description: |
  25. Time between retries of sends, in milliseconds. Defaults to 250.
  26. max-retries:
  27. $ref: /schemas/types.yaml#/definitions/uint32
  28. description: Number of retries before a failure is declared. Defaults to 1.
  29. slave-dev:
  30. $ref: /schemas/types.yaml#/definitions/phandle
  31. description: |
  32. The slave i2c device. If not present, the main device is used. This
  33. lets you use two devices on the IPMB, one for master and one for slave,
  34. in case you have a slave device that can only be a slave. The slave
  35. will receive messages and the master will transmit.
  36. required:
  37. - compatible
  38. - reg
  39. additionalProperties: false
  40. examples:
  41. - |
  42. i2c {
  43. #address-cells = <1>;
  44. #size-cells = <0>;
  45. ipmi-ipmb@40 {
  46. compatible = "ipmi-ipmb";
  47. device_type = "ipmi";
  48. reg = <0x40>;
  49. bmcaddr = /bits/ 8 <0x20>;
  50. retry-time = <250>;
  51. max-retries = <1>;
  52. };
  53. };