From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E433DC433FE for ; Wed, 20 Apr 2022 19:47:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244305AbiDTTui (ORCPT ); Wed, 20 Apr 2022 15:50:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381712AbiDTTug (ORCPT ); Wed, 20 Apr 2022 15:50:36 -0400 Received: from mail-il1-x12c.google.com (mail-il1-x12c.google.com [IPv6:2607:f8b0:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15BEE1CFCE for ; Wed, 20 Apr 2022 12:47:50 -0700 (PDT) Received: by mail-il1-x12c.google.com with SMTP id o5so1679036ils.11 for ; Wed, 20 Apr 2022 12:47:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1p1O4XA0YTs/pERSSWY2OpdFQqDv87mRBIy7EhYGPYA=; b=eyyb9MlML7cIBV0IgT5gbiL1y42f1VSb4mQvFiWaJ2aUoZ7zOSbPvKDVDRsP3cVmHL KqwYxg5rxj5wE0S5DRbYzGUfhIQF4cZNMjh/KkPl0+aooZNXaISwRf2c1Qv+d1eFl/wr kfIzA5ZaIqD4FKOZu4k++SJpseC37e9bzdEBuuEXpW3o4GNGGhnbkkIK0CfotDWZoZvl os233gF59h3dL8KA8FLpJWC9cc4Mu18IfyBc5e08LZKAEPbduK1jFUn1X5N1O3Rz+KTX Gn7I8BAF5i/jKtdaQDei1mkDV37Xg7sVBqhXjTVk22BlSOUlOUQ63Kvv3rTrje3toyZ/ C5ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1p1O4XA0YTs/pERSSWY2OpdFQqDv87mRBIy7EhYGPYA=; b=wHfrnVWM0uT4GkH7nF2fvHCWgeJ9s70QCh9acZABTyCtCWh9UVS2eupVtgrJD5Fgx5 sPywjdsrhkznG60iUq3mWukELv7iOUXQZ4Bes1kdTyCqkHkgaWjIkJs+FKulzMvK93n1 ltfwTQLFgYdNGH52ZsPVHYQQpjnT56CuMxxRUuuOSBPhKPQ3OP0f3uxO9s3ytR8iaBHp GS2tZbyH937ri3G3jxfNW9oB6qN7HK1XRVhgpZ9qhDMugTK2i2RgvBs1sGinJKQCmf3K SUnULctum4QLGIk9HBHDYC4ZaIsgANlAzzO/ZgG1vat2HON2iwMrbCssSXRo6c+yPsKy KqZQ== X-Gm-Message-State: AOAM533G0hS+m69Eu4tbaIxVmAsKrbhXQv2onXopW+i9887Hw5c5Vpcp BPSm+ozv3ExrNIk39+mO4kxXqHE8SVNJ7f4z X-Google-Smtp-Source: ABdhPJzR32OtX/2D92iQzvs1rNdKUjMl6ZtnoGCfMT6B7JiQVlPr0J+HeSaj09EY+foo/mjkhQX01A== X-Received: by 2002:a05:6e02:1745:b0:2cc:5854:744b with SMTP id y5-20020a056e02174500b002cc5854744bmr2634037ill.237.1650484069422; Wed, 20 Apr 2022 12:47:49 -0700 (PDT) Received: from fedora.. (cpe-65-29-252-111.wi.res.rr.com. [65.29.252.111]) by smtp.gmail.com with ESMTPSA id t18-20020a056e02011200b002cbe6ce18e5sm10680977ilm.40.2022.04.20.12.47.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Apr 2022 12:47:49 -0700 (PDT) From: Daniel Kaehn To: tiwai@suse.com Cc: alsa-devel@alsa-project.org, devicetree@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: sound: Add generic serial MIDI device Date: Wed, 20 Apr 2022 14:47:46 -0500 Message-Id: <20220420194747.490542-2-kaehndan@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220420194747.490542-1-kaehndan@gmail.com> References: <20220420194747.490542-1-kaehndan@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Adds dt-binding for snd-serial-generic serial MIDI driver Signed-off-by: Daniel Kaehn --- .../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..900c57c1cfca --- /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 + +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 3.125 kBaud is needed, configure the clocks of the underlying serial device + so that a requested speed of 3.840 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.32.0