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
23*47aab533SBjorn Helgaas  results in the standard MIDI baud rate, and set the 'current-speed' property to 38400 (default)
241e5a7462SDaniel Kaehn
251e5a7462SDaniel Kaehnproperties:
261e5a7462SDaniel Kaehn  compatible:
271e5a7462SDaniel Kaehn    const: serial-midi
281e5a7462SDaniel Kaehn
291e5a7462SDaniel Kaehn  current-speed:
301e5a7462SDaniel Kaehn    description: Baudrate to set the serial port to when this MIDI device is opened.
311e5a7462SDaniel Kaehn    default: 38400
321e5a7462SDaniel Kaehn
331e5a7462SDaniel Kaehnrequired:
341e5a7462SDaniel Kaehn  - compatible
351e5a7462SDaniel Kaehn
361e5a7462SDaniel KaehnadditionalProperties: false
371e5a7462SDaniel Kaehn
381e5a7462SDaniel Kaehnexamples:
391e5a7462SDaniel Kaehn  - |
401e5a7462SDaniel Kaehn    serial {
411e5a7462SDaniel Kaehn        midi {
421e5a7462SDaniel Kaehn            compatible = "serial-midi";
431e5a7462SDaniel Kaehn        };
441e5a7462SDaniel Kaehn    };
451e5a7462SDaniel Kaehn  - |
461e5a7462SDaniel Kaehn    serial {
471e5a7462SDaniel Kaehn        midi {
481e5a7462SDaniel Kaehn            compatible = "serial-midi";
491e5a7462SDaniel Kaehn            current-speed = <115200>;
501e5a7462SDaniel Kaehn        };
511e5a7462SDaniel Kaehn    };
52