Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp3468884rwp; Sat, 15 Jul 2023 03:26:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlGQgXjg2ZlMYhosUfkmwjK2geI6ZOBBQlpkwDdwbZNjDYIwsY+IzRD9mCPB78ol83boq7qJ X-Received: by 2002:aa7:c454:0:b0:51e:ceb:7d71 with SMTP id n20-20020aa7c454000000b0051e0ceb7d71mr5432928edr.39.1689416813866; Sat, 15 Jul 2023 03:26:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689416813; cv=none; d=google.com; s=arc-20160816; b=Gro12RwGMVsEO2FBNJA+6Dxp8NaUbSZRZchWuPVBmSz5iSvwzVYACwsYPuCPY3aFnp 8cTz0UEYH60UBLtpHvty0Bj+Y07ozlD0WvvTHgPLr+v9B9Zj0JN50fN3+bDnkx+5ziX7 XDjouCCF4NuuAnMjKfmpBikPKyiuVvhbLppD0bEDmsUWyRvD2Ig4tcBzeHMZAuqbxFJD L9TgMefVHBMlsNs/qNzNqo9V4YZkaF4pOA/8M4VJ+hn43TcTVDtnS0FC8EuQZhdwElhl 3nprN0dUIJ8QUFT/TeaYmQXFbVGzvJdUesQtEWweH0XRN0zNKU1y55ATLDOmkblhYtOo 6xlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=nTUV8iWyyAdWf9/HteKPenq7whVZjQj0BUZXDdsYUww=; fh=1uiuwxjjGLBS9VVHZih2Mk2JUvqVfhWI+O5L7b9ttCw=; b=OdmWNk4oSiuoF9hfRo/2aFpQpbIG7hyMoJEcfmp7ma/wTs2LCo69i2M1h0Nef9p6DJ zUZUx6aPb2tiAboZ89Im9aLX342tbT69gWEWpWixXblL7iObZYILl17t3gMi4i7ddiOy qV8jXpsGllsOPNnYZaPIp6AmQT+rTVxB0xEGdrmCUQUsz3IyekxYwFFwlHp7ZDlHzJLr bf6ET7IJNf1AhyTTUn+5PbjsS5EA6DzIAZTOVlvN31m+dWb3Tsn5aGKlRZmDauKVavhd 4a8+sPclre+YLTPoAE5Go9Ca2tSIVLiZ7M7qcaTAmyd+FrpUxbk/vIpXtpfsqs4uouPH ZGsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@inbox.ru header.s=mail4 header.b="pF/Hi17c"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=inbox.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ay1-20020a056402202100b0051e067727b7si10331877edb.135.2023.07.15.03.26.23; Sat, 15 Jul 2023 03:26:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@inbox.ru header.s=mail4 header.b="pF/Hi17c"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=inbox.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229824AbjGOIbb (ORCPT + 99 others); Sat, 15 Jul 2023 04:31:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229601AbjGOIb1 (ORCPT ); Sat, 15 Jul 2023 04:31:27 -0400 Received: from smtpng1.i.mail.ru (smtpng1.i.mail.ru [94.100.181.251]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1711D1FC4 for ; Sat, 15 Jul 2023 01:31:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=inbox.ru; s=mail4; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:From:Subject:Content-Type:Content-Transfer-Encoding:To:Cc; bh=nTUV8iWyyAdWf9/HteKPenq7whVZjQj0BUZXDdsYUww=; t=1689409886;x=1689499886; b=pF/Hi17cO0MNviuxUseqGsNGaJ87RYY/Li8AhGOs5k4+TkwgQHUx93XN96+sLq12KlF8nSnonbRjaZVaw51QjLF5J678ou5dz3ecK/sLN1pxYyKfhTGk+NoFZUFb0NcvF+D/RHjrWPWsh92LYuS97BfkhjY0C7Nr4SlfMV08u+nwcI6cXd3hHAlIG9gGZTvif4piLW2z41NeBlZP8vIRe1HBz95iIgbtFaGHCvlHMSjVNeDhVq8c4gH0pYOL/Kv3YavELhiyvZK+JgnXJGnJZwtIKC9b8bsCjqAIGNyOtTwKOWARdnDNGNkET6Kl4Za/wrqZFFMysb5lKvmkRmW1Ig==; Received: by smtpng1.m.smailru.net with esmtpa (envelope-from ) id 1qKagV-0004Hr-1R; Sat, 15 Jul 2023 11:31:23 +0300 From: Maxim Kochetkov To: alsa-devel@alsa-project.org Cc: Maxim Kochetkov , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai , Kuninori Morimoto , Sameer Pujar , Astrid Rost , Dmitry Torokhov , Herve Codina , Aidan MacDonald , Christophe Leroy , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] ASoC: dt-bindings: simple-card: add triggers properties Date: Sat, 15 Jul 2023 11:30:43 +0300 Message-Id: <20230715083046.108674-3-fido_max@inbox.ru> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230715083046.108674-1-fido_max@inbox.ru> References: <20230715083046.108674-1-fido_max@inbox.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Authentication-Results: smtpng1.m.smailru.net; auth=pass smtp.auth=fido_max@inbox.ru smtp.mailfrom=fido_max@inbox.ru X-Mailru-Src: smtp X-4EC0790: 10 X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD9A075ED63965291975FF12524F3FDD82BF1CE581C66542C39182A05F538085040497A2B679F75C10E298F89A9AA7B3332C2AB428A38E121307E705937D85A46C3 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE77EB2E345998A721DEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637CF05F7050DCA185A8638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D8EE9E629E1E985D2A40FD89EEA341FDB66F9789CCF6C18C3F8528715B7D10C86878DA827A17800CE79AE9BAF3542BD4619FA2833FD35BB23D9E625A9149C048EE33AC447995A7AD18618001F51B5FD3F9D2E47CDBA5A96583BD4B6F7A4D31EC0BC014FD901B82EE079FA2833FD35BB23D27C277FBC8AE2E8BDCBA8CBAA3833548A471835C12D1D977C4224003CC8364762BB6847A3DEAEFB0F43C7A68FF6260569E8FC8737B5C2249EC8D19AE6D49635B68655334FD4449CB9ECD01F8117BC8BEAAAE862A0553A39223F8577A6DFFEA7CB0EC3B1FCAE4A06943847C11F186F3C59DAA53EE0834AAEE X-C1DE0DAB: 0D63561A33F958A52EF64897036BA1BABBA65E42AFBF6689569F4EE9472D15CBF87CCE6106E1FC07E67D4AC08A07B9B062B3BD3CC35DA5889C5DF10A05D560A950611B66E3DA6D700B0A020F03D25A0997E3FB2386030E77 X-C8649E89: 1C3962B70DF3F0ADE00A9FD3E00BEEDF3FED46C3ACD6F73ED3581295AF09D3DF87807E0823442EA2ED31085941D9CD0AF7F820E7B07EA4CF5794AB131328BC4954084840F70DCF8BCC9F39E65B9BED622E6AE8BEE6D25458F964158C91B2A10B7BBDB0A562C82D59FB6E383D7E5B7F83A4FA568D272421B0E4EB81C25D25832B4C41F94D744909CEE921556F0E976A29E6EC0772259F8F8F8815B87D7EC76CB9 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojTPX5czuwuGEtQdxCMaPszA== X-Mailru-Sender: 689FA8AB762F73930F533AC2B33E986BA03479BD6AC6EE6815F6676A572F0D5B98CC072019C18A892CA7F8C7C9492E1F2F5E575105D0B01ADBE2EF17B331888EEAB4BC95F72C04283CDA0F3B3F5B9367 X-Mras: Ok X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The trigger-start/stop properties allows to specify DAI link trigger ordering method. Signed-off-by: Maxim Kochetkov --- .../bindings/sound/simple-card.yaml | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/simple-card.yaml b/Documentation/devicetree/bindings/sound/simple-card.yaml index 59ac2d1d1ccf..f1878d470d83 100644 --- a/Documentation/devicetree/bindings/sound/simple-card.yaml +++ b/Documentation/devicetree/bindings/sound/simple-card.yaml @@ -99,6 +99,28 @@ definitions: description: the widget names for which pin switches must be created. $ref: /schemas/types.yaml#/definitions/string-array + trigger-start: + description: |- + Start trigger ordering method: + default: Link->Component->DAI + ldc: Link->DAI->Component + $ref: /schemas/types.yaml#/definitions/string + items: + enum: + - default + - ldc + + trigger-stop: + description: |- + Stop trigger ordering method: + default: DAI->Component->Link + ldc: Component->DAI->Link + $ref: /schemas/types.yaml#/definitions/string + items: + enum: + - default + - ldc + format: description: audio format. items: @@ -210,6 +232,10 @@ properties: maxItems: 1 simple-audio-card,mic-det-gpio: maxItems: 1 + simple-audio-card,trigger-start: + $ref: "#/definitions/trigger-start" + simple-audio-card,trigger-stop: + $ref: "#/definitions/trigger-stop" patternProperties: "^simple-audio-card,cpu(@[0-9a-f]+)?$": @@ -259,6 +285,11 @@ patternProperties: maxItems: 1 mic-det-gpio: maxItems: 1 + trigger-start: + $ref: "#/definitions/trigger-start" + trigger-stop: + $ref: "#/definitions/trigger-stop" + patternProperties: "^cpu(-[0-9]+)?$": -- 2.40.1