From: Daniel Kaehn <kaehndan@gmail.com>
To: tiwai@suse.com
Cc: alsa-devel@alsa-project.org, devicetree@vger.kernel.org,
Daniel Kaehn <kaehndan@gmail.com>
Subject: [PATCH v4 1/2] dt-bindings: sound: Add generic serial MIDI device
Date: Mon, 25 Apr 2022 14:16:02 -0500 [thread overview]
Message-ID: <20220425191602.770932-2-kaehndan@gmail.com> (raw)
In-Reply-To: <20220425191602.770932-1-kaehndan@gmail.com>
Adds dt-binding for snd-serial-generic serial MIDI driver
Signed-off-by: Daniel Kaehn <kaehndan@gmail.com>
---
.../devicetree/bindings/sound/serialmidi.yaml | 41 +++++++++++++++++++
1 file changed, 41 insertions(+)
create mode 100644 Documentation/devicetree/bindings/sound/serialmidi.yaml
diff --git a/Documentation/devicetree/bindings/sound/serialmidi.yaml b/Documentation/devicetree/bindings/sound/serialmidi.yaml
new file mode 100644
index 000000000000..38ef49a0c2f9
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/serialmidi.yaml
@@ -0,0 +1,41 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/serialmidi.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Generic Serial MIDI Device
+
+maintainers:
+ - Daniel Kaehn <kaehndan@gmail.com>
+
+description: |
+ Generic MIDI interface using a serial device. Can only be set to use standard speeds
+ corresponding to supported baud rates of the underlying serial device. If standard MIDI
+ speed of 31.25 kBaud is needed, configure the clocks of the underlying serial device
+ so that a requested speed of 38.4 kBaud resuts in the standard MIDI baud rate.
+
+properties:
+ compatible:
+ const: serialmidi
+
+ speed:
+ maxItems: 1
+ description: |
+ Speed to set the serial port to when the MIDI device is opened.
+ If not specified, the underlying serial device is allowed to use its configured default speed.
+
+required:
+ - compatible
+
+additionalProperties: false
+
+examples:
+ - |
+ serial {
+ midi {
+ compatible = "serialmidi";
+ speed = <38400>;
+ };
+ };
--
2.33.0
next prev parent reply other threads:[~2022-04-25 19:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-25 19:16 [PATCH v4 0/2] Add generic serial MIDI driver using serial bus API Daniel Kaehn
2022-04-25 19:16 ` Daniel Kaehn [this message]
2022-04-25 22:16 ` [PATCH v4 1/2] dt-bindings: sound: Add generic serial MIDI device Rob Herring
2022-04-26 0:49 ` Dan K
2022-04-27 0:47 ` Rob Herring
[not found] ` <CAP+ZCCc0YBSMU1XXoTVxNRaQ6V76D2=zNJzoduLnG2pn16hHjQ@mail.gmail.com>
2022-04-28 1:58 ` Rob Herring
2022-04-28 3:22 ` Dan K
2022-04-25 19:16 ` [PATCH v4 2/2] Add generic serial MIDI driver using serial bus API Daniel Kaehn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220425191602.770932-2-kaehndan@gmail.com \
--to=kaehndan@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=devicetree@vger.kernel.org \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).