Generic Serial MIDI Interface

Schema identifier ($id): "http://devicetree.org/schemas/sound/serial-midi.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Daniel Kaehn <kaehndan@gmail.com>"

Generic MIDI interface using a serial device. This denotes that a serial device is dedicated to MIDI communication, either to an external MIDI device through a DIN5 or other connector, or to a known hardwired MIDI controller. This device must be a child node of a serial node. Can only be set to use standard baud rates corresponding to supported rates of the parent serial device. If the standard MIDI baud of 31.25 kBaud is needed (as would be the case if interfacing with arbitrary external MIDI devices), configure the clocks of the parent serial device so that a requested baud of 38.4 kBaud results in the standard MIDI baud rate, and set the 'current-speed' property to 38400 (default)

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/serial/serial-peripheral-props.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "serial-midi"

current-speed — not listed as required here #

Baudrate to set the serial port to when this MIDI device is opened.

Default value (default): 38400

Required in this object (required): "compatible"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

serial {
    midi {
        compatible = "serial-midi";
    };
};
serial {
    midi {
        compatible = "serial-midi";
        current-speed = <115200>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Edit this page