xref: /linux/Documentation/devicetree/bindings/sound/serial-midi.yaml (revision ee74817b0d6674c926c3ec2e14b191313fb59d8d)
11e5a7462SDaniel Kaehn# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
21e5a7462SDaniel Kaehn
31e5a7462SDaniel Kaehn%YAML 1.2
41e5a7462SDaniel Kaehn---
51e5a7462SDaniel Kaehn$id: http://devicetree.org/schemas/sound/serial-midi.yaml#
61e5a7462SDaniel Kaehn$schema: http://devicetree.org/meta-schemas/core.yaml#
71e5a7462SDaniel Kaehn
81e5a7462SDaniel Kaehntitle: Generic Serial MIDI Interface
91e5a7462SDaniel Kaehn
101e5a7462SDaniel Kaehnmaintainers:
111e5a7462SDaniel Kaehn  - Daniel Kaehn <kaehndan@gmail.com>
121e5a7462SDaniel Kaehn
131e5a7462SDaniel Kaehndescription:
141e5a7462SDaniel Kaehn  Generic MIDI interface using a serial device. This denotes that a serial device is
151e5a7462SDaniel Kaehn  dedicated to MIDI communication, either to an external MIDI device through a DIN5
161e5a7462SDaniel Kaehn  or other connector, or to a known hardwired MIDI controller. This device must be a
171e5a7462SDaniel Kaehn  child node of a serial node.
181e5a7462SDaniel Kaehn
191e5a7462SDaniel Kaehn  Can only be set to use standard baud rates corresponding to supported rates of the
201e5a7462SDaniel Kaehn  parent serial device. If the standard MIDI baud of 31.25 kBaud is needed
211e5a7462SDaniel Kaehn  (as would be the case if interfacing with arbitrary external MIDI devices),
221e5a7462SDaniel Kaehn  configure the clocks of the parent serial device so that a requested baud of 38.4 kBaud
2347aab533SBjorn Helgaas  results in the standard MIDI baud rate, and set the 'current-speed' property to 38400 (default)
241e5a7462SDaniel Kaehn
25*ee74817bSKrzysztof KozlowskiallOf:
26*ee74817bSKrzysztof Kozlowski  - $ref: /schemas/serial/serial-peripheral-props.yaml#
27*ee74817bSKrzysztof Kozlowski
281e5a7462SDaniel Kaehnproperties:
291e5a7462SDaniel Kaehn  compatible:
301e5a7462SDaniel Kaehn    const: serial-midi
311e5a7462SDaniel Kaehn
321e5a7462SDaniel Kaehn  current-speed:
331e5a7462SDaniel Kaehn    description: Baudrate to set the serial port to when this MIDI device is opened.
341e5a7462SDaniel Kaehn    default: 38400
351e5a7462SDaniel Kaehn
361e5a7462SDaniel Kaehnrequired:
371e5a7462SDaniel Kaehn  - compatible
381e5a7462SDaniel Kaehn
391e5a7462SDaniel KaehnadditionalProperties: false
401e5a7462SDaniel Kaehn
411e5a7462SDaniel Kaehnexamples:
421e5a7462SDaniel Kaehn  - |
431e5a7462SDaniel Kaehn    serial {
441e5a7462SDaniel Kaehn        midi {
451e5a7462SDaniel Kaehn            compatible = "serial-midi";
461e5a7462SDaniel Kaehn        };
471e5a7462SDaniel Kaehn    };
481e5a7462SDaniel Kaehn  - |
491e5a7462SDaniel Kaehn    serial {
501e5a7462SDaniel Kaehn        midi {
511e5a7462SDaniel Kaehn            compatible = "serial-midi";
521e5a7462SDaniel Kaehn            current-speed = <115200>;
531e5a7462SDaniel Kaehn        };
541e5a7462SDaniel Kaehn    };
55