Documentation/devicetree/bindings/sound/serial-midi.yaml
Source file repositories/reference/linux-study-clean/Documentation/devicetree/bindings/sound/serial-midi.yaml
File Facts
- System
- Linux kernel
- Corpus path
Documentation/devicetree/bindings/sound/serial-midi.yaml- Extension
.yaml- Size
- 1525 bytes
- Lines
- 55
- Domain
- Support Tooling And Documentation
- Bucket
- Documentation
- Inferred role
- Support Tooling And Documentation: configuration, schema, or hardware description
- Status
- atlas-only
Why This File Exists
Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
- Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
Dependency Surface
- No C-style include directives detected by the generator.
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/sound/serial-midi.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Generic Serial MIDI Interface
maintainers:
- Daniel Kaehn <kaehndan@gmail.com>
description:
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)
allOf:
- $ref: /schemas/serial/serial-peripheral-props.yaml#
properties:
compatible:
const: serial-midi
current-speed:
description: Baudrate to set the serial port to when this MIDI device is opened.
default: 38400
required:
- compatible
additionalProperties: false
examples:
- |
serial {
midi {
compatible = "serial-midi";
};
};
- |
serial {
midi {
compatible = "serial-midi";
current-speed = <115200>;
};
};
Annotation
- Atlas domain: Support Tooling And Documentation / Documentation.
- Implementation status: atlas-only.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.